ONTAP Discussions

Mount two volume in the same namespace

AchilleAubert
2,649 Views

Hi all,

 

I have two volumes in which there are several directories:

- vol1 (share name SHARE1):

/AppData

/Temp

- vol2 (share name SHARE2):

/Users

 

I would like to change the mount path of the second volume in order to have my directory Users visibles in the root of vol1:

- vol1:

/AppData

/Users

/Temp

 

But once I changed the mount path of vol2 and affect it to vol1, I see now in vol1:

/AppData

/SHARE2/Users

/Temp

 

How can I remove the share name of vol2 (SHARE2)? Is it possible?

Thank you.

5 REPLIES 5

tahmad
2,573 Views

you might want to check the junction path

What are junction paths? 

You may also consider using symbolic links:

How to make symbolic links (widelinks) work for CIFS clients on Clustered Data ONTAP 

AchilleAubert
2,557 Views

Thank you @tahmad but junction path is the fonctionnality that I already use in this case.

hmoubara
2,552 Views

Hello @AchilleAubert ;

Can you provide what does your junction-path looks like for each volume in question. Per example you can run the below command:

 

cluster::> vol show -volume vol1,vol2 -fields junction-path

AchilleAubert
2,544 Views

Hello @hmoubara 

 

Thank you for your reply.

Here is the output of the command:

 

cluster::> vol show -volume vol1,vol2 -fields junction-path
vserver volume junction-path
------- ------ ------------------
VSERVER vol1 /vol1
VSERVER vol2 /vol1/qtree_vol/vol2
2 entries were displayed.

hmoubara
2,490 Views

Hello @AchilleAubert 

 

Can you perform the below:

 

cluster::> vol unmount -vserver VSERVER -volume vol2

cluster::> vol mount -vserver VSERVER -volume vol2 -path /vol1/vol2

 

Thanks 

Public