CentOS 7.x smartcl

From Notes_Wiki
Revision as of 05:42, 26 September 2019 by Saurabh (talk | contribs) (Created page with "<yambe:breadcrumb>CentOS_7.x_system_administration|system administration</yambe:breadcrumb> =CentOS 7.x smartctl= Process for using smartctl is covered at Drive related inf...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

<yambe:breadcrumb>CentOS_7.x_system_administration|system administration</yambe:breadcrumb>

CentOS 7.x 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.