Skip to main content
NetApp Knowledge Base

Is it possible to create a subfolder directly as a share destination?

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

Applies to

ONTAP 9

Answer

  • Yes, creating a CIFS share for a subfolder (not at the volume root) is supported.
  • Use the following command to create a CIFS share for a subfolder:

vserver cifs share create -vserver <svm_name> -share-name <share_name> -path /vol/<volume_name>/<subfolder_path>

  • When specifying the share path as a subfolder, clients access the share using:

\\\\<svm_name>\\<share_name>

  • The junction path is used internally in ONTAP to mount the volume within the SVM namespace.
  • Clients do not need to be aware of the junction path when accessing the share via the share name.
  • Accessing via administrative share (e.g., c$) is possible for users with administrative privileges:

\\\\<svm_name>\\c$\\<junction_path>\\<subfolder_path>

  • Note: Use forward slashes / in ONTAP path configuration, but Windows clients use backslashes \\ for access.

Additional Information

additionalInformation_text
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.