Re: accidentally deleted part of raid5?

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

 



On 12/03/18 01:51, Marek wrote:
Would it be possible to restore at least part of the raid after such
stupid mistake?


I can't explain why the start of the drives would be identical, but. It *SHOULD* be possible to rebuild the array pretty easily. Two things to do which will help other people advise you.

Get a copy of lsdrv, and run that. That'll tell people what is on the drives.

IFF you know which are the three remaining good drives, assemble them read-only, using --force, then mount them read-only to take a look and run a CHECK ONLY fsck. All being well it should come back with a clean, if degraded, array.

At that point, I'll let others confirm but it should just be a case of assembling the array again, and adding the damaged drive back in. I'd actually get a new drive and add that in, so that when the array is back you can wipe the other drive, and convert the array to raid 6 :-)

The raid superblock (if it's v1.2, hopefully) lies 4K into the partitions that make up the raid, so hopefully any damage to the start of the drives will have missed it.

Cheers,
Wol
--
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[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