Hi,
I have set up a software raid 1 device (md0) on my Ubuntu Server using two identical disks (sda1 and sdb1). The other day I experienced a power outage and after reboot I examined the system for any errors caused by the loss of power.
The raid array mounted nicely. However, I still think something is off, and here is why:
My mdstat gives the following:
Code:
root@ghost:~# cat /proc/mdstat
Personalities : [linear] [multipath] [raid0] [raid1] [raid6] [raid5] [raid4] [raid10]
md0 : active raid1 sda1[0]
312568576 blocks [2/1] [U_]
unused devices: <none>
So my raid array appears to be degraded. Running a "mdadm -E /dev/sda1" gives:
Code:
root@ghost:~# mdadm -E /dev/sda1
/dev/sda1:
Magic : a92b4efc
Version : 00.90.00
UUID : 63a5c86e:cabfad07:855774c4:31e91d18 (local to host ghost)
Creation Time : Fri Aug 10 00:46:13 2007
Raid Level : raid1
Used Dev Size : 312568576 (298.09 GiB 320.07 GB)
Array Size : 312568576 (298.09 GiB 320.07 GB)
Raid Devices : 2
Total Devices : 1
Preferred Minor : 0
Update Time : Tue Jan 11 19:22:28 2000
State : clean
Active Devices : 1
Working Devices : 1
Failed Devices : 1
Spare Devices : 0
Checksum : 20d13784 - correct
Events : 0.1291208
Number Major Minor RaidDevice State
this 0 8 1 0 active sync /dev/sda1
0 0 8 1 0 active sync /dev/sda1
1 1 0 0 1 faulty removed
Apparently my sdb1 disk is down. But out of curiosity I ran the same command on sdb1, which returned the following:
Code:
root@ghost:~# mdadm -E /dev/sdb1
/dev/sdb1:
Magic : a92b4efc
Version : 00.90.00
UUID : 63a5c86e:cabfad07:855774c4:31e91d18 (local to host ghost)
Creation Time : Fri Aug 10 00:46:13 2007
Raid Level : raid1
Used Dev Size : 312568576 (298.09 GiB 320.07 GB)
Array Size : 312568576 (298.09 GiB 320.07 GB)
Raid Devices : 2
Total Devices : 2
Preferred Minor : 0
Update Time : Thu Jan 24 20:16:03 2008
State : clean
Active Devices : 2
Working Devices : 2
Failed Devices : 0
Spare Devices : 0
Checksum : 2fc73f71 - correct
Events : 0.34
Number Major Minor RaidDevice State
this 1 8 17 1 active sync /dev/sdb1
0 0 8 1 0 active sync /dev/sda1
1 1 8 17 1 active sync /dev/sdb1
I may be a newbie regarding software raid in linux and I don't know much about interpreting these outputs, but this seems nevertheless fairly strange to me. Even though the array (md0) is mountable I don't feel safe (data-wise), as the above simply cannot be right.
I hope some of you can see what may be wrong and has some suggestions on how I get a healthy raid array again.
Best regards,
Rasmus Krigslund
Denmark