[Bug 2004485] [NEW] Ubuntu 22.04 is unable to boot from degraded software raid created by autoinstall

Launchpad Bug Tracker 2004485 at bugs.launchpad.net
Tue Apr 11 19:30:26 UTC 2023


You have been subscribed to a public bug:

The new autoinstall installer which deprecated the previously used debian-installer supports the creation of an raid array during setup (in my case raid1).
Also as part of the installer the /dev/md0 device is registered as Physical Volume in LVM, a Volume Group is being created and a Logical Volume is created which will be mounted at "/" for the root filesystem.

Creating such an array works fine and results in a flawlessly working
system. After the installation I verified that the array is in sync by
issuing "cat /proc/mdstat".

To simulate a failure of one disk I erased one of the disks completely
and rebooted the system.

The expected behaviour would be: The system boot's normally since there
is still one disk available.

The actual behaviour: The system is stuck during boot displaying the
following relevant messages:

"Begin: Mounting root file system ... Begin: Running /scripts/local-top ... Volume Group "VG" not found"
"Cannot process volume group VG"
"Gave up waiting for root file system device"

What helped resolving the issue (before wiping one of the disks):
  echo "sleep 60" > /etc/initramfs-tools/scripts/init-premount/init-mdfix
  chmod 744 /etc/initramfs-tools/scripts/init-premount/init-mdfix
  update-grub
  update-initramfs -u

I assume the system is trying to find the root file system but this is
not yet available since the raid array is taking too long to initialize
after one of the disks has been wiped.

After applying the above fix and wiping one of the disks the system
booted normally after waiting for 60 seconds. This seems to be enough
for the raid to initialize in a degraded state.

** Affects: subiquity (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: array autoinstall boot bot-comment curtin raid
-- 
Ubuntu 22.04 is unable to boot from degraded software raid created by autoinstall
https://bugs.launchpad.net/bugs/2004485
You received this bug notification because you are a member of Ubuntu Foundations Bugs, which is subscribed to subiquity in Ubuntu.



More information about the foundations-bugs mailing list