跳转到主内容

什么是接合路径?

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

适用场景

  • ONTAP 9
  • 集群模式 Data ONTAP 8
  • NAS

问题和答案

卷接合功能可将各个卷合并到一个逻辑命名空间中、以便能够对NAS客户端进行数据访问。

当 NAS 客户端通过遍历联合访问数据时,联合看起来是普通目录。将卷挂载到根下的挂载点时、将形成接合、并用于创建文件系统树。文件系统树的顶部始终为根卷、以斜杠(/)表示。联合从一个卷的目录指向另一个卷的根目录。

  • 尽管在创建卷时指定联合点是可选的,但是在卷挂载到命名空间中的联合点之前,卷中的数据无法导出 (NFS),并且也无法创建共享 (CIFS)。
  • 创建卷期间未挂载的卷可以在创建后挂载。
  • 新卷可以通过挂载到联合点来随时添加到命名空间。
  • 挂载的卷可以卸载;但是、卸载卷会中断与卷中所有数据以及挂载的卷下子接合点挂载的所有卷之间的新NAS会话。
    • 由于NFS文件句柄引用了错误 465129中所述的卷MSID、因此、即使从SVM命名空间中删除卷、现有NFS会话也可以继续访问卷中的所有数据。
  • 联合点可以在父卷联合下直接创建,也可以在卷中的目录内创建。
  • Snapshot副本访问不遍历接合。
  • 可以将卷挂载到其SVM的命名空间中。

例如、使用上述命名空间架构的典型卷接合配置可能类似于以下配置、其中SVM的根卷有三个插入点。两个插入点是名为"data和"projects的目录。一个插入点是名为""的接合卷audit

1002380 Img.jpg

::> volume show -vserver vs1 -junction
                      Junction                       Junction
Vserver Volume        Active    Junction Path        Path Source
------- ------------- --------- -------------------- -----------
vs1      audit         true      /audit               RW_volume
vs1      audit_logs1   true      /audit/logs1         RW_volume
vs1     audit_logs2   true      /audit/logs2         RW_volume
vs1      audit_logs3   true     /audit/logs3         RW_volume
vs1      eng           true     /data/eng            RW_volume
vs1      mktg1         true     /data/mktg1          RW_volume
vs1      mktg2         true      /data/mktg2          RW_volume
vs1      project1      true      /projects/project1   RW_volume
vs1     project2      true      /projects/project2   RW_volume
vs1     vs1_root      -        /                    -

可以在创建卷期间定义接合路径、也可以使用接合路径修改现有卷。

::> volume create -vserver vserver_name -volume volume_name –aggregate aggregate_name -size -security-style {ntfs|unix|mixed} -junction-path junction_path

安全模式—选择是否符合以下条件:
unix:

  • 文件系统由UNIX管理员管理。
  • 大多数用户都是NFS客户端。
  • 访问数据的应用程序使用UNIX用户作为服务帐户。

NTFS:

  • 文件系统由Windows管理员管理。
  • 大多数用户都是SMB客户端。
  • 访问数据的应用程序使用Windows用户作为服务帐户。

混合:

  • 文件系统由UNIX和Windows管理员管理、用户由NFS和SMB客户端组成。
 

运行以下命令挂载卷:
::> volume mount -vserver vserver_name -volume volume_name -junction-path junction_path

运行以下命令卸载卷:
::> volume unmount -vserver vserver_name -volume volume_name

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.