Project

General

Profile

Bug #29086

Display more information when mirroring boot device fails due to target device size being too small

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

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

Description

We recently increased the verbosity of this verbosity of this message, but it still needs a bit of work.

From https://forums.freenas.org/index.php?threads/error-attaching-boot-disk.61810/

The device called USB Flash Memory (14.45 GB, 30310400 sectors does not have enough space to mirror the old device USB Flash Memory (14.45 GB, 30310400 sectors). Please use a larger device.

This tells the user that their device was exactly the same size as the old one, but somehow still not big enough.

This message needs to tell the size needed for the new partitions to show what it is trying to do. The error is likely due to a bigger bootcode partition.

The new device (USB Flash Memory, 15.0 GB, 15,728,640 blocks) does not have enough space to to hold the required new partitions (bios-boot, 1,024 blocks, and freebsd-zfs, 16,777,216 blocks, total of 16,778,240 blocks). New mirrored devices might require more space than existing devices due to changes in the booting procedure.

(Block sizes should also be commafied for easier reading.)

(I've written about this before, and tried but could not find that in the previous bugs. Sorry.)

mirror_device_message.png (26.8 KB) mirror_device_message.png Aaron St. John, 06/28/2018 08:46 AM
19818

Related issues

Related to FreeNAS - Bug #27860: Display proper error message when mirroring boot device fails due to target device size being too smallDone2018-01-182018-02-12
Has duplicate FreeNAS - Bug #29072: Unable to attach boot drive of same type / sizeClosed2018-03-04

Associated revisions

Revision 2022e49d (diff)
Added by Vladimir Vinogradenko about 1 year ago

Display more information when mirroring boot device fails due to target device size being too small

Ticket: #29086

History

#1 Updated by Warren Block over 1 year ago

  • Related to Bug #27860: Display proper error message when mirroring boot device fails due to target device size being too small added

#2 Updated by William Grzybowski over 1 year ago

  • Assignee changed from William Grzybowski to Vladimir Vinogradenko

#3 Updated by Eric Loewenthal over 1 year ago

I recommend using spaces as the digit separator, as it is unambiguous.

#4 Updated by Warren Block over 1 year ago

English speakers sometimes find the spaces confusing. Really, the right way is to format it depending on the Language setting from System/General.

Some details of how to calculate the sizes were shown in the description of #27860.

#5 Updated by Dru Lavigne about 1 year ago

  • Has duplicate Bug #29072: Unable to attach boot drive of same type / size added

#6 Updated by Vladimir Vinogradenko about 1 year ago

  • Status changed from Not Started to In Progress

#7 Updated by Vladimir Vinogradenko about 1 year ago

  • Status changed from In Progress to Done

#8 Updated by Dru Lavigne about 1 year ago

  • Target version changed from 11.2-RC2 to 11.2-BETA1
  • Needs Doc changed from Yes to No
  • Needs Merging changed from Yes to No

#9 Updated by Dru Lavigne about 1 year ago

  • Status changed from Done to Ready for Testing

#10 Updated by Aaron St. John 12 months ago

19818

See attached the new message displayed.

#11 Updated by Dru Lavigne 12 months ago

  • Status changed from Passed Testing to Done
  • Needs QA changed from Yes to No

Also available in: Atom PDF