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.

Active IQ Unified Manager Discussions

Discovering volume name by CIFS share in cluster mode

Nomecks
5,250 Views

I'm working on a workflow to move some data around, and I need to get the volume name from the CIFS share. I've checked in the database, and it looks like the only tables available on cm_storage.cifs_share are id, name, path, vserver ID and comment. There's no volume_id or anything. How do I associate the CIFS share to  the volume name with just the CIFS share information? It's simple in 7-mode, since cifs_share has a volume_id tag.

1 ACCEPTED SOLUTION

stephen2
5,238 Views

I did it by extracting the junction point from the path and then doing a get-ncvol and find the volume with that junction path

View solution in original post

2 REPLIES 2

stephen2
5,239 Views

I did it by extracting the junction point from the path and then doing a get-ncvol and find the volume with that junction path

Nomecks
5,234 Views

Unfortunately I can't extract the volume from the junction path, as the junction path varies by system. All I have to start with is a share name, which I need to use to find all systems with that share on it, what the host volume is, and what node and aggregate it resides on.

Public