Replacing disks on Proxmox
# zpool status -v
. In this exemple, we want to replace disk “sdb”
# zpool detach rpool sdb2
, shutdown the Proxmox, replace physically the disk and start the machine
# zpool export the_pool
# zpool import -d /dev/disk/by-id/ the_pool
# zpool status -v
should show the ID of the disks instead of sdX
# sgdisk --replicate=/dev/sdb /dev/sda
# sgdisk -Z /dev/sdb # sgdisk -a1 -n1:34:2047 -t1:EF02 -n9:-8M:0 -t9:BF07 -n2:2048:0 -t2:BF01 -c 2:zfs /dev/sdb
# sgdisk --randomize-guids /dev/sdb The operation has completed successfully.
grub-install /dev/sdb
# zpool attach -f rpool sda2 /dev/sdb2
# zpool status -v