setup nfs store

dasc

Member
Sep 25, 2022
31
0
6
Hi there I'. a proxmox newbie and I'm trying to setup a nfs store for my backups with a nfs server running on a ubuntu server 20.04 .I'm running Proxmox 7.2-11 and I have the storage blocked with the message : "TASK ERROR: could not activate storage 'nfsbackup': mkdir /mnt/pve/nfsbackup/dump: Permission denied at /usr/share/perl5/PVE/Storage/Plugin.pm line 1323."
Anybody has an idea about what could be wrong or the way to dipper diagnosis what is happening

All the suggestions are more than welcome ;)
 
It looks like you dont have permissions setup properly on NFS server side.
PVE mounts the NFS export as root - you may need to allow root, or map root to a specific user. It all depends on how you configured your NFS server.
An easy way to test your changes is from PVE shell "cd /mnt/pve/nfsbackup" and "touch file;mkdir testdir".
Run "ls -al /mnt/pve/nfsbackup" - do ACL look right to you?


Blockbridge : Ultra low latency all-NVME shared storage for Proxmox - https://www.blockbridge.com/proxmox
 
Last edited:
It looks like you dont have permissions setup properly on NFS server side.
PVE mounts the NFS export as root - you may need to allow root, or map root to a specific user. It all depends on how you configured your NFS server.
An easy way to test your changes is from PVE shell "cd /mnt/pve/nfsbackup" and "touch file;mkdir testdir".
Run "ls -al /mnt/pve/nfsbackup" - do ACL look right to you?


Blockbridge : Ultra low latency all-NVME shared storage for Proxmox - https://www.blockbridge.com/proxmox
Hi Thank you very much for you quick reply

So, result off your advises:

-touch file;mkdir testdir"

touch: cannot touch 'file': Permission denied
mkdir: cannot create directory ‘testdir’: Permission denied

-ls -al /mnt/pve/nfsbackup

total 8
drwxr-xr-x 2 root root 4096 Oct 6 13:49 .
drwxr-xr-x 9 root root 4096 Oct 6 14:30 ..
-rw-r--r-- 1 root root 0 Oct 6 13:49 file_on_server.txt
 
Yes, that's expected and is just confirmation of your current state.

Now you need to examine your NFS server configuration. Plug this into google "nfs server permission denied" or "nfs server file create permission denied".
Read through the posts and try some of the remedies suggested. Pay attention to root_squash and its default value for your NFS server implementation.


Blockbridge : Ultra low latency all-NVME shared storage for Proxmox - https://www.blockbridge.com/proxmox
 
Hi there .Thanks for your patience. You were absolutely right. It was the NFS server configuration. I had root _squash instead of non_root.
Thank you so much for you collaboration ,now it's working
 

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!