Community

Subscribe
Highlighted
Accepted Solution

Luns under volumes

Is there a way to script something that will show what LUNS are under which volumes?

I know you can do it with Systems Manager, but I'd like to see something more like a tree hierarchy...

Volume Name

     -Luna

     -Lunb

     -Lunc

Volume Name

     -Luna

     -Lunb

Etc

Make sense?

Re: Luns under volumes

Please do a search for one of my posts.  We wrote something a while ago that should give you what you want

Re: Luns under volumes

Here, I'll save you the trouble - https://communities.netapp.com/thread/23684

Re: Luns under volumes

I actually saw that script, but it doesnt seem to output the info I was hoping/looking for....

I would like to see the volume name and then the specific LUNS associated to that volume under it. Preferably exported to XLS or a CSV file.

Re: Luns under volumes

If I get some time, I will try to come up with a little bit of a sample... Not much free time these days.. 

Re: Luns under volumes

Hi Justin,

Yes, you can do it, But it can get little tricky, you can use awk script to run against it. Can you please paste the output of qtree status?

Thanks

RK

Re: Luns under volumes

*cough* awk *cough*  :-)

native powershell is the way to go....

Re: Luns under volumes

I see what u mean .. but with very little effort it will give the result Justin wanted.

Re: Luns under volumes

I have to be honest.. Not that i'm against it, but onCommand Reporting 1.1 seems to do a really nice job at it.

I love powershell, but heck, I can't compete with Cognos Developers...

Re: Luns under volumes

We do a lot of cloning of volumes from Prod to test/QA. The volumes contain a tun (spelled it like that on purpose) of luns that are un-needed when we do the clone, so we go in and delete the un-needed luns.

Long story short, the DBA's ask to refresh a DB, which is usually one or 2 luns and since we clone the whole volume, and each volume has a tun of luns, its kind of a pain to find the volume...

With a script that populates what Volume has which Luns, I could go in and filter the LUN name and bingo bango.... easy.