跳转到主内容

尝试挂载NFS共享时收到错误"mount.nfs4:不允许执行操作"

Views:
2
Visibility:
Public
Votes:
0
Category:
ontap-9
Specialty:
nas<a>2010059822</a>
Last Updated:

适用场景

  • ONTAP 9.
  • NFSv4

问题描述

  • 无法挂载NFS共享、并出现以下错误:

[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

  • 卷的安全模式为Unix。
  • 用户正在使用挂载文件系统 vers=4, sec=krb5p
  • 卷中共享的导出策略允许使用NFSv4协议:

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    @a-in-uat-sapbank-gfs   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: @a-in-uat-sapbank-gfs
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

Sign in to view the entire content of this KB article.

New to NetApp?

Learn more about our award-winning Support

NetApp provides no representations or warranties regarding the accuracy or reliability or serviceability of any information or recommendations provided in this publication or with respect to any results that may be obtained by the use of the information or observance of any recommendations provided herein. The information in this document is distributed AS IS and the use of this information or the implementation of any recommendations or techniques herein is a customer's responsibility and depends on the customer's ability to evaluate and integrate them into the customer's operational environment. This document and the information contained herein may be used solely in connection with the NetApp products discussed in this document.