That's good, I guess, but I fell into what seems to be a problem yesterday. I've mentioned before that I have 8 disks in an array. 7 of which belong to it (degraded), and one doesn't. That outsider disk had bad sectors. I wrote zeros to the disk yesterday and both Pending and Offline counts have been reset, but Reallocation count didn't increase. I did run an immediate offline smartd test after zeroing the disk... Does that make sense?! On Wed, Sep 16, 2009 at 12:44 PM, Matthias Urlichs <matthias@xxxxxxxxxx> wrote: > On Wed, 2009-09-16 at 12:31 +0300, Majed B. wrote: >> I have a question which would probably sound stupid: If I have a bad >> blocks output file from dd_rescue, can I reconstruct a bad sector's >> data by reading the same sector from all disks (using dd if=/dev/sdx >> of=./bbfix_#number bs=512 count=1 skip=bb_number-1), then run an >> normal XOR operation, write zeros to the bad block to force sector >> remap, then dd the XOR output to the said sector? > > Well, of course. Assuming that the disk's sector remap works, which was > my problem, and that we're talking about RAID5. > > > -- Majed B. -- 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