A simple way to manage zfs snapshot replication between Proxmox and Proxmox Backup Server using trueness

bigbabyjesus

New Member
Sep 5, 2023
4
1
3
I have two servers, one running Proxmox VE, and another running Proxmox Backup Server
Both are built on ZFS with ZFS storage housing their datastores.

On the Proxmox side there are few ZFS datasets housing mass storage ( files, not virtual machines)
The Proxmox server also houses virtual machines via an NVME ZFS pool.


The virtual machines access the mass storage over the internal Proxmox network using CIFS and NFS
The Proxmox backup server backs up the virtual machines, but doesn't have a simple native way to do things like scheduled snapshots or snapshot replication of the mass storage/

In order to manage that I created a Truenas VM with no storage pools associated with it.

I generated credentials for the PMX and PBS server, and with that I scheduled regular snapshots on the FS and snapshot replication between the two systems.

It was easy to setup and works better than I expected it to.

This allows the running vms to have access to multiple versions of the shared FS in windows and should something happen to the Proxmox server itself, the mass storage is available via replicated snapshots on the backup server.

I just figured I would share this for anyone looking to achieve something similar.
 
  • Like
Reactions: trancekat
I have two servers, one running Proxmox VE, and another running Proxmox Backup Server
Both are built on ZFS with ZFS storage housing their datastores.

On the Proxmox side there are few ZFS datasets housing mass storage ( files, not virtual machines)
The Proxmox server also houses virtual machines via an NVME ZFS pool.


The virtual machines access the mass storage over the internal Proxmox network using CIFS and NFS
The Proxmox backup server backs up the virtual machines, but doesn't have a simple native way to do things like scheduled snapshots or snapshot replication of the mass storage/

In order to manage that I created a Truenas VM with no storage pools associated with it.

I generated credentials for the PMX and PBS server, and with that I scheduled regular snapshots on the FS and snapshot replication between the two systems.

It was easy to setup and works better than I expected it to.

This allows the running vms to have access to multiple versions of the shared FS in windows and should something happen to the Proxmox server itself, the mass storage is available via replicated snapshots on the backup server.

I just figured I would share this for anyone looking to achieve something similar.
Hi.

TL;DR - would you tease please provide more detail on your set up? How is TrueNAS set up? Hiw is it managing your zpool on PVE? CANn this set up work for 2x PVE?

Thank you! I have this problem. Can you expand on how you set this up in more detail? Could this be used with 2 PVE servers instead of PVE and PBS?

I migrated from VMware ESXi where I had a TrueNAS VM. I migrated to PVE and carried over the TrueNAS VM sharing out NFS from the 60tb zfs2 pool with 5 datasets. I'd like to have PVE manage my zfs pool but still want snapshots and zfs replication of the data, not just the LXCs I run in PVE.
 
I am also interested in how you accomplish this without adding the volume as a mount point in the truenas vm. I'm assuming the credentials you are setting up are in truenas for the ssh keys.
 
Last edited: