Disk upgrade zfs

Bobbbb

Well-Known Member
Jul 13, 2018
78
1
48
29
Hi everyone, sorry , this has been asked many time, but I am still not sure.

I am running proxmox with a single hard drive (just homelab...) and it's time to upgrade that drive.
I would assume the easiest way would be to connect the new drive via usb and just zfs send the root and everything else?
is there a step by step for this somewhere?

I suppose I can also reinstall proxmox and restore everything from the NAS.
Also , maybe a stupid idea but if it'll work I don't mind testing this....

Create a MIRRORED iscsi with my nas, and then replacing the drives.
 
You could clone the partition layout, sync the bootloader and use "zpool attach" to turn that single disk vdev into a mirror vdev and later remove the old disk. But you then also would need to edit the partitions and use "zpool online -e" to grow the pool in case your new disk is bigger and you don't want to waste space. If you didn't changed the PVE node configs alot, it might be easier/cleaner to just reinstall PVE and then restore the guests.
 
Last edited:
  • Like
Reactions: Kingneutron