Raid 5 State : clean, FAILED
I have an ssh session open to a remote debian squeeze server that has 3 drives configured as 2 separate software raids. I believe it is very possible that 2 of the drives have failed.
Code:
# mdadm --detail /dev/md0
/dev/md0:
Version : 1.2
Creation Time : Mon Feb 21 17:01:43 2011
Raid Level : raid1
Array Size : 975860 (953.15 MiB 999.28 MB)
Used Dev Size : 975860 (953.15 MiB 999.28 MB)
Raid Devices : 2
Total Devices : 3
Persistence : Superblock is persistent
Update Time : Tue Jan 17 12:33:52 2012
State : clean, degraded
Active Devices : 1
Working Devices : 2
Failed Devices : 1
Spare Devices : 1
Number Major Minor RaidDevice State
0 0 0 0 removed
1 8 17 1 active sync /dev/sdb1
0 8 1 - faulty spare /dev/sda1
2 8 33 - spare /dev/sdc1
and
Code:
# mdadm --detail /dev/md1
/dev/md1:
Version : 1.2
Creation Time : Mon Feb 21 17:01:49 2011
Raid Level : raid5
Array Size : 1951564800 (1861.16 GiB 1998.40 GB)
Used Dev Size : 975782400 (930.58 GiB 999.20 GB)
Raid Devices : 3
Total Devices : 3
Persistence : Superblock is persistent
Update Time : Tue Jan 17 13:32:40 2012
State : clean, FAILED
Active Devices : 1
Working Devices : 1
Failed Devices : 2
Spare Devices : 0
Layout : left-symmetric
Chunk Size : 512K
Name : westlund2:1 (local to host westlund2)
UUID : 705a71ba:dc848b5b:f64ee011:287606b1
Events : 342
Number Major Minor RaidDevice State
0 0 0 0 removed
1 0 0 1 removed
2 8 34 2 active sync /dev/sdc2
0 8 2 - faulty spare /dev/sda2
1 8 18 - faulty spare /dev/sdb2
LVM is configured on top of the raid setups. The server is running, but crippled. I'm pretty sure that the root filesystem is mounted on a logical volume on /dev/md0 but lvdisplay gives me "Input/output error" when trying to verify. Since /dev/md0 is degraded it makes sense that the system is still able to run, but that perhaps it has switched to read-only.
Code:
# mount
/dev/mapper/raid-root on / type ext4 (rw,errors=remount-ro)
tmpfs on /lib/init/rw type tmpfs (rw,nosuid,mode=0755)
proc on /proc type proc (rw,noexec,nosuid,nodev)
sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)
udev on /dev type tmpfs (rw,mode=0755)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=620)
/dev/md0 on /boot type ext3 (rw)
xenfs on /proc/xen type xenfs (rw)
/dev/mapper/raid-mail--disk on /mnt/mail type ext3 (rw)
mount: warning: /etc/mtab is not writable (e.g. read-only filesystem).
It's possible that information reported by mount(8) is not
up to date. For actual information about system mount points
check the /proc/mounts file.
I do not have smartmontools installed to test the drives and cannot install them. I believe if I can get /dev/md0 out of degraded mode I could remount it read/write and install them?
Looking for advise on how to carefully proceed. This is getting a bit more low level than I am used to working.
Thanks,
Steve