跳转到主内容

挂载时NFS客户端访问被拒绝、因为RO访问规则设置为Never

Views:
43
Visibility:
Public
Votes:
0
Category:
ontap-9
Specialty:
nas<a>2008521706</a><a>服务器在挂载</a><a>qtree 级别导出时拒绝访问</a>
Last Updated:

适用场景

  • ONTAP 9
  • Cloud Volumes ONTAP
  • NFS

问题描述

  • NFS客户端将 access denied 挂载卷或qtree:
mount.nfs: access denied by server while mounting vserver1:/volume1/qtree1
mount.nfs: access denied by server while mounting vserver1:/volume1
  • qtree导出策略规则拒绝客户端读取访问:

::*> export-policy check-access -vserver svm1 -volume vol1 -client-ip 192.168.11.11 -authentication-method sys -qtree qt1 -protocol nfs3 -access-type read-write
Policy   Policy    Rule
Path              Policy   Owner   Owner Type  Index Access
----------------------------- ---------- --------- ---------- ------ ----------
/               default   svm1_root volume      1 read
/vol4ntfs           p_svm1   vol1    volume      1 read
/vol4ntfs/qt01vol4       p_qt    qt1    qtree      1 denied
3 entries were displayed.

  • RO访问规则设置为 never
::> export-policy rule show -vserver svm1 -policyname p_qt -clientmatch 192.168.11.222 -instance Vserver: svm1 Policy Name: p_qt Rule Index: 102 Access Protocol: nfs3 List of Client Match Hostnames, IP Addresses, Netgroups, or Domains: 192.168.11.11 RO Access Rule: never RW Access Rule: none User ID To Which Anonymous Users Are Mapped: 65534 Superuser Security Types: none Honor SetUID Bits in SETATTR: true Allow Creation of Devices: true NTFS Unix Security Options: fail Vserver NTFS Unix Security Options: use_export_policy Change Ownership Mode: restricted Vserver Change Ownership Mode: use_export_policy Policy ID: 17179869187

 

 

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.