Koozali.org: home of the SME Server

two Raids from One

Offline axessit

  • ****
  • 211
  • +0/-0
two Raids from One
« on: December 12, 2011, 09:01:01 PM »
Had a power cut the other day, server on UPS and did a shutdown after 20 minutes as planned. Once power was back on and stable, just booted server and away we went.

Checking the admin emails I found two reporting bad RAID.

A DegradedArray event has been detected on md device /dev/md5.
and
A DegradedArray event has been detected on md device /dev/md2.

I have not had any emails since, but on close inspection, I have two degraded array's, where i should have one clean array. Why have I got an MD5 ?

Quote
cat /proc/mdstat
Personalities : [raid1]
md2 : active raid1 sdb2[1]
      976655488 blocks [2/1] [_U]

md5 : active raid1 sda2[0]
      976655488 blocks [2/1] [U_]

md1 : active raid1 sdb1[0] sda1[1]
      104320 blocks [2/2] [UU]

unused devices: <none>

So MD5 is actually the other half of MD2. Looking at the full report, I notice MD2 and MD5 have the same UUID.

Quote
mdadm -D /dev/md*
mdadm: md device /dev/md0 does not appear to be active.
/dev/md1:
        Version : 00.90.01
  Creation Time : Mon Nov  3 03:59:32 2008
     Raid Level : raid1
     Array Size : 104320 (101.89 MiB 106.82 MB)
    Device Size : 104320 (101.89 MiB 106.82 MB)
   Raid Devices : 2
  Total Devices : 2
Preferred Minor : 1
    Persistence : Superblock is persistent

    Update Time : Thu Dec  8 09:08:58 2011
          State : clean
 Active Devices : 2
Working Devices : 2
 Failed Devices : 0
  Spare Devices : 0

           UUID : 0f206d50:c2a4ac45:3c9a9b30:aebc4e70
         Events : 0.2845

    Number   Major   Minor   RaidDevice State
       0       8       17        0      active sync   /dev/sdb1
       1       8        1        1      active sync   /dev/sda1
mdadm: md device /dev/md10 does not appear to be active.
mdadm: md device /dev/md11 does not appear to be active.
mdadm: md device /dev/md12 does not appear to be active.
mdadm: md device /dev/md13 does not appear to be active.
mdadm: md device /dev/md14 does not appear to be active.
mdadm: md device /dev/md15 does not appear to be active.
mdadm: md device /dev/md16 does not appear to be active.
mdadm: md device /dev/md17 does not appear to be active.
mdadm: md device /dev/md18 does not appear to be active.
mdadm: md device /dev/md19 does not appear to be active.
/dev/md2:
        Version : 00.90.01
  Creation Time : Sun Mar 27 11:33:20 2011
     Raid Level : raid1
     Array Size : 976655488 (931.41 GiB 1000.10 GB)
    Device Size : 976655488 (931.41 GiB 1000.10 GB)
   Raid Devices : 2
  Total Devices : 1
Preferred Minor : 2
    Persistence : Superblock is persistent

    Update Time : Thu Aug 11 07:44:24 2011
          State : clean, degraded
 Active Devices : 1
Working Devices : 1
 Failed Devices : 0
  Spare Devices : 0

           UUID : 268a28e0:25e476f2:f3451294:15b9d241
         Events : 0.4330783

    Number   Major   Minor   RaidDevice State
       0       0        0        -      removed
       1       8       18        1      active sync   /dev/sdb2
mdadm: md device /dev/md20 does not appear to be active.
mdadm: md device /dev/md21 does not appear to be active.
mdadm: md device /dev/md22 does not appear to be active.
mdadm: md device /dev/md23 does not appear to be active.
mdadm: md device /dev/md24 does not appear to be active.
mdadm: md device /dev/md25 does not appear to be active.
mdadm: md device /dev/md26 does not appear to be active.
mdadm: md device /dev/md27 does not appear to be active.
mdadm: md device /dev/md28 does not appear to be active.
mdadm: md device /dev/md29 does not appear to be active.
mdadm: md device /dev/md3 does not appear to be active.
mdadm: md device /dev/md30 does not appear to be active.
mdadm: md device /dev/md31 does not appear to be active.
mdadm: md device /dev/md4 does not appear to be active.
/dev/md5:
        Version : 00.90.01
  Creation Time : Sun Mar 27 11:33:20 2011
     Raid Level : raid1
     Array Size : 976655488 (931.41 GiB 1000.10 GB)
    Device Size : 976655488 (931.41 GiB 1000.10 GB)
   Raid Devices : 2
  Total Devices : 1
Preferred Minor : 5
    Persistence : Superblock is persistent

    Update Time : Tue Dec 13 08:40:17 2011
          State : clean, degraded
 Active Devices : 1
Working Devices : 1
 Failed Devices : 0
  Spare Devices : 0

           UUID : 268a28e0:25e476f2:f3451294:15b9d241
         Events : 0.10547555

    Number   Major   Minor   RaidDevice State
       0       8        2        0      active sync   /dev/sda2
       1       0        0        -      removed
mdadm: md device /dev/md6 does not appear to be active.
mdadm: md device /dev/md7 does not appear to be active.
mdadm: md device /dev/md8 does not appear to be active.
mdadm: md device /dev/md9 does not appear to be active.

So how do I know which one is the correct one (MD2 or MD5) so I can fail and remove the drive then add back into the proper array ?