Aiwa
April 25th, 2009, 05:50 PM
Hi :) I am new to the forum. I hope you guys can help me out with a boot problem after upgrading to Ubuntu 9.04.
My fileserver uses a RAID 1 for the boot partition and an encrypted RAID 5 for the root partition. Everything was fine until I upgraded to Ubuntu 9.04. Now the system drops to BusyBox after loading the USB drivers and (correctly) detecting my hard disks.
The message I get is this:
Check cryptopts=source= bootarg cat /proc/cmdline
or missing modules, devices: cat /proc/modules ls /dev
-r ALERT! /dev/md1 does not exist. Dropping to a shell!
In other words, dmcrypt failed to mount my encrypted RAID 5. Turns out /dev/md0 and /dev/md1 (the RAID 1 and RAID 5 respectively) do exist. However, mdadm did not assemble them.
(initramfs) cat /proc/mdstat
cat: can't open '/proc/mdstat': No such file or directory
(initramfs) mdadm --examine /dev/md0
mdadm: cannot open /dev/md0: No such file or directory
(initramfs) mdadm --examine /dev/md1
mdadm: cannot open /dev/md1: No such file or directory
(initramfs) mdadm --misc -Q /dev/sda1
/dev/sda1: is not an md array
/dev/sda1: device 0 in 4 device undetected raid1 /dev/.tmp.md0. Use mdadm --examine for more detail.
(initramfs) mdadm --misc -Q /dev/sda2
/dev/sda2: is not an md array
/dev/sda2: device 0 in 4 device undetected raid5 /dev/.tmp.md0. Use mdadm --examine for more detail.
mdadm --examine correctly lists all the devices and tells me the RAIDs are healthy. However, I fail to assemble them manually.
(initramfs) mdadm --assemble /dev/md1 /dev/sda2 /dev/sdb2 /dev/sdc2 /dev/sdd2
mdadm: error opening /dev/md1: No such device or address
(initramfs) ls -l /dev/md*
brw-rw---- 1 0 6 9, 1 /dev/md1
What irritates me is that mdadm tells me the RAIDs are healthy when I examine them, but fails to find them on scan.
(initramfs) mdadm --detail --scan
(initramfs)
/dev/mdadm.conf does not exist on my initfs so I created one manually just to be sure that is not the issue.
(initramfs) echo 'DEVICE /dev/sd*[0-9]' > /etc/mdadm.conf
(initramfs) mdadm --detail --scan
(initramfs)
Nothing. I am out of ideas here. I tried everything I found in wikis and other threads (modprobe md, use --auto=md flag with mdadm etc).
Is there something I missed or did I stumble upon a bug? Your help is greatly appreciated.
My fileserver uses a RAID 1 for the boot partition and an encrypted RAID 5 for the root partition. Everything was fine until I upgraded to Ubuntu 9.04. Now the system drops to BusyBox after loading the USB drivers and (correctly) detecting my hard disks.
The message I get is this:
Check cryptopts=source= bootarg cat /proc/cmdline
or missing modules, devices: cat /proc/modules ls /dev
-r ALERT! /dev/md1 does not exist. Dropping to a shell!
In other words, dmcrypt failed to mount my encrypted RAID 5. Turns out /dev/md0 and /dev/md1 (the RAID 1 and RAID 5 respectively) do exist. However, mdadm did not assemble them.
(initramfs) cat /proc/mdstat
cat: can't open '/proc/mdstat': No such file or directory
(initramfs) mdadm --examine /dev/md0
mdadm: cannot open /dev/md0: No such file or directory
(initramfs) mdadm --examine /dev/md1
mdadm: cannot open /dev/md1: No such file or directory
(initramfs) mdadm --misc -Q /dev/sda1
/dev/sda1: is not an md array
/dev/sda1: device 0 in 4 device undetected raid1 /dev/.tmp.md0. Use mdadm --examine for more detail.
(initramfs) mdadm --misc -Q /dev/sda2
/dev/sda2: is not an md array
/dev/sda2: device 0 in 4 device undetected raid5 /dev/.tmp.md0. Use mdadm --examine for more detail.
mdadm --examine correctly lists all the devices and tells me the RAIDs are healthy. However, I fail to assemble them manually.
(initramfs) mdadm --assemble /dev/md1 /dev/sda2 /dev/sdb2 /dev/sdc2 /dev/sdd2
mdadm: error opening /dev/md1: No such device or address
(initramfs) ls -l /dev/md*
brw-rw---- 1 0 6 9, 1 /dev/md1
What irritates me is that mdadm tells me the RAIDs are healthy when I examine them, but fails to find them on scan.
(initramfs) mdadm --detail --scan
(initramfs)
/dev/mdadm.conf does not exist on my initfs so I created one manually just to be sure that is not the issue.
(initramfs) echo 'DEVICE /dev/sd*[0-9]' > /etc/mdadm.conf
(initramfs) mdadm --detail --scan
(initramfs)
Nothing. I am out of ideas here. I tried everything I found in wikis and other threads (modprobe md, use --auto=md flag with mdadm etc).
Is there something I missed or did I stumble upon a bug? Your help is greatly appreciated.