Ubuntu 22.04 is unable to boot from degraded software raid
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
subiquity |
Triaged
|
Medium
|
Unassigned |
Bug Description
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-
chmod 744 /etc/initramfs-
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.
description: | updated |
description: | updated |
description: | updated |
Changed in subiquity (Ubuntu): | |
status: | New → Triaged |
importance: | Undecided → Medium |
affects: | subiquity (Ubuntu) → subiquity |
Thank you for taking the time to report this bug and helping to make Ubuntu better. It seems that your bug report is not filed about a specific source package though, rather it is just filed against Ubuntu in general. It is important that bug reports be filed about source packages so that people interested in the package can find the bugs about it. You can find some hints about determining what package your bug might be about at https:/ /wiki.ubuntu. com/Bugs/ FindRightPackag e. You might also ask for help in the #ubuntu-bugs irc channel on Libera.chat.
To change the source package that this bug is filed about visit https:/ /bugs.launchpad .net/ubuntu/ +bug/2004485/ +editstatus and add the package name in the text box next to the word Package.
[This is an automated message. I apologize if it reached you inappropriately; please just reply to this message indicating so.]