跳转到主内容

是否可以重命名卷接合路径?

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

可不使用  

适用场景

ONTAP 9

问题解答

可以、可以按如下方式修改卷挂载到的接合路径: 

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.