Just to keep people up to date. I've been bitten by this bug.
I have a Fujitsu RX220 running with SATA disks and Software Raid 1. The second drive in the machine has failed (sdb). I have replaced it however the machine will not boot up correctly and allow me to rebuild the raid the usual way.
I get the following errors on the initramfs shell screen:
I have tried running the mdadm command to assemble the array from the shell:Code:Gave up waiting for root device ALERT! Device /dev/md1 was not found! Dropping to shell!
Gives the error:Code:mdadm --assemble /dev/md1 /dev/sda1 /dev/sdb1
HoweverCode:mdadm: cannot open device /dev/sda1: Device or resource busy mdadm: /dev/sda1 has no superblock - assembly abortedworks as expected.Code:mdadm --misc --scan /dev/sda
I have fixed this problem now.
I booted the machine using an Ubuntu Server install CD with the 'rescue a broke system option'. This automatically detected and mounted the raid arrays as best it could (running off /dev/sda only).
I then used the 'run root shell in /dev/md1' option to get me into the installed system.
I then ranto fix the initramfs issue.Code:aptitude update && dpkg --configure -a
I then did
which fixes the raid1 arrays.Code:sfdisk -d /dev/sda | sfdisk /dev/sdb mdadm --manage /dev/md0 --fail /dev/sdb1 mdadm --manage /dev/md0 --remove /dev/sdb1 mdadm --manage /dev/md0 --add /dev/sdb1 mdadm --manage /dev/md1 --fail /dev/sdb3 mdadm --manage /dev/md1 --remove /dev/sdb3 mdadm --manage /dev/md1 --add /dev/sdb3
alll better.Code:root@goliath:~# cat /proc/mdstat Personalities : [linear] [multipath] [raid0] [raid1] [raid6] [raid5] [raid4] [raid10] md1 : active raid1 sda3 sdb3 485452096 blocks [2/2] [UU] md0 : active raid1 sda1 sdb1 979840 blocks [2/2] [UU] unused devices: <none>
dhicks (21st August 2009)
There are currently 1 users browsing this thread. (0 members and 1 guests)