Error on VM snapshot, can you tweak the --exclude param of the rsync?

luison

Renowned Member
Feb 22, 2010
160
6
83
Spain
elsurexiste.com
We now suddenly have a constant issue with the snapshot of one of the VMs we are running (PVE 1.9) which reports an error by email:

Code:
command 'rsync --stats -x --numeric-ids --sparse -aH --delete  --no-whole-file '/var/lib/vz/private/212/'  '/var/lib/vz/dumps/vzdump-openvz-212-2011_10_06-16_55_06.tmp'' failed  with exit code 23

We are not 100% certain but we believe the issue might have caused a server freeze while it was running. The machine reporting the problem includes an installation of Splunk which installs itself on /opt/splunk/ and has some running files below as /var/run/...

The machine snapshot log shows many lines as:
Code:
Oct 06 16:59:55 INFO: file has vanished: "/var/lib/vz/private/212/opt/splunk/var/lib/splunk/defaultdb/db/hot_v1_127/1317913435-131791$
Oct 06 17:02:00 INFO: rsync: link_stat "/var/lib/vz/private/212/opt/splunk/var/run/splunk/dispatch/scheduler__nobody__SplunkDeploymen..
.

Although the process seems to finish succesfully.

On the other hand, we have just added an LVM partition of the host machine to a KVM machine running windows. We thought that this kind of mounts like with bind mounts on VZ containers were not included in the snapshots but have now realized they do:

Code:
Oct 07 16:41:47 INFO: adding '/dev/qdisk/xp-disk' to archive ('vm-disk-ide3.raw')

I am wondering in both cases if there is anyway to manually add a list of "-exclude" patterns to the rsync that creates machine snapshots to avoid both cases?