smartctl linux check disk: 5-Minute Health Test

smartctl linux check disk - custom-smartchk53-featured.png

smartctl linux check disk and smartctl linux drive top impressions — run this test on every new drive and before Ceph OSD expansion. More: command reference, full walkthrough.

Device

lsblk — confirm right disk.

bashlist
lsblk -o NAME,SIZE,TYPE,MODEL
lsblk
device

Health

smartctl -H must be PASSED.

bashhealth
sudo smartctl -H /dev/sdX
-H
health

Attributes

Watch Reallocated, Pending, Wear for SSDs.

bashattrs
sudo smartctl -A /dev/sdX | egrep 'Realloc|Pending|Wear|Critical'
-A
attrs

Short test

Schedule in maintenance window.

bashtest
sudo smartctl -t short /dev/sdX
sleep 120
sudo smartctl -l selftest /dev/sdX
short
selftest

Quick Reference

Related tutorials

Diagrams are original illustrations by Gnome IT Solutions. Tutorial text © Gnome IT Solutions.