Bug #27860
Display proper error message when mirroring boot device fails due to target device size being too small
Description
Mirroring a boot device can fail due to there not being enough space on the new device. This results in a middleware error that tells the user nothing helpful.
The process should be:
Get size of existing freebsd-zfs partition on old boot device in blocks.
Add that to size of EFI partition that must be created (ignore the old EFI partition, it might be smaller).
If new device does not have enough free space to fit GPT table plus new EFI partition plus old freebsd-zfs partition, tell the user:
The device called "XYZ USB Flash Drive" (xx GB, xyz blocks) does not have enough space to mirror the old device "ABC USB Flash Drive". Please use a larger device.
(Drive name and size from camcontrol or diskinfo.)
Related issues
Associated revisions
History
#1
Updated by Warren Block almost 3 years ago
- Related to Bug #27749: Traceback when trying to mirror boot device added
#2
Updated by Dru Lavigne almost 3 years ago
- Status changed from Untriaged to Unscreened
#3
Updated by Dru Lavigne almost 3 years ago
- Status changed from Unscreened to Not Started
#4
Updated by Ben Gadd almost 3 years ago
- Due date set to 02/12/2018
Due date updated to reflect the code freeze for 11.1U2.
#5
Updated by Ben Gadd almost 3 years ago
- Severity set to New
#6
Updated by Vladimir Vinogradenko almost 3 years ago
- Status changed from Not Started to Done
#7
Updated by Warren Block almost 3 years ago
- Related to Bug #28216: Adding disk to mirror boot device fails without useful information if new disk is too small added
#8
Updated by William Grzybowski almost 3 years ago
#9
Updated by Dru Lavigne almost 3 years ago
- Subject changed from Mirroring boot device fails without clear message to Display proper error message when mirroring boot device fails due to target device size being too small
- Needs Merging changed from Yes to No
#10
Updated by Dru Lavigne almost 3 years ago
- Needs Doc changed from Yes to No
#11
Updated by William Grzybowski almost 3 years ago
- Related to Bug #28432: Unable to switch boot volume from striped to mirrored added
#12
Updated by Warren Block almost 3 years ago
- Related to Bug #29086: Display more information when mirroring boot device fails due to target device size being too small added