Caktus Proxmox Server
Replacing a bad hard drive
This server has 4 bays, only 3 active disks. You can use the spare to load a new drive before removing the old one.
- Install the new drive.
- SSH to the server:
ssh root@172.20.1.40
- To identify the new disk (e.g.,
/dev/sdd
), rundmesg
and look for the "Attached scsi generic" message.lsblk
(list block devices) will also provide useful summary information. - Run a short smartctl test on the device:
Look for the test results in a couple minutes with:
smartctl -t short /dev/sdd
smartctl -a /dev/sdd
- Identify the disk to be replaced (e.g., from the serial number in emails from Proxmox)
- Follow the instructions in the Proxmox Admin Guide for Changing a failed bootable drive, for example:
sgdisk /dev/sda -R /dev/sdd sgdisk -G /dev/sdd
- Identify the new partition to add to the pool:
ls -l /dev/disk/by-id/|grep sdd
- Replace the disk:
zpool replace -f rpool /dev/disk/by-id/ata-WDC_WD2003FYYS-02W0B0_WD-WMAY00155507-part3 /dev/disk/by-id/ata-WDC_WD30EFAX-68JH4N1_WD-WXB2DA19JT8Z-part3
- Identify the serial number of the disk to be removed (
WMAY00155507
in the above example), and remove it from the server. Serial numbers are visible through the drive cage on the front of the server.
Last update:
2024-11-18