From: Matt F. <mai...@ma...> - 2007-11-06 16:35:18
|
Hi Bruce, From my quick grep through the source code and tests, it looks like this file is only sourced by smartd and not smartctl. Is that true, or am I just configuring this file incorrectly? To clarify my use case a little bit, I think I should have said that I 'test' a large number of drives that get returned to us, instead of monitor. So these are all one time tests that we want the results for immediately, and so it seemed that smartctl was the appropriate tool to use over startd. Making smartctl honor the -i/-I flags or be able to source /etc/smartd.conf would both be possible solutions to my problem, though it would be nicer if we could configure it so that these settings were only applied to the model drives that were known to have these issues (though this could easily be detected and handled in a wrapper around smartctl). -Matt On 11/6/07, Bruce Allen <ba...@gr...> wrote: > Matt, what is the effect of -i 190 -I 190 in the smartd config file? This > should ignore the Attribute values. Does it not work? > > Bruce > > > On Mon, 5 Nov 2007, Matt Farmer wrote: > > > Hello, > > > > I have a Seagate 750 GB ST3750640NS which is erroneously reporting > > failures when polled by smartctl in the 190 attribute field. This > > field is currently listed as Unknown_Attribute but on this model drive > > it is actually a value referred to as Air_Flow, which is a bit > > misleading because it is actually a value of ( 100 - MAX_TEMP ). > > > > The reason that this is failing is because on this model drive this > > attribute trips on any value below 45 since older drives used to have > > a max temp of 55 degrees C. This drive however has a max temp of 70 > > degrees and so therefore should not trip until this value drops below > > 30. > > > > I've contacted Seagate about this but they say that this is an > > internally used attribute that we should not be looking at anyways and > > so they will not be releasing a firmware update for this. This causes > > a bit of a problem since I use the exit code of smartctl to monitor a > > large number of drives and have many exhibiting this faulty report > > situation. > > > > Would it be possible to modify smartctl to either correctly trip on > > this field at 30 degrees (ideal) or ignore this field (acceptable for > > my use at least)? > > > > Thanks in advance, > > -Matt Farmer > > > > > > > > # smartctl -d ata -a /dev/sda > > smartctl version 5.36 [i686-pc-linux-gnu] Copyright (C) 2002-6 Bruce Allen > > Home page is http://smartmontools.sourceforge.net/ > > > > === START OF INFORMATION SECTION === > > Device Model: ST3750640NS > > Serial Number: 3QD0SJ24 > > Firmware Version: 3.BAH > > User Capacity: 750,156,374,016 bytes > > Device is: Not in smartctl database [for details use: -P showall] > > ATA Version is: 7 > > ATA Standard is: Exact ATA specification draft version not indicated > > Local Time is: Mon Nov 5 10:32:03 2007 UTC > > SMART support is: Available - device has SMART capability. > > SMART support is: Enabled > > > > === START OF READ SMART DATA SECTION === > > SMART overall-health self-assessment test result: PASSED > > See vendor-specific Attribute list for marginal Attributes. > > > > General SMART Values: > > Offline data collection status: (0x82) Offline data collection activity > > was completed without error. > > Auto Offline Data Collection: Enabled. > > Self-test execution status: ( 0) The previous self-test routine completed > > without error or no self-test has ever > > been run. > > Total time to complete Offline > > data collection: ( 430) seconds. > > Offline data collection > > capabilities: (0x5b) SMART execute Offline immediate. > > Auto Offline data collection > > on/off support. > > Suspend Offline collection upon new > > command. > > Offline surface scan supported. > > Self-test supported. > > No Conveyance Self-test supported. > > Selective Self-test supported. > > SMART capabilities: (0x0003) Saves SMART data before entering > > power-saving mode. > > Supports SMART auto save timer. > > Error logging capability: (0x01) Error logging supported. > > General Purpose Logging supported. > > Short self-test routine > > recommended polling time: ( 1) minutes. > > Extended self-test routine > > recommended polling time: ( 202) minutes. > > > > SMART Attributes Data Structure revision number: 10 > > Vendor Specific SMART Attributes with Thresholds: > > ID# ATTRIBUTE_NAME FLAG VALUE WORST THRESH TYPE > > UPDATED WHEN_FAILED RAW_VALUE > > 1 Raw_Read_Error_Rate 0x000f 104 092 006 Pre-fail > > Always - 79464361 > > 3 Spin_Up_Time 0x0003 092 091 000 Pre-fail > > Always - 0 > > 4 Start_Stop_Count 0x0032 100 100 020 Old_age > > Always - 24 > > 5 Reallocated_Sector_Ct 0x0033 100 100 036 Pre-fail > > Always - 0 > > 7 Seek_Error_Rate 0x000f 084 060 030 Pre-fail > > Always - 333188450 > > 9 Power_On_Hours 0x0032 094 094 000 Old_age > > Always - 5533 > > 10 Spin_Retry_Count 0x0013 100 100 097 Pre-fail > > Always - 0 > > 12 Power_Cycle_Count 0x0032 100 100 020 Old_age > > Always - 35 > > 187 Unknown_Attribute 0x0032 100 100 000 Old_age > > Always - 0 > > 189 Unknown_Attribute 0x003a 100 100 000 Old_age > > Always - 0 > > 190 Unknown_Attribute 0x0022 054 045 045 Old_age > > Always In_the_past 791019566 > > 194 Temperature_Celsius 0x0022 046 055 000 Old_age > > Always - 46 (Lifetime Min/Max 0/20) > > 195 Hardware_ECC_Recovered 0x001a 061 056 000 Old_age > > Always - 43958429 > > 197 Current_Pending_Sector 0x0012 100 100 000 Old_age > > Always - 0 > > 198 Offline_Uncorrectable 0x0010 100 100 000 Old_age > > Offline - 0 > > 199 UDMA_CRC_Error_Count 0x003e 200 200 000 Old_age > > Always - 0 > > 200 Multi_Zone_Error_Rate 0x0000 100 253 000 Old_age > > Offline - 0 > > 202 TA_Increase_Count 0x0032 100 253 000 Old_age > > Always - 0 > > > > SMART Error Log Version: 1 > > No Errors Logged > > > > SMART Self-test log structure revision number 1 > > Num Test_Description Status Remaining > > LifeTime(hours) LBA_of_first_error > > # 1 Short offline Completed without error 00% 5473 - > > # 2 Short offline Aborted by host 70% 5473 - > > > > SMART Selective self-test log data structure revision number 1 > > SPAN MIN_LBA MAX_LBA CURRENT_TEST_STATUS > > 1 0 0 Not_testing > > 2 0 0 Not_testing > > 3 0 0 Not_testing > > 4 0 0 Not_testing > > 5 0 0 Not_testing > > Selective self-test flags (0x0): > > After scanning selected spans, do NOT read-scan remainder of disk. > > If Selective self-test is pending on power-up, resume after 0 minute delay. > > > > > > # echo $? > > 1 > > > > # smartctl -d ata -H /dev/sda > > smartctl version 5.36 [i686-pc-linux-gnu] Copyright (C) 2002-6 Bruce Allen > > Home page is http://smartmontools.sourceforge.net/ > > > > === START OF READ SMART DATA SECTION === > > SMART overall-health self-assessment test result: PASSED > > Please note the following marginal Attributes: > > ID# ATTRIBUTE_NAME FLAG VALUE WORST THRESH TYPE > > UPDATED WHEN_FAILED RAW_VALUE > > 190 Unknown_Attribute 0x0022 055 045 045 Old_age > > Always In_the_past 791019565 > > > > # echo $? > > 32 > > > > ------------------------------------------------------------------------- > > This SF.net email is sponsored by: Splunk Inc. > > Still grepping through log files to find problems? Stop. > > Now Search log events and configuration files using AJAX and a browser. > > Download your FREE copy of Splunk now >> http://get.splunk.com/ > > _______________________________________________ > > Smartmontools-support mailing list > > Sma...@li... > > https://lists.sourceforge.net/lists/listinfo/smartmontools-support > > > |