Skip to main content

NetApp_Insight_2020.png 

NetApp Knowledgebase

Can a volume junction-path be renamed?

Views:
411
Visibility:
Public
Votes:
0
Category:
data-ontap-8
Specialty:
core
Last Updated:

 

Applies to

Data ONTAP 8
ONTAP 9

Answer

Yes, the junction path to which a volume is mounted can be modified as follows: 

1. Check the current junction path of the volume:

::> 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. Un-mount the volume whose junction path you wish to modify, for example vol2:

::> volume unmount -vserver nfs_vsvr -volume vol2

3. Mount it to the desired junction-path name:

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

4. Verify the volume junction path has been modified:

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

 

Additional Information

Add your text here.