[CentOS] was, PATA Hard Drive woes, is "SMART"

Wed Nov 3 19:06:17 UTC 2010
RedShift <redshift at pandora.be>

On 11/03/10 19:57, m.roth at 5-cent.us wrote:

>> SMART reports the number of sectors that have been reallocated. That
>> means, the drive was writing to a sector, found out it was unreliable and
>> decided to remap that sector. It is not abnormal for drives to develop _a
>> few_ bad sectors over the years.
> Agreed. And these two bad sectors developed many months ago, and the
> number is not increasing, so I'm not really worried about them; all I want
> is to make the irritating messages in the logfiles go, and stay, away.
>         mark

smartd is supposed to do that. The number of reallocated sectors is a prefailure SMART attribute. If it goes up in a short time your disk is failing. You can use the -I option in smartd.conf to ignore certain attributes. See man smartd.