I'm upgrading a current 16.04 server to 18.04. The /
and /boot
partitions are mirrored (simple mdadm
). To avoid the risk of a failed installation, I broke (--fail
then --remove
) the mirror and am trying to install 18.04.1 onto the partitions I removed from the mirror.
Related: Ubuntu server install on existing partition, Ubuntu specifically disallows the ability to use pre-existing partitions (used to work years back), not sure why this feature was intentionally removed but it seems to make it harder to do upgrades.
To work around that problem, I removed the existing partitions for /
and /boot
, hoping to use the installer's "create software RAID (md)". However, the desired drive (it is the only drive with unpartitioned space available) is not listed on the "RAID" ascii pop-up, and a red label at the bottom states that it requires at least 2 active devices.
Perhaps I'm missing something, but it is perfectly legal to create a raid1
mirror array with a single partition and missing
, suggesting a place-holder for a future device.
mdadm --create /dev/md/0 --level=1 --raid-devices=2 /dev/sdh1 missing
mdadm --create /dev/md/2 --level=1 --raid-devices=2 /dev/sdh3 missing
My intention is to bring up this newer 18.04 and, once I have successfully brought it up-to-speed and proved to myself that all will work, only then will I add the other drive's raid1-partitions and rebuild the mirrors (over-writing the 16.04 installation).
Perhaps the only way to get this to work here is to do a vanilla install (no mirroring whatsoever), then do partition-juggling where I move files around, set up one mirrored partition, update grub, move files around again, set up the second mirrored partition, and update grub again. Seems unnecessary.