Re: Suggestion needed for fixing RAID6 [SOLVED]

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

 




It is not clear to me what kind of error MD got from DM:

Apr 29 09:50:29 Clarus-gl2k10-2 kernel: device-mapper: snapshots: Invalidating snapshot: Error reading/writing.
Apr 29 09:50:29 Clarus-gl2k10-2 kernel: ata8: EH complete
Apr 29 09:50:29 Clarus-gl2k10-2 kernel: raid5: Disk failure on dm-1, disabling device.

I don't understand from what place the md_error() is called...
but also in this case it doesn't look like a rewrite error...

I think without DM COW it should probably work in his case.

First sorry for delay.
Without DM, the original behavior-fix patch worked very well.

Neil is generally right about the drive should reallocate the bad sectors on rewrite, but this is the ideal scenario wich is far from the real world unfortunately.... I needed to repeat 4 times the "repair" sync methode on the better HDD (wich have only 123 bads) to get readable again. The another hdd have >2500 bads wich looks like have no chance to fix this way.


Your new patch skips the rewriting and keeps the unreadable sectors, right? So that the drive isn't dropped on rewrite...

The following patch should address this issue for you.
It is*not*  a general-purpose fix, but a specific fix
[CUT]

Neil, i think this patch should be in the sysfs or in the proc to be inactive by default, and of course will be good for recover bad cases like mine. There is a lot of hdd problems wich can make really uncorrectable sectors wich can't be good again even on rewrite....

Thanks a lot for all who helped me to solve this....

And MRK, please don't forget to write in my name. :-)

Cheers,
Janos
--
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