···11+Physically replace the failed drive
22+33+`zpool list -v`
44+The replaced drive should show up by its uuid
55+66+https://pve.proxmox.com/pve-docs/chapter-sysadmin.html#sysadmin_zfs_change_failed_dev
77+88+## Changing a failed device
99+`zpool replace -f <pool> <old-device> <new-device>`
1010+1111+## Changing a failed bootable device
1212+Depending on how Proxmox VE was installed it is either using systemd-boot or GRUB through proxmox-boot-tool or plain GRUB as bootloader (see Host Bootloader).
1313+1414+You can check by running:
1515+`proxmox-boot-tool status`
1616+1717+The first steps of copying the partition table,
1818+```sh
1919+sgdisk <healthy bootable device> -R <new device>
2020+```
2121+reissuing GUIDs
2222+```sh
2323+sgdisk -G <new device>
2424+```
2525+and replacing the ZFS partition are the same.
2626+```sh
2727+zpool replace -f <pool> <old zfs partition> <new zfs partition>
2828+```
2929+3030+> [!NOTE] Disclaimer
3131+> Use the zpool status -v command to monitor how far the resilvering process of the new disk has progressed.
3232+3333+To make the system bootable from the new disk, different steps are needed which depend on the bootloader in use.
3434+3535+### With proxmox-boot-tool:
3636+```sh
3737+proxmox-boot-tool format <new disk's ESP>
3838+proxmox-boot-tool init <new disk's ESP> [grub]
3939+```
4040+> [!NOTE] Disclaimer
4141+> ESP stands for EFI System Partition. By default partition #2 on bootable disks since Proxmox VE version 5.4.
4242+4343+### With plain GRUB:
4444+`grub-install <new disk>`
4545+> [!NOTE] Disclaimer
4646+> Plain GRUB is only used on systems installed with Proxmox VE 6.3 or earlier, which have not been manually migrated to use proxmox-boot-tool yet.