[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Test d'un disque dur avec smartctl : demande de conseils



Bonsoir la liste,
sur le PC de ma classe (Debian Buster), j'ai eu des freeze avec
obligations de redémarrer brutalement. Parfois le redémarrage lui-même plantait. Pas très joyeux quand on est en classe avec les gamins qui s'impatientent...
J'ai trifouillé un peu les câbles sur les disques durs et ça repartait.
Câble ou HD ou mauvais contact ?

J'ai lancé smartctl (que je découvre) avec le disque dur magnétique. Je
ferai le SSD plus tard. Au fait, est-ce utile smartctl sur un ssd ?
Ici; ils disent que non https://doc.ubuntu-fr.org/smartmontools

Tous les tests que j'ai faits sont dans le fichier en PJ.
D'abord la commande smartctl -i /dev/sdb 
qui m'indique qu'on peut utiliser smartctl sur ce DD
SMART support is: Available - device has SMART capability.
SMART support is: Enabled



Ensuite, smartctl -A /dev/sdb ne m'affiche rien dans la colonne
WHEN_FAILED (ce qui me parait bon signe).
Par contre, les lignes suivantes m'affiche des valeurs élevées. Est-ce
grave ?
Raw_Read_Error_Rate		52191882

Seek_Error_Rate			447813722 et les valeurs WORST et THRESH semblent assez
proches 60 et 30

Hardware_ECC_Recovered		38512172



smartctl --all /dev/sdb m'affiche en plus:
Num  Test_Description    Status                  Remaining
LifeTime(hours)  LBA_of_first_error
# 1  Short offline       Completed without error      00%      9726
# 2  Extended offline    Interrupted (host reset)      90%      9725
# 3  Extended offline    Interrupted (host reset)      90%      9724   
# 4  Short offline       Completed without error       00%      9724
# 5  Short offline       Completed without error       00%      9719
# 6  Short offline       Completed without error       00%      9719
# 7  Extended offline    Completed without error       00%      8965
# 8  Extended offline    Aborted by host               90%      8964
# 9  Short offline       Completed without error       00% 	8964


En dernier, j'ai fait un smartctl -l selftest /dev/sdb
suivi d'un smartctl -q errorsonly -H -l selftest /dev/sdb
-> nada

Questions:
1) Le disque dur est-il en train de rendre l'âme ?
2) Dans le cas contraire, d'où viendrait la panne? Mauvais contact ou
autre chose ?

Pour le SSD, j'ai eu un série de lignes au boot avec un nombre à
rallonge, puis print_req_error, I/O error, dev sda, sector <nombre à
rallonge>
Le SSD n'est pas très vieux (le magnétique plus) ce qui me surprend un
peu.

# smartctl -i /dev/sdb
smartctl 6.6 2017-11-05 r4594 [x86_64-linux-4.19.0-16-amd64] (local build)
Copyright (C) 2002-17, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Model Family:     Seagate Maxtor DiamondMax 21
Device Model:     MAXTOR STM3320820AS
Serial Number:    5QF07RDF
Firmware Version: 3.AAE
User Capacity:    320 072 933 376 bytes [320 GB]
Sector Size:      512 bytes logical/physical
Device is:        In smartctl database [for details use: -P show]
ATA Version is:   ATA/ATAPI-7 (minor revision not indicated)
Local Time is:    Tue Jun  8 10:13:45 2021 CEST
SMART support is: Available - device has SMART capability.
SMART support is: Enabled



#######################################################"



smartctl -A /dev/sdb
smartctl 6.6 2017-11-05 r4594 [x86_64-linux-4.19.0-16-amd64] (local build)
Copyright (C) 2002-17, Bruce Allen, Christian Franke, www.smartmontools.org

