Community maintenance is complete. Thank you for your patience!

Active IQ Unified Manager Discussions

Discovering volume name by CIFS share in cluster mode

Nomecks

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

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

Nomecks

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.

stephen2

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

Announcements
NetApp on Discord Image

We're on Discord, are you?

Live Chat, Watch Parties, and More!

Explore Banner

Meet Explore, NetApp’s digital sales platform

Engage digitally throughout the sales process, from product discovery to configuration, and handle all your post-purchase needs.

NetApp Insights to Action
I2A Banner
Public