On 30/08/17 20:06, Carlos E. R. wrote:
On 2017-08-30 20:44, Wols Lists wrote:
On 28/08/17 14:36, Greg Freemyer wrote:
That you have media errors. On both disks.
You can try to recover with dd*rescue. Then run "badblocks" to try find the bad sectors, then overwrite them, or better, overwrite the entire disk (both). Finally, restore from backup.
I'd be inclined to just "dd if=/dev/zero of=/dev/sdX" over them. Provided there isn't a genuine fault in the drives, this will wipe them and fix any bad sectors.
Yes.
However, I noticed more than once that using badblocks to discover where those bad sectors are make them disappear. It apparently caused the disk to remap them.
I'm not sure of what happened, but I'm certain that they disappeared from the smartctl output with long test.
Note that magnetism decays. If the drive has trouble reading something in a test, it should transparently rewrite it behind the scenes, and if that is the problem then it's fixed. No remapping or anything. As I've said before, think of DRAM needing refreshing. And now drives are packing so much into such a small space, if the sector next to yours gets rewritten, some of the write can leak and damage your data. If that happens ten or twenty times your data is now unreadable ... (okay, it's a lot more reliable than that, but that's roughly what's going on :-)
I also have the theory of not throwing away my disks the first time they have bad sectors. Allow remapping, then keep them under observation. If there are no more bad sectors (after long test, perhaps full dd writeover), I feel safe. If bad sectors keep appearing, then replace fast.
I have used disks this way several years after the first error without a new one.
But then, I use Seagates.
So do I :-) Just don't get the drive I've got - 3TB Barracuda. Actually, I would be very surprised if Seagate haven't fixed it by now, but they had a design fault that primed them for early failure. Dunno if you've seen the report, but some virtual hosting provider bought a load of drives in the aftermath of the Taiwan flood, and just happened to buy a load of these particular drives. The report - with plenty of hard data! - absolutely slates them for reliability. Just the 3TB version ... Cheers, Wol -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org