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 ran Code:
aptitude update && dpkg --configure -a
to fix the initramfs issue.
I then did
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
which fixes the raid1 arrays.
Code:
root@goliath:~# cat /proc/mdstat
Personalities : [linear] [multipath] [raid0] [raid1] [raid6] [raid5] [raid4] [raid10]
md1 : active raid1 sda3[0] sdb3[1]
485452096 blocks [2/2] [UU]
md0 : active raid1 sda1[0] sdb1[1]
979840 blocks [2/2] [UU]
unused devices: <none> alll better.