=== 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_Read_Error_Rate     0x000f   106   089   006    Pre-fail  Always       -       52191882
  3 Spin_Up_Time            0x0003   099   095   000    Pre-fail  Always       -       0
  4 Start_Stop_Count        0x0032   099   099   020    Old_age   Always       -       1263
  5 Reallocated_Sector_Ct   0x0033   100   100   036    Pre-fail  Always       -       0
  7 Seek_Error_Rate         0x000f   086   060   030    Pre-fail  Always       -       447813722
  9 Power_On_Hours          0x0032   089   089   000    Old_age   Always       -       9727
 10 Spin_Retry_Count        0x0013   100   100   097    Pre-fail  Always       -       0
 12 Power_Cycle_Count       0x0032   099   099   020    Old_age   Always       -       1312
187 Reported_Uncorrect      0x0032   100   100   000    Old_age   Always       -       0
189 High_Fly_Writes         0x003a   100   100   000    Old_age   Always       -       0
190 Airflow_Temperature_Cel 0x0022   062   048   045    Old_age   Always       -       38 (Min/Max 31/38)
194 Temperature_Celsius     0x0022   038   052   000    Old_age   Always       -       38 (0 11 0 0 0)
195 Hardware_ECC_Recovered  0x001a   069   055   000    Old_age   Always       -       38512172
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 Data_Address_Mark_Errs  0x0032   100   253   000    Old_age   Always       -       0



###########################################################################################

# smartctl --all /dev/sdb
smartctl 6.6 2017-11-05 r4594 [x86_64-linux-4.19.0-16-amd64] (local build)
Copyright (C) 2002-17, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Model Family:     Seagate Maxtor DiamondMax 21
Device Model:     MAXTOR STM3320820AS
Serial Number:    5QF07RDF
Firmware Version: 3.AAE
User Capacity:    320 072 933 376 bytes [320 GB]
Sector Size:      512 bytes logical/physical
Device is:        In smartctl database [for details use: -P show]
ATA Version is:   ATA/ATAPI-7 (minor revision not indicated)
Local Time is:    Tue Jun  8 10:20:03 2021 CEST
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

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:        ( 115) 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   106   089   006    Pre-fail  Always       -       52191882
  3 Spin_Up_Time            0x0003   099   095   000    Pre-fail  Always       -       0
  4 Start_Stop_Count        0x0032   099   099   020    Old_age   Always       -       1263
  5 Reallocated_Sector_Ct   0x0033   100   100   036    Pre-fail  Always       -       0
  7 Seek_Error_Rate         0x000f   086   060   030    Pre-fail  Always       -       447815145
  9 Power_On_Hours          0x0032   089   089   000    Old_age   Always       -       9727
 10 Spin_Retry_Count        0x0013   100   100   097    Pre-fail  Always       -       0
 12 Power_Cycle_Count       0x0032   099   099   020    Old_age   Always       -       1312
187 Reported_Uncorrect      0x0032   100   100   000    Old_age   Always       -       0
189 High_Fly_Writes         0x003a   100   100   000    Old_age   Always       -       0
190 Airflow_Temperature_Cel 0x0022   061   048   045    Old_age   Always       -       39 (Min/Max 31/39)
194 Temperature_Celsius     0x0022   039   052   000    Old_age   Always       -       39 (0 11 0 0 0)
195 Hardware_ECC_Recovered  0x001a   069   055   000    Old_age   Always       -       39264686
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 Data_Address_Mark_Errs  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%      9726         -
# 2  Extended offline    Interrupted (host reset)      90%      9725         -
# 3  Extended offline    Interrupted (host reset)      90%      9724         -
# 4  Short offline       Completed without error       00%      9724         -
# 5  Short offline       Completed without error       00%      9719         -
# 6  Short offline       Completed without error       00%      9719         -
# 7  Extended offline    Completed without error       00%      8965         -
# 8  Extended offline    Aborted by host               90%      8964         -
# 9  Short offline       Completed without error       00%      8964         -

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.



################################################################




