/etc/pve/* not really on ZFS filesystem?

mailinglists

Renowned Member
Mar 14, 2012
641
67
93
Hi,

am I backing up via ZFS send pve root (rpool/ROOT/pve-1).
It works fine, so I mount it via zfs mount on target node and it mounts.
I can see pretty much every file, except for /etc/pve/*
Seems like /etc/pve/* - the PM configuration is some sort of overlay over the actual filesystem and it will not get replicated with ZFS. I can observe fuse mount:
Code:
/dev/fuse on /etc/pve type fuse (rw,nosuid,nodev,relatime,user_id=0,group_id=0,default_permissions,allow_other)
So in order to get the data backed up (VM config files, etc) I must manually save that to one of the replicated ZFS datasetsc (eg. tar czvpf /root/pve.conf.tar.gz /etc/pve or cp -ra /etc/pve /root/), or is there somewhere a local copy already, that got transferred, which I can access from the backup side?
 
Hi,

as you noticed /etc/pve is a fuse mound of a sqlite db locaded under /var/lib/pve-cluster/config.db
 
So in order to get the data backed up (VM config files, etc) I must manually save that to one of the replicated ZFS datasetsc (eg. tar czvpf /root/pve.conf.tar.gz /etc/pve or cp -ra /etc/pve /root/), or is there somewhere a local copy already, that got transferred, which I can access from the backup side?

It is backed up as @wolfgang already pointed out, but it is not as easy to access (you need to have sqlite bin and know the table layout, create SQL queries and such). I normally use a cron-job that rsync the contents of /etc/pve/ to a zfs filesystem and snapshots it for easier access to the data in case of a restore.
 
  • Like
Reactions: mailinglists

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!