linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Re: degraded raid 6 (1 bad drive) showing up inactive, only spares
@ 2012-06-17 15:52 Martin Ziler
  2012-06-20 21:56 ` NeilBrown
  0 siblings, 1 reply; 11+ messages in thread
From: Martin Ziler @ 2012-06-17 15:52 UTC (permalink / raw)
  To: NeilBrown; +Cc: linux RAID

Hello everybody,

long time no seen. As I was unable to find a permutation that would result in an fsck-output that looks ok I generated the 360.000 permutations using Neil's shell script. I then composed a little script that would try a permutation, do the fsck, stop the raid an go on with the new possibility and inserted the fsck-output into a text-file. The whole 360.000 permutations just recently finished - after some 6 days of building and fscking. I have not yet analyzed the output. I did however search for the term "clean" as a positive result would possibly contain that term.

I got 711 different drive-combinations that will result in this: /dev/md0: clean, 204968/849158144 files, 3394436623/3396621312 blocks.

If there really is only one working drive order, I guess I am pretty much doomed. I do hope I'll be able to rule out a large portion of those results before going into some more detail. I did get it correct, though, that there is only one possible order resulting in a working array? I gotta figure out how to analyze the output file now. It's 125 MB. I guess I'll probably split it and load it into my spreadsheet. In one go I'd stumble across the 1.000.000 row-limit.

regards,

Martin

^ permalink raw reply	[flat|nested] 11+ messages in thread
* degraded raid 6 (1 bad drive) showing up inactive, only spares
@ 2012-06-07 11:55 Martin Ziler
  2012-06-07 12:29 ` NeilBrown
  0 siblings, 1 reply; 11+ messages in thread
From: Martin Ziler @ 2012-06-07 11:55 UTC (permalink / raw)
  To: linux-raid

Hello everybody,

I am running a 9-disk raid6 without hot spares. I already had one drive go bad, which I could replace and continue using the array without any degraded raid messages. Recently I had another drive going bad by the smart-info. As it wasn't quite dead I left the array as was without really using it all that much waiting for a replacement drive I ordered. As I booted the machine up in order to replace the drive I was greeted by an inactive array with all devices showing up as spares.

md0 : inactive sdh2[0](S) sdi2[7](S) sde2[6](S) sdd2[5](S) sdf2[1](S) sdg2[2](S) sdc1[9](S) sdb2[3](S)
      15579088439 blocks super 1.2

mdadm --examine confirms that. I already searched the web quite a bit and found this mailing list. Maybe someone in here can give me some input. Normally a degraded raid should still be active. So I am quite surprised that my array with only one drive missing goes inactive. I appended the info mdadm --examine puts out for all the drives. However the first two should probably suffice as only /dev/sdk differs from the rest. The faulty drive - sdk - is still recognized as a raid6 member, wheres all the others show up as spares. With lots of bad sectors sdk isn't accessible anymore. 


/dev/sdk2:
          Magic : a92b4efc
        Version : 1.2
    Feature Map : 0x0
     Array UUID : 25be3ab5:ef5f1166:d64b0e0e:4df143ed
           Name : server:0  (local to host server)
  Creation Time : Mon Jul 25 23:40:50 2011
     Raid Level : raid6
   Raid Devices : 9

 Avail Dev Size : 3881859248 (1851.01 GiB 1987.51 GB)
     Array Size : 27172970496 (12957.08 GiB 13912.56 GB)
  Used Dev Size : 3881852928 (1851.01 GiB 1987.51 GB)
    Data Offset : 2048 sectors
   Super Offset : 8 sectors
          State : clean
    Device UUID : 882eb11a:33b499a7:dd5856b7:165f916c

    Update Time : Fri Jun  1 20:26:45 2012
       Checksum : b8c58093 - correct
         Events : 623119

         Layout : left-symmetric
     Chunk Size : 4096K

   Device Role : Active device 8
   Array State : AAAAAAAAA ('A' == active, '.' == missing)


