Re: reconstructing raid5 with bad sectors

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

 



On Mon, Aug 04, 2003 at 10:08:15AM -0700, dean gaudet wrote:
> is there an offline tool which can reconstruct such an array?  or even an
> offline tool which already has the parity calculation code and such which
> i could extend to support such reconstruction?
> 
> i considered copying the two bad disks with "dd conv=noerror,sync", which
> would stop the kernel from marking the drives as bad, but that seems a bit
> less than ideal because i really would like to reconstruct the bad stripes
> using the 3 valid copies and not include an all-zeroes copy created by dd.

dd_rescue sounds like your friend - it'll let you make raw backups of
the partitions, but instead of quitting on errors, it'll keep going
until it passes the bad areas.  You'll probably need a few disks to use
as dd_rescue targets, but once you have images of the needed partitions,
rebuild should work fine (assuming of course, that you're correct in saying
the errors never overlap).

-- 
Ross Vandegrift
ross@willow.seitz.com

A Pope has a Water Cannon.                               It is a Water Cannon.
He fires Holy-Water from it.                        It is a Holy-Water Cannon.
He Blesses it.                                 It is a Holy Holy-Water Cannon.
He Blesses the Hell out of it.          It is a Wholly Holy Holy-Water Cannon.
He has it pierced.                It is a Holey Wholly Holy Holy-Water Cannon.
He makes it official.       It is a Canon Holey Wholly Holy Holy-Water Cannon.
Batman and Robin arrive.                                       He shoots them.
-
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to majordomo@vger.kernel.org
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