ZSF RAID1 for backups?

HeartHeat

New Member
Aug 13, 2024
8
1
3
Hi,

I created an ZFS pool RAID1 with 2 HDDs, but can't use it as backup storage.
What can be done to use this for backups of VMs?

Thx.
 
Create a dataset, then go to Datacenter > Storage and create a Directory storage. Give it the path to the dataset and select content type Backup.
You don't necessarily need a separate dataset but I'd recommend it. Also think about using a PBS guest and giving it a virtual disk from that storage.
 
Do you want to create a new directory storage or do you want to create a filesystem on the ZFS pool and use that as a directory storage?
I just want to store my backups on the ZFS RAID. I don't have a favourite on how it can be achieved.
 
I just want to store my backups on the ZFS RAID. I don't have a favourite on how it can be achieved.
Create a filesystem/subvol on the ZFS pool (by following a guide on ZFS and you'll learn a bit about ZFS too).
Then add a directory storage and uses that filesystem/subvol (using /dev/zvol/YOUR_ZFS_POOL/directory) as the Directory and don't forget to select Backup in the Content field.

EDIT: There is an example of creating a filesystem on ZFS on the Wiki: https://pve.proxmox.com/wiki/Storage:_ZFS
 
Last edited:
Create a filesystem/subvol on the ZFS pool (by following a guide on ZFS and you'll learn a bit about ZFS too).
Then add a directory storage and uses that filesystem/subvol (using /dev/zvol/YOUR_ZFS_POOL/directory) as the Directory and don't forget to select Backup in the Content field.

EDIT: There is an example of creating a filesystem on ZFS on the Wiki: https://pve.proxmox.com/wiki/Storage:_ZFS
So it is not possible to do via Proxmox GUI? :(
 
No, see my post above, but why would needing to run a single command via the CLI be a problem? You only need the CLI if you want to create a separate dataset for the backups (which I recommend). You can just use the root dataset's path if you really want to. The GUI has a Shell too so...
 
Last edited:
  • Like
Reactions: Johannes S
An alternative would be to add the zpool as a storage in PVE and install an LX(C) container on it and there PBS inside to have a proper PBS backup server on your host. IMHO superior in any way than just vzdumping and you can offload/sync the backups to other remote PBSs or nowadays even S3.
 
  • Like
Reactions: Johannes S
  • Like
Reactions: Johannes S