Blog 1: Disk_and_RAID_testing_commands.md | (Open) | (Share)
▲ Previous | Next ▼/Dev/Linux/Server Admin
(Last modified: July 31 2026 15:05:28)Disk and RAID testing commands
List physical disks:
lsblk -d -o NAME,MODEL,SERIAL,SIZE,TRAN
Show full SMART data:
sudo smartctl -a /dev/sda
sudo smartctl -a /dev/sdb
Show only the most relevant SMART values:
sudo smartctl -A /dev/sda | grep -iE 'Power_On_Hours|Power_Cycle|Reallocated|Pending|Uncorrectable|Wear|Host_Writes|Temperature|CRC'
Check overall SMART health:
sudo smartctl -H /dev/sda
sudo smartctl -H /dev/sdb
Run a short self-test:
sudo smartctl -t short /dev/sda
Then view the result after the stated wait time:
sudo smartctl -l selftest /dev/sda
Check RAID status:
cat /proc/mdstat
For RAID 1, [UU] means both disks are active.
Show detailed RAID information:
sudo mdadm --detail /dev/md0
Check configured RAID alert address:
grep -vE '^\s*(#|$)' /etc/mdadm/mdadm.conf
Send a harmless test alert:
sudo mdadm --monitor --scan --test --oneshotBlog 2: YouCut_20260330_110709853.mp4 | (Open) | (Share)
▲ Previous