SOLVED Access Denied when trying to mount an nfs share

sillyvain

Cadet
Joined
Jun 19, 2022
Messages
2
I have 2 Truenas Scale servers and I will call the Truenas Scale NFS host Server 1 and the other Truenas Scale NFS client Server 2 and by the way I have no problem mounting the NFS share from Server 1 into Unraid without any issues but when I am trying to access the NFS share on Server 2 I get access is denied.

I also enabled NFS 4 and still doesn't work.

if I do a df -h on server 2 I can see it's mounted.

I created a folder in /mnt/Enterprise

I posted this in Edit Init/ Shutdown Script

mount -t nfs 10.0.0.1:/mnt/MediaStorage/Storage /mnt/Enterprise
 

sillyvain

Cadet
Joined
Jun 19, 2022
Messages
2
I fixed this myself.. The issue was that my NFS shares was mounted on my server 2 and when I tried to access the folder I would get access denied.

The fix for this is to go to Server 1 and go into your NFS settings and make sure map root is set to root username and wheel for the other one.
 

fahadshery

Contributor
Joined
Sep 29, 2017
Messages
179
Sometimes, when you're sharing a dataset, you might have put a network that is allowed to connect. You should check that as well to make sure the network you're trying to mount "from" is allowed in the NFS share settings
 
Top