خرید بک لینک

Hi All,

I have a RAID 5 array with 3 drives. It seems that somehow, it got stuffed up last night and when trying to recover from it, I was faced with a situation with 2 drives with the same event number and one out of sync, as below:

Code:

mdadm --examine /dev/sdb1 | grep Events
         Events : 11743
mdadm --examine /dev/sdc1 | grep Events
         Events : 11719
mdadm --examine /dev/sdd1 | grep Events 
         Events : 11743
Normally, I'd just initialise the array with just two drives and add the other later on after setting the superblock to zero (on sdc1), forcing the array to resync.

When I tried that this time, I ended up with a situation where the array assumes one of the drives is a spare and one active. So, I get this:

Code:

cat /proc/mdstat
Personalities : [linear] [multipath] [raid0] [raid1] [raid6] [raid5] [raid4] [raid10] 
md1 : inactive sdb1[3](S) sdd1[5](S)
      3906764972 blocks super 1.2
       
unused devices: <none>

mdadm --examine /dev/sdb1 | grep Role
   Device Role : Active device 2

mdadm --examine /dev/sdd1 | grep Role
   Device Role : spare
Does anyone have any idea how I can recover from this? I've been trying to work this out for a while now, and most pages on the inteet seem to suggest recreating the array with mdadm --create, but also suggest that I need to actually know the device order (which may have changed because they were USB drives).

Here's an output of mdadm --examine for all the above drives. /dev/sdc is empty after the superblock deletion.

Code:

mdadm --examine /dev/sd[b-d]1
/dev/sdb1:
          Magic : a92b4efc
        Version : 1.2
    Feature Map : 0x0
     Array UUID : 5d1b6295:af1931b4:06318bbe:a85c0274
           Name : dyson:1
  Creation Time : Thu Nov 21 22:03:52 2013
     Raid Level : raid5
   Raid Devices : 3


 Avail Dev Size : 3906764972 (1862.89 GiB 2000.26 GB)
     Array Size : 3906763776 (3725.78 GiB 4000.53 GB)
  Used Dev Size : 3906763776 (1862.89 GiB 2000.26 GB)
    Data Offset : 262144 sectors
   Super Offset : 8 sectors
          State : clean
    Device UUID : 2bbcf201:772984a6:9ef6c8f1:ad9b9a22


    Update Time : Wed Mar  2 18:50:02 2016
       Checksum : ccb1f01e - correct
         Events : 11743


         Layout : left-symmetric
     Chunk Size : 512K


   Device Role : Active device 2
   Array State : ..A ('A' == active, '.' == missing)
/dev/sdc1:
   MBR Magic : aa55
Partition[0] :   1836016416 sectors at   1936269394 (type 4f)
Partition[1] :    544437093 sectors at   1917848077 (type 73)
Partition[2] :    544175136 sectors at   1818575915 (type 2b)
Partition[3] :        54974 sectors at   2844524554 (type 61)
/dev/sdd1:
          Magic : a92b4efc
        Version : 1.2
    Feature Map : 0x0
     Array UUID : 5d1b6295:af1931b4:06318bbe:a85c0274
           Name : dyson:1
  Creation Time : Thu Nov 21 22:03:52 2013
     Raid Level : raid5
   Raid Devices : 3


 Avail Dev Size : 3906764972 (1862.89 GiB 2000.26 GB)
     Array Size : 3906763776 (3725.78 GiB 4000.53 GB)
  Used Dev Size : 3906763776 (1862.89 GiB 2000.26 GB)
    Data Offset : 262144 sectors
   Super Offset : 8 sectors
          State : active
    Device UUID : 92b7302a:79499443:07266a53:17d09bfc


    Update Time : Wed Mar  2 18:50:02 2016
       Checksum : cda26f5c - correct
         Events : 11743


         Layout : left-symmetric
     Chunk Size : 512K


   Device Role : spare
   Array State : ..A ('A' == active, '.' == missing)
Any help is much appreciated

Cheers,
Abhinay

- - , .

برچسب: نویسنده: استخدام کار تاريخ: چهارشنبه 12 اسفند 1394 ساعت: 19:08

صفحه بندی