NetApp Community Update
This site will enter Read Only mode on July 23 as we prepare to move to a new platform. You will still be able to view content, but posting and replying will be temporarily disabled.
We're excited to launch our new Community experience on July 30 and more information will follow soon.
Stay connected during the transition - Join our Discord community today.

ONTAP Discussions

Mount two volume in the same namespace

AchilleAubert
4,431 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
4,355 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
4,339 Views

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

hmoubara
4,334 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
4,326 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
4,272 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