PVE: VM backup to NFS share on Truenas: backup succeeds, but comment and log creation fail

ldebolle

New Member
Jan 25, 2026
4
0
1
Hi,
I'm new to proxmox and I'm currently testing a setup to move from VMWare to Proxmox.
The proxmox server is an HP Gen11 Microserver

Backup to CIFS share didn't work properly and a Google-search came up with the suggestion to move to NFS.
I created an NFS share on a dedicated 'Truenas Core' NAS

It took some iterations, but I could finally mount the NFS Share in proxmox and use it for backups.
It took a while to find out that the MapAll User needed to be set to 'root'


A backup job starts correctly now, but finishes with warnings:

Code:
INFO: starting new backup job: vzdump 103 --mode snapshot --compress zstd --notification-mode notification-system --storage NAS_NFS --fleecing 0 --notes-template '{{guestname}}' --node proxmox1 --all 0
INFO: Starting Backup of VM 103 (qemu)
INFO: Backup started at 2026-01-25 14:05:14
INFO: status = stopped
INFO: backup mode: stop
INFO: ionice priority: 7
INFO: VM Name: BackupTest
INFO: include disk 'scsi0' 'local-lvm:vm-103-disk-0' 1G
INFO: creating vzdump archive '/mnt/pve/NAS_NFS/dump/vzdump-qemu-103-2026_01_25-14_05_14.vma.zst'
INFO: starting kvm to execute backup task
INFO: started backup task '11c01b37-112a-4e14-8950-c2e5c9cccc82'
INFO: 100% (1.0 GiB of 1.0 GiB) in 1s, read: 1.0 GiB/s, write: 0 B/s
INFO: backup is sparse: 1.00 GiB (100%) total zero data
INFO: transferred 1.00 GiB in 1 seconds (1.0 GiB/s)
INFO: stopping kvm after backup task
INFO: archive file size: 36KB
INFO: adding notes to backup
WARN: unable to add notes - unable to open file '/mnt/pve/NAS_NFS/dump/vzdump-qemu-103-2026_01_25-14_05_14.vma.zst.notes.tmp.59028' - Operation not permitted
INFO: Finished Backup of VM 103 (00:00:02)
INFO: Backup finished at 2026-01-25 14:05:16
cp: cannot create regular file '/mnt/pve/NAS_NFS/dump/vzdump-qemu-103-2026_01_25-14_05_14.log': Operation not permitted
INFO: Backup job finished successfully
INFO: notified via target `mail-to-root`
TASK WARNINGS: 1

The backup archive files exist on the NAS and can be opened by proxmox
The backup is small as it is a dummy VM, with no OS,... The result is the same for a real functional VM
The log files exist, but are 0-length
"vi-ing" the log file from the console gives a warning that a ".swp" file exists (as well as an ".swo" file)
creating (touching) the failing files from the console works

Searching the internet and the forum did not provide and solutions or clues...

Did anyone experience a similar issue or does someone have a clue?

Thank you for any suggestions,
Best regards,
Luc
 
Hi,
CIFS should have worked, but well, if you can set up a NFS export, that's fine as well. Can you show us the storage.cfg part about the NFS mount? Maybe also findmnt -u /mnt/pve/NAS_NFS ?
Can you check the permissions on /mnt/pve/NAS_NFS/ and /mnt/pve/NAS_NFS/dump ?

Also, on the NAS setup, make sure that root squash is disengaged, or squashed to a user that has right permissions on the exported dir.
 
Last edited:
Good morning Gilou,

Please find the info below.

Code:
storage.cfg:
nfs: NAS_NFS
        export /mnt/sphere/Backups/proxmox
        path /mnt/pve/NAS_NFS
        server 192.168.13.22
        content snippets,rootdir,iso,images,vztmpl,backup,import
        prune-backups keep-all=1

root@proxmox1:/mnt/pve# findmnt -u /mnt/pve/NAS_NFS
TARGET SOURCE FSTYPE OPTIONS
/mnt/pve/NAS_NFS
       192.168.13.22:/mnt/sphere/Backups/proxmox
              nfs    rw,relatime,vers=3,rsize=131072,wsize=131072,namlen=255,hard,fatal_neterrors=none,proto=tcp,timeo=600,retrans=2,sec=sys,mountaddr=192.168.13.22,mountvers=3,mountport=826,mountproto=udp,local_lock=none,addr=192.168.13.22
              
Permissions NAS_NFS:
root@proxmox1:/mnt/pve# ls -l
total 12
drwx------ 8 1004 1002 8 Jan 25 09:09 NAS_NFS

Permissions NAS_NFS/dump
root@proxmox1:/mnt/pve/NAS_NFS# ls -l
total 38
drwx------ 3 root 1002 6 Jan 26 11:05 dump

NFS configuration in Truenas:

1769423312034.png

Share configuration in Truenas:
1769423396341.png

Thank you already for taking interest!

Best regards,
Luc
 
So, I'd just maproot (user) to root (IIRC mapall doesn't apply to root in TrueNAS, and I don't think it's a good idea to map to root anyway..), and fix the permissions (chown -R root: /mnt/pve/NAS_NFS once re-mounted). You don't need non-root mounts, as Proxmox will mount as root anyway, unless you use it for something else..

if your NAS is used for other stuff, you might want might want to consider a better strategy like having a specific user for that export, and map root to it, while making sure that user has appropriate rights on the NAS side.
 
Thank you Gilou,

As per the suggestions, I have set the Maproot User to 'root' (NAS side):
1769428887925.png

and changed the permissions of the proxmox directory after the mount:
Code:
root@proxmox1:~# chown -R root: /mnt/pve/NAS_NFS/
root@proxmox1:~# cd /mnt/pve/
root@proxmox1:/mnt/pve# ls -l
total 12
drwx------ 8 root root 8 Jan 25 09:09 NAS_NFS
root@proxmox1:/mnt/pve#

unfortunately the result is the same:

Code:
INFO: archive file size: 36KB
INFO: adding notes to backup
WARN: unable to add notes - unable to open file '/mnt/pve/NAS_NFS/dump/vzdump-qemu-103-2026_01_26-14_24_39.vma.zst.notes.tmp.4157' - Operation not permitted
INFO: Finished Backup of VM 103 (00:00:01)
INFO: Backup finished at 2026-01-26 14:24:40
cp: cannot create regular file '/mnt/pve/NAS_NFS/dump/vzdump-qemu-103-2026_01_26-14_24_39.log': Operation not permitted
INFO: Backup job finished successfully

I am puzzled by the fact that the archive is written correctly, but the writing of the comment and log files generate the error.
Would they be written by another process/user ?
 
Permissions:
Code:
root@proxmox1:~# ls -l /mnt/pve/NAS_NFS/
total 38
drwx------ 3 root root 6 Jan 26 14:35 dump

The drive has enough space I presume:
Code:
root@proxmox1:~# df -h /mnt/pve/NAS_NFS/
Filesystem                                 Size  Used Avail Use% Mounted on
192.168.13.22:/mnt/sphere/Backups/proxmox  5.0T  1.3T  3.8T  26% /mnt/pve/NAS_NFS