How do you monitor disk health on bare metal?
IntermediateProductionDisk, Capacity & Backups
Answer
sudo smartctl -H /dev/sda # overall health
sudo smartctl -a /dev/sda # reallocated/pending sectors, CRC errors
sudo nvme smart-log /dev/nvme0 # percentage_used, media_errors
cat /proc/mdstat # RAID state
Run smartd for continuous monitoring with email/alerts, export metrics (smartctl_exporter), and watch dmesg for I/O errors. Rising reallocated or pending sectors mean replace the disk proactively.
More on Disk, Capacity & Backups
How do you lay out filesystems on a production server?IntermediateHow do you do capacity planning for disk?IntermediateWhat disk usage alert thresholds do you use?BeginnerA disk is 100% full in production. What do you do first?BeginnerHow do you clean up disk space safely on Docker hosts?IntermediateWhat is the 3-2-1 backup rule?Beginner