Getting error- "mount.nfs4: Operation not permitted" while trying to mount NFS share
Applies to
- Ontap 9
- NFSv4
Issue
- Unable to mount NFS share and getting below error:
[root@xxxxxx etc]# /sbin/mount.nfs4 -v svm1.de.db.com:/svm1_68953_1_006_nfs /usr/sap/testkrbp5 -o vers=4 sec=krb5p
mount.nfs4: timeout set for Mon Jun 10 15:45:06 2024
mount.nfs4: trying text-based options 'vers=4,addr=100.110.xx.xx,clientaddr=10.202.xx.xx'
mount.nfs4: mount(2): Operation not permitted
mount.nfs4: Operation not permitted
- User is mounting the filesystem using
vers=4, sec=krb5p
- Security style of the volume is Unix
- NFSv4 protocol is allowed in the export-policy for the share in the volume:
Cluster::> volume show NetAppvol -fields policy
vserver volume policy
--------------- ------------------------------- -------------------------------
svm NetAppvol NetApppolicy
Cluster::> vserver export-policy rule show -vserver svm -policyname NetApppolicy
Policy Rule Access Client RO
Vserver Name Index Protocol Match Rule
------------ --------------- ------ -------- --------------------- ---------
svm NetApppolicy 1 nfs4 xxxxx krb5p
Cluster::> vserver export-policy rule show -vserver svm -policyname NetApppolicy -instance
Vserver: svm
Policy Name: NetApppolicy
Rule Index: 1
Access Protocol: nfs4
List of Client Match Hostnames, IP Addresses, Netgroups, or Domains: xxxxx
RO Access Rule: krb5p
RW Access Rule: krb5p
User ID To Which Anonymous Users Are Mapped: 65534
Superuser Security Types: krb5p
Honor SetUID Bits in SETATTR: false
Allow Creation of Devices: true