[sllug-members]: Replacing a failed HD in a software mirrored array

Marc Christensen marc at mecworks.com
Thu Mar 8 16:19:12 MST 2007


Hey, I just saw some warnings in my /var/log/messages about a failed HD 
in my mirrored array on a SUSE Linus 10.0 system.

It's a mirror (thanks goodness I did that!) on which I have LVM set up, 
holding my different volumes.


Has anyone replaced a HD in a sofware mirror before?  Anything I should 
be careful of?  Any gotchas/pointers?  I haven't started looking at any 
docs on how to do it yet...just saw the errors.

Thanks...

Here's the output from a few commands:


============================================
# cat /proc/mdstat

Personalities : [raid1]
md0 : active raid1 hdg1[0] hde1[2](F)
       245095552 blocks [2/1] [U_]




# mdadm --examine /dev/hde1

/dev/hde1:
           Magic : a92b4efc
         Version : 00.90.00
            UUID : d08e68ed:e5ce5385:087dfc08:0e924752
   Creation Time : Fri May  7 23:51:37 2004
      Raid Level : raid1
    Raid Devices : 2
   Total Devices : 2
Preferred Minor : 0

     Update Time : Mon Oct  9 12:30:19 2006
           State : active
  Active Devices : 2
Working Devices : 2
  Failed Devices : 0
   Spare Devices : 0
        Checksum : d6741e1 - correct
          Events : 0.40631058


       Number   Major   Minor   RaidDevice State
this     1      33        1        1      active sync   /dev/hde1

    0     0      34        1        0      active sync   /dev/hdg1
    1     1      33        1        1      active sync   /dev/hde1





# mdadm --examine /dev/hdg1

/dev/hdg1:
           Magic : a92b4efc
         Version : 00.90.00
            UUID : d08e68ed:e5ce5385:087dfc08:0e924752
   Creation Time : Fri May  7 23:51:37 2004
      Raid Level : raid1
    Raid Devices : 2
   Total Devices : 2
Preferred Minor : 0

     Update Time : Thu Mar  8 16:03:19 2007
           State : clean
  Active Devices : 1
Working Devices : 1
  Failed Devices : 2
   Spare Devices : 0
        Checksum : 11acc0ff - correct
          Events : 0.49659030


       Number   Major   Minor   RaidDevice State
this     0      34        1        0      active sync   /dev/hdg1

    0     0      34        1        0      active sync   /dev/hdg1
    1     1       0        0        1      faulty removed





# mdadm --query --detail /dev/md0

/dev/md0:
         Version : 00.90.02
   Creation Time : Fri May  7 23:51:37 2004
      Raid Level : raid1
      Array Size : 245095552 (233.74 GiB 250.98 GB)
     Device Size : 245095552 (233.74 GiB 250.98 GB)
    Raid Devices : 2
   Total Devices : 2
Preferred Minor : 0
     Persistence : Superblock is persistent

     Update Time : Thu Mar  8 16:03:19 2007
           State : clean, degraded
  Active Devices : 1
Working Devices : 1
  Failed Devices : 1
   Spare Devices : 0

            UUID : d08e68ed:e5ce5385:087dfc08:0e924752
          Events : 0.49659030

     Number   Major   Minor   RaidDevice State
        0      34        1        0      active sync   /dev/hdg1
        1       0        0        -      removed

        2      33        1        -      faulty   /dev/hde1


--
Marc Christensen
http://blog.mecworks.com


More information about the sllug-members mailing list