I noticed my software RAID1 degraded, and wanted to figure out which of the two disks in the array is being rebuilt/re-synced since they both show as being up. I am hoping someone can shed some light on this, if it's even possible to figure out which of any disks in a software RAID1 are degraded and being rebuilt to.
# cat /proc/mdstat
md1 : active raid1 sda2[0] sdb2[1]
955789176 blocks super 1.0 [2/2] [UU]
[==============>......] resync = 72.2% (690357504/955789176) finish=4025.9min speed=1098K/sec
md0 : active raid1 sda1[0] sdb1[1]
20970424 blocks super 1.0 [2/2] [UU]
unused devices: <none>
# mdadm --detail /dev/md1
/dev/md1:
Version : 1.0
Creation Time : Fri Dec 7 04:55:25 2012
Raid Level : raid1
Array Size : 955789176 (911.51 GiB 978.73 GB)
Used Dev Size : 955789176 (911.51 GiB 978.73 GB)
Raid Devices : 2
Total Devices : 2
Persistence : Superblock is persistent
Update Time : Fri Mar 29 23:41:16 2013
State : active, resyncing
Active Devices : 2
Working Devices : 2
Failed Devices : 0
Spare Devices : 0
Resync Status : 72% complete
Name :
UUID :
Events : 222
Number Major Minor RaidDevice State
0 8 2 0 active sync /dev/sda2
1 8 18 1 active sync /dev/sdb2
Thanks in advance!
/proc/mdstat
, but there should be something in the log files. Does/var/log/messages
show a failure insda
orsdb
?