Problem with replaced rpool

Nov 25, 2023
63
2
8
Germany
Hi, I have replaced both of my rpool disk (mirror) with the same disks.

I have done this steps:
# sgdisk <healthy bootable device> -R <new device>
# sgdisk -G <new device>
# zpool replace -f <pool> <old zfs partition> <new zfs partition>

But after that I forgot the next steps:
With proxmox-boot-tool:
# proxmox-boot-tool format <new disk's ESP>
# proxmox-boot-tool init <new disk's ESP>

I wiped the old disk and rebooted the machine, and yeah ofc proxmox isn’t booting anymore.
Is there a way how I can still fix it, or I need to reinstall proxmox?
 
Try https://docs.zfsbootmenu.org/en/v3.0.x/
https://docs.zfsbootmenu.org/en/v3.0.x/general/portable.html

You could also try booting the PVE ISO in Recovery mode, altho you'll have to research this.

If all else fails, create a "portable pve" on e.g. SDcard or external ssd, with ext4 rootfs and no lvm-thin, and try importing the rpool and chroot to do the proxmox-boot-tool step.

Personally I'm interested to see how this plays out

> I wiped the old disk and rebooted the machine, and yeah ofc proxmox isn’t booting anymore.

Also, lesson learned - DON'T wipe the old media until you're sure the new setup is working(!)
If you do a zpool replace rather than a zpool detach, it doesn't guarantee the old media will still be in a usable state.

You didn't mention if you had backups, but regardless I would recommend setting up proxmox backup server on separate hardware so you can take advantage of dedup.
 
Last edited: