HPE Community read-only access December 15, 2018
This is a maintenance upgrade. You will be able to read articles and posts, but not post or reply.
Hours:
Dec 15, 4:00 am to 10:00 am UTC
Dec 14, 10:00 pm CST to Dec 15, 4:00 am CST
Dec 14, 8:00 pm PST to Dec 15, 2:00 am PST
Array Setup and Networking
cancel
Showing results for 
Search instead for 
Did you mean: 

Windows Target - Drive mapping

 
aherbert23
Trusted Contributor

Windows Target - Drive mapping

Have any of you ever mapped a couple of volumes for say SQL Data and Logs and once you connect them in Windows you can't tell which one is which? Both are the same size but you want to make sure you match the label and performance policy you assigned in the Nimble UI. I have a solution in a PowerShell one liner! It's not something you would memorize but copy and paste is your friend here.

Get-WmiObject -Namespace ROOT\WMI -Class MSiSCSIInitiator_SessionClass | Select -Unique TargetName, @{Label="LegacyName"; Expression={$_.Devices[0].LegacyName}}

This will give an output something like this :


TargetName                                                  LegacyName

----------                                                  ----------

iqn.2007-11.com.nimblestorage:adserver-iometer-v16da9ef3... \\.\PhysicalDrive1

iqn.2007-11.com.nimblestorage:ad-test-v16da9ef36265f874.... \\.\PhysicalDrive2


And done! These drive numbers will match up with the disk management MMC snap-in.