This guid assumes the following /dev/sda is the FAILED disk and /dev/sdb is the HEALTHY disk
Get status of pool by running:
zpool status
Copy partition table from /dev/sdb to /dev/sda by running:
sgdisk /dev/sdb /R /dev/sda
sgdisk -G /dev/sda2
Now we need to actually replace the failed disk but we need to get the ID for the old and new disk
The commands below assume it is parition 3 that was part of the pool
ls -l /dev/disk/by-id
zpool replace rpool /dev/disk/by-id/id_of_failed_disk_part3 /dev/disk/by-ud/id_of_new_disk_part3
To create the boot files on the new disk run the following
The following command assume partition 2 is the EFI boot partition
proxmox-boot-tool format /dev/disk/by-id/id_of_new_disk_part2
proxmox-boot-tool init /dev/disk/by-id/id_of_new_disk_part2