mdadm not properly starting RAID 1 device
Hi:
I have a RAID 1+LVM configuration on one of my 2.6 desktop machines.
I recently re-installed and discovered that, for some reason unknown to
me, mdadm is starting one of the RAID devices as "clean, degraded."
I can't for the life of me figure out how to convince mdadm to start
this RAID device properly (since there is no problem with /dev/sdb2).
If I add /dev/sdb2 to /dev/md1, the RAID is reconstructed properly,
however, if I restart the computer mdadm (or whatever) appears to forget
that the RAID device was reconstructed without error.
Please find below a printout of the RAID array. I am hoping that this
will shed some light on why my RAID device fails to start properly.
Any thoughts or suggestions as to why I am having problems with my RAID
array would be greatly appreciated!
Thanks in advance,
Matt
BTW, I should point out that where /dev/sda and /dev/sdb appear, they
are really written as /dev/.static/dev/sda and /dev/.static/dev/sdb on
my machine.
======= Printout of RAID array /dev/md1 appears below =======
marvin:~# mdadm --detail /dev/md1
/dev/md1:
Version : 00.90.01
Creation Time : Thu Sep 1 01:58:33 2005
Raid Level : raid1
Array Size : 156151680 (148.92 GiB 159.90 GB)
Device Size : 156151680 (148.92 GiB 159.90 GB)
Raid Devices : 2
Total Devices : 1
Preferred Minor : 1
Persistence : Superblock is persistent
Update Time : Sun Sep 18 14:10:18 2005
State : clean, degraded
Active Devices : 1
Working Devices : 1
Failed Devices : 0
Spare Devices : 0
UUID : bebbd27a:23b0569f:bb2f3aa3:a847ac87
Events : 0.1027438
Number Major Minor RaidDevice State
0 8 2 0 active sync /dev/sda2
1 0 0 - removed
marvin:~# mdadm --examine /dev/sda2
/dev/sda2:
Magic : a92b4efc
Version : 00.90.00
UUID : bebbd27a:23b0569f:bb2f3aa3:a847ac87
Creation Time : Thu Sep 1 01:58:33 2005
Raid Level : raid1
Raid Devices : 2
Total Devices : 1
Preferred Minor : 1
Update Time : Sun Sep 18 14:09:27 2005
State : clean
Active Devices : 1
Working Devices : 1
Failed Devices : 1
Spare Devices : 0
Checksum : 7ec0af78 - correct
Events : 0.1027364
Number Major Minor RaidDevice State
this 0 8 2 0 active sync /dev/sda2
0 0 8 2 0 active sync /dev/sda2
1 1 0 0 1 faulty removed
marvin:~# mdadm --examine /dev/sdb2
/dev/sdb2:
Magic : a92b4efc
Version : 00.90.00
UUID : bebbd27a:23b0569f:bb2f3aa3:a847ac87
Creation Time : Thu Sep 1 01:58:33 2005
Raid Level : raid1
Raid Devices : 2
Total Devices : 2
Preferred Minor : 1
Update Time : Wed Sep 7 18:23:15 2005
State : clean
Active Devices : 2
Working Devices : 2
Failed Devices : 0
Spare Devices : 0
Checksum : 7ea23153 - correct
Events : 0.495742
Number Major Minor RaidDevice State
this 1 8 18 1 active sync /dev/sdb2
0 0 8 2 0 active sync /dev/sda2
1 1 8 18 1 active sync /dev/sdb2
marvin:~# cat /proc/mdstat
Personalities : [raid0] [raid1] [raid5]
md0 : active raid1 sda1[0] sdb1[1]
136448 blocks [2/2] [UU]
md1 : active raid1 sda2[0]
156151680 blocks [2/1] [U_]
unused devices: <none>
marvin:~# cat /etc/mdadm/mdadm.conf
DEVICE partitions
ARRAY /dev/md0 level=raid1 num-devices=2 \
UUID=bf874399:c4646ff4:0348c990:37462047 \
devices=/dev/sdb1,/dev/sda1
ARRAY /dev/md1 level=raid1 num-devices=2 \
UUID=bebbd27a:23b0569f:bb2f3aa3:a847ac87 \
devices=/dev/sdb2,/dev/sda2
Reply to: