Prerequisites
Before checking hardware errors, make sure you have:
- SSH access to your VPS
- Root or sudo privileges
Method 1: Check Kernel Ring Buffer (dmesg)
Connect to your VPS:
ssh hxroot@YOUR_SERVER_IP -p 22
dmesg | grep -i error
dmesg | grep -i fail
dmesg | grep -i hardware
Method 2: Check System Logs
sudo journalctl -p 3 -xb
Shows priority 3 (error) messages.
sudo grep -i "hardware error" /var/log/syslog
Method 3: Check MCE (Machine Check Exceptions)
sudo mcelog --client
If mcelog is installed and hardware supports it.
Method 4: Check Disk Health (SMART)
For physical disks (may not work on VPS):
sudo apt install smartmontools -y
sudo smartctl -a /dev/vda
Method 5: Check Memory Errors
sudo grep -i "memory error" /var/log/syslog
Method 6: Check CPU Errors
sudo grep -i "cpu error" /var/log/kern.log
Method 7: Check for PCIe Errors
sudo lspci -vvv | grep -i error
Automated Hardware Error Reporting
Install and configure edac-utils for ECC memory:
sudo apt install edac-utils -y
sudo edac-util -v
✅ Hardware error check completed. Any issues would be displayed above.