跳转到主内容

NFS挂载失败、并显示权限被拒绝错误、因为客户端未使用导出策略规则中允许的IP

Views:
71
Visibility:
Public
Votes:
0
Category:
ontap-9
Specialty:
nas
Last Updated:

适用场景

  • ONTAP 9
  • NFS
  • IPv4和IPv6

问题描述

  • 尝试在客户端上挂载NFS时、出现以下错误:
[root@linux ~]# mount -t nfs Ontap_IP:/NFS_IPV6 /mnt
mount.nfs: mount(2): Permission denied
  • 分配了多个IP地址后、客户端无法评估导出策略。
  • 2620:118:8010:1096:250:56ff:fea6:fbb7ONTAP 上的导出策略中的客户端匹配允许使用IP ":

cluster::*> export-policy rule show -vserver vs1 -policyname NFS_policy -instance
List of Client Match Hostnames, IP Addresses, Netgroups, or Domains: 2620:118:8010:1096:250:56ff:fea6:fbb7

  • 但是、客户端上有多个接口、并分配了多个IP地址:

IPv6示例:

[root@linux ~]# ifconfig
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
     inet6 2620:118:8010:1096:250:56ff:fea6:a895 prefixlen 64  scopeid 0x0<global>

eth1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
     inet6 2620:118:8010:1096:250:56ff:fea6:fbb7 prefixlen 64  scopeid 0x0<global>

IPv4示例:

[root@xcpserver2 ~]# ifconfig
ens192: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
     inet 10.216.41.xx  netmask 255.255.255.0  broadcast 10.216.41.255
     inet6 fe80::af37:bb4:1eff:ebb  prefixlen 64  scopeid 0x20<link>

virbr0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
     inet 192.168.122.xx  netmask 255.255.255.0  broadcast 192.168.122.255
     ether 52:54:00:42:dd:94  txqueuelen 1000  (Ethernet)

 

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.