From: < s. > <sh...@on...> - 2003-02-28 10:06:55
|
hello all! sorry for this dumb question, but i did not get how to see right temperature for this hdd :(. what should i do to see correct temperature (in Celsius) in syslog? please see relevant info below. many thanks for this great s/w anyway, shpokas -------------------------------------------------------- # smartctl -i /dev/hda smartctl version 5.1-4 Copyright (C) 2002 Bruce Allen Home page is http://smartmontools.sourceforge.net/ === START OF INFORMATION SECTION === Device Model: IC25N030ATCS04-0 Serial Number: CSH300D3G1PNSB Firmware Version: CA3OA70A ATA Version is: 5 ATA Standard is: ATA/ATAPI-5 T13 1321D revision 3 Local Time is: Fri Feb 28 12:00:51 2003 EET SMART support is: Available - device has SMART capability. SMART support is: Enabled -------------------------------------------------------- # smartctl -A /dev/hda smartctl version 5.1-4 Copyright (C) 2002 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 WHEN_FAILED RAW_VALUE 1 Raw_Read_Error_Rate 0x000b 100 100 062 Pre-fail - 0 2 Throughput_Performance 0x0005 100 100 040 Pre-fail - 0 3 Spin_Up_Time 0x0007 130 130 033 Pre-fail - 73014444033 4 Start_Stop_Count 0x0012 100 100 000 Old_age - 1204 5 Reallocated_Sector_Ct 0x0033 100 100 005 Pre-fail - 0 7 Seek_Error_Rate 0x000b 100 100 067 Pre-fail - 0 8 Seek_Time_Performance 0x0005 100 100 040 Pre-fail - 0 9 Power_On_Hours 0x0012 092 092 000 Old_age - 3848 10 Spin_Retry_Count 0x0013 100 100 060 Pre-fail - 0 12 Power_Cycle_Count 0x0032 100 100 000 Old_age - 449 191 G-Sense_Error_Rate 0x000a 099 099 000 Old_age - 3 192 Power-Off_Retract_Count 0x0032 100 100 000 Old_age - 67 193 Load_Cycle_Count 0x0012 073 073 000 Old_age - 276784 194 Temperature_Celsius 0x0002 122 122 000 Old_age - 45 (Lifetime Min/Max 3/74) 196 Reallocated_Event_Count 0x0032 100 100 000 Old_age - 9 197 Current_Pending_Sector 0x0022 100 100 000 Old_age - 0 198 Offline_Uncorrectable 0x0008 100 100 000 Old_age - 0 199 UDMA_CRC_Error_Count 0x000a 200 200 000 Old_age - 0 -------------------------------------------------------- # grep Tempera messages Feb 27 23:06:22 shpokas smartd[745]: Device: /dev/hda, SMART Usage Attribute: 194 Temperature_Celsius changed from 141 to 144 Feb 28 10:14:08 shpokas smartd[751]: Device: /dev/hda, SMART Usage Attribute: 194 Temperature_Celsius changed from 250 to 177 Feb 28 10:44:27 shpokas smartd[751]: Device: /dev/hda, SMART Usage Attribute: 194 Temperature_Celsius changed from 177 to 144 Feb 28 11:14:45 shpokas smartd[751]: Device: /dev/hda, SMART Usage Attribute: 194 Temperature_Celsius changed from 144 to 130 ------------------------------------------------------------------------------- http://www.one.lv - Tavs mobilais e-pasts! Tagad lasi savu e-pastu ar mobilo telefonu - wap.one.lv! |
From: Bruce A. <ba...@gr...> - 2003-03-01 14:03:27
|
Hi, > sorry for this dumb question, but i did not get how to see right > temperature for this hdd :(. what should i do to see correct > temperature (in Celsius) in syslog? please see relevant info below. > > many thanks for this great s/w anyway, > shpokas > Device Model: IC25N030ATCS04-0 > 194 Temperature_Celsius 0x0002 122 122 000 Old_age - 45 (Lifetime Min/Max 3/74) So the actual temperature of the disk when you ran smartctl is 45 C. The normalized Attribute value that this corresponds to is 122. [Note: the min/max values are quite extreme -- has your laptop been in very hot and cold environments??] > Feb 27 23:06:22 shpokas smartd[745]: Device: /dev/hda, SMART Usage Attribute: 194 Temperature_Celsius changed from 141 to 144 > Feb 28 10:14:08 shpokas smartd[751]: Device: /dev/hda, SMART Usage Attribute: 194 Temperature_Celsius changed from 250 to 177 > Feb 28 10:44:27 shpokas smartd[751]: Device: /dev/hda, SMART Usage Attribute: 194 Temperature_Celsius changed from 177 to 144 > Feb 28 11:14:45 shpokas smartd[751]: Device: /dev/hda, SMART Usage Attribute: 194 Temperature_Celsius changed from 144 to 130 The values listed here do NOT tell you the temperature -- only the value of the normalized Attribute. Please read the smartd man page, where it says: NOTES smartd will make log entries at loglevel LOG_INFO if SMART Attribute values have changed, as reported using the '-t', '-p', or '-u' Directives. For example: 'Device: /dev/hda, SMART Attribute: 194 Temperature_Celsius changed from 94 to 93' Note that in this message, the value given is the 'Normalized' not the 'Raw' Attribute value (the disk temperature in this case is about 22 Celsius). See the smartctl manual page for further explanation. I might at some point modify smartd to print the raw Attribute values as well, at least for some useful attributes like temperature. Cheers, Bruce |
From: <li...@pe...> - 2003-03-01 15:02:20
|
On Sat, 1 Mar 2003, Bruce Allen wrote: > I might at some point modify smartd to print the raw > Attribute values as well, at least for some useful attributes > like temperature. Or what about a smartd option like the ones to ignore attributes ? Something like -R would print all raw values. -r 194 would only print the temperature. -- 0@pervalidus.{tk, dyndns.org} |
From: Bruce A. <ba...@gr...> - 2003-03-01 22:52:15
|
> On Sat, 1 Mar 2003, Bruce Allen wrote: >=20 > > I might at some point modify smartd to print the raw > > Attribute values as well, at least for some useful attributes > > like temperature. >=20 > Or what about a smartd option like the ones to ignore > attributes ? >=20 > Something like >=20 > -R would print all raw values. > -r 194 would only print the temperature. Hi Fr=E9d=E9ric, I think this wouldn't be hard -- what's harder is if we want to print something to syslog when the raw values change, rather than the normalized values -- this would require some additional logic -- so I have to think about just what is "the right thing to do". Bruce |
From: <li...@pe...> - 2003-03-01 15:03:46
|
On Sat, 1 Mar 2003, Bruce Allen wrote: > I might at some point modify smartd to print the raw > Attribute values as well, at least for some useful attributes > like temperature. Or better, an option like the ones to ignore certain attributes. Something like -r (or -R) alone would print all raw values -r (or -R) 194 would print the raw value for temperature -- 0@pervalidus.{tk, dyndns.org} |
From: Bruce A. <ba...@gr...> - 2003-03-04 02:26:12
|
On Sat, 1 Mar 2003, Fr=E9d=E9ric L. W. Meunier wrote: > On Sat, 1 Mar 2003, Bruce Allen wrote: >=20 > > I might at some point modify smartd to print the raw > > Attribute values as well, at least for some useful attributes > > like temperature. >=20 > Or better, an option like the ones to ignore certain > attributes. >=20 > Something like >=20 > -r (or -R) alone would print all raw values > -r (or -R) 194 would print the raw value for temperature I took a quick look through the code today. I'd like feedback from the other developers and/or smartmontools users about some of the possible ways things that one might implement for printing raw values: (1) SIMPLE add -r ATT option, that would print the RAW values along with the normalized attribute values, if the NORMALIZED Attribute changes, for attribute ATT (2) SIMPLE add -P Report changes in 'Prefailure' raw values add -U Report changes in 'Usage' raw values add -B equivalent to -P -U (3) (SLIGHTLY) HARDER add equivalents of the -I and -i options to ignore some attributes, when reporting changes in the raw values It seems to me that in general there are not very many raw Attributes that one wants to track (perhaps temperature is the only one). This argues in favor of (1). On the other hand, (1) would not report all changes in temperature, just those that also make the Normalized Attribute value change... In favor of (2) is that it lets the user track all the raw Attribute values. But for many of these, it would be a nuisance. Eg, the power-on time will change every hour (or every minute or second for some disks!). So then it seems that we'd also need (3), which is a nuisance, not so much to code but because it bloats the data structures and also requires additional letters that can be used in /etc/smartd.conf -- we are practically running out of the alphabet. Sigh. Comments, anyone?? Bruce |
From: Bruce A. <ba...@gr...> - 2003-03-04 02:48:07
|
Ahh, one further idea, which I think is easy: I think that I could easily add TWO Directives: -r ATT -R ATT to be used in conjunction with the -p and -u (or -t) Directives The first would print the raw value, in addition to the normalized values, when attribute ATT's normalized value changes. The second would print the raw value, in addition to the normalized values, when attribute ATT's RAW value changes. I suspect that these two options would handle most people's needs for raw values. Comments?? Cheers, Bruce |
From: Bruce A. <ba...@gr...> - 2003-03-06 06:39:04
|
Hi Shpokas, I've just added a couple of new Directives for smartd. If you add -r 194 to /etc/smartd.conf, this will print the raw values (temp in Celsius) and normalized values to SYSLOG. If you add -R 194 to /etc/smartd.conf, this will track changes in the raw value (Temp Celsius) as well as normalized values of the attribute, and print both normalized and raw values to SYSLOG. To get this version, you'll have to download the latest code from CVS. It's tagged as RELEASE_5_0_8. Cheers, Bruce On Sat, 1 Mar 2003, Bruce Allen wrote: > Hi, > > > sorry for this dumb question, but i did not get how to see right > > temperature for this hdd :(. what should i do to see correct > > temperature (in Celsius) in syslog? please see relevant info below. > > > > many thanks for this great s/w anyway, > > shpokas > > > Device Model: IC25N030ATCS04-0 > > > 194 Temperature_Celsius 0x0002 122 122 000 Old_age - 45 (Lifetime Min/Max 3/74) > > So the actual temperature of the disk when you ran smartctl is 45 C. > > The normalized Attribute value that this corresponds to is 122. > > [Note: the min/max values are quite extreme -- has your laptop been in > very hot and cold environments??] > > > > Feb 27 23:06:22 shpokas smartd[745]: Device: /dev/hda, SMART Usage Attribute: 194 Temperature_Celsius changed from 141 to 144 > > Feb 28 10:14:08 shpokas smartd[751]: Device: /dev/hda, SMART Usage Attribute: 194 Temperature_Celsius changed from 250 to 177 > > Feb 28 10:44:27 shpokas smartd[751]: Device: /dev/hda, SMART Usage Attribute: 194 Temperature_Celsius changed from 177 to 144 > > Feb 28 11:14:45 shpokas smartd[751]: Device: /dev/hda, SMART Usage Attribute: 194 Temperature_Celsius changed from 144 to 130 > > The values listed here do NOT tell you the temperature -- only the value > of the normalized Attribute. Please read the smartd man page, where it > says: > > NOTES > smartd will make log entries at loglevel > LOG_INFO if SMART Attribute values have > changed, as reported using the '-t', '-p', > or '-u' Directives. For example: > 'Device: /dev/hda, SMART Attribute: 194 Temperature_Celsius changed > from 94 to 93' > Note that in this message, the value given > is the 'Normalized' not the 'Raw' Attribute > value (the disk temperature in this case is > about 22 Celsius). See the smartctl manual > page for further explanation. > > I might at some point modify smartd to print the raw Attribute values as > well, at least for some useful attributes like temperature. > > Cheers, > Bruce > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Smartmontools-support mailing list > Sma...@li... > https://lists.sourceforge.net/lists/listinfo/smartmontools-support > |