Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

getSmartData(...) temperature is undefined #209

Open
bhavyagosai opened this issue Jul 25, 2021 · 0 comments
Open

getSmartData(...) temperature is undefined #209

bhavyagosai opened this issue Jul 25, 2021 · 0 comments

Comments

@bhavyagosai
Copy link

Does not seem to work when HDD/SDD temperature utility is smartcli

image

❯ sudo smartctl -a /dev/nvme0n1
smartctl 7.3 2021-06-26 r5227 [x86_64-linux-5.13.4-arch2-1] (local build)
Copyright (C) 2002-21, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Model Number:                       KINGSTON RBUSNS8154P3256GJ1
Serial Number:                      50026B7682CFDBD6
Firmware Version:                   E8FK12.3
PCI Vendor/Subsystem ID:            0x2646
IEEE OUI Identifier:                0x0026b7
Total NVM Capacity:                 256,060,514,304 [256 GB]
Unallocated NVM Capacity:           0
Controller ID:                      0
NVMe Version:                       1.2
Number of Namespaces:               1
Namespace 1 Size/Capacity:          256,060,514,304 [256 GB]
Namespace 1 Formatted LBA Size:     512
Namespace 1 IEEE EUI-64:            0026b7 682cfdbd65
Local Time is:                      Mon Jul 26 00:08:30 2021 IST
Firmware Updates (0x12):            1 Slot, no Reset required
Optional Admin Commands (0x0007):   Security Format Frmw_DL
Optional NVM Commands (0x001e):     Wr_Unc DS_Mngmt Wr_Zero Sav/Sel_Feat
Log Page Attributes (0x04):         Ext_Get_Lg
Maximum Data Transfer Size:         512 Pages
Warning  Comp. Temp. Threshold:     84 Celsius
Critical Comp. Temp. Threshold:     88 Celsius

Supported Power States
St Op     Max   Active     Idle   RL RT WL WT  Ent_Lat  Ex_Lat
 0 +     7.90W  0.0790W       -    0  0  0  0      600     600
 1 +     7.90W  0.0790W       -    0  0  0  0      600     600
 2 +     7.90W  0.0790W       -    0  0  0  0      600     600
 3 -   0.1000W  0.0790W       -    3  3  3  3     1000    1000
 4 -   0.0050W  0.0790W       -    4  4  4  4   400000   90000

Supported LBA Sizes (NSID 0x1)
Id Fmt  Data  Metadt  Rel_Perf
 0 +     512       0         1
 1 -    4096       0         0

=== START OF SMART DATA SECTION ===
SMART overall-health self-assessment test result: PASSED

SMART/Health Information (NVMe Log 0x02)
Critical Warning:                   0x00
Temperature:                        44 Celsius
Available Spare:                    100%
Available Spare Threshold:          100%
Percentage Used:                    19%
Data Units Read:                    58,251,505 [29.8 TB]
Data Units Written:                 41,816,381 [21.4 TB]
Host Read Commands:                 973,667,245
Host Write Commands:                700,076,902
Controller Busy Time:               1,947
Power Cycles:                       1,615
Power On Hours:                     1,636
Unsafe Shutdowns:                   30
Media and Data Integrity Errors:    0
Error Information Log Entries:      508
Warning  Comp. Temperature Time:    0
Critical Comp. Temperature Time:    0
Temperature Sensor 2:               44 Celsius

Error Information (NVMe Log 0x01, 16 of 16 entries)
Num   ErrCount  SQId   CmdId  Status  PELoc          LBA  NSID    VS
  0        508     0  0x000a  0x0004      -   4009754624     1     -
  1        507     0  0x000a  0x0004      -   4009754624     1     -
  2        506     0  0x000a  0x0004      -   4009754624     1     -
  3        505     0  0x000a  0x0004      -   4009754624     1     -
  4        504     0  0x000a  0x0004      -   4009754624     1     -
  5        503     0  0x000a  0x0004      -   4009754624     1     -
  6        502     0  0x000a  0x0004      -   4009754624     1     -
  7        501     0  0x000a  0x0004      -   4009754624     1     -
  8        500     0  0x000a  0x0004      -   4009754624     1     -
  9        499     0  0x000a  0x0004      -   4009754624     1     -
 10        498     0  0x000a  0x0004      -   4009754624     1     -
 11        497     0  0x000a  0x0004      -   4009754624     1     -
 12        496     0  0x000a  0x0004      -   4009754624     1     -
 13        495     0  0x000a  0x0004      -   4009754624     1     -
 14        494     0  0x000a  0x0004      -   4009754624     1     -
 15        493     0  0x000a  0x0004      -   4009754624     1     -
❯ sudo smartctl -a /dev/sda
smartctl 7.3 2021-06-26 r5227 [x86_64-linux-5.13.4-arch2-1] (local build)
Copyright (C) 2002-21, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Model Family:     Seagate Barracuda Pro Compute
Device Model:     ST1000LM049-2GH172
Serial Number:    WGS5FF5L
LU WWN Device Id: 5 000c50 0c04c2325
Firmware Version: ACM1
User Capacity:    1,000,204,886,016 bytes [1.00 TB]
Sector Sizes:     512 bytes logical, 4096 bytes physical
Rotation Rate:    7200 rpm
Form Factor:      2.5 inches
TRIM Command:     Available
Device is:        In smartctl database 7.3/5224
ATA Version is:   ACS-3 T13/2161-D revision 3b
SATA Version is:  SATA 3.1, 6.0 Gb/s (current: 6.0 Gb/s)
Local Time is:    Mon Jul 26 00:09:49 2021 IST
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:  (0x00)	Offline data collection activity
					was never started.
					Auto Offline Data Collection: Disabled.
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: 		(    0) seconds.
Offline data collection
capabilities: 			 (0x71) SMART execute Offline immediate.
					No Auto Offline data collection support.
					Suspend Offline collection upon new
					command.
					No Offline surface scan supported.
					Self-test supported.
					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: 	 ( 122) minutes.
