OpenVZ container backup using snapshot method always have error

ilovecloud

Active Member
May 10, 2013
9
0
41
When trying to backup an OpenVZ container using SNAPSHOT method, I always encounter a bunch of errors (see log below).
But using STOP mode works great.
And I read somewhere that snapshot only works with LVM2 type storage?
All our containers are on 'directory' type of storage.

I just want to make sure that is the problem, before I go change many nodes to LVM2.

Can somebody help confirm this?

Thank you!

Code:
[COLOR=#000000][FONT=tahoma]INFO: starting new backup job: vzdump 110 --remove 0 --mode snapshot --compress gzip --storage nasa1 --node a4[/FONT][/COLOR]
[COLOR=#000000][FONT=tahoma]INFO: Starting Backup of VM 110 (openvz)[/FONT][/COLOR]
[COLOR=#000000][FONT=tahoma]INFO: CTID 110 exist mounted running[/FONT][/COLOR]
[COLOR=#000000][FONT=tahoma]INFO: status = running[/FONT][/COLOR]
[COLOR=#000000][FONT=tahoma]INFO: mode failure - unable to detect lvm volume group[/FONT][/COLOR]
[COLOR=#000000][FONT=tahoma]INFO: trying 'suspend' mode instead[/FONT][/COLOR]
[COLOR=#000000][FONT=tahoma]INFO: backup mode: suspend[/FONT][/COLOR]
[COLOR=#000000][FONT=tahoma]INFO: ionice priority: 7[/FONT][/COLOR]
[COLOR=#000000][FONT=tahoma]INFO: starting first sync /mnt/md0/private/110/ to /mnt/pve/nasa1/dump/vzdump-openvz-110-2013_05_09-19_33_50.tmp[/FONT][/COLOR]
[COLOR=#000000][FONT=tahoma]INFO: rsync: chown "/mnt/pve/nasa1/dump/vzdump-openvz-110-2013_05_09-19_33_50.tmp/." failed: Operation not permitted (1)[/FONT][/COLOR]
[COLOR=#000000][FONT=tahoma]INFO: rsync: chown "/mnt/pve/nasa1/dump/vzdump-openvz-110-2013_05_09-19_33_50.tmp/bin" failed: Operation not permitted (1)[/FONT][/COLOR]
[COLOR=#000000][FONT=tahoma]INFO: rsync: chown "/mnt/pve/nasa1/dump/vzdump-openvz-110-2013_05_09-19_33_50.tmp/bin/bzcmp" failed: Operation not permitted (1)[/FONT][/COLOR]
[COLOR=#000000][FONT=tahoma]INFO: rsync: chown "/mnt/pve/nasa1/dump/vzdump-openvz-110-2013_05_09-19_33_50.tmp/bin/bzegrep" failed: Operation not permitted (1)[/FONT][/COLOR]
[COLOR=#000000][FONT=tahoma]INFO: rsync: chown "/mnt/pve/nasa1/dump/vzdump-openvz-110-2013_05_09-19_33_50.tmp/bin/bzfgrep" failed: Operation not permitted (1)[/FONT][/COLOR]
[COLOR=#000000][FONT=tahoma]INFO: rsync: chown "/mnt/pve/nasa1/dump/vzdump-openvz-110-2013_05_09-19_33_50.tmp/bin/bzless" failed: Operation not permitted (1)[/FONT][/COLOR]
[COLOR=#000000][FONT=tahoma]INFO: rsync: chown "/mnt/pve/nasa1/dump/vzdump-openvz-110-2013_05_09-19_33_50.tmp/bin/csh" failed: Operation not permitted (1)[/FONT][/COLOR]
[COLOR=#000000][FONT=tahoma]INFO: rsync: chown "/mnt/pve/nasa1/dump/vzdump-openvz-110-2013_05_09-19_33_50.tmp/bin/lessfile" failed: Operation not permitted (1)
[/FONT][/COLOR].
.
.
[COLOR=#000000][FONT=tahoma]INFO: rsync: chown "/mnt/pve/nasa1/dump/vzdump-openvz-110-2013_05_09-19_33_50.tmp/var/spool/postfix/usr/lib/zoneinfo/localtime" failed: Operation not permitted (1)[/FONT][/COLOR]
[COLOR=#000000][FONT=tahoma]INFO: rsync: chown "/mnt/pve/nasa1/dump/vzdump-openvz-110-2013_05_09-19_33_50.tmp/var/spool/samba" failed: Operation not permitted (1)[/FONT][/COLOR]
[COLOR=#000000][FONT=tahoma]INFO: rsync: chown "/mnt/pve/nasa1/dump/vzdump-openvz-110-2013_05_09-19_33_50.tmp/var/tmp" failed: Operation not permitted (1)[/FONT][/COLOR]
[COLOR=#000000][FONT=tahoma]INFO: rsync: chown "/mnt/pve/nasa1/dump/vzdump-openvz-110-2013_05_09-19_33_50.tmp/var/www" failed: Operation not permitted (1)[/FONT][/COLOR]
[COLOR=#000000][FONT=tahoma]INFO: rsync: chown "/mnt/pve/nasa1/dump/vzdump-openvz-110-2013_05_09-19_33_50.tmp/var/spool/postfix/pid/unix.smtp" failed: Operation not permitted (1)[/FONT][/COLOR]
[COLOR=#000000][FONT=tahoma]INFO: rsync: chown "/mnt/pve/nasa1/dump/vzdump-openvz-110-2013_05_09-19_33_50.tmp/var/www/index.html" failed: Operation not permitted (1)[/FONT][/COLOR]
[COLOR=#000000][FONT=tahoma]INFO: Number of files: 60739[/FONT][/COLOR]
[COLOR=#000000][FONT=tahoma]INFO: Number of files transferred: 48930[/FONT][/COLOR]
[COLOR=#000000][FONT=tahoma]INFO: Total file size: 5548046379 bytes[/FONT][/COLOR]
[COLOR=#000000][FONT=tahoma]INFO: Total transferred file size: 5546184870 bytes[/FONT][/COLOR]
[COLOR=#000000][FONT=tahoma]INFO: Literal data: 5546212438 bytes[/FONT][/COLOR]
[COLOR=#000000][FONT=tahoma]INFO: Matched data: 0 bytes[/FONT][/COLOR]
[COLOR=#000000][FONT=tahoma]INFO: File list size: 1516722[/FONT][/COLOR]
[COLOR=#000000][FONT=tahoma]INFO: File list generation time: 0.001 seconds[/FONT][/COLOR]
[COLOR=#000000][FONT=tahoma]INFO: File list transfer time: 0.000 seconds[/FONT][/COLOR]
[COLOR=#000000][FONT=tahoma]INFO: Total bytes sent: 5550507736[/FONT][/COLOR]
[COLOR=#000000][FONT=tahoma]INFO: Total bytes received: 969063[/FONT][/COLOR]
[COLOR=#000000][FONT=tahoma]INFO: sent 5550507736 bytes  received 969063 bytes  1838541.74 bytes/sec
[/FONT][/COLOR]
[COLOR=#000000][FONT=tahoma]ERROR: Backup of VM 110 failed - command 'rsync --stats -x --numeric-ids -aH --delete --no-whole-file --inplace '/mnt/md0/private/110/' '/mnt/pve/nasa1/dump/vzdump-openvz-110-2013_05_09-19_33_50.tmp'' failed: exit code 23[/FONT][/COLOR]
[COLOR=#000000][FONT=tahoma]INFO: Backup job finished with errors[/FONT][/COLOR]
[COLOR=#000000][FONT=tahoma]TASK ERROR: job errors[/FONT][/COLOR]
 
Thank you for the answer.

I spent a few hours last night converting from 'directory' storage type to 'lvm group' storage type.

Now, OpenVZ backup using Snapshot method works perfectly.

Thank you, Dietmar!

--AN
 

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!