Display proper error message when mirroring boot device fails due to target device size being too small
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 to Bug #27749: Traceback when trying to mirror boot device added
- Status changed from Untriaged to Unscreened
- Status changed from Unscreened to Not Started
- Due date set to 02/12/2018
Due date updated to reflect the code freeze for 11.1U2.
Updated by Vladimir Vinogradenko almost 3 years ago
- Status changed from Not Started to Done
- Related to Bug #28216: Adding disk to mirror boot device fails without useful information if new disk is too small added
- 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
- Needs Doc changed from Yes to No
Updated by William Grzybowski almost 3 years ago
- Related to Bug #28432: Unable to switch boot volume from striped to mirrored added
- Related to Bug #29086: Display more information when mirroring boot device fails due to target device size being too small added
Also available in: Atom