Conveyance self-test routine
recommended polling time: 	 (   2) minutes.
SCT capabilities: 	       (0x3035)	SCT Status supported.
					SCT Feature Control supported.
					SCT Data Table supported.

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   062   062   006    Pre-fail  Always       -       222406705
  3 Spin_Up_Time            0x0003   099   099   000    Pre-fail  Always       -       0
  4 Start_Stop_Count        0x0032   037   037   020    Old_age   Always       -       65535
  5 Reallocated_Sector_Ct   0x0033   100   100   036    Pre-fail  Always       -       16
  7 Seek_Error_Rate         0x000f   085   060   045    Pre-fail  Always       -       306417903
  9 Power_On_Hours          0x0032   091   091   000    Old_age   Always       -       7915 (181 166 0)
 10 Spin_Retry_Count        0x0013   100   100   097    Pre-fail  Always       -       0
 12 Power_Cycle_Count       0x0032   099   099   020    Old_age   Always       -       1590
184 End-to-End_Error        0x0032   100   100   099    Old_age   Always       -       0
187 Reported_Uncorrect      0x0032   100   100   000    Old_age   Always       -       0
188 Command_Timeout         0x0032   100   099   000    Old_age   Always       -       1
189 High_Fly_Writes         0x003a   100   100   000    Old_age   Always       -       0
190 Airflow_Temperature_Cel 0x0022   051   040   040    Old_age   Always   In_the_past 49 (Min/Max 28/49)
191 G-Sense_Error_Rate      0x0032   100   100   000    Old_age   Always       -       89
192 Power-Off_Retract_Count 0x0032   100   100   000    Old_age   Always       -       55
193 Load_Cycle_Count        0x0032   029   029   000    Old_age   Always       -       142291
194 Temperature_Celsius     0x0022   049   060   000    Old_age   Always       -       49 (0 19 0 0 0)
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
240 Head_Flying_Hours       0x0000   100   253   000    Old_age   Offline      -       4275 (47 146 0)
241 Total_LBAs_Written      0x0000   100   253   000    Old_age   Offline      -       14873547711
242 Total_LBAs_Read         0x0000   100   253   000    Old_age   Offline      -       19041213482
254 Free_Fall_Sensor        0x0032   100   100   000    Old_age   Always       -       0

SMART Error Log Version: 1
ATA Error Count: 1
	CR = Command Register [HEX]
	FR = Features Register [HEX]
	SC = Sector Count Register [HEX]
	SN = Sector Number Register [HEX]
	CL = Cylinder Low Register [HEX]
	CH = Cylinder High Register [HEX]
	DH = Device/Head Register [HEX]
	DC = Device Command Register [HEX]
	ER = Error register [HEX]
	ST = Status register [HEX]
Powered_Up_Time is measured from power on, and printed as
DDd+hh:mm:SS.sss where DD=days, hh=hours, mm=minutes,
SS=sec, and sss=millisec. It "wraps" after 49.710 days.

Error 1 occurred at disk power-on lifetime: 7841 hours (326 days + 17 hours)
  When the command that caused the error occurred, the device was active or idle.

  After command completion occurred, registers were:
  ER ST SC SN CL CH DH
  -- -- -- -- -- -- --
  04 71 03 06 02 0c 40  Device Fault; Error: ABRT at LBA = 0x000c0206 = 786950

  Commands leading to the command that caused the error were:
  CR FR SC SN CL CH DH DC   Powered_Up_Time  Command/Feature_Name
  -- -- -- -- -- -- -- --  ----------------  --------------------
  61 00 08 ff ff ff 4f 00      00:38:50.417  WRITE FPDMA QUEUED
  ea 00 00 00 00 00 a0 00      00:38:50.415  FLUSH CACHE EXT
  ef 10 02 00 00 00 a0 00      00:38:50.406  SET FEATURES [Enable SATA feature]
  27 00 00 00 00 00 e0 00      00:38:50.379  READ NATIVE MAX ADDRESS EXT [OBS-ACS-3]
  ec 00 00 00 00 00 a0 00      00:38:50.378  IDENTIFY DEVICE

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%      7583         -
# 2  Short offline       Completed without error       00%      6772         -
# 3  Short offline       Completed without error       00%      3516         -
# 4  Short offline       Completed without error       00%      3394         -
# 5  Short offline       Completed without error       00%      2968         -
# 6  Short offline       Completed without error       00%       757         -
# 7  Short offline       Completed without error       00%       190         -
# 8  Short offline       Completed without error       00%       107         -

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.

pievets pushed a commit to pievets/gnome-shell-extension-freon that referenced this issue Mar 25, 2024
…ill ignore any drive without a temperature.
UshakovVasilii added a commit that referenced this issue Mar 29, 2024
 getSmartData(...) temperature is undefined #209
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant