Permission issues setting up NFS as a datastore for PBS

hobbybuild

New Member
Dec 24, 2024
1
0
1
I feel like I've tried everything I can think of or find on the internet, but this issue just won't go away.

My setup:
- one node proxmox ve
- synology nas
- attempting to set up pbs as lxc (debian 11) on the ve, using an nfs on the nas as the datastore

I have created the folder on the nas, configured it to allow the proxmox host to connect it, and successfully mounted it on the host. I then mount it on the pbs lxc using a mountpoint. At this point, both the host and pbs can successfully access (and write) on the nfs, and I can access the pbs web ui.

But when I attempt to add the folder as a datastore, I get permission issues.

This is the error on the cli

root@backup:/nas-backup# proxmox-backup-manager datastore create nas-backup /nas-backup/proxmox
TASK ERROR: unable to create chunk store 'nas-backup' at "/nas-backup/proxmox" - EPERM: Operation not permitted

It is actually successful in creating the subfolder but fails afterwards. Permissions show up as nobody / nogroup, which makes sense since synology is mapping those to the user 1024.

For the NFS share, I have tested mapping all to admin (on synology that seems to be the actual admin account 1024, not root), as well as mapping root to admin, and no mapping. Not much of change (though without mapping, I'm not able to write on the share).

What am I missing here? Should I instead run the pbs as priviledged so I could try mounting the nfs directly? Still not sure that would help given that the guest is still able to write as it is. Also the user `backup` is able to write to the nfs.
 

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!