From rpool ZFS Single disk to rpool zfs-mirror.

Snapperud

New Member
Jul 5, 2023
2
1
3
Hi, my setup is like this:
My rpool is one 128 GB singel disk zfs
I have 2 new SSD disks of 250 GB on its way..
My wish is to replace the old disk of 128 with the 2 new ones and run zfs-mirroring on rpool, without having to reinstall PVE.
I like some advice with commands and the order for the commands.
Thanks in advance
 
See "Changing a failed bootable device":
https://pve.proxmox.com/wiki/ZFS_on_Linux#_zfs_administration

But instead of the "zpool replace" you add the first new disk via "zpool attach".
Once that is done and your mirror is working you could do the same again but this time using "zpool replace" to replace the 128GB disk with the second new one. Then a "zpool online -e" so the mirror will use the full 250GB.

PS: Have recent backups of all guests, /etc and /var/lib/vz as a human error might wipe your disks.
 
Last edited: