J’ai rencontré quelques soucis avec un disque Seagate IronWolf placé dans mon serveur Dell PowerEdge T310 depuis à peine quelques mois dans un RAID5 comme je l’évoque dans ce post. Il est sans cesse rejeté par le RAID que je dois reconstruire à chaque fois, et ça prend des heures. Pourtant je n’ai pas d’erreur de disques SMART flagrantes. Pour mémoire SMART est une technologie qui permet de monitorer les disques. Dans un récent post, j’avais expliqué comment utiliser smartmontools sous linux pour vérifier les disques avant de lancer une sauvegarde, dans ce post je vais détailler comment on peut vérifier l’état de santé avec cet outil dont l’équivalent pourrait être Seatools de Seagate sous windows.
Tout d’abord pour vérifier l’état du disque on tapera la commande suivante qui va lancer un test court
smartctl -t short -d megaraid,7 -a /dev/sdb
L’option -d correspond au device pour ma part je pointe sur le disque de mon RAID à la septième position qui correspond à mon disque naze. Pour un disque SATA normalement le -d est inutile, en revanche pour un disque branché en USB (via un adaptateur ou une boîtier), vous avez le choix de mettre comme variable derrière -d sat, usbsunplus, usbcypress et usbjmicron. Dans la pratique, il faudra taper lsusb, vous allez retrouver votre disque dur branché enUSB, exemple avec un adaptateur SATA/USB
Bus 002 Device 010: ID 7825:a2a4 ULT-Best Best USB Device
Maintenant il faut se rendre sur cette page et voir à quel device correspond votre adaptateur ou boîtier, attention tous les périphériques ne sont pas listés, il faudra donc faire des tests avec tous les devices énumérés plus haut, pour ma part ça était -d sat.à la fois pour l’adaptateur SATA/USB et à la fois pour le boîtier USB. Avantage à linux car sous windows avec Seatools la plupart du temps il ne reconnait pas les adaptateurs et boîtiers USB.
Revenons au résultat du test court, cela donne un résultat comme cela
smartctl 7.0 2018-12-30 r4883 [x86_64-linux-5.6.6-server-1.mga7] (local build)Copyright (C) 2002-18, Bruce Allen, Christian Franke, www.smartmontools.org=== START OF INFORMATION SECTION ===Model Family: Seagate IronWolfDevice Model: ST3000VN007-2AH16MSerial Number: ZGY6KHBCLU WWN Device Id: 5 000c50 0c47c70dfFirmware Version: SC60User Capacity: 3·000·592·982·016 bytes [3,00 TB]Sector Sizes: 512 bytes logical, 4096 bytes physicalRotation Rate: 5980 rpmForm Factor: 3.5 inchesDevice is: In smartctl database [for details use: -P show]ATA Version is: ACS-3 T13/2161-D revision 5SATA Version is: SATA 3.1, 6.0 Gb/s (current: 3.0 Gb/s)Local Time is: Sat Nov 21 09:29:23 2020 CETSMART support is: Available - device has SMART capability.SMART support is: Enabled=== START OF READ SMART DATA SECTION ===SMART Status not supported: ATA return descriptor not supported by controller firmwareSMART overall-health self-assessment test result: PASSEDWarning: This result is based on an Attribute check.General SMART Values:Offline data collection status: (0x00) Offline data collection activitywas never started.Auto Offline Data Collection: Disabled.Self-test execution status: ( 0) The previous self-test routine completedwithout error or no self-test has everbeen run.Total time to complete Offlinedata collection: ( 601) seconds.Offline data collectioncapabilities: (0x73) SMART execute Offline immediate.Auto Offline data collection on/off support.Suspend Offline collection upon newcommand.No Offline surface scan supported.Self-test supported.Conveyance Self-test supported.Selective Self-test supported.SMART capabilities: (0x0003) Saves SMART data before enteringpower-saving mode.Supports SMART auto save timer.Error logging capability: (0x01) Error logging supported.General Purpose Logging supported.Short self-test routinerecommended polling time: ( 1) minutes.Extended self-test routinerecommended polling time: ( 525) minutes.Conveyance self-test routinerecommended polling time: ( 2) minutes.SCT capabilities: (0x50bd) SCT Status supported.SCT Error Recovery Control supported.SCT Feature Control supported.SCT Data Table supported.SMART Attributes Data Structure revision number: 10Vendor Specific SMART Attributes with Thresholds:ID# ATTRIBUTE_NAME FLAG VALUE WORST THRESH TYPE UPDATED WHEN_FAILED RAW_VALUE1 Raw_Read_Error_Rate 0x000f 079 064 044 Pre-fail Always - 785831253 Spin_Up_Time 0x0003 095 095 000 Pre-fail Always - 04 Start_Stop_Count 0x0032 100 100 020 Old_age Always - 85 Reallocated_Sector_Ct 0x0033 100 100 010 Pre-fail Always - 07 Seek_Error_Rate 0x000f 085 060 045 Pre-fail Always - 3452237289 Power_On_Hours 0x0032 094 094 000 Old_age Always - 6111 (85 55 0)10 Spin_Retry_Count 0x0013 100 100 097 Pre-fail Always - 012 Power_Cycle_Count 0x0032 100 100 020 Old_age Always - 8184 End-to-End_Error 0x0032 100 100 099 Old_age Always - 0187 Reported_Uncorrect 0x0032 100 100 000 Old_age Always - 0188 Command_Timeout 0x0032 100 099 000 Old_age Always - 4295032835189 High_Fly_Writes 0x003a 100 100 000 Old_age Always - 0190 Airflow_Temperature_Cel 0x0022 082 073 040 Old_age Always - 18 (Min/Max 15/25)191 G-Sense_Error_Rate 0x0032 100 100 000 Old_age Always - 0192 Power-Off_Retract_Count 0x0032 100 100 000 Old_age Always - 0193 Load_Cycle_Count 0x0032 075 075 000 Old_age Always - 50402194 Temperature_Celsius 0x0022 018 040 000 Old_age Always - 18 (0 14 0 0 0)197 Current_Pending_Sector 0x0012 100 100 000 Old_age Always - 0198 Offline_Uncorrectable 0x0010 100 100 000 Old_age Offline - 0199 UDMA_CRC_Error_Count 0x003e 193 193 000 Old_age Always - 25240 Head_Flying_Hours 0x0000 100 253 000 Old_age Offline - 1894 (198 60 0)241 Total_LBAs_Written 0x0000 100 253 000 Old_age Offline - 17183414698242 Total_LBAs_Read 0x0000 100 253 000 Old_age Offline - 6251948358SMART Error Log Version: 1No Errors LoggedSMART Self-test log structure revision number 1Num Test_Description Status Remaining LifeTime(hours) LBA_of_first_error# 1 Short offline Completed without error 00% 6102 -# 2 Short offline Completed without error 00% 6078 -# 3 Short offline Completed without error 00% 6054 -# 4 Short offline Completed without error 00% 6030 -# 5 Short offline Completed without error 00% 6006 -# 6 Extended offline Completed without error 00% 5990 -# 7 Short offline Completed without error 00% 5982 -# 8 Short offline Completed without error 00% 5958 -# 9 Short offline Completed without error 00% 5934 -#10 Short offline Completed without error 00% 5910 -#11 Short offline Completed without error 00% 5886 -#12 Short offline Completed without error 00% 5862 -#13 Short offline Completed without error 00% 5838 -SMART Selective self-test log data structure revision number 1SPAN MIN_LBA MAX_LBA CURRENT_TEST_STATUS1 0 0 Not_testing2 0 0 Not_testing3 0 0 Not_testing4 0 0 Not_testing5 0 0 Not_testingSelective 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.=== 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 Sat Nov 21 09:30:23 2020Use smartctl -X to abort test.