SMART-Werte auslesen und interpretieren

  • Ab sofort steht euch hier im Forum die neue Add-on Verwaltung zur Verfügung – eine zentrale Plattform für alles rund um Erweiterungen und Add-ons für den DSM.

    Damit haben wir einen Ort, an dem Lösungen von Nutzern mit der Community geteilt werden können. Über die Team Funktion können Projekte auch gemeinsam gepflegt werden.

    Was die Add-on Verwaltung kann und wie es funktioniert findet Ihr hier

    Hier geht es zu den Add-ons

The Output of "sudo synodisk --smart_info_get /dev/sas8" is (with or without sudo)

root@HD6500-Cluster:~# sudo synodisk --smart_info_get /dev/sas8
Failed to get the smart info of /dev/sas8
 
Die Abfrage der S.M.A.R.T.-Werte funktioniert bei mir nicht richtig. Hinter den HAT3300-Festplatten von Synology verbergen sich ja letztlich Seagate-Festplatten. Also soll man die Optionen -v 1,raw48:54 -v 7,raw48:54 -v 195,raw48:54 mit angeben um die Werte umrechnen zu lassen. Das führt aber letztlich dazu, dass genau diese Werte gar nicht mehr ausgegeben werden. Wenn ich mir das Skript von @DaveR auf Github anschaue, dann müsste der Aufruf aber passen.
Der vollständige Aufruf lautet beispielsweise:
sudo smartctl -iA -d sat -v 1,raw48:54 -v 7,raw48:54 -v 195,raw48:54 /dev/sata1
So ganz werde ich aus der Usage zu smartctl nicht schlau - wird bei der Option -v wirklich etwas umgerechnet (wie beispielsweise hier: https://yksi.ml/) oder wird bloß die Ausgabe anders formatiert?
Nachtrag: Hier die Ausgaben zum Vergleich:
Code:
# sudo smartctl -iA -d sat /dev/sata1
smartctl 6.5 (build date Sep 26 2022) [x86_64-linux-5.10.55+] (local build)
Copyright (C) 2002-16, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Model Family:     HAT3300
Device Model:     Synology HAT3300-6T
Serial Number:    <edited>
LU WWN Device Id: 5 000c50 0ea1f0eea
Firmware Version: PL01
User Capacity:    6,001,175,126,016 bytes [6.00 TB]
Sector Sizes:     512 bytes logical, 4096 bytes physical
Rotation Rate:    5400 rpm
Form Factor:      3.5 inches
Device is:        In smartctl database [for details use: -P show]
ATA Version is:   ACS-3 T13/2161-D revision 5
SATA Version is:  SATA 3.1, 6.0 Gb/s (current: 6.0 Gb/s)
Local Time is:    Fri Dec  5 17:41:15 2025 CET
SMART support is: Available - device has SMART capability.
SMART support is: Enabled

=== START OF READ SMART DATA SECTION ===
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_Error_Rate                                                   0x000f   084   064   006    Pre-fail  Always       -       233731065
  3 Spin_Up_Time                                                     0x0003   092   091   000    Pre-fail  Always       -       0
  4 Start/Stop_Count                                                 0x0032   100   100   020    Old_age   Always       -       107
  5 Reallocated_Sector_Ct                                            0x0033   100   100   010    Pre-fail  Always       -       0
  7 Seek_Error_Rate                                                  0x000f   073   060   045    Pre-fail  Always       -       19225877
  9 Power_On_Hours                                                   0x0032   100   100   000    Old_age   Always       -       810
 10 Spin_Retry_Count                                                 0x0013   100   100   097    Pre-fail  Always       -       0
 12 Drive_Power_Cycle_Count                                          0x0032   100   100   020    Old_age   Always       -       89
183 PHY_Counter_Events                                               0x0032   100   100   000    Old_age   Always       -       0
184 Reported_IOEDC_Errors                                            0x0032   100   100   099    Old_age   Always       -       0
187 Reported_Uncorrectables                                          0x0032   100   100   000    Old_age   Always       -       0
188 Command_Timeouts                                                 0x0032   100   100   000    Old_age   Always       -       0
189 High_Fly_Writes                                                  0x003a   100   100   000    Old_age   Always       -       0
190 Airflow_Temperature                                              0x0022   071   065   040    Old_age   Always       -       29 (Min/Max 23/32)
191 Shock_Count                                                      0x0032   100   100   000    Old_age   Always       -       0
192 Emergency_Retract_Count                                          0x0032   100   100   000    Old_age   Always       -       2
193 Load/Unload_Count                                                0x0032   100   100   000    Old_age   Always       -       1214
194 Temperature                                                      0x0022   029   040   000    Old_age   Always       -       29 (0 21 0 0 0)
195 ECC_On_the_Fly_Count                                             0x001a   084   064   000    Old_age   Always       -       233731065
197 Current_Pending_Sector                                           0x0012   100   100   000    Old_age   Always       -       0
198 Uncorrectable_Sectors_Count                                      0x0010   100   100   000    Old_age   Offline      -       0
199 UDMA_CRC_Error_Count                                             0x003e   200   200   000    Old_age   Always       -       0
240 Head_Flight_Hours                                                0x0000   100   253   000    Old_age   Offline      -       206377473540662
241 Lifetime_Writes_From_host                                        0x0000   100   253   000    Old_age   Offline      -       7481630562
242 Lifetime_Reads_From_Host                                         0x0000   100   253   000    Old_age   Offline      -       44502448824

# sudo smartctl -iA -d sat -v 1,raw48:54 -v 7,raw48:54 -v 195,raw48:54 /dev/sata1
smartctl 6.5 (build date Sep 26 2022) [x86_64-linux-5.10.55+] (local build)
Copyright (C) 2002-16, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Model Family:     HAT3300
Device Model:     Synology HAT3300-6T
Serial Number:    <edited>
LU WWN Device Id: 5 000c50 0ea1f0eea
Firmware Version: PL01
User Capacity:    6,001,175,126,016 bytes [6.00 TB]
Sector Sizes:     512 bytes logical, 4096 bytes physical
Rotation Rate:    5400 rpm
Form Factor:      3.5 inches
Device is:        In smartctl database [for details use: -P show]
ATA Version is:   ACS-3 T13/2161-D revision 5
SATA Version is:  SATA 3.1, 6.0 Gb/s (current: 6.0 Gb/s)
Local Time is:    Fri Dec  5 17:41:04 2025 CET
SMART support is: Available - device has SMART capability.
SMART support is: Enabled

=== START OF READ SMART DATA SECTION ===
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
  3 Spin_Up_Time                                                     0x0003   092   091   000    Pre-fail  Always       -       0
  4 Start/Stop_Count                                                 0x0032   100   100   020    Old_age   Always       -       107
  5 Reallocated_Sector_Ct                                            0x0033   100   100   010    Pre-fail  Always       -       0
  9 Power_On_Hours                                                   0x0032   100   100   000    Old_age   Always       -       810
 10 Spin_Retry_Count                                                 0x0013   100   100   097    Pre-fail  Always       -       0
 12 Drive_Power_Cycle_Count                                          0x0032   100   100   020    Old_age   Always       -       89
183 PHY_Counter_Events                                               0x0032   100   100   000    Old_age   Always       -       0
184 Reported_IOEDC_Errors                                            0x0032   100   100   099    Old_age   Always       -       0
187 Reported_Uncorrectables                                          0x0032   100   100   000    Old_age   Always       -       0
188 Command_Timeouts                                                 0x0032   100   100   000    Old_age   Always       -       0
189 High_Fly_Writes                                                  0x003a   100   100   000    Old_age   Always       -       0
190 Airflow_Temperature                                              0x0022   071   065   040    Old_age   Always       -       29 (Min/Max 23/32)
191 Shock_Count                                                      0x0032   100   100   000    Old_age   Always       -       0
192 Emergency_Retract_Count                                          0x0032   100   100   000    Old_age   Always       -       2
193 Load/Unload_Count                                                0x0032   100   100   000    Old_age   Always       -       1214
194 Temperature                                                      0x0022   029   040   000    Old_age   Always       -       29 (0 21 0 0 0)
197 Current_Pending_Sector                                           0x0012   100   100   000    Old_age   Always       -       0
198 Uncorrectable_Sectors_Count                                      0x0010   100   100   000    Old_age   Offline      -       0
199 UDMA_CRC_Error_Count                                             0x003e   200   200   000    Old_age   Always       -       0
240 Head_Flight_Hours                                                0x0000   100   253   000    Old_age   Offline      -       157530810483254
241 Lifetime_Writes_From_host                                        0x0000   100   253   000    Old_age   Offline      -       7481630562
242 Lifetime_Reads_From_Host                                         0x0000   100   253   000    Old_age   Offline      -       44502448824
 
Zuletzt bearbeitet:
Offenbar ist die Angabe von [,NAME] bei der Option -v (siehe Usage -v ID,FORMAT[:BYTEORDER][,NAME]) nicht optional.
Folgender Aufruf liefert die fehlenden Werte 1, 7 und 195 wieder mit:

sudo smartctl -iA -d sat -v 1,raw48:54,Raw_Error_Rate -v 7,raw48:54,Seek_Error_Rate -v 195,raw48:54,ECC_On_the_Fly_Count /dev/sata1

Die Namen habe ich der Ausgabe ohne die -v-Optionen entnommen. Es reicht auch, hier irgendeinen beliebigen Text anzugeben.
Ich lass das jetzt mal so stehen zur Verarbeitung durch die Experten hier im Forum.
Das mit der eventuell notwendigen Umrechnung der drei Werte ist ja auch noch offen.
 
The -v option was changed to smartctl in 7. DSM only has smartctl 6.5

So if you want Seagate or Synology HAT3300 raw SMART values converted you need to install the SynoCli Disk Tools package from synocommunity.
I can decode Seagate or Synology HAT3300 raw SMART values 1, 7 and 195 in bash so will add that to the script so people with smartctl 6.5 will see human readable values.

EDIT: replaced "added" with "changed"
 
Zuletzt bearbeitet:
  • Like
Reaktionen: Benares
Are you sure? Usage shows this:
Code:
 -v N,OPTION , --vendorattribute=N,OPTION                            (ATA)
        Set display OPTION for vendor Attribute N (see man page)
Output from smartctl 6.5 on DSM 7.3.2. Eventually the syntax has changed.
I can decode Seagate or Synology HAT3300 raw SMART values 1, 7 and 195 in bash so will add that to the script so people with smartctl 6.5 will see human readable values.
That would be great!
 
I wasn't sure. But I just ran some tests:
  1. The -v option existed in smartctl 6.5
  2. According to the help the usage of the -v option has not changed.
From my tests I can see how the -v option behaves has changed.
  1. In smartctl 7 you do not need to specify the attribute name.
  2. In smartctl 6.5 you must specify the attribute name or it skips printing that attribute.
 
  • Like
Reaktionen: Hagen2000
I just noticed smartctl 6.5 -v uses the attribute name you specify.

Code:
root@DS925plus:~# smartctl -iA -d sat -v 1,raw48:54,one -v 7,raw48:54,seven -v 195,raw48:54,one_nine_five /dev/sata2
smartctl 6.5 (build date Sep 26 2022) [x86_64-linux-5.10.55+] (local build)
Copyright (C) 2002-16, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Model Family:     HAT3300
Device Model:     Synology HAT3300-4T

=== START OF READ SMART DATA SECTION ===
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 one                                              0x000f   082   064   006    Pre-fail  Always       -       0
  3 Spin_Up_Time                                     0x0003   095   095   000    Pre-fail  Always       -       0
  4 Start/Stop_Count                                 0x0032   100   100   020    Old_age   Always       -       925
  5 Reallocated_Sector_Ct                            0x0033   100   100   010    Pre-fail  Always       -       0
  7 seven                                            0x000f   067   060   045    Pre-fail  Always       -       0
  9 Power_On_Hours                                   0x0032   099   099   000    Old_age   Always       -       1332
 10 Spin_Retry_Count                                 0x0013   100   100   097    Pre-fail  Always       -       0
 12 Drive_Power_Cycle_Count                          0x0032   100   100   020    Old_age   Always       -       913
183 PHY_Counter_Events                               0x0032   100   100   000    Old_age   Always       -       0
184 Reported_IOEDC_Errors                            0x0032   100   100   099    Old_age   Always       -       0
187 Reported_Uncorrectables                          0x0032   100   100   000    Old_age   Always       -       0
188 Command_Timeouts                                 0x0032   100   100   000    Old_age   Always       -       0
189 High_Fly_Writes                                  0x003a   100   100   000    Old_age   Always       -       0
190 Airflow_Temperature                              0x0022   062   060   040    Old_age   Always       -       38 (Min/Max 33/38)
191 Shock_Count                                      0x0032   100   100   000    Old_age   Always       -       0
192 Emergency_Retract_Count                          0x0032   100   100   000    Old_age   Always       -       17
193 Load/Unload_Count                                0x0032   099   099   000    Old_age   Always       -       2210
194 Temperature                                      0x0022   038   040   000    Old_age   Always       -       38 (0 16 0 0 0)
195 one_nine_five                                    0x001a   082   064   000    Old_age   Always       -       0
197 Current_Pending_Sector                           0x0012   100   100   000    Old_age   Always       -       0
198 Uncorrectable_Sectors_Count                      0x0010   100   100   000    Old_age   Offline      -       0
199 UDMA_CRC_Error_Count                             0x003e   200   200   000    Old_age   Always       -       0
240 Head_Flight_Hours                                0x0000   100   253   000    Old_age   Offline      -       13198434501342
241 Lifetime_Writes_From_host                        0x0000   100   253   000    Old_age   Offline      -       393312158
242 Lifetime_Reads_From_Host                         0x0000   100   253   000    Old_age   Offline      -       26026438
 
Synology_SMART_Info updated to v.1.4.34
  • Added decoding of Seagate and Synology HAT3300 HDD SMART raw attribute 240 Flying_Head_Hours.
  • Added decoding of Seagate and Synology HAT3300 HDD SMART raw attributes 1, 7, 195 and 240 when DSM only has smartctl 6.5.
  • Updated to still work in future for smartmontools versions greater than 7.x.
 
  • Like
Reaktionen: maxblank und Benie

Additional post fields

 

Kaffeautomat

Wenn du das Forum hilfreich findest oder uns unterstützen möchtest, dann gib uns doch einfach einen Kaffee aus.

Als Dankeschön schalten wir deinen Account werbefrei.

:coffee:

Hier gehts zum Kaffeeautomat