pigz not working with LXC

dirk.nilius

Member
Nov 5, 2015
47
0
6
Berlin, Germany
Hi,

I found the following issue. When I try to use pigz with vzdump/gzip I got the following error:

root@ckc-b-p0005:~# vzdump 242 --compress gzip --storage FreeNAS --mode snapshot
INFO: starting new backup job: vzdump 242 --compress gzip --storage FreeNAS --mode snapshot --mailnotification always
INFO: Starting Backup of VM 242 (lxc)
INFO: status = running
INFO: backup mode: snapshot
INFO: bandwidth limit: 51200 KB/s
INFO: ionice priority: 7
INFO: create storage snapshot snapshot
INFO: creating archive '/mnt/pve/FreeNAS/dump/vzdump-lxc-242-2015_12_11-16_09_18.tar.gz'
INFO: /bin/bash: pigz -p 2: command not found
INFO: remove vzdump snapshot
ERROR: Backup of VM 242 failed - command 'set -o pipefail && tar cpf - --totals --sparse --numeric-owner --acls --xattrs '--xattrs-include=user.*' '--xattrs-include=security.capability' '--warning=no-xattr-write' --one-file-system '--warning=no-file-ignored' '--directory=/tmp/vzdumptmp6164' ./etc/vzdump/pct.conf ./etc/vzdump/pct.fw '--directory=/mnt/vzsnap0' --no-anchored '--exclude=lost+found' --anchored . | 'pigz -p 2' >/mnt/pve/FreeNAS/dump/vzdump-lxc-242-2015_12_11-16_09_18.tar.dat' failed: exit code 127
INFO: Backup job finished with errors
job errors

root@ckc-b-p0005:~# cat /etc/vzdump.conf
# vzdump default settings

#tmpdir: DIR
#dumpdir: DIR
#storage: STORAGE_ID
#mode: snapshot|suspend|stop
#bwlimit: KBPS
#bwlimit: 51200
#ionice: PRI
#lockwait: MINUTES
#stopwait: MINUTES
#size: MB
#maxfiles: N
#script: FILENAME
#exclude-path: PATHLIST
pigz: 1

pigz is installed:

root@ckc-b-p0005:~# pigz --help
Usage: pigz [options] [files ...]
will compress files in place, adding the suffix '.gz'. If no files are
specified, stdin will be compressed to stdout. pigz does what gzip does,
but spreads the work over multiple processors and cores when compressing.
...

As you see the pigz command is in single quotes. This doesn't work. There should be none or backtricks. KVM works.

root@ckc-b-p0005:~# pveversion -v
proxmox-ve: 4.1-26 (running kernel: 4.2.6-1-pve)
pve-manager: 4.1-1 (running version: 4.1-1/2f9650d4)
pve-kernel-4.2.6-1-pve: 4.2.6-26
pve-kernel-4.2.2-1-pve: 4.2.2-16
pve-kernel-4.2.3-2-pve: 4.2.3-22
lvm2: 2.02.116-pve2
corosync-pve: 2.3.5-2
libqb0: 0.17.2-1
pve-cluster: 4.0-29
qemu-server: 4.0-41
pve-firmware: 1.1-7
libpve-common-perl: 4.0-41
libpve-access-control: 4.0-10
libpve-storage-perl: 4.0-38
pve-libspice-server1: 0.12.5-2
vncterm: 1.2-1
pve-qemu-kvm: 2.4-17
pve-container: 1.0-32
pve-firewall: 2.0-14
pve-ha-manager: 1.0-14
ksm-control-daemon: 1.2-1
glusterfs-client: 3.5.2-2+deb8u1
lxc-pve: 1.1.5-5
lxcfs: 0.13-pve1
cgmanager: 0.39-pve1
criu: 1.6.0-1
zfsutils: 0.6.5-pve6~jessie
 

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!