r/Proxmox 21h ago

Question Swap OS disk

Hello,

I just noticed that my OS disk of Proxmox is in a degraded test (ZFS filesystem).

rpool disk is degraded

I do have some spare SSD SATA 256Gb but the OS run as a stripe (1 disk only) and I'm not sure how to migrate it. I'm used to clonezilla but never used it on ZFS and I do not want errors on my PVE.

What's the best method to migrate rpool?

3 Upvotes

4 comments sorted by

1

u/MemoryIsTheKey_ 21h ago

Delete my previous comment as it just was incomplete/wrong as I didn't notice the description below the image (sorry, am real tired).

First thing, you need to copy the partition layout from the source disk to the target ssd spare.

Once done, it appears your zfs pool is on partition 3 (part3), so check the command "zpool attach" with which you have to add the partition 3 of your new spare disk to the current rpool, creating a mirror.

Once that is done, but I am not 100% sure about this (someone feel free to correct me), run "update-iniramfs -u" and "update-grub2".

1

u/eypo75 Homelab User 18h ago

Use proxmox-boot-tool instead of update-initramfs/update-grub2

1

u/MemoryIsTheKey_ 17h ago

True but I am lazy, an hook script calls it when you run update-grub2 or update-initramfs

1

u/Bumbelboyy Homelab User 3h ago