/dev/sdh2:
          Magic : a92b4efc
        Version : 1.2
    Feature Map : 0x0
     Array UUID : 25be3ab5:ef5f1166:d64b0e0e:4df143ed
           Name : server:0  (local to host server)
  Creation Time : Mon Jul 25 23:40:50 2011
     Raid Level : -unknown-
   Raid Devices : 0

 Avail Dev Size : 3881859248 (1851.01 GiB 1987.51 GB)
    Data Offset : 2048 sectors
   Super Offset : 8 sectors
          State : active
    Device UUID : 44008309:1dfb1408:cabfbd0a:64de3739

    Update Time : Thu Jun  7 12:27:52 2012
       Checksum : 27f93899 - correct
         Events : 2

   Device Role : spare
   Array State :  ('A' == active, '.' == missing)

---------------------------------------------------------------------------------------------------------------

/dev/sdi2:
          Magic : a92b4efc
        Version : 1.2
    Feature Map : 0x0
     Array UUID : 25be3ab5:ef5f1166:d64b0e0e:4df143ed
           Name : server:0  (local to host server)
  Creation Time : Mon Jul 25 23:40:50 2011
     Raid Level : -unknown-
   Raid Devices : 0

 Avail Dev Size : 3881859248 (1851.01 GiB 1987.51 GB)
    Data Offset : 2048 sectors
   Super Offset : 8 sectors
          State : active
    Device UUID : 135f196d:184f11a1:09207617:4022e1a5

    Update Time : Thu Jun  7 12:27:52 2012
       Checksum : 9ded8f86 - correct
         Events : 2


   Device Role : spare
   Array State :  ('A' == active, '.' == missing)

/dev/sde2:
          Magic : a92b4efc
        Version : 1.2
    Feature Map : 0x0
     Array UUID : 25be3ab5:ef5f1166:d64b0e0e:4df143ed
           Name : server:0  (local to host server)
  Creation Time : Mon Jul 25 23:40:50 2011
     Raid Level : -unknown-
   Raid Devices : 0

 Avail Dev Size : 3881859248 (1851.01 GiB 1987.51 GB)
    Data Offset : 2048 sectors
   Super Offset : 8 sectors
          State : active
    Device UUID : 3517bcc4:2acb381f:f5006058:5bd5c831

    Update Time : Thu Jun  7 12:27:52 2012
       Checksum : 408957c0 - correct
         Events : 2


   Device Role : spare
   Array State :  ('A' == active, '.' == missing)

/dev/sdd2:
          Magic : a92b4efc
        Version : 1.2
    Feature Map : 0x0
     Array UUID : 25be3ab5:ef5f1166:d64b0e0e:4df143ed
           Name : server:0  (local to host server)
  Creation Time : Mon Jul 25 23:40:50 2011
     Raid Level : -unknown-
   Raid Devices : 0

 Avail Dev Size : 3881859248 (1851.01 GiB 1987.51 GB)
    Data Offset : 2048 sectors
   Super Offset : 8 sectors
          State : active
    Device UUID : 9e8b2d2c:844a009a:fd6914a2:390f10ac

    Update Time : Thu Jun  7 12:27:52 2012
       Checksum : e6bdee68 - correct
         Events : 2


   Device Role : spare
   Array State :  ('A' == active, '.' == missing)

/dev/sdf2:
          Magic : a92b4efc
        Version : 1.2
    Feature Map : 0x0
     Array UUID : 25be3ab5:ef5f1166:d64b0e0e:4df143ed
           Name : server:0  (local to host server)
  Creation Time : Mon Jul 25 23:40:50 2011
     Raid Level : -unknown-
   Raid Devices : 0

 Avail Dev Size : 3881859248 (1851.01 GiB 1987.51 GB)
    Data Offset : 2048 sectors
   Super Offset : 8 sectors
          State : active
    Device UUID : 87ad38ac:4ccbd831:ee5502cd:28dafaad

    Update Time : Thu Jun  7 12:27:52 2012
       Checksum : 2b7a47f6 - correct
         Events : 2


   Device Role : spare
   Array State :  ('A' == active, '.' == missing)

