ZFS replication on 2 proxmox nodes

redhanded29

New Member
Feb 15, 2025
4
0
1
Hi,

Apologies I'm a newbie and if this has been answered on other threads but just want to make sure this will work before I buy these expensive SSDs..

I have a proxmox cluster who i have a boot drive/proxmox OS then i have a separate drive for zfs comprised of 2 pieces x 4tb SSDs in mirror (4tb x 2) on zfs "tank"

If i have another proxmox cluster and have a separate drive for proxmox OS, then I create a zfs pool but with 4 pieces x 2tb (SSD).. 2tb x 2 = 4 tb then mirror will ZFS replication work? or this is not recommended and i need to buy 2 pieces x 4tb SSDs in mirror (4tb x 2)?

Also in the future, if i need more storage am i able to add more disks on the zfs pool or i need to create a new pool?

Thank you Proxmox Guru's in advance,

Regards,
Redhanded
 
Hi,

Apologies I'm a newbie and if this has been answered on other threads but just want to make sure this will work before I buy these expensive SSDs..

I have a proxmox cluster who i have a boot drive/proxmox OS then i have a separate drive for zfs comprised of 2 pieces x 4tb SSDs in mirror (4tb x 2) on zfs "tank"

If i have another proxmox cluster and have a separate drive for proxmox OS, then I create a zfs pool but with 4 pieces x 2tb (SSD).. 2tb x 2 = 4 tb then mirror will ZFS replication work? or this is not recommended and i need to buy 2 pieces x 4tb SSDs in mirror (4tb x 2)?

For replication inside the cluster you just need zfs storages with the same Name. E.g. on node1 and node2 the storage must be Namen local-zfs or vmpool. The Pools Layout is not relevant. Storage replication between different clusters is not possible at the moment but pve-zsync can be used to achieve something simmiliar:

https://pve.proxmox.com/wiki/Storage_Replication

https://pve.proxmox.com/wiki/PVE-zsync

For remote-migration between clusters ( via commandline or Proxmox datacenter Manager) zfs is NOT required.

Also in the future, if i need more storage am i able to add more disks on the zfs pool or i need to create a new pool?

You can add more disks to the existing Pools see https://pve.proxmox.com/wiki/ZFS_on_Linux
 
  • Like
Reactions: fba and UdoB
Hi Johannes,

Thank you yes it would be on the same cluster (sorry for noting another cluster) it is pve1 and pve2 on the same cluster, your response confirms I can do different layout of drives i.e. 4 x 2tb SSD then zfs replication will still work.. reason im preferring more drives than 2 x 4TB drive, as 4TB is quite expensive if it breaks down, if i shrunk it to 4 x 2TB pieces its cheaper to replace 2tb drive than 4TB.. Yes I will be using the same name for both pve1 and pve2 which will be on the same cluster..

Thank you for your help,

Regards,
Redhanded