{"id":4873,"date":"2020-11-22T19:43:22","date_gmt":"2020-11-22T18:43:22","guid":{"rendered":"https:\/\/olivier.hoarau.org\/?p=4873"},"modified":"2020-11-22T20:19:20","modified_gmt":"2020-11-22T19:19:20","slug":"verifier-letat-dun-disque-dur-avec-smartmontools","status":"publish","type":"post","link":"https:\/\/olivier.hoarau.org\/?p=4873","title":{"rendered":"V\u00e9rifier l&rsquo;\u00e9tat d&rsquo;un disque dur avec smartmontools"},"content":{"rendered":"\n<p>J&rsquo;ai rencontr\u00e9 quelques soucis avec un disque Seagate IronWolf plac\u00e9 dans mon serveur<a href=\"https:\/\/olivier.hoarau.org\/?p=2173\"> Dell PowerEdge T310 <\/a>depuis \u00e0 peine quelques mois dans un RAID5 comme je l&rsquo;\u00e9voque dans ce <a href=\"https:\/\/olivier.hoarau.org\/?p=3985\">post<\/a>. Il est sans cesse rejet\u00e9 par le RAID que je dois reconstruire \u00e0 chaque fois, et \u00e7a prend des heures. Pourtant je n&rsquo;ai pas d&rsquo;erreur de disques SMART flagrantes. Pour m\u00e9moire <a href=\"https:\/\/fr.wikipedia.org\/wiki\/Self-Monitoring,_Analysis_and_Reporting_Technology\">SMART<\/a> est une technologie qui permet de monitorer les disques. Dans un r\u00e9cent <a href=\"https:\/\/olivier.hoarau.org\/?p=4182\">post<\/a>, j&rsquo;avais expliqu\u00e9 comment utiliser <a href=\"https:\/\/www.smartmontools.org\/\">smartmontools<\/a> sous linux pour v\u00e9rifier les disques avant de lancer une sauvegarde, dans ce post je vais d\u00e9tailler comment on peut v\u00e9rifier l&rsquo;\u00e9tat de sant\u00e9 avec cet outil dont l&rsquo;\u00e9quivalent pourrait \u00eatre <a href=\"https:\/\/www.seagate.com\/fr\/fr\/support\/downloads\/seatools\/\">Seatools<\/a> de Seagate sous windows.<\/p>\n\n\n\n<p>Tout d&rsquo;abord pour v\u00e9rifier l&rsquo;\u00e9tat du disque on tapera la commande suivante qui va lancer un test court<\/p>\n\n\n\n<div style=\"height: 250px; position:relative; margin-bottom: 50px;\" class=\"wp-block-simple-code-block-ace\"><pre class=\"wp-block-simple-code-block-ace\" style=\"position:absolute;top:0;right:0;bottom:0;left:0\" data-mode=\"php\" data-theme=\"monokai\" data-fontsize=\"14\" data-lines=\"Infinity\" data-showlines=\"true\" data-copy=\"false\"> smartctl -t short -d megaraid,7 -a \/dev\/sdb\n <\/pre><\/div>\n\n\n\n<p>L&rsquo;option<strong> -d<\/strong> correspond au device pour ma part je pointe sur le disque de mon RAID \u00e0 la septi\u00e8me position qui correspond \u00e0 mon disque naze. Pour  un disque SATA normalement le <strong>-d<\/strong> est inutile, en revanche pour un disque branch\u00e9 en USB (via un adaptateur ou une bo\u00eetier), vous avez le choix de mettre comme variable derri\u00e8re <strong>-d sat<\/strong>, <strong>usbsunplus<\/strong>, <strong>usbcypress<\/strong> et <strong>usbjmicron<\/strong>. Dans la pratique, il faudra taper <strong>lsusb<\/strong>, vous allez retrouver votre disque dur branch\u00e9 enUSB, exemple avec un adaptateur SATA\/USB<\/p>\n\n\n\n<div style=\"height: 250px; position:relative; margin-bottom: 50px;\" class=\"wp-block-simple-code-block-ace\"><pre class=\"wp-block-simple-code-block-ace\" style=\"position:absolute;top:0;right:0;bottom:0;left:0\" data-mode=\"php\" data-theme=\"monokai\" data-fontsize=\"14\" data-lines=\"Infinity\" data-showlines=\"true\" data-copy=\"false\">Bus 002 Device 010: ID 7825:a2a4 ULT-Best Best USB Device\n<\/pre><\/div>\n\n\n\n<p> Maintenant il faut se rendre sur cette <a href=\"https:\/\/www.smartmontools.org\/wiki\/Supported_USB-Devices\">page<\/a> et voir \u00e0 quel device correspond votre adaptateur ou bo\u00eetier, attention tous les p\u00e9riph\u00e9riques ne sont pas list\u00e9s, il faudra donc faire des tests avec tous les devices \u00e9num\u00e9r\u00e9s plus haut, pour ma part \u00e7a \u00e9tait<strong> -d sat<\/strong>.\u00e0 la fois pour l&rsquo;adaptateur SATA\/USB et \u00e0 la fois pour le bo\u00eetier USB. Avantage \u00e0 linux car sous windows avec <strong>Seatools<\/strong> la plupart du temps il ne reconnait pas les adaptateurs et bo\u00eetiers USB.<\/p>\n\n\n\n<p>Revenons au r\u00e9sultat du test court, cela donne un r\u00e9sultat comme cela<\/p>\n\n\n\n<div style=\"height: 250px; position:relative; margin-bottom: 50px;\" class=\"wp-block-simple-code-block-ace\"><pre class=\"wp-block-simple-code-block-ace\" style=\"position:absolute;top:0;right:0;bottom:0;left:0\" data-mode=\"php\" data-theme=\"monokai\" data-fontsize=\"14\" data-lines=\"Infinity\" data-showlines=\"true\" data-copy=\"false\">smartctl 7.0 2018-12-30 r4883 [x86_64-linux-5.6.6-server-1.mga7] (local build)\nCopyright (C) 2002-18, Bruce Allen, Christian Franke, www.smartmontools.org\n\n=== START OF INFORMATION SECTION ===\nModel Family:     Seagate IronWolf\nDevice Model:     ST3000VN007-2AH16M\nSerial Number:    ZGY6KHBC\nLU WWN Device Id: 5 000c50 0c47c70df\nFirmware Version: SC60\nUser Capacity:    3\u202f000\u202f592\u202f982\u202f016 bytes [3,00 TB]\nSector Sizes:     512 bytes logical, 4096 bytes physical\nRotation Rate:    5980 rpm\nForm Factor:      3.5 inches\nDevice is:        In smartctl database [for details use: -P show]\nATA Version is:   ACS-3 T13\/2161-D revision 5\nSATA Version is:  SATA 3.1, 6.0 Gb\/s (current: 3.0 Gb\/s)\nLocal Time is:    Sat Nov 21 09:29:23 2020 CET\nSMART support is: Available - device has SMART capability.\nSMART support is: Enabled\n\n=== START OF READ SMART DATA SECTION ===\nSMART Status not supported: ATA return descriptor not supported by controller firmware\nSMART overall-health self-assessment test result: PASSED\nWarning: This result is based on an Attribute check.\n\nGeneral SMART Values:\nOffline data collection status:  (0x00)\tOffline data collection activity\n\t\t\t\t\twas never started.\n\t\t\t\t\tAuto Offline Data Collection: Disabled.\nSelf-test execution status:      (   0)\tThe previous self-test routine completed\n\t\t\t\t\twithout error or no self-test has ever \n\t\t\t\t\tbeen run.\nTotal time to complete Offline \ndata collection: \t\t(  601) seconds.\nOffline data collection\ncapabilities: \t\t\t (0x73) SMART execute Offline immediate.\n\t\t\t\t\tAuto Offline data collection on\/off support.\n\t\t\t\t\tSuspend Offline collection upon new\n\t\t\t\t\tcommand.\n\t\t\t\t\tNo Offline surface scan supported.\n\t\t\t\t\tSelf-test supported.\n\t\t\t\t\tConveyance Self-test supported.\n\t\t\t\t\tSelective Self-test supported.\nSMART capabilities:            (0x0003)\tSaves SMART data before entering\n\t\t\t\t\tpower-saving mode.\n\t\t\t\t\tSupports SMART auto save timer.\nError logging capability:        (0x01)\tError logging supported.\n\t\t\t\t\tGeneral Purpose Logging supported.\nShort self-test routine \nrecommended polling time: \t (   1) minutes.\nExtended self-test routine\nrecommended polling time: \t ( 525) minutes.\nConveyance self-test routine\nrecommended polling time: \t (   2) minutes.\nSCT capabilities: \t       (0x50bd)\tSCT Status supported.\n\t\t\t\t\tSCT Error Recovery Control supported.\n\t\t\t\t\tSCT Feature Control supported.\n\t\t\t\t\tSCT Data Table supported.\n\nSMART Attributes Data Structure revision number: 10\nVendor Specific SMART Attributes with Thresholds:\nID# ATTRIBUTE_NAME          FLAG     VALUE WORST THRESH TYPE      UPDATED  WHEN_FAILED RAW_VALUE\n  1 Raw_Read_Error_Rate     0x000f   079   064   044    Pre-fail  Always       -       78583125\n  3 Spin_Up_Time            0x0003   095   095   000    Pre-fail  Always       -       0\n  4 Start_Stop_Count        0x0032   100   100   020    Old_age   Always       -       8\n  5 Reallocated_Sector_Ct   0x0033   100   100   010    Pre-fail  Always       -       0\n  7 Seek_Error_Rate         0x000f   085   060   045    Pre-fail  Always       -       345223728\n  9 Power_On_Hours          0x0032   094   094   000    Old_age   Always       -       6111 (85 55 0)\n 10 Spin_Retry_Count        0x0013   100   100   097    Pre-fail  Always       -       0\n 12 Power_Cycle_Count       0x0032   100   100   020    Old_age   Always       -       8\n184 End-to-End_Error        0x0032   100   100   099    Old_age   Always       -       0\n187 Reported_Uncorrect      0x0032   100   100   000    Old_age   Always       -       0\n188 Command_Timeout         0x0032   100   099   000    Old_age   Always       -       4295032835\n189 High_Fly_Writes         0x003a   100   100   000    Old_age   Always       -       0\n190 Airflow_Temperature_Cel 0x0022   082   073   040    Old_age   Always       -       18 (Min\/Max 15\/25)\n191 G-Sense_Error_Rate      0x0032   100   100   000    Old_age   Always       -       0\n192 Power-Off_Retract_Count 0x0032   100   100   000    Old_age   Always       -       0\n193 Load_Cycle_Count        0x0032   075   075   000    Old_age   Always       -       50402\n194 Temperature_Celsius     0x0022   018   040   000    Old_age   Always       -       18 (0 14 0 0 0)\n197 Current_Pending_Sector  0x0012   100   100   000    Old_age   Always       -       0\n198 Offline_Uncorrectable   0x0010   100   100   000    Old_age   Offline      -       0\n199 UDMA_CRC_Error_Count    0x003e   193   193   000    Old_age   Always       -       25\n240 Head_Flying_Hours       0x0000   100   253   000    Old_age   Offline      -       1894 (198 60 0)\n241 Total_LBAs_Written      0x0000   100   253   000    Old_age   Offline      -       17183414698\n242 Total_LBAs_Read         0x0000   100   253   000    Old_age   Offline      -       6251948358\n\nSMART Error Log Version: 1\nNo Errors Logged\n\nSMART Self-test log structure revision number 1\nNum  Test_Description    Status                  Remaining  LifeTime(hours)  LBA_of_first_error\n# 1  Short offline       Completed without error       00%      6102         -\n# 2  Short offline       Completed without error       00%      6078         -\n# 3  Short offline       Completed without error       00%      6054         -\n# 4  Short offline       Completed without error       00%      6030         -\n# 5  Short offline       Completed without error       00%      6006         -\n# 6  Extended offline    Completed without error       00%      5990         -\n# 7  Short offline       Completed without error       00%      5982         -\n# 8  Short offline       Completed without error       00%      5958         -\n# 9  Short offline       Completed without error       00%      5934         -\n#10  Short offline       Completed without error       00%      5910         -\n#11  Short offline       Completed without error       00%      5886         -\n#12  Short offline       Completed without error       00%      5862         -\n#13  Short offline       Completed without error       00%      5838         -\n\nSMART Selective self-test log data structure revision number 1\n SPAN  MIN_LBA  MAX_LBA  CURRENT_TEST_STATUS\n    1        0        0  Not_testing\n    2        0        0  Not_testing\n    3        0        0  Not_testing\n    4        0        0  Not_testing\n    5        0        0  Not_testing\nSelective self-test flags (0x0):\n  After scanning selected spans, do NOT read-scan remainder of disk.\nIf Selective self-test is pending on power-up, resume after 0 minute delay.\n\n=== START OF OFFLINE IMMEDIATE AND SELF-TEST SECTION ===\nSending command: \"Execute SMART Short self-test routine immediately in off-line mode\".\nDrive command \"Execute SMART Short self-test routine immediately in off-line mode\" successful.\nTesting has begun.\nPlease wait 1 minutes for test to complete.\nTest will complete after Sat Nov 21 09:30:23 2020\n\nUse smartctl -X to abort test.\n<\/pre><\/div>\n\n\n\n<p><\/p>\n\n\n\n<!--more-->\n\n\n\n<p>On attend une petite minute et on retape la commande ci-dessous pour avoir le r\u00e9sultat final du test<\/p>\n\n\n\n<div style=\"height: 250px; position:relative; margin-bottom: 50px;\" class=\"wp-block-simple-code-block-ace\"><pre class=\"wp-block-simple-code-block-ace\" style=\"position:absolute;top:0;right:0;bottom:0;left:0\" data-mode=\"php\" data-theme=\"monokai\" data-fontsize=\"14\" data-lines=\"Infinity\" data-showlines=\"true\" data-copy=\"false\">smartctl -d megaraid,7 -a \/dev\/sdb\n<\/pre><\/div>\n\n\n\n<p>Si ce n&rsquo;est pas flagrant vous pouvez tenter un test intensif en tapant <\/p>\n\n\n\n<div style=\"height: 250px; position:relative; margin-bottom: 50px;\" class=\"wp-block-simple-code-block-ace\"><pre class=\"wp-block-simple-code-block-ace\" style=\"position:absolute;top:0;right:0;bottom:0;left:0\" data-mode=\"php\" data-theme=\"monokai\" data-fontsize=\"14\" data-lines=\"Infinity\" data-showlines=\"true\" data-copy=\"false\">smartctl -t long -d megaraid,7 -a \/dev\/sdb\n<\/pre><\/div>\n\n\n\n<p>Suivant la taille du disque cela peut prendre plusieurs heures, voil\u00e0 le r\u00e9sultat<\/p>\n\n\n\n<div style=\"height: 250px; position:relative; margin-bottom: 50px;\" class=\"wp-block-simple-code-block-ace\"><pre class=\"wp-block-simple-code-block-ace\" style=\"position:absolute;top:0;right:0;bottom:0;left:0\" data-mode=\"php\" data-theme=\"monokai\" data-fontsize=\"14\" data-lines=\"Infinity\" data-showlines=\"true\" data-copy=\"false\">smartctl 7.0 2018-12-30 r4883 [x86_64-linux-5.6.6-server-1.mga7] (local build)\nCopyright (C) 2002-18, Bruce Allen, Christian Franke, www.smartmontools.org\n\n=== START OF INFORMATION SECTION ===\nModel Family:     Seagate IronWolf\nDevice Model:     ST3000VN007-2AH16M\nSerial Number:    ZGY6KHBC\nLU WWN Device Id: 5 000c50 0c47c70df\nFirmware Version: SC60\nUser Capacity:    3\u202f000\u202f592\u202f982\u202f016 bytes [3,00 TB]\nSector Sizes:     512 bytes logical, 4096 bytes physical\nRotation Rate:    5980 rpm\nForm Factor:      3.5 inches\nDevice is:        In smartctl database [for details use: -P show]\nATA Version is:   ACS-3 T13\/2161-D revision 5\nSATA Version is:  SATA 3.1, 6.0 Gb\/s (current: 3.0 Gb\/s)\nLocal Time is:    Sat Nov 21 09:36:58 2020 CET\nSMART support is: Available - device has SMART capability.\nSMART support is: Enabled\n\n=== START OF READ SMART DATA SECTION ===\nSMART Status not supported: ATA return descriptor not supported by controller firmware\nSMART overall-health self-assessment test result: PASSED\nWarning: This result is based on an Attribute check.\n\nGeneral SMART Values:\nOffline data collection status:  (0x00)\tOffline data collection activity\n\t\t\t\t\twas never started.\n\t\t\t\t\tAuto Offline Data Collection: Disabled.\nSelf-test execution status:      (   0)\tThe previous self-test routine completed\n\t\t\t\t\twithout error or no self-test has ever \n\t\t\t\t\tbeen run.\nTotal time to complete Offline \ndata collection: \t\t(  601) seconds.\nOffline data collection\ncapabilities: \t\t\t (0x73) SMART execute Offline immediate.\n\t\t\t\t\tAuto Offline data collection on\/off support.\n\t\t\t\t\tSuspend Offline collection upon new\n\t\t\t\t\tcommand.\n\t\t\t\t\tNo Offline surface scan supported.\n\t\t\t\t\tSelf-test supported.\n\t\t\t\t\tConveyance Self-test supported.\n\t\t\t\t\tSelective Self-test supported.\nSMART capabilities:            (0x0003)\tSaves SMART data before entering\n\t\t\t\t\tpower-saving mode.\n\t\t\t\t\tSupports SMART auto save timer.\nError logging capability:        (0x01)\tError logging supported.\n\t\t\t\t\tGeneral Purpose Logging supported.\nShort self-test routine \nrecommended polling time: \t (   1) minutes.\nExtended self-test routine\nrecommended polling time: \t ( 525) minutes.\nConveyance self-test routine\nrecommended polling time: \t (   2) minutes.\nSCT capabilities: \t       (0x50bd)\tSCT Status supported.\n\t\t\t\t\tSCT Error Recovery Control supported.\n\t\t\t\t\tSCT Feature Control supported.\n\t\t\t\t\tSCT Data Table supported.\n\nSMART Attributes Data Structure revision number: 10\nVendor Specific SMART Attributes with Thresholds:\nID# ATTRIBUTE_NAME          FLAG     VALUE WORST THRESH TYPE      UPDATED  WHEN_FAILED RAW_VALUE\n  1 Raw_Read_Error_Rate     0x000f   079   064   044    Pre-fail  Always       -       78583125\n  3 Spin_Up_Time            0x0003   095   095   000    Pre-fail  Always       -       0\n  4 Start_Stop_Count        0x0032   100   100   020    Old_age   Always       -       8\n  5 Reallocated_Sector_Ct   0x0033   100   100   010    Pre-fail  Always       -       0\n  7 Seek_Error_Rate         0x000f   085   060   045    Pre-fail  Always       -       345234219\n  9 Power_On_Hours          0x0032   094   094   000    Old_age   Always       -       6111 (71 225 0)\n 10 Spin_Retry_Count        0x0013   100   100   097    Pre-fail  Always       -       0\n 12 Power_Cycle_Count       0x0032   100   100   020    Old_age   Always       -       8\n184 End-to-End_Error        0x0032   100   100   099    Old_age   Always       -       0\n187 Reported_Uncorrect      0x0032   100   100   000    Old_age   Always       -       0\n188 Command_Timeout         0x0032   100   099   000    Old_age   Always       -       4295032835\n189 High_Fly_Writes         0x003a   100   100   000    Old_age   Always       -       0\n190 Airflow_Temperature_Cel 0x0022   082   073   040    Old_age   Always       -       18 (Min\/Max 15\/25)\n191 G-Sense_Error_Rate      0x0032   100   100   000    Old_age   Always       -       0\n192 Power-Off_Retract_Count 0x0032   100   100   000    Old_age   Always       -       0\n193 Load_Cycle_Count        0x0032   075   075   000    Old_age   Always       -       50405\n194 Temperature_Celsius     0x0022   018   040   000    Old_age   Always       -       18 (0 14 0 0 0)\n197 Current_Pending_Sector  0x0012   100   100   000    Old_age   Always       -       0\n198 Offline_Uncorrectable   0x0010   100   100   000    Old_age   Offline      -       0\n199 UDMA_CRC_Error_Count    0x003e   193   193   000    Old_age   Always       -       25\n240 Head_Flying_Hours       0x0000   100   253   000    Old_age   Offline      -       1894 (157 172 0)\n241 Total_LBAs_Written      0x0000   100   253   000    Old_age   Offline      -       17183414698\n242 Total_LBAs_Read         0x0000   100   253   000    Old_age   Offline      -       6251948358\n\nSMART Error Log Version: 1\nNo Errors Logged\n\nSMART Self-test log structure revision number 1\nNum  Test_Description    Status                  Remaining  LifeTime(hours)  LBA_of_first_error\n# 1  Short offline       Completed without error       00%      6111         -\n# 2  Short offline       Completed without error       00%      6102         -\n# 3  Short offline       Completed without error       00%      6078         -\n# 4  Short offline       Completed without error       00%      6054         -\n# 5  Short offline       Completed without error       00%      6030         -\n# 6  Short offline       Completed without error       00%      6006         -\n# 7  Extended offline    Completed without error       00%      5990         -\n# 8  Short offline       Completed without error       00%      5982         -\n# 9  Short offline       Completed without error       00%      5958         -\n#10  Short offline       Completed without error       00%      5934         -\n#11  Short offline       Completed without error       00%      5910         -\n#12  Short offline       Completed without error       00%      5886         -\n#13  Short offline       Completed without error       00%      5862         -\n#14  Short offline       Completed without error       00%      5838         -\n\nSMART Selective self-test log data structure revision number 1\n SPAN  MIN_LBA  MAX_LBA  CURRENT_TEST_STATUS\n    1        0        0  Not_testing\n    2        0        0  Not_testing\n    3        0        0  Not_testing\n    4        0        0  Not_testing\n    5        0        0  Not_testing\nSelective self-test flags (0x0):\n  After scanning selected spans, do NOT read-scan remainder of disk.\nIf Selective self-test is pending on power-up, resume after 0 minute delay.\n\n=== START OF OFFLINE IMMEDIATE AND SELF-TEST SECTION ===\nSending command: \"Execute SMART Extended self-test routine immediately in off-line mode\".\nDrive command \"Execute SMART Extended self-test routine immediately in off-line mode\" successful.\nTesting has begun.\nPlease wait 525 minutes for test to complete.\nTest will complete after Sat Nov 21 18:21:59 2020\n\nUse smartctl -X to abort test.<\/pre><\/div>\n\n\n\n<p>En gros cela va durer 525 minutes (soit presque 9 heures pour un disque de 3To !!). Pour voir l&rsquo;\u00e9tat d&rsquo;avancement de la commande il faudra taper r\u00e9guli\u00e8rement<\/p>\n\n\n\n<div style=\"height: 250px; position:relative; margin-bottom: 50px;\" class=\"wp-block-simple-code-block-ace\"><pre class=\"wp-block-simple-code-block-ace\" style=\"position:absolute;top:0;right:0;bottom:0;left:0\" data-mode=\"php\" data-theme=\"monokai\" data-fontsize=\"14\" data-lines=\"Infinity\" data-showlines=\"true\" data-copy=\"false\">smartctl -a -d megaraid,7 -a \/dev\/sdb\n<\/pre><\/div>\n\n\n\n<p>on va voir appara\u00eetre (extrait)<\/p>\n\n\n\n<div style=\"height: 250px; position:relative; margin-bottom: 50px;\" class=\"wp-block-simple-code-block-ace\"><pre class=\"wp-block-simple-code-block-ace\" style=\"position:absolute;top:0;right:0;bottom:0;left:0\" data-mode=\"php\" data-theme=\"monokai\" data-fontsize=\"14\" data-lines=\"Infinity\" data-showlines=\"true\" data-copy=\"false\">Self-test execution status:      ( 246)\tSelf-test routine in progress...\n\t\t\t\t\t60% of test remaining.\n<\/pre><\/div>\n\n\n\n<p>ou bien encore dans la m\u00eame commande<\/p>\n\n\n\n<div style=\"height: 250px; position:relative; margin-bottom: 50px;\" class=\"wp-block-simple-code-block-ace\"><pre class=\"wp-block-simple-code-block-ace\" style=\"position:absolute;top:0;right:0;bottom:0;left:0\" data-mode=\"php\" data-theme=\"monokai\" data-fontsize=\"14\" data-lines=\"Infinity\" data-showlines=\"true\" data-copy=\"false\">SMART Self-test log structure revision number 1\nNum  Test_Description    Status                  Remaining  LifeTime(hours)  LBA_of_first_error\n# 1  Extended offline    Self-test routine in progress 90%      6111         -\n<\/pre><\/div>\n\n\n\n<p>Dans le fichier journal syst\u00e8me, on voit \u00e9galement des indications d&rsquo;avancement<\/p>\n\n\n\n<div style=\"height: 250px; position:relative; margin-bottom: 50px;\" class=\"wp-block-simple-code-block-ace\"><pre class=\"wp-block-simple-code-block-ace\" style=\"position:absolute;top:0;right:0;bottom:0;left:0\" data-mode=\"php\" data-theme=\"monokai\" data-fontsize=\"14\" data-lines=\"Infinity\" data-showlines=\"true\" data-copy=\"false\">nov. 21 14:23:04 mana.kervao.fr smartd[6132]: Device: \/dev\/bus\/0 [megaraid_disk_07] [SAT], self-test in progress, 20% remaining\n<\/pre><\/div>\n\n\n\n<p>Dans le cas pr\u00e9sent malgr\u00e9 le fait que le disque soit rejet\u00e9 par le RAID, il n&rsquo;y a pas d&rsquo;erreurs flagrantes et c&rsquo;est bien ennuyeux pour le retour en garantie.<\/p>\n\n\n\n<p>Maintenant voil\u00e0 ce que \u00e7a donne avec un disque qui a plein d&rsquo;erreurs, c&rsquo;est un ancien disque qui \u00e9tait dans mon RAID5.<\/p>\n\n\n\n<div style=\"height: 250px; position:relative; margin-bottom: 50px;\" class=\"wp-block-simple-code-block-ace\"><pre class=\"wp-block-simple-code-block-ace\" style=\"position:absolute;top:0;right:0;bottom:0;left:0\" data-mode=\"php\" data-theme=\"monokai\" data-fontsize=\"14\" data-lines=\"Infinity\" data-showlines=\"true\" data-copy=\"false\">smartctl 7.0 2018-12-30 r4883 [x86_64-linux-5.7.19-desktop-3.mga7] (local build)\nCopyright (C) 2002-18, Bruce Allen, Christian Franke, www.smartmontools.org\n\n=== START OF INFORMATION SECTION ===\nModel Family:     Seagate Barracuda 7200.14 (AF)\nDevice Model:     ST2000DM001-1ER164\nSerial Number:    Z4Z2CEHK\nLU WWN Device Id: 5 000c50 07ac2d868\nFirmware Version: CC25\nUser Capacity:    2\u202f000\u202f398\u202f934\u202f016 bytes [2,00 TB]\nSector Sizes:     512 bytes logical, 4096 bytes physical\nRotation Rate:    7200 rpm\nForm Factor:      3.5 inches\nDevice is:        In smartctl database [for details use: -P show]\nATA Version is:   ACS-2, ACS-3 T13\/2161-D revision 3b\nSATA Version is:  SATA 3.1, 6.0 Gb\/s (current: 6.0 Gb\/s)\nLocal Time is:    Sun Nov 22 19:08:14 2020 CET\nSMART support is: Available - device has SMART capability.\nSMART support is: Enabled\n\n=== START OF READ SMART DATA SECTION ===\nSMART Status not supported: Incomplete response, ATA output registers missing\nSMART overall-health self-assessment test result: PASSED\nWarning: This result is based on an Attribute check.\n\nGeneral SMART Values:\nOffline data collection status:  (0x00)\tOffline data collection activity\n\t\t\t\t\twas never started.\n\t\t\t\t\tAuto Offline Data Collection: Disabled.\nSelf-test execution status:      (   0)\tThe previous self-test routine completed\n\t\t\t\t\twithout error or no self-test has ever \n\t\t\t\t\tbeen run.\nTotal time to complete Offline \ndata collection: \t\t(   80) seconds.\nOffline data collection\ncapabilities: \t\t\t (0x73) SMART execute Offline immediate.\n\t\t\t\t\tAuto Offline data collection on\/off support.\n\t\t\t\t\tSuspend Offline collection upon new\n\t\t\t\t\tcommand.\n\t\t\t\t\tNo Offline surface scan supported.\n\t\t\t\t\tSelf-test supported.\n\t\t\t\t\tConveyance Self-test supported.\n\t\t\t\t\tSelective Self-test supported.\nSMART capabilities:            (0x0003)\tSaves SMART data before entering\n\t\t\t\t\tpower-saving mode.\n\t\t\t\t\tSupports SMART auto save timer.\nError logging capability:        (0x01)\tError logging supported.\n\t\t\t\t\tGeneral Purpose Logging supported.\nShort self-test routine \nrecommended polling time: \t (   1) minutes.\nExtended self-test routine\nrecommended polling time: \t ( 208) minutes.\nConveyance self-test routine\nrecommended polling time: \t (   2) minutes.\nSCT capabilities: \t       (0x1085)\tSCT Status supported.\n\nSMART Attributes Data Structure revision number: 10\nVendor Specific SMART Attributes with Thresholds:\nID# ATTRIBUTE_NAME          FLAG     VALUE WORST THRESH TYPE      UPDATED  WHEN_FAILED RAW_VALUE\n  1 Raw_Read_Error_Rate     0x000f   100   094   006    Pre-fail  Always       -       138697940\n  3 Spin_Up_Time            0x0003   096   096   000    Pre-fail  Always       -       0\n  4 Start_Stop_Count        0x0032   100   100   020    Old_age   Always       -       68\n  5 Reallocated_Sector_Ct   0x0033   100   100   010    Pre-fail  Always       -       0\n  7 Seek_Error_Rate         0x000f   065   060   030    Pre-fail  Always       -       3660043\n  9 Power_On_Hours          0x0032   059   059   000    Old_age   Always       -       36617\n 10 Spin_Retry_Count        0x0013   100   100   097    Pre-fail  Always       -       0\n 12 Power_Cycle_Count       0x0032   100   100   020    Old_age   Always       -       69\n183 Runtime_Bad_Block       0x0032   100   100   000    Old_age   Always       -       0\n184 End-to-End_Error        0x0032   100   100   099    Old_age   Always       -       0\n187 Reported_Uncorrect      0x0032   088   088   000    Old_age   Always       -       12\n188 Command_Timeout         0x0032   100   100   000    Old_age   Always       -       0 0 0\n189 High_Fly_Writes         0x003a   099   099   000    Old_age   Always       -       1\n190 Airflow_Temperature_Cel 0x0022   080   066   045    Old_age   Always       -       20 (Min\/Max 20\/20)\n191 G-Sense_Error_Rate      0x0032   100   100   000    Old_age   Always       -       0\n192 Power-Off_Retract_Count 0x0032   100   100   000    Old_age   Always       -       9\n193 Load_Cycle_Count        0x0032   007   007   000    Old_age   Always       -       187614\n194 Temperature_Celsius     0x0022   020   040   000    Old_age   Always       -       20 (0 7 0 0 0)\n197 Current_Pending_Sector  0x0012   099   099   000    Old_age   Always       -       272\n198 Offline_Uncorrectable   0x0010   099   099   000    Old_age   Offline      -       272\n199 UDMA_CRC_Error_Count    0x003e   200   200   000    Old_age   Always       -       0\n240 Head_Flying_Hours       0x0000   100   253   000    Old_age   Offline      -       20860h+08m+08.480s\n241 Total_LBAs_Written      0x0000   100   253   000    Old_age   Offline      -       2621623756\n242 Total_LBAs_Read         0x0000   100   253   000    Old_age   Offline      -       7556213911\n\nSMART Error Log Version: 1\nATA Error Count: 12 (device log contains only the most recent five errors)\n\tCR = Command Register [HEX]\n\tFR = Features Register [HEX]\n\tSC = Sector Count Register [HEX]\n\tSN = Sector Number Register [HEX]\n\tCL = Cylinder Low Register [HEX]\n\tCH = Cylinder High Register [HEX]\n\tDH = Device\/Head Register [HEX]\n\tDC = Device Command Register [HEX]\n\tER = Error register [HEX]\n\tST = Status register [HEX]\nPowered_Up_Time is measured from power on, and printed as\nDDd+hh:mm:SS.sss where DD=days, hh=hours, mm=minutes,\nSS=sec, and sss=millisec. It \"wraps\" after 49.710 days.\n\nError 12 occurred at disk power-on lifetime: 34776 hours (1449 days + 0 hours)\n  When the command that caused the error occurred, the device was active or idle.\n\n  After command completion occurred, registers were:\n  ER ST SC SN CL CH DH\n  -- -- -- -- -- -- --\n  40 51 00 ff ff ff 0f  Error: UNC at LBA = 0x0fffffff = 268435455\n\n  Commands leading to the command that caused the error were:\n  CR FR SC SN CL CH DH DC   Powered_Up_Time  Command\/Feature_Name\n  -- -- -- -- -- -- -- --  ----------------  --------------------\n  60 00 6e ff ff ff 4f 00  34d+16:52:44.064  READ FPDMA QUEUED\n  2f 00 01 10 00 00 00 00  34d+16:52:44.006  READ LOG EXT\n  60 00 6f ff ff ff 4f 00  34d+16:52:39.564  READ FPDMA QUEUED\n  2f 00 01 10 00 00 00 00  34d+16:52:39.506  READ LOG EXT\n  60 00 70 ff ff ff 4f 00  34d+16:52:35.063  READ FPDMA QUEUED\n\nError 11 occurred at disk power-on lifetime: 34776 hours (1449 days + 0 hours)\n  When the command that caused the error occurred, the device was active or idle.\n\n  After command completion occurred, registers were:\n  ER ST SC SN CL CH DH\n  -- -- -- -- -- -- --\n  40 51 00 ff ff ff 0f  Error: UNC at LBA = 0x0fffffff = 268435455\n\n  Commands leading to the command that caused the error were:\n  CR FR SC SN CL CH DH DC   Powered_Up_Time  Command\/Feature_Name\n  -- -- -- -- -- -- -- --  ----------------  --------------------\n  60 00 6f ff ff ff 4f 00  34d+16:52:39.564  READ FPDMA QUEUED\n  2f 00 01 10 00 00 00 00  34d+16:52:39.506  READ LOG EXT\n  60 00 70 ff ff ff 4f 00  34d+16:52:35.063  READ FPDMA QUEUED\n  2f 00 01 10 00 00 00 00  34d+16:52:35.005  READ LOG EXT\n  60 00 71 ff ff ff 4f 00  34d+16:52:30.563  READ FPDMA QUEUED\n\nError 10 occurred at disk power-on lifetime: 34776 hours (1449 days + 0 hours)\n  When the command that caused the error occurred, the device was active or idle.\n\n  After command completion occurred, registers were:\n  ER ST SC SN CL CH DH\n  -- -- -- -- -- -- --\n  40 51 00 ff ff ff 0f  Error: UNC at LBA = 0x0fffffff = 268435455\n\n  Commands leading to the command that caused the error were:\n  CR FR SC SN CL CH DH DC   Powered_Up_Time  Command\/Feature_Name\n  -- -- -- -- -- -- -- --  ----------------  --------------------\n  60 00 70 ff ff ff 4f 00  34d+16:52:35.063  READ FPDMA QUEUED\n  2f 00 01 10 00 00 00 00  34d+16:52:35.005  READ LOG EXT\n  60 00 71 ff ff ff 4f 00  34d+16:52:30.563  READ FPDMA QUEUED\n  2f 00 01 10 00 00 00 00  34d+16:52:30.505  READ LOG EXT\n  60 00 72 ff ff ff 4f 00  34d+16:52:26.062  READ FPDMA QUEUED\n\nError 9 occurred at disk power-on lifetime: 34776 hours (1449 days + 0 hours)\n  When the command that caused the error occurred, the device was active or idle.\n\n  After command completion occurred, registers were:\n  ER ST SC SN CL CH DH\n  -- -- -- -- -- -- --\n  40 51 00 ff ff ff 0f  Error: UNC at LBA = 0x0fffffff = 268435455\n\n  Commands leading to the command that caused the error were:\n  CR FR SC SN CL CH DH DC   Powered_Up_Time  Command\/Feature_Name\n  -- -- -- -- -- -- -- --  ----------------  --------------------\n  60 00 71 ff ff ff 4f 00  34d+16:52:30.563  READ FPDMA QUEUED\n  2f 00 01 10 00 00 00 00  34d+16:52:30.505  READ LOG EXT\n  60 00 72 ff ff ff 4f 00  34d+16:52:26.062  READ FPDMA QUEUED\n  2f 00 01 10 00 00 00 00  34d+16:52:26.005  READ LOG EXT\n  60 00 73 ff ff ff 4f 00  34d+16:52:21.562  READ FPDMA QUEUED\n\nError 8 occurred at disk power-on lifetime: 34776 hours (1449 days + 0 hours)\n  When the command that caused the error occurred, the device was active or idle.\n\n  After command completion occurred, registers were:\n  ER ST SC SN CL CH DH\n  -- -- -- -- -- -- --\n  40 51 00 ff ff ff 0f  Error: UNC at LBA = 0x0fffffff = 268435455\n\n  Commands leading to the command that caused the error were:\n  CR FR SC SN CL CH DH DC   Powered_Up_Time  Command\/Feature_Name\n  -- -- -- -- -- -- -- --  ----------------  --------------------\n  60 00 72 ff ff ff 4f 00  34d+16:52:26.062  READ FPDMA QUEUED\n  2f 00 01 10 00 00 00 00  34d+16:52:26.005  READ LOG EXT\n  60 00 73 ff ff ff 4f 00  34d+16:52:21.562  READ FPDMA QUEUED\n  2f 00 01 10 00 00 00 00  34d+16:52:21.504  READ LOG EXT\n  60 00 74 ff ff ff 4f 00  34d+16:52:17.061  READ FPDMA QUEUED\n\nSMART Self-test log structure revision number 1\nNo self-tests have been logged.  [To run self-tests, use: smartctl -t]\n\nSMART Selective self-test log data structure revision number 1\n SPAN  MIN_LBA  MAX_LBA  CURRENT_TEST_STATUS\n    1        0        0  Not_testing\n    2        0        0  Not_testing\n    3        0        0  Not_testing\n    4        0        0  Not_testing\n    5        0        0  Not_testing\nSelective self-test flags (0x0):\n  After scanning selected spans, do NOT read-scan remainder of disk.\nIf Selective self-test is pending on power-up, resume after 0 minute delay.<\/pre><\/div>\n\n\n\n<p>R\u00e9sultat des courses je me retrouve avec un RAID5 qui marche sur 3 disques, donc pas terrible et un disque que je consid\u00e8re comme HS, comme quoi SMART n&rsquo;est pas la panac\u00e9e et ne permet pas de statuer de mani\u00e8re fiable sur l&rsquo;\u00e9tat d&rsquo;un disque.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>J&rsquo;ai rencontr\u00e9 quelques soucis avec un disque Seagate IronWolf plac\u00e9 dans mon serveur Dell PowerEdge T310 depuis \u00e0 peine quelques mois dans un RAID5 comme je l&rsquo;\u00e9voque dans ce post. Il est sans cesse rejet\u00e9 par le RAID que je dois reconstruire \u00e0 chaque fois, et \u00e7a prend des heures. Pourtant je n&rsquo;ai pas d&rsquo;erreur &hellip; <a href=\"https:\/\/olivier.hoarau.org\/?p=4873\" class=\"more-link\">Continuer la lecture de <span class=\"screen-reader-text\">V\u00e9rifier l&rsquo;\u00e9tat d&rsquo;un disque dur avec smartmontools<\/span>  <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"ngg_post_thumbnail":0,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_post_was_ever_published":false,"_share_on_mastodon":"0"},"categories":[5],"tags":[83,82],"class_list":["post-4873","post","type-post","status-publish","format-standard","hentry","category-logiciels-libres","tag-disque-dur","tag-smartmontools"],"share_on_mastodon":{"url":"","error":""},"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/peOjJ-1gB","jetpack_likes_enabled":true,"_links":{"self":[{"href":"https:\/\/olivier.hoarau.org\/index.php?rest_route=\/wp\/v2\/posts\/4873","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/olivier.hoarau.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/olivier.hoarau.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/olivier.hoarau.org\/index.php?rest_route=\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/olivier.hoarau.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=4873"}],"version-history":[{"count":2,"href":"https:\/\/olivier.hoarau.org\/index.php?rest_route=\/wp\/v2\/posts\/4873\/revisions"}],"predecessor-version":[{"id":4875,"href":"https:\/\/olivier.hoarau.org\/index.php?rest_route=\/wp\/v2\/posts\/4873\/revisions\/4875"}],"wp:attachment":[{"href":"https:\/\/olivier.hoarau.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4873"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/olivier.hoarau.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=4873"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/olivier.hoarau.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=4873"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}