Re: Raid6 recovery

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

 



lør. 21. mar. 2020 kl. 20:24 skrev Phil Turmel <philip@xxxxxxxxxx>:
> {Convention on kernel.org lists is to interleave replies or bottom post,
> and to trim non-relevant quoted material.  Please do so in the future.}

Sorry about that.

> Since you seem comfortable reading source code, you might consider byte
> editing that drive's superblock to restore it to "active device 10".
> That is what I would do.  With that corrected, --assemble --force should
> give you a running array.

I did some more digging in the source code, but it looks like the
superblock is replicated onto all drives and that I probably would
have to edit the superblock of all disks, but I'm not sure.
With newfound confidence (thanks) I decided to try the --create
--asume-clean option instead.
It worked fine and I am now copying the data that is not already backed up.

I'll wait until the data is copied onto other drives before I add the
last two disks to the array and start rebuilding.

> I also noted the drives with Error Recovery Control turned off.  That is
> not an issue while your array has no redundancy, but is catastrophic in
> any normal array.  It is as bad as having a drive that doesn't do ERC at
> all.  Don't do that.  Do read the "Timeout Mismatch" documentation that
> Anthony recommended, if you haven't yet.

I'll read up on this documentation to ensure reliable operation in the
future. Thanks Phil and Anthony.

So to summarize what happened and what I've learned:
I had a RAID6 array with only 16 out of 18 working drives.
I received an email from mdadm saying another drive failed.
I ran a full offline smart test that completed successfuly.

The drive was in F (failed) state. I used --re-add and mdadm overwrote
the superblock turning it into a spare drive instead of putting the
drive back into slot 10.
I should have used --assemble --force.

Am I correct?

Glenn




[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