Proxmox Backup Error : tmpdir' does not exist

sidnakvee

New Member
Nov 27, 2024
20
1
3
Hi !

I sync my TruNAS with promox its getting data and drive info. However when try back up any VM or conteinr see same issue error:
TASK ERROR: tmpdir '/mnt/NFS_Home/pve-server/pve-backups/tmpdir' does not exist
output of mount | grep tmp
Also seeing promxox created folders on TrueNAS when tried back up .
Code:
root@proxmoxpve:~# nano /etc/vzdump.conf
root@proxmoxpve:~# mount | grep tmp
udev on /dev type devtmpfs (rw,nosuid,relatime,size=16350788k,nr_inodes=4087697,mode=755,inode64)
tmpfs on /run type tmpfs (rw,nosuid,nodev,noexec,relatime,size=3276920k,mode=755,inode64)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev,inode64)
tmpfs on /run/lock type tmpfs (rw,nosuid,nodev,noexec,relatime,size=5120k,inode64)
ramfs on /run/credentials/systemd-tmpfiles-setup-dev.service type ramfs (ro,nosuid,nodev,noexec,relatime,mode=700)
ramfs on /run/credentials/systemd-tmpfiles-setup.service type ramfs (ro,nosuid,nodev,noexec,relatime,mode=700)
tmpfs on /run/user/0 type tmpfs (rw,nosuid,nodev,relatime,size=3276916k,nr_inodes=819229,mode=700,inode64)
 

Attachments

  • pvebackup-1.jpg
    pvebackup-1.jpg
    46.3 KB · Views: 4
mkdir -p /mnt/NFS_Home/pve-server/pve-backups/tmpdir ; chown backup:backup /mnt/NFS_Home/pve-server/pve-backups/tmpdir
 
  • Like
Reactions: UdoB
Hi Thanks already did buw now seeign this error :
INFO: starting new backup job: vzdump 107 --compress zstd --node proxmoxpve --storage pve-backups --notification-mode auto --mode snapshot --notes-template '{{guestname}}' --remove 0
INFO: Starting Backup of VM 107 (lxc)
INFO: Backup started at 2024-12-31 08:05:49
INFO: status = running
INFO: CT Name: webserver02-ct
INFO: including mount point rootfs ('/') in backup
INFO: mode failure - some volumes do not support snapshots
INFO: trying 'suspend' mode instead
INFO: backup mode: suspend
INFO: ionice priority: 7
INFO: CT Name: webserver02-ct
INFO: including mount point rootfs ('/') in backup
INFO: temporary directory is on NFS, disabling xattr and acl support, consider configuring a local tmpdir via /etc/vzdump.conf
INFO: starting first sync /proc/1842/root/ to /mnt/pve/pve-backups/dump/vzdump-lxc-107-2024_12_31-08_05_49.tmp
ERROR: rsync: [generator] chown "/mnt/pve/pve-backups/dump/vzdump-lxc-107-2024_12_31-08_05_49.tmp/." failed: Operation not permitted (1)
ERROR: rsync: [generator] chown "/mnt/pve/pve-backups/dump/vzdump-lxc-107-2024_12_31-08_05_49.tmp/bin" failed: Operation not permitted (1)
 

Attachments

  • truenas_folder_tmpdir.jpg
    truenas_folder_tmpdir.jpg
    40.3 KB · Views: 0
The truenas share isn't exported with no_root_squash to pve yet, change that in your truenas webgui and restart nfs service.
 
Hi thanks for your help sorry I didnt get about "with no_root_squash to pve yet, change that in your truenas webgui' what do you mean by that ? kindly explain a bit thanks
 
Sorry, I never had truenas running but you can search in the forum (input field top right) and you will definitive find your solution in other threads !!
 
Finally foudn solution and it worked :
The recommended solution is to configure a local temporary directory on the Proxmox server instead of using the NFS share.

  1. Edit the Proxmox vzdump configuration file:

    bash
    Copy code
    nano /etc/vzdump.conf<br>
  2. Add or update the following line:

    bash
    Copy code
    tmpdir: /var/tmp<br>
    Replace /var/tmp with another local directory if needed (ensure enough space is available).
  3. Restart any running backup tasks to apply the changes.
 
  • Like
Reactions: waltar