CentOS 7.x smartcl

From Notes_Wiki
Revision as of 06:28, 25 August 2022 by Saurabh (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Home > CentOS > CentOS 7.x > System Administration > Smartctl

Process for using smartctl is covered at Drive related information. Basically for long selftest use:

smartctl -t long <device_name>

Later status of test can be checked using:

smartctl -l selftest <device_name>

However as discussed at https://superuser.com/questions/766943/smart-test-never-finishes if drive is running into sleep issues and test is not finishing then use:

while true; do smartctl -a /dev/sda ; smartctl -a /dev/sdc; sleep 60; done > /dev/null &

If even after using above full test is not finishing with messages such "Interrupted (host reset)" or "Aborted by host" etc.. Then it might be issue with disk and it is likely that it will fail soon.



Home > CentOS > CentOS 7.x > System Administration > Smartctl