Re: Revive a dead md raid5 array

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




Op 26-11-18 om 11:38 schreef Wols Lists:
On 22/11/18 10:56, Jogchum Reitsma wrote:
What is the best action here? Take /dev/sdf in the initial assembly, in
stead of /dev/sdd, and re-add /dev/sdd afterwards?
Or is there a way to tell mdadm that is should treat /dev/sdd as an
active drive?
Hmmm...

Sorry for the delay in responding,
Well, I appreciate your response anyway!
  but this is getting out of my depth
:-( But yes, I think putting sdf in there should work. I don't know how
to tell mdadm that sdd should be active.

If you've got all the drives backed up, then fine. Actually, I think the
best bet from here would be to read up on overlays - it's in the wiki -
and overlay sda, sdb, sdf before re-assembling the array. That way,
you're not actually going to write to the array so if it goes
pear-shaped you haven't done any damage, and if it works you can just
tear down the overlay (reboot, say), and then assemble for real.

I did read something about overlays already some time ago. Seemed rather complicated at first sight, but I'll look into it further.

Another method I stumbled upon (https://marc.info/?l=linux-raid&m=144535576302583&w=2) was to issue

   mdadm --create -- assume-clean /dev/md0 <options> <drives>

But then combined with the overlay method.

I'll keep you and the list posted.

Cheers, Jogchum

Cheers,
Wol



[Index of Archives]     [Linux RAID Wiki]     [ATA RAID]     [Linux SCSI Target Infrastructure]     [Linux Block]     [Linux IDE]     [Linux SCSI]     [Linux Hams]     [Device Mapper]     [Device Mapper Cryptographics]     [Kernel]     [Linux Admin]     [Linux Net]     [GFS]     [RPM]     [git]     [Yosemite Forum]


  Powered by Linux