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

mailinglists

Active Member
Mar 14, 2012
423
36
28
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?
 

wolfgang

Proxmox Staff Member
Staff member
Oct 1, 2014
4,763
316
83
Hi,

as you noticed /etc/pve is a fuse mound of a sqlite db locaded under /var/lib/pve-cluster/config.db
 

LnxBil

Well-Known Member
Feb 21, 2015
4,095
388
83
Germany
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 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 your own in 60 seconds.

Buy now!