/dev/sdg2:
          Magic : a92b4efc
        Version : 1.2
    Feature Map : 0x0
     Array UUID : 25be3ab5:ef5f1166:d64b0e0e:4df143ed
           Name : server:0  (local to host server)
  Creation Time : Mon Jul 25 23:40:50 2011
     Raid Level : -unknown-
   Raid Devices : 0

 Avail Dev Size : 3881859248 (1851.01 GiB 1987.51 GB)
    Data Offset : 2048 sectors
   Super Offset : 8 sectors
          State : active
    Device UUID : eef2f06f:28f881a5:da857a00:fb90e250

    Update Time : Thu Jun  7 12:27:52 2012
       Checksum : 393ba0f8 - correct
         Events : 2


   Device Role : spare
   Array State :  ('A' == active, '.' == missing)

/dev/sdc1:
          Magic : a92b4efc
        Version : 1.2
    Feature Map : 0x0
     Array UUID : 25be3ab5:ef5f1166:d64b0e0e:4df143ed
           Name : server:0  (local to host server)
  Creation Time : Mon Jul 25 23:40:50 2011
     Raid Level : -unknown-
   Raid Devices : 0

 Avail Dev Size : 3985162143 (1900.27 GiB 2040.40 GB)
  Used Dev Size : 3881859248 (1851.01 GiB 1987.51 GB)
    Data Offset : 2048 sectors
   Super Offset : 8 sectors
          State : active
    Device UUID : 4cf86fb0:6f334e2c:19e89c99:0532f557

    Update Time : Thu Jun  7 12:27:52 2012
       Checksum : a6e42bdc - correct
         Events : 2


   Device Role : spare
   Array State :  ('A' == active, '.' == missing)

/dev/sdb2:
          Magic : a92b4efc
        Version : 1.2
    Feature Map : 0x0
     Array UUID : 25be3ab5:ef5f1166:d64b0e0e:4df143ed
           Name : server:0  (local to host server)
  Creation Time : Mon Jul 25 23:40:50 2011
     Raid Level : -unknown-
   Raid Devices : 0

 Avail Dev Size : 3881859248 (1851.01 GiB 1987.51 GB)
    Data Offset : 2048 sectors
   Super Offset : 8 sectors
          State : active
    Device UUID : 4852882a:b8a3989f:aad747c5:25f20d47

    Update Time : Thu Jun  7 12:27:52 2012
       Checksum : a8e25edd - correct
         Events : 2


   Device Role : spare
   Array State :  ('A' == active, '.' == missing)

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2012-06-20 21:56 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-06-17 15:52 degraded raid 6 (1 bad drive) showing up inactive, only spares Martin Ziler
2012-06-20 21:56 ` NeilBrown
  -- strict thread matches above, loose matches on Subject: below --
2012-06-07 11:55 Martin Ziler
2012-06-07 12:29 ` NeilBrown
     [not found]   ` <CAGHsWsm_Xvf59VCuHyJvoMW6peiFHK=YQKGzr3cq=RDk7jyqKg@mail.gmail.com>
2012-06-07 21:14     ` NeilBrown
     [not found]       ` <C9680CD3-8DA8-4FE3-8337-481676213C39@googlemail.com>
2012-06-09 22:09         ` NeilBrown
2012-06-07 21:16   ` Oliver Schinagl
2012-06-07 22:34     ` NeilBrown
     [not found]   ` <alpine.DEB.2.00.1206080743310.25054@uplift.swm.pp.se>
2012-06-15  7:37     ` NeilBrown
2012-06-15 11:35       ` Oliver Schinagl
2012-06-15 12:37         ` NeilBrown

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).