can't create backup from LXC

MisterY

Well-Known Member
Oct 10, 2016
136
4
58
37
Hi,

I restored a LXC and I want to make a new backup. But now I get everytime this error:

Code:
INFO: starting new backup job: vzdump 151 --remove 0 --node pve --storage Backup --mode snapshot --compress lzo
INFO: filesystem type on dumpdir is 'zfs' -using /var/tmp/vzdumptmp22316 for temporary files
INFO: Starting Backup of VM 151 (lxc)
INFO: status = running
INFO: CT Name: Nextcloud
INFO: found old vzdump snapshot (force removal)
INFO: backup mode: snapshot
INFO: ionice priority: 7
INFO: suspend vm to make snapshot
INFO: create storage snapshot 'vzdump'
INFO: resume vm
INFO: vm is online again after 1 seconds
INFO: creating archive '/tank/Backup/dump/vzdump-lxc-151-2017_08_23-13_02_46.tar.lzo'
INFO: tar: .mnt/data: Cannot stat: No such file or directory
INFO: tar: .mnt/data2: Cannot stat: No such file or directory
INFO: tar: .mnt/data3: Cannot stat: No such file or directory
INFO: Total bytes written: 4731269120 (4.5GiB, 37MiB/s)
INFO: tar: Exiting with failure status due to previous errors
umount: /mnt/vzsnap0mnt/data3: mountpoint not found
command 'umount -l -d /mnt/vzsnap0mnt/data3' failed: exit code 32
ERROR: Backup of VM 151 failed - command 'set -o pipefail && tar cpf - --totals --one-file-system -p --sparse --numeric-owner --acls --xattrs '--xattrs-include=user.*' '--xattrs-include=security.capability' '--warning=no-file-ignored' '--warning=no-xattr-write' --one-file-system '--warning=no-file-ignored' '--directory=/var/tmp/vzdumptmp22316' ./etc/vzdump/pct.conf ./etc/vzdump/pct.fw '--directory=/mnt/vzsnap0' --no-anchored '--exclude=lost+found' --anchored '--exclude=./tmp/?*' '--exclude=./var/tmp/?*' '--exclude=./var/run/?*.pid' ./ .mnt/data .mnt/data2 .mnt/data3 | lzop >/tank/Backup/dump/vzdump-lxc-151-2017_08_23-13_02_46.tar.dat' failed: exit code 2
INFO: Backup job finished with errors
TASK ERROR: job errors

any ideas?

if I set the Backup = 0 for the mp0-2, it works. but I want them to be backuped
 
Last edited:
how does the container config look like?
 
Code:
arch: amd64
cmode: console
cores: 8
hostname: Nextcloud
lock: backup
memory: 2560
mp0: ZFSTank:subvol-151-disk-1,mp=mnt/data,backup=1,size=500G
mp1: ZFSTank:subvol-151-disk-2,mp=mnt/data2,backup=1,size=500G
mp2: ZFSTank:subvol-151-disk-3,mp=mnt/data3,backup=1,size=500G
net0: name=eth0,bridge=vmbr0,firewall=1,hwaddr=XXX,ip=dhcp,ip6=dhcp,type=veth
onboot: 1
ostype: ubuntu
parent: vzdump
rootfs: local-zfs:subvol-151-disk-1,size=15G
startup: order=1,up=15
swap: 512

ok, I found 1 problem: I restored mp2 accidently to /mnt/data3, it should have be /mnt/data4. I edited the config, but it doesn't work either..
 
Last edited:
i guess you would have to write the mp like this:
Code:
mp0: ZFSTank:subvol-151-disk-1,mp=/mnt/data,backup=1,size=500G

note the leading '/', but i am not sure at the moment
 

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!