when we run the smartctl -a on disk we get a lot of output
what is the final status that indicates that disk is bad or good?
smartctl -a /dev/sdb smartctl 6.2 2013-07-26 r3841 [x86_64-linux-3.10.0-327.el7.x86_64] (local build) Copyright (C) 2002-13, Bruce Allen, Christian Franke, www.smartmontools.org === START OF INFORMATION SECTION === Vendor: SEAGATE Product: ST2000NX0433 Revision: NS02 User Capacity: 2,000,398,934,016 bytes [2.00 TB] Logical block size: 512 bytes Formatted with type 2 protection Logical block provisioning type unreported, LBPME=0, LBPRZ=0 Rotation Rate: 7200 rpm Form Factor: 2.5 inches Logical Unit id: 0x5000c5009eaededf Serial number: W46064KW Device type: disk Transport protocol: SAS Local Time is: Thu Nov 22 10:38:35 2018 UTC SMART support is: Available - device has SMART capability. SMART support is: Enabled Temperature Warning: Disabled or Not Supported === START OF READ SMART DATA SECTION === SMART Health Status: OK Current Drive Temperature: 23 C Drive Trip Temperature: 60 C Manufactured in week 06 of year 2017 Specified cycle count over device lifetime: 10000 Accumulated start-stop cycles: 49 Specified load-unload count over device lifetime: 300000 Accumulated load-unload cycles: 550 Elements in grown defect list: 0 Vendor (Seagate) cache information Blocks sent to initiator = 1986603075 Blocks received from initiator = 2165723528 Blocks read from cache and sent to initiator = 1298028358 Number of read and write commands whose size <= segment size = 201615101 Number of read and write commands whose size > segment size = 0 Vendor (Seagate/Hitachi) factory information number of hours powered up = 12335.38 number of minutes until next internal SMART test = 26 Error counter log: Errors Corrected by Total Correction Gigabytes Total ECC rereads/ errors algorithm processed uncorrected fast | delayed rewrites corrected invocations [10^9 bytes] errors read: 26648753 0 0 26648753 0 83475.092 0 write: 0 0 2 2 2 135145.593 0 verify: 3914513941 0 0 3914513941 0 109628.879 0 Non-medium error count: 14 SMART Self-test log Num Test Status segment LifeTime LBA_first_err [SK ASC ASQ] Description number (hours) # 1 Background short Completed 96 2 - [- - -] Long (extended) Self Test duration: 20400 seconds [340.0 minutes]
dose the following are good indication ?
smartctl -a /dev/sda | grep Completed
smartctl -a /dev/sda echo $?