Project

General

Profile

Bug #27860

Display proper error message when mirroring boot device fails due to target device size being too small

Added by Warren Block over 1 year ago. Updated over 1 year ago.

Status:
Done
Priority:
Important
Assignee:
Vladimir Vinogradenko
Category:
Middleware
Target version:
Seen in:
Severity:
New
Reason for Closing:
Reason for Blocked:
Needs QA:
Yes
Needs Doc:
No
Needs Merging:
No
Needs Automation:
No
Support Suite Ticket:
n/a
Hardware Configuration:
ChangeLog Required:
No

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

Related to FreeNAS - Bug #27749: Traceback when trying to mirror boot deviceClosed2018-01-10
Related to FreeNAS - Bug #28216: Adding disk to mirror boot device fails without useful information if new disk is too smallClosed2018-02-06
Related to FreeNAS - Bug #28432: Unable to switch boot volume from striped to mirroredClosed2018-02-11
Related to FreeNAS - Bug #29086: Display more information when mirroring boot device fails due to target device size being too smallDone

Associated revisions

Revision 390cb1b9 (diff)
Added by Vladimir Vinogradenko over 1 year ago

fix(boot): Display proper error message when mirroring boot device fails due to target device size being too small

Ticket: #27860

Revision 9fbfc359 (diff)
Added by Vladimir Vinogradenko over 1 year ago

fix(boot): Display proper error message when mirroring boot device fails due to target device size being too small

Ticket: #27860

Revision d63ef46f (diff)
Added by Vladimir Vinogradenko over 1 year ago

fix(boot): Display proper error message when mirroring boot device fails due to target device size being too small

Ticket: #27860

History

#1 Updated by Warren Block over 1 year ago

  • Related to Bug #27749: Traceback when trying to mirror boot device added

#2 Updated by Dru Lavigne over 1 year ago

  • Status changed from Untriaged to Unscreened

#3 Updated by Dru Lavigne over 1 year ago

  • Status changed from Unscreened to Not Started

#4 Avatar?id=13649&size=24x24 Updated by Ben Gadd over 1 year ago

  • Due date set to 02/12/2018

Due date updated to reflect the code freeze for 11.1U2.

#5 Avatar?id=13649&size=24x24 Updated by Ben Gadd over 1 year ago

  • Severity set to New

#6 Updated by Vladimir Vinogradenko over 1 year ago

  • Status changed from Not Started to Done

#7 Updated by Warren Block over 1 year 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 over 1 year ago

#9 Updated by Dru Lavigne over 1 year 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 over 1 year ago

  • Needs Doc changed from Yes to No

#11 Updated by William Grzybowski over 1 year ago

  • Related to Bug #28432: Unable to switch boot volume from striped to mirrored added

#12 Updated by Warren Block over 1 year ago

  • 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 PDF