Proxmox Container and VM configuration files on ZFS

macamba

Renowned Member
Mar 8, 2011
96
5
73
When I setup my new server:
- I installed Proxmox VE on a fast SSD disk (default partitioning, probably ext4)
- And for ISO's, vm disks, and container disks, and data I created ZFS pool of HDD disks and datasets on the same server.

But how can I put my configuration files, i.e. vm and container configuration also on a ZFS datasetl?

So that in case of a re-install of the host I have all configurations still existing and easily reloaded in the fresh install?
 
hi,

if you want to have your configurations backed up you can just backup the /etc/pve/ directory or the /var/lib/pve-cluster/config.db (which is the backing database file of the cluster filesystem on /etc/pve/)

if you reinstall you can easily restore the configuration files from that backup.
 
Thanks Oguz, backup is indeed also a solution. Based on you answer I assume there is no solution to place or redirect /etc/pve and /var/lib/pve-cluster/config.db to a location on the ZFS storage?
 
Thanks Oguz, backup is indeed also a solution. Based on you answer I assume there is no solution to place or redirect /etc/pve and /var/lib/pve-cluster/config.db to a location on the ZFS storage?

you could, but there's really no reason to do it as it won't bring you anything substantial in terms of performance or backup-ability.
in fact, the storage setup (where your zfs storages are listed) is done in /etc/pve/storage.cfg, so moving this file into the ZFS dataset would probably break your system. (besides the million other issues this would cause on your system, as /etc/pve is a fuse filesystem backed by the config.db sqlite)
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!