跳转到主内容

什么是连接路径?

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

适用于

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

问题和答案

卷接合用于将各个卷连接到单一逻辑命名空间中,以便 NAS 客户端能够访问数据。

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

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

例如,具有上述命名空间架构的典型卷接合配置可能类似于以下配置,其中 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.