Smallest disk size incorrectly detected with -d #105
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The
smallest_hd()function in functions.sh sometimes incorrectly detects the size of the smallest disk when disks are specified manually with the-doption.I experienced this when trying to install an image on a server with 2 x 2TB disks and 4 x 8 TB disks. I wanted to install the image on the 2 x 2 TB disks. However, the smallest disk was detected to be 8 TB, which caused installimage to suggest a partitioning scheme that didn't fit on the small disks.
I specified the two 2 TB disks with
-d. That's stored in\$OPT_DRIVE${i}internally. But smallest_hd() uses\$DRIVE$ito detect disk sizes, which are the disks not overwritten by the-doption. And in my particular case,$DRIVE1and$DRIVE2both happened to be 8 TB disks.