Community maintenance is complete. Thank you for your patience!

Microsoft Virtualization Discussions

List Logical Volumes on a Physical Disk

andrew_robeson

Hello,

Not specifically a NetApp or ONTAP Toolkit question, but..

I am trying to write a PowerShell function that will return the Logical Volumes on a Physical Disk in Windows.  Specifically, I would like to supply the following:

LUN Serial Number

SAN Client Hostname

And I would like the function to output the Logical Volumes, including those assigned to drive letters and mount points, that reside on that disk.

I have been able to list the Logical Volumes assigned to drive letters using a WMI associators of query, but everything falls apart when you run into a logical volume assigned to a mount point.

Ideally the above could be accomplished without any software dependencies on the SAN client machine, but at this point I'm open to any ideas.

Any thoughts?

Thanks,

Andrew

1 REPLY 1

vinith

Check out the output from

Get-NaHostDisk -DataOntap | fl *

This should get you started.

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