Ciro,
Here's an idea. It probably won't work but give it a try. Try
smartctl -t offline
to see if after a few minutes this sets the offline uncorrectable count
back to zero.
In the worst case you can always 'turn off' the log warning message using
-U 0
in /etc/smartd.conf.
Cheers,
Bruce
On Thu, 21 Oct 2004, Ciro Scognamiglio wrote:
> On Tue, Oct 19, 2004 at 08:12:57PM -0400
> Eduard Martinescu <martines@...> wrote:
>
> > Ciro,
> >
> > I'm at a loss. Just to make sure, I just rebuilt the package from
> > scratch and tried it out. I was able to checkout '/dev/ad0' without any
> > problem. If you want, I can email you the tar file of my source, but it
> > is a just a clean checkout of current CVS code.
> >
> > Also, I don't think that patch you indicate below is necessary with the
> > CVS version of smartmontools, as I don't need to apply it to build, but
> > I don't think that should cause any issues.
> >
> > You should be able to test out the executable directly from where you
> > built it as './smartctl -a /dev/ad0'
> >
> > If that works, then the only thing I can think up is something going
> > wrong when you copied it.
> >
>
> I am sorry, it was my fault, I was rather tired that day and tried to
> run smartctl as a common user :P
>
> anyway, I have now tried some tests with the cvs version checked out 4
> or 5 days ago. They terminate succesfully, but I have still got smartd
> -H complaining about an uncorrectable sector error....
>
> # smartctl -l selftest /dev/ad0
> smartctl version 5.34 [i386-unknown-freebsd5.3] Copyright (C) 2002-4
> Bruce Allen
> Home page is http://smartmontools.sourceforge.net/
>
> === START OF READ SMART DATA SECTION ===
> SMART Self-test log structure revision number 1
> Num Test_Description Status Remaining
> LifeTime(hours) LBA_of_first_error
> # 1 Extended offline Completed without error 00% 171
> # -
> # 2 Extended offline Completed without error 00% 161
> # -
> # 3 Short offline Completed without error 00% 160
> # -
> # 4 Extended offline Completed without error 00% 138
> # -
> # 5 Extended offline Completed without error 00% 136
> # -
> # 6 Extended offline Completed without error 00% 124
> # -
> # 7 Extended offline Completed: read failure 00% 118
> # 26926850
>
> The disk seems to run fine, but I still get this in /var/log/messages
>
> Oct 21 19:15:06 linc smartd[585]: Device: /dev/ad0, 2 Offline
> uncorrectable sectors
>
> while:
>
> # smartctl -A /dev/ad0
> smartctl version 5.34 [i386-unknown-freebsd5.3] Copyright (C) 2002-4
> Bruce Allen
> Home page is http://smartmontools.sourceforge.net/
>
> === START OF READ SMART DATA SECTION ===
> SMART Attributes Data Structure revision number: 16
> Vendor Specific SMART Attributes with Thresholds:
> ID# ATTRIBUTE_NAME FLAG VALUE WORST THRESH TYPE
> UPDATED WHEN_FAILED RAW_VALUE
> 1 Raw_Read_Error_Rate 0x000b 100 100 051 Pre-fail Always
> - 19
> 3 Spin_Up_Time 0x0007 077 046 000 Pre-fail Always
> - 4352
> 4 Start_Stop_Count 0x0032 100 100 000 Old_age Always
> - 176
> 5 Reallocated_Sector_Ct 0x0033 253 253 010 Pre-fail Always
> - 0
> 7 Seek_Error_Rate 0x000b 253 253 051 Pre-fail Always
> - 0
> 8 Seek_Time_Performance 0x0024 086 086 000 Old_age
> Offline - 11581
> 9 Power_On_Half_Minutes 0x0032 100 100 000 Old_age Always
> - 177h+36m
> 10 Spin_Retry_Count 0x0013 253 253 049 Pre-fail Always
> - 0
> 12 Power_Cycle_Count 0x0032 100 100 000 Old_age Always
> - 176
> 194 Temperature_Celsius 0x0022 151 124 000 Old_age Always
> - 29
> 195 Hardware_ECC_Recovered 0x000a 100 100 000 Old_age Always
> - 88268331
> 196 Reallocated_Event_Count 0x0012 100 100 000 Old_age Always
> - 2
> 197 Current_Pending_Sector 0x0033 253 253 010 Pre-fail Always
> - 0
> 198 Offline_Uncorrectable 0x0031 100 100 010 Pre-fail
> Offline - 2
> 199 UDMA_CRC_Error_Count 0x000b 100 100 051 Pre-fail Always
> - 0
>
>
>
> anyway, based on the BadBlockHowTo.txt I prepared a FreeBSD version
> (attached). I am not sure this is all correct, maybe I could post it
> also on an italian FreeBSD mailing list to get some feedback.
>
> BTW, that document describes what I did to correct the 2 damaged
> sectors.
>
> Ciro.
>
|