LXC (unprivileged) backup task failing

Pavel Hruška

Member
May 1, 2018
75
7
8
43
Hello everyone, I've created and set up my first unprivileged LXC container, everything was okay until I've run into problems with backing up this LXC. The backup is failing with this error:

Code:
ERROR: Backup of VM 320 failed - command 'set -o pipefail && lxc-usernsexec -m u:0:100000:65536 -m g:0:100000:65536 -- 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=/mnt/pve/XXX/dump/vzdump-lxc-320-2018_11_05-07_23_29.tmp' ./etc/vzdump/pct.conf '--directory=/mnt/vzsnap0' --no-anchored '--exclude=lost+found' --anchored '--exclude=./tmp/?*' '--exclude=./var/tmp/?*' '--exclude=./var/run/?*.pid' ./ ./var/ftp | pigz -p 2 >/mnt/pve/XXX/dump/vzdump-lxc-320-2018_11_05-07_23_29.tar.dat' failed: exit code 2

Any ideas? I am lost how to debug this...
 

Pavel Hruška

Member
May 1, 2018
75
7
8
43
Great, that did the trick (EDIT: Yes, backup target is on NFS storage).

May I ask why the tmpdir is needed for the backup? And is the unprivileged LXC cause of the problem?

Thank you.
 

Pavel Hruška

Member
May 1, 2018
75
7
8
43
I'm just curious if the backup data are passing thru the tmp dir when backing up - just in case my tmp is on SSD, would it wear my drive out by backups?
 

dcsapak

Proxmox Staff Member
Staff member
Feb 1, 2016
6,956
814
163
33
Vienna

Pavel Hruška

Member
May 1, 2018
75
7
8
43
Okay, that's not the best news (SSD will be (slowly) worn out by buckups), but okay. I'm glad to know how things works. LXC is full of pros/cons needed to be considered when designing stuff. Good to know.

Thank you for answers!
 

dcsapak

Proxmox Staff Member
Staff member
Feb 1, 2016
6,956
814
163
33
Vienna
For this tmpdir option, what capacity we need to use ?
the maximum size of the biggest container you want to backup, since all files of a container will be copied there temporarily
 

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 your own in 60 seconds.

Buy now!