跳转到主内容

CIFS用户尝试映射主目录、但遇到"无此文件或目录"

适用场景

  • ONTAP 9
  • 动态主目录
  • CIFS

问题描述

  • 尝试映射/挂载CIFS共享的用户可能会在行上遇到错误 no such file or directory
  • 主目录配置可能适用于某些用户、但不适用于其他用户
  • cifs share show 主目录共享的输出类似于以下内容 Path 、尤其是值:
cluster::> cifs share show -vserver SVM1
Vserver     Share     Path        Properties Comment  ACL
-------------- ------------- ----------------- ---------- -------- -----------
SVM1      %w       %u         oplocks   -     Everyone / Full Control
                        browsable
                        changenotify
                        show-previous-versions
                        homedirectory
  • 在EMS中可能会显示以下消息:

Fri Apr 14 00:27:07 CEST [node01: kernel: Nblade_cifsShrConnectFailed_1:error]: params: {'errorDescription': 'No such object', 'vserverName': 'SVM1', 'serverIp': '1.2.3.4', 'vserverId': '12', 'errorCode': '2', 'shareName': '%w', 'clientIp': '5.6.7.8'}

  • 与Windows用户名对应的主目录位于搜索路径中、但 cifs home-directory show-user 此命令无法显示此用户的路径:

cluster::> cifs home-directory show-user -vserver SVM1 -username user1
There are no entries matching your query.

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.