Smart: Difference between revisions

From DWIKI
mNo edit summary
mNo edit summary
Line 2: Line 2:
= Disk monitoring =
= Disk monitoring =


 
= Links =
== Links ==


*[https://www.smartmontools.org/wiki/ Smartmontools wiki]  
*[https://www.smartmontools.org/wiki/ Smartmontools wiki]  
*[https://en.wikipedia.org/wiki/S.M.A.R.T. Wikipedia article]
*[https://en.wikipedia.org/wiki/S.M.A.R.T. Wikipedia article]  
*[https://wiki.unraid.net/Understanding_SMART_Reports Understanding SMART reports]  
*[https://wiki.unraid.net/Understanding_SMART_Reports Understanding SMART reports]  
*[https://www.thomas-krenn.com/en/wiki/SMART_tests_with_smartctl https://www.thomas-krenn.com/en/wiki/SMART_tests_with_smartctl]  
*[https://www.thomas-krenn.com/en/wiki/SMART_tests_with_smartctl https://www.thomas-krenn.com/en/wiki/SMART_tests_with_smartctl]  
*[https://www.thomas-krenn.com/en/wiki/Smartmontools_with_MegaRAID_Controller Smartmontools with megaraid]  
*[https://www.thomas-krenn.com/en/wiki/Smartmontools_with_MegaRAID_Controller Smartmontools with megaraid]  
*[https://wiki.archlinux.org/index.php/S.M.A.R.T https://wiki.archlinux.org/index.php/S.M.A.R.T].
*[https://wiki.archlinux.org/index.php/S.M.A.R.T https://wiki.archlinux.org/index.php/S.M.A.R.T].  


*[https://www.backblaze.com/blog/hard-drive-smart-stats/ Smart hard drive stats]
= Tools =
= Tools =


Line 17: Line 17:
*gsmartcontrol  
*gsmartcontrol  


 
 


= Useful commands =
= Useful commands =
Line 35: Line 35:
  smartctl -l error /dev/sdb
  smartctl -l error /dev/sdb
        
        
== Device: /dev/bus/0 [megaraid_disk_09] [SAT] ==
== Device: /dev/bus/0 [megaraid_disk_09] [SAT] ==
Try
Try
  smartctl --scan
  smartctl --scan


 


 
 
 


= Some codes and messages =
= Some codes and messages =
Line 82: Line 85:


Amount of data written so far
Amount of data written so far
     
 
=== smartd: Failed SMART usage Attribute ===
=== smartd: Failed SMART usage Attribute ===
Might be yelling about a disk that's already been replaced, try restarting smartd
Might be yelling about a disk that's already been replaced, try restarting smartd

Revision as of 16:16, 11 March 2021

Disk monitoring

Links

Tools

  • smartctl
  • gsmartcontrol

 

Useful commands

enable smart

smartctl -i /dev/sda

check smart status

smartctl -a /dev/sda

 

check error log

smartctl -l error /dev/sdb
      

Device: /dev/bus/0 [megaraid_disk_09] [SAT]

Try

smartctl --scan

 

 

Some codes and messages

LBA_of_first_error

 

Device is: Not in smartctl database [for details use: -P showall]

Try

/usr/sbin/update-smart-drivedb

otherwise check out https://www.smartmontools.org/wiki/FAQ#MyATASATAdriveisnotinthesmartctlsmartddatabase

Uncorrectable Sector Count

Check https://medium.com/@satyeshukumar/how-to-fix-uncorrectable-sector-count-warning-5a38c56d3faf

198 Offline Uncorrectable

bad sign, on ssd mostly/only when number gets high

 

SSD specific

231 SSD_Life_Left

Percentage of life left

 

241 Lifetime_Writes_GiB

Amount of data written so far

smartd: Failed SMART usage Attribute

Might be yelling about a disk that's already been replaced, try restarting smartd