Issue trying to create NFS storage

enigmaticmichael

New Member
Jun 4, 2024
3
0
1
I am trying to create NFS storage at Datacenter > Storage. When I try to create it, I get the following error:
Code:
create storage failed: mkdir /mnt/pve/vmbackups/dump: Permission denied at /usr/share/perl5/PVE/Storage/Plugin.pm line 1405. (500)

It looks like proxmox is unable to create the dump directory at /mnt/pve/vmbackups. In the console, I have tried the following:
  • I have tried to create it manually but it says permission denied (logged in as root).
  • I have tried to chmod 777 the /mnt/pve/vmbackups directory, but it gives me permission denied.
  • I have tried to delete the /mnt/pve/vmbackups directory since it hasn't been added to Proxmox. It says the device or resource is busy
Here is what ls -l /mnt/pve is showing:
Code:
drwxr----- 2 3001 3001    2 May 18 21:13 vm_backupsdrwxr----- 2 3001 3001    2 May 18 21:13 vmbackups
drwxr----- 2 3001 3001    2 May 18 21:13 VMBackups
I have no idea where the user and group of 3001 came from. I am guessing it is a Proxmox thing, but when I search for that group or user id, they don't seem to exist.

Is there a permissions issue somewhere in my Proxmox Scale? Did I do something wrong setting it up?
 
Hi @enigmaticmichael , its not a Proxmox thing. It's more than likely your permissions on the NFS server.
Examine your settings and make sure that Proxmox can mount as root, and that root is not being squashed.

Good luck


Blockbridge : Ultra low latency all-NVME shared storage for Proxmox - https://www.blockbridge.com/proxmox
I am able to mount to my NFS server using putty with no problem. I did look at my TrueNAS server, and I do see the 3001 user there, so I think the Proxmox permissions are getting squashed by the NAS user somehow.

Could you point me in the direction to figure out how to fix the issue? I have looked all over my Proxmox UI , but I can't seem to find anything to fix the problem.
 
I am able to mount to my NFS server using putty with no problem.
I have tried to create it manually but it says permission denied (logged in as root).
^ That sounds like a problem to me.

Quick google search for "truenas root squash" brings up the following results:
https://www.truenas.com/community/t...-root_squash-no_root_squash-on-freenas.80024/
https://www.truenas.com/community/threads/nfs-sharing-export-options.68618/

Good luck


Blockbridge : Ultra low latency all-NVME shared storage for Proxmox - https://www.blockbridge.com/proxmox
 
I was able to finally get the storage mounted, but I feel it was a little of a hack. I still haven't figured out the root cause. Here is what I did so far:
  1. Changed the maproot on the NFS share on TrueNAS to root:wheel
  2. On proxmox, I did the following to the /mnt/pve/vmbackups directory that was created from a previous failed attempt
Code:
chown root /mnt/pve/vmbackups
chmod 777 /mnt/pve/vmbackups

I was then able to create the storage from the Proxmox GUI successfully.

I am still unable to remove the previous failed attempts, so I still have some vmbackups1,2,3,etc directories sitting there.
 

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!