Linux RAID subsystem development
 help / color / mirror / Atom feed
* RAID5 disk failure during rebuild of spare, any chance of recovery when one of the failed devices is suspected to be intact?
@ 2010-08-15 18:52 Tor Arne Vestbø
  2010-08-15 20:06 ` Tor Arne Vestbø
  0 siblings, 1 reply; 11+ messages in thread
From: Tor Arne Vestbø @ 2010-08-15 18:52 UTC (permalink / raw)
  To: linux-raid

Hey,

Hoping for some crisis help here :)

Array consists of /dev/sd[bcdef]1 where b-e were active devices and
sdf1 was a spare.

After installing Ubunuty 10.04 and trying to reassemble the array it
got reassembled without sdb1, so mdadm started reconstructing the
array onto the spare sdf1. While this was going on, sdd failed, and
was pulled out as faulty. Now things look like this:

# mdadm --detail /dev/md0
/dev/md0:
        Version : 00.90
  Creation Time : Sun Mar  2 22:52:53 2008
     Raid Level : raid5
     Array Size : 2197715712 (2095.91 GiB 2250.46 GB)
  Used Dev Size : 732571904 (698.64 GiB 750.15 GB)
   Raid Devices : 4
  Total Devices : 5
Preferred Minor : 0
    Persistence : Superblock is persistent

    Update Time : Sun Aug 15 20:32:59 2010
          State : clean, degraded
 Active Devices : 2
Working Devices : 4
 Failed Devices : 1
  Spare Devices : 2

         Layout : left-symmetric
     Chunk Size : 64K

           UUID : a0186556:4ffb5a2a:822f8875:94ae7d2c
         Events : 0.24708

    Number   Major   Minor   RaidDevice State
       0       0        0        0      removed
       1       8       33        1      active sync   /dev/sdc1
       2       0        0        2      removed
       3       8       65        3      active sync   /dev/sde1

       4       8       17        -      spare   /dev/sdb1
       5       8       81        -      spare   /dev/sdf1
       6       8       49        -      faulty spare   /dev/sdd1


Mounting the array does not work :/

Normally a RAID5 with two lost devices is unrecoverable, as far as
I've understood it, but in this case i suspect that sdb1 is fully
intact, and that it was just for some reason picked up when the array
was first assembled.

If that's the case, is there any way i can "promote" sdb1 from spare
to active without rebuilding it (which would not work since the array
is messed up)? Basically reassembling the array as if sdb1, sdc1 and
sde1 were okey? and then rebuild the sdf1 spare?

Thanks!

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

end of thread, other threads:[~2010-08-16 16:37 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-08-15 18:52 RAID5 disk failure during rebuild of spare, any chance of recovery when one of the failed devices is suspected to be intact? Tor Arne Vestbø
2010-08-15 20:06 ` Tor Arne Vestbø
2010-08-15 22:33   ` Tor Arne Vestbø
2010-08-16  5:29     ` Nicolas Jungers
2010-08-16  5:59       ` Tor Arne Vestbø
     [not found]       ` <AANLkTim9gUa95AR1KZcyBp7qM8_PeO1O7Bh99R2P8ON9@mail.gmail.com>
2010-08-16  6:12         ` Nicolas Jungers
2010-08-16  8:43           ` Tim Small
2010-08-16 16:27             ` Tor Arne Vestbø
2010-08-16 16:37               ` Nicolas Jungers
2010-08-16 12:13           ` Tor Arne Vestbø
2010-08-16  5:49     ` Tor Arne Vestbø

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox