跳转到主内容

可以重命名卷连接路径吗?

Views:
164
Visibility:
Public
Votes:
0
Category:
ontap-9
Specialty:
core
Last Updated:

 

适用于

  • ONTAP 9

回答

可以,可以修改卷挂载到的接合路径。但是,这需要卸载 junction-path,这会影响数据访问。要进行更改,请执行以下操作: 

1.检查卷的当前接合路径:

::> volume show -vserver <vserver name> -junction
Vserver     Volume       Language        Active     Junction Path     Path Source
---------   ----------   ----------    -------    --------------    ---------------
nfs_vsvr    nfsroot       C.UTF-8        -           /                   -
nfs_vsvr    vol1         C.UTF-8      true           /vol1          RW_volume
nfs_vsvr    vol11        C.UTF-8      true        /vol1/vol11     RW_volume
nfs_vsvr    vol2         C.UTF-8         true        /vol2           RW_volume
            
4 entries were displayed.

 

2.卸载要修改其连接路径的卷,例如 vol2:

::> volume unmount -vserver nfs_vsvr -volume vol2

3.将其挂载到所需的连接路径名称:

::> volume mount -vserver nfs_vsvr -volume vol2 -junction-path /vol0 -active true -policy-override false

4.验证卷接合路径是否已修改:

::> volume show -vserver <vserver name> -junction

Vserver     Volume       Language        Active     Junction Path     Path Source
---------   ----------   ----------    -------    --------------    ---------------
nfs_vsvr    nfsroot       C.UTF-8        -           /                   -
nfs_vsvr    vol1         C.UTF-8      true           /vol1          RW_volume
nfs_vsvr    vol11        C.UTF-8      true        /vol1/vol11     RW_volume
nfs_vsvr    vol2         C.UTF-8         true        /vol0           RW_volume
            
4 entries were displayed.

 

追加信息

NFS

NFS 客户端需要卸载旧的导出路径并挂载新的导出路径。

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.