[SOLVED] backup to pbs doesn't respect --tmpdir

ojaksch

Renowned Member
Oct 11, 2015
200
46
93
Germany/Earth
I'm using a 100GB temp space for /tmp on a lvm volume and set tmpdir to /tmp in vzdump.conf. When doing a normal backup (to a CIFS storage in this example), PVE is using the variable tmpdir, when doing a backup to PBS, PVE ignores tmpdir and uses /var/tmp/vzdumptmp12345 which sadly is the same lvm as the vm/ct itself. PVE and PBS are the same host, the CIFS storage is an external service on another host running whatever OS.

Is this the expected behaviour or are there any reasons why tmpdir is ignored when doing backups to PBS? Wasn't sure where to ask - PBS forum or the PVE one. Or, if this is a bug, I'd open a ticket on bugzilla...

INFO: starting new backup job: vzdump 502 --compress zstd --mode suspend --remove 0 --storage backup-cifs --node proxmox1
INFO: Starting Backup of VM 502 (lxc)
INFO: Backup started at 2020-08-06 11:46:46
INFO: status = running
INFO: backup mode: suspend
INFO: ionice priority: 7
INFO: CT Name: meet
INFO: including mount point rootfs ('/') in backup
INFO: starting first sync /proc/6231/root/ to /tmp/vzdumptmp27265
INFO: first sync finished - transferred 1.74G bytes in 98s
INFO: suspending guest
INFO: starting final sync /proc/6231/root/ to /tmp/vzdumptmp27265
INFO: final sync finished - transferred 162.62M bytes in 4s
INFO: resuming guest
INFO: guest is online again after 4 seconds
INFO: creating vzdump archive '/mnt/pve/backup-cifs/dump/vzdump-lxc-502-2020_08_06-11_46_46.tar.zst'
INFO: Total bytes written: 1792133120 (1.7GiB, 115MiB/s)
INFO: archive file size: 558MB
INFO: Finished Backup of VM 502 (00:02:01)
INFO: Backup finished at 2020-08-06 11:48:47
INFO: Backup job finished successfully
TASK OK

INFO: starting new backup job: vzdump 502 --mode suspend --remove 0 --storage pbs --node proxmox1
INFO: Starting Backup of VM 502 (lxc)
INFO: Backup started at 2020-08-06 11:49:38
INFO: status = running
INFO: backup mode: suspend
INFO: ionice priority: 7
INFO: CT Name: meet
INFO: including mount point rootfs ('/') in backup
INFO: starting first sync /proc/6231/root/ to /var/tmp/vzdumptmp31436
INFO: first sync finished - transferred 1.74G bytes in 8s
INFO: suspending guest
INFO: starting final sync /proc/6231/root/ to /var/tmp/vzdumptmp31436
INFO: final sync finished - transferred 0 bytes in 0s
INFO: resuming guest
INFO: guest is online again after <1 seconds
INFO: creating Proxmox Backup Server archive 'ct/502/2020-08-06T09:49:38Z'
INFO: run: /usr/bin/proxmox-backup-client backup --crypt-mode=none pct.conf:/var/tmp/vzdumptmp31436/etc/vzdump/pct.conf root.pxar:/var/tmp/vzdumptmp31436 --include-dev /var/tmp/vzdumptmp314
36/. --skip-lost-and-found --backup-type ct --backup-id 502 --backup-time 1596707378 --repository root@pam@127.0.0.1:vms
INFO: Starting backup: ct/502/2020-08-06T09:49:38Z
INFO: Client name: proxmox1
INFO: Starting protocol: 2020-08-06T11:49:46+02:00
INFO: Upload config file '/var/tmp/vzdumptmp31436/etc/vzdump/pct.conf' to 'root@pam@127.0.0.1:vms' as pct.conf.blob
INFO: Upload directory '/var/tmp/vzdumptmp31436' to 'root@pam@127.0.0.1:vms' as root.pxar.didx
INFO: root.pxar: had to upload 1.60 GiB of 1.63 GiB in 39.60s, avgerage speed 41.45 MiB/s).
INFO: root.pxar: backup was done incrementally, reused 24.81 MiB (1.5%)
INFO: Uploaded backup catalog (585.38 KiB)
INFO: Duration: PT39.640411502S
INFO: End Time: 2020-08-06T11:50:26+02:00
INFO: Finished Backup of VM 502 (00:01:28)
INFO: Backup finished at 2020-08-06 11:51:06
INFO: Backup job finished successfully
TASK OK
 

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!