mount.nfs: Protocol not supported despite showmount working

bhavik

Dabbler
Joined
May 20, 2021
Messages
15
Hi,

I am running into an error while trying to mount the NFS export from my TrueNAS server. The details are as below:

Code:
mount -t nfs fpfs001:/mnt/Pool1/PermTest /mnt/test
mount.nfs: Protocol not supported
/etc/exports config:
Code:
cat /etc/exports
/mnt/Pool1/home -alldirs
/mnt/Pool1/PermTest -alldirs
showmount output from Linux client.
Code:
showmount -e fpfs001
Export list for fpfs001:
/mnt/Pool1/PermTest (everyone)
/mnt/Pool1/home     (everyone)
However, the same share/export is accessible and working from (Windows client) SMB access.

Attaching the screenshots illustrating the NFS and SMB share parameters for the PermTest dataset.

The goal is to create NFS & SMB shares of the same folder/dataset for Windows (SMB/CIFS) and Linux (NFS) clients/users respectively. With the ability to have granular files/folder permissions control with locally created users and groups, so that newly created files and folders can inherit the group permissions of the respective parent folder from Windows or Linux.

Any thoughts/inputs to get this working, per the requirements I have outlined here, will be greatly appreciated.


Thanks,
Bhavik
 

Attachments

  • TrueNAS_PermTest_02.png
    TrueNAS_PermTest_02.png
    50.7 KB · Views: 939
  • TrueNAS_PermTest_01.png
    TrueNAS_PermTest_01.png
    71.9 KB · Views: 865

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,703
Don't specify the type...
mount fpfs001:/mnt/Pool1/PermTest /mnt/test
 

bhavik

Dabbler
Joined
May 20, 2021
Messages
15
Thanks for the suggestion Wizened, it resulted in the same error:

Code:
[root@fprdsk003 ~]# mount fpfs001:/mnt/Pool1/PermTest /mnt/test
mount.nfs: Protocol not supported
[root@fprdsk003 ~]#


Any other thoughts or debug info that I can run and share here, please let me know.
 

bhavik

Dabbler
Joined
May 20, 2021
Messages
15
Ok, managed to at least have a different error now, with (Enable NFSv4) the TrueNAS -> Service -> NFS -> Configure changes per the attached screenshot.

The error now, I am running into as:
Code:
mount -vvv fpfs001:/mnt/Pool1/PermTest /mnt/test
mount.nfs: timeout set for Fri May 28 16:33:20 2021
mount.nfs: trying text-based options 'vers=4.1,addr=192.168.0.21,clientaddr=192.168.0.113'
mount.nfs: mount(2): Permission denied
mount.nfs: trying text-based options 'vers=4.0,addr=192.168.0.21,clientaddr=192.168.0.113'
mount.nfs: mount(2): Permission denied
mount.nfs: trying text-based options 'addr=192.168.0.21'
mount.nfs: prog 100003, trying vers=3, prot=6
mount.nfs: trying 192.168.0.21 prog 100003 vers 3 prot TCP port 2049
mount.nfs: prog 100005, trying vers=3, prot=17
mount.nfs: trying 192.168.0.21 prog 100005 vers 3 prot UDP port 973
mount.nfs: mount(2): Input/output error
mount.nfs: access denied by server while mounting fpfs001:/mnt/Pool1/PermTest

I tried looking up the folder permissions that I am trying to mount and also tried changing it to root:wheel but that did not help either.

Also tried it with and without "NFSv3 ownership model for NFSv4" toggled but both are resulting in the same error.

Any thoughts or suggestions?
 

Attachments

  • TrueNAS_NFSv4_Settings.png
    TrueNAS_NFSv4_Settings.png
    50.6 KB · Views: 1,440

bhavik

Dabbler
Joined
May 20, 2021
Messages
15
Besides this, I am not sure if this would require some additional configuration parameters/directives such as no_root_squash, etc, and how do I configure these?

And pasted below are two more specific attempts (with these options ticked) to mount the before mentioned export with v3 and v4 respectively.

NFSv3 Test:
Code:
mount -vvv -t nfs -o nfsvers=3 fpfs001:/mnt/Pool1/PermTest /mnt/test
mount.nfs: timeout set for Fri May 28 17:43:00 2021
mount.nfs: trying text-based options 'nfsvers=3,addr=192.168.0.21'
mount.nfs: prog 100003, trying vers=3, prot=6
mount.nfs: trying 192.168.0.21 prog 100003 vers 3 prot TCP port 2049
mount.nfs: prog 100005, trying vers=3, prot=17
mount.nfs: trying 192.168.0.21 prog 100005 vers 3 prot UDP port 973
mount.nfs: mount(2): Input/output error
mount.nfs: mount system call failed

NFSv4 Test:
Code:
mount -vvv -t nfs -o nfsvers=4 fpfs001:/mnt/Pool1/PermTest /mnt/test
mount.nfs: timeout set for Fri May 28 17:43:08 2021
mount.nfs: trying text-based options 'vers=4.1,addr=192.168.0.21,clientaddr=192.168.0.113'
mount.nfs: mount(2): Permission denied
mount.nfs: trying text-based options 'vers=4.0,addr=192.168.0.21,clientaddr=192.168.0.113'
mount.nfs: mount(2): Permission denied
mount.nfs: access denied by server while mounting fpfs001:/mnt/Pool1/PermTest
 

bhavik

Dabbler
Joined
May 20, 2021
Messages
15
Also, attempted a tcpdump for nfsvers=4 mount test and while parsing the 'tcpdump.pcap' data, noticing:
Code:
192.168.0.21.2049 > 192.168.0.113.858: Flags [P.], cksum 0xd84f (correct), seq 5501:5649, ack 5573, win 29128, options [nop,nop,TS val 2602429321 ecr 259066293], length 148: NFS reply xid 2382180894 reply ok 144 getattr ERROR: Permission denied

Also found this related article which is point the solution to this would be something like "no_root_squash" and "insecure".

I tried hand-editing the /etc/exports file but when restarted the NFS service on the TrueNAS box it reverted the parameters I added.

Can someone suggest how do I configure these params at the TrueNAS server end and test them?
 
Top