View Single Post
  #5  
Old 12th June 2007, 14:47
Daisy Daisy is offline
Senior Member
 
Join Date: Dec 2006
Posts: 112
Thanks: 0
Thanked 3 Times in 1 Post
Default

for anyone who reads this.... Software RAID on fedora Core 5 using CLI.

ok, so let's break down the cat /proc/mdstat first
Code:
[root@phoenix-nest /]# cat /proc/mdstat
Personalities : [raid1] 
md0 : active raid1 sdb1[0]
      104320 blocks [2/1] [U_]
      
md1 : active raid1 sdb2[0] sda2[1]
      4192896 blocks [2/2] [UU]
      
md2 : active raid1 sdb3[0]
      308271168 blocks [2/1] [U_]
      
unused devices: <none>
ok, so there are two raid arrays here missing a drive/partition. md0 and md2. How can you tell? well, notice md1 where there are two U's? [UU] That means it's working. I have two hard drives. sda and sdb. You'll notice that both drives with both partitions are listed. i.e. active raid1 sdb2[0] sda2[1]

(If the hdd had actually died and needed to be replaced, you would have had to manually mark them as failed following the steps provided in the link above. Thanks Falco! Mine was just missing the drive in the first place.)

The other two, (md0 and md2) only have one drive and partition listed. All I had to do was re-add these using:
Code:
[root@phoenix-nest /]# mdadm --manage /dev/md0 --add /dev/sda1
mdadm: re-added /dev/sda1
[root@phoenix-nest /]# mdadm --manage /dev/md2 --add /dev/sda3
mdadm: re-added /dev/sda3
and I got this:
Code:
[root@phoenix-nest /]# cat /proc/mdstat
Personalities : [raid1] 
md0 : active raid1 sda1[1] sdb1[0]
      104320 blocks [2/2] [UU]
      
md1 : active raid1 sdb2[0] sda2[1]
      4192896 blocks [2/2] [UU]
      
md2 : active raid1 sda3[2] sdb3[0]
      308271168 blocks [2/1] [U_]
      [>....................]  recovery =  0.1% (544896/308271168) finish=122.3min speed=41915K/sec
      
unused devices: <none>
Ta da. I hope this helps someone.

Last edited by Daisy; 12th June 2007 at 14:50.
Reply With Quote