Re: disk testing

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

 




If there is an unreadable sector on the disk, then reading it will fail, but if you write to it, the drive firmware will reallocate the sector, and then allow reading (actually the sector it is reading is now somewhere else on the disk, but the firmware hides this). If the raid5 sync was trying to read such a sector, but your other tests have written it, then it will now appear to be fine (and the raid5 should now work).

If I were you I would use smartmontools to check out the drive (you can
then see if it has reallocated any sectors, and read errors should show
up in the SMART error log).

Tim.


p.s. Prelim SMART support for libata:

http://www.ussg.iu.edu/hypermail/linux/kernel/0408.3/2304.html




harry wrote:

I just bought 3 sata drives and set them up in a raid5 array. About 45% into syncing them, the first disk gets an error and goes offline. I figure I did something wrong, so I retrace my steps and try again, and again, I get an error about 45% of the way through, the first disk errors and goes offline.

So, I think I have a bad disk. But wait! I created a raid 1 array on the remaining two to see if there are any other errors later on those two (there weren't), and I create a normal partition/fs on the failing disk. I begin writing various bitpatterns across the entire disk and reading them back, trying to find the problem. So far, I've done about 5 passes over the entire disk without error!

So, any idea why raid would be getting errors from the disk, but I don't seem to be able to? (or, what I should tell the store I bought it from when I try to get it replaced?)




- 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