3PAR – Find volume names of 3PAR disks from Windows

磁盘存储、磁带存储、存储网络架构设备、存储软件等

版主: xyevolve

版面规则
1. 本版是定位于惠普存储产品的技术讨论区。
2. 本版鼓励发帖共同讨论技术问题,不鼓励站内信件私下交流,独知知不如众知知。
3. 本版允许转贴或引用他人的作品,但必须声明原作者信息。
4. 本版禁止发表出售、求购、或其他非技术讨论等帖子。
5. 本版禁止灌水,包括但不限于任何与所讨论主题无关的回复,无意义字符,直接复制其他回复等。
6. 本站附件禁止用于商业目的,请在下载后24小时内删除,本站不对其造成的结果负任何责任。
回复
admin
网站编辑
帖子: 767
注册时间: 2010年 12月 22日 04:06 星期三

3PAR – Find volume names of 3PAR disks from Windows

帖子 admin » 2012年 5月 1日 22:12 星期二

3PAR – Find volume names of 3PAR disks from Windows

Author Dung Hoang Khac

So you have presented 3PAR vLUNs to Windows hosts and want to know how to identify disks in Disk Manager with their 3PAR volume names.

There are many tools to do this:

3PAR Host Explorer
MS mpclaim

However, those tools require some “visual” intelligence to look through multiple windows and make correlate information collected inside each window. ( see screen attached at the end)

So here is a PowerShell script that queries WMI to get physical disk information and queries 3PAR Inform through ssh to make this correlation for you.
Get-3PARDisks.zip
The logical flow is as follow:

Query WMI Win32_PhysicalDrive to get a list of disk drive
Select disks whose caption contains “3PAR”
Get the disk number as displayed in Disk Manager from the Name atrtibute
Get SCSI Port, Bus, Target , Lun ID of each disk
Map it to registry HKLM:\Hardware\DeviceMap\Scsi\Scsi Port #\Scsi Bus # \Scsi Target ID #\Logical Unit ID #
Get the value DeviceIdentifierPage of the registry key. This property contains the WWN of the disk.
Query 3PAR Inform with the CLi command: showvlun –lvw
the 2nd attribute contains the Volume Name. The 3rd attribute contains the WWN of the disk
Match the WWN of the disk with value found in registry
That gives you the Volume Name
clip-image0013.jpg
您没有权限查看这个主题的附件。

zhongyong
注册用户
帖子: 9
注册时间: 2013年 5月 23日 02:01 星期四

Re: 3PAR – Find volume names of 3PAR disks from Windows

帖子 zhongyong » 2013年 5月 23日 03:05 星期四

这个工具是官方提供的吧?我下来试试看。

回复