# smartctl -s on -a /dev/sdb
smartctl 6.6 2017-11-05 r4594 [x86_64-linux-4.19.0-16-amd64] (local build)
Copyright (C) 2002-17, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Model Family:     Seagate Maxtor DiamondMax 21
Device Model:     MAXTOR STM3320820AS
Serial Number:    5QF07RDF
Firmware Version: 3.AAE
User Capacity:    320 072 933 376 bytes [320 GB]
Sector Size:      512 bytes logical/physical
Device is:        In smartctl database [for details use: -P show]
ATA Version is:   ATA/ATAPI-7 (minor revision not indicated)
Local Time is:    Tue Jun  8 10:10:49 2021 CEST
SMART support is: Available - device has SMART capability.
SMART support is: Enabled

=== START OF ENABLE/DISABLE COMMANDS SECTION ===
SMART Enabled.

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

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:        ( 115) 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   106   089   006    Pre-fail  Always       -       52191882
  3 Spin_Up_Time            0x0003   099   095   000    Pre-fail  Always       -       0
  4 Start_Stop_Count        0x0032   099   099   020    Old_age   Always       -       1263
  5 Reallocated_Sector_Ct   0x0033   100   100   036    Pre-fail  Always       -       0
  7 Seek_Error_Rate         0x000f   086   060   030    Pre-fail  Always       -       447814010
  9 Power_On_Hours          0x0032   089   089   000    Old_age   Always       -       9727
 10 Spin_Retry_Count        0x0013   100   100   097    Pre-fail  Always       -       0
 12 Power_Cycle_Count       0x0032   099   099   020    Old_age   Always       -       1312
187 Reported_Uncorrect      0x0032   100   100   000    Old_age   Always       -       0
189 High_Fly_Writes         0x003a   100   100   000    Old_age   Always       -       0
190 Airflow_Temperature_Cel 0x0022   061   048   045    Old_age   Always       -       39 (Min/Max 31/39)
194 Temperature_Celsius     0x0022   039   052   000    Old_age   Always       -       39 (0 11 0 0 0)
195 Hardware_ECC_Recovered  0x001a   069   055   000    Old_age   Always       -       38592225
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 Data_Address_Mark_Errs  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%      9726         -
# 2  Extended offline    Interrupted (host reset)      90%      9725         -
# 3  Extended offline    Interrupted (host reset)      90%      9724         -
# 4  Short offline       Completed without error       00%      9724         -
# 5  Short offline       Completed without error       00%      9719         -
# 6  Short offline       Completed without error       00%      9719         -
# 7  Extended offline    Completed without error       00%      8965         -
# 8  Extended offline    Aborted by host               90%      8964         -
# 9  Short offline       Completed without error       00%      8964         -

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.





#################################
# smartctl --test=short /dev/sdb
smartctl 6.6 2017-11-05 r4594 [x86_64-linux-4.19.0-16-amd64] (local build)
Copyright (C) 2002-17, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF OFFLINE IMMEDIATE AND SELF-TEST SECTION ===
Sending command: "Execute SMART Short self-test routine immediately in off-line mode".
Drive command "Execute SMART Short self-test routine immediately in off-line mode" successful.
Testing has begun.
Please wait 1 minutes for test to complete.
Test will complete after Tue Jun  8 10:24:14 2021

Use smartctl -X to abort test.


# smartctl -l selftest /dev/sdb
smartctl 6.6 2017-11-05 r4594 [x86_64-linux-4.19.0-16-amd64] (local build)
Copyright (C) 2002-17, Bruce Allen, Christian Franke, www.smartmontools.org

=== 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  Short offline       Completed without error       00%      9727         -
# 2  Short offline       Completed without error       00%      9726         -
# 3  Extended offline    Interrupted (host reset)      90%      9725         -
# 4  Extended offline    Interrupted (host reset)      90%      9724         -
# 5  Short offline       Completed without error       00%      9724         -
# 6  Short offline       Completed without error       00%      9719         -
# 7  Short offline       Completed without error       00%      9719         -
# 8  Extended offline    Completed without error       00%      8965         -
# 9  Extended offline    Aborted by host               90%      8964         -
#10  Short offline       Completed without error       00%      8964         -


# smartctl -q errorsonly -H -l selftest /dev/sdb
-> rien


######################################################""