I am using "inq" executable from Dell/EMC. This executable exists for the majority of OS (AIX, Linux, Windows, HPUX, Solaris ....).
Gives consistent info on all of those OS for different storage vendors (IBM, Dell, Hitachi, Fujitsu, Pure .....).
Example output on Windows :
-------------------------------------------------------------------------------
DEVICE :VEND :PROD :WWN
-------------------------------------------------------------------------------
\\.\PHYSICALDRIVE0 :HP :LOGICAL VOLUME :600508b1001cdff2b94fa8fe16429670
\\.\PHYSICALDRIVE1 :IBM :2145 :60050768108182c3c0000000000006fe
\\.\PHYSICALDRIVE2 :IBM :2145 :60050768108182c390000000000000b1
\\.\PHYSICALDRIVE3 :IBM :2145 :60050768108182c390000000000000b2
\\.\PHYSICALDRIVE4 :IBM :2145 :60050768108182c390000000000000be
\\.\PHYSICALDRIVE5 :IBM :2145 :60050768108182c390000000000000ae
\\.\PHYSICALDRIVE6 :IBM :2145 :60050768108182c390000000000000b3
\\.\PHYSICALDRIVE7 :IBM :2145 :60050768108182c390000000000000b4
\\.\PHYSICALDRIVE8 :IBM :2145 :60050768108182c390000000000000b5
\\.\PHYSICALDRIVE9 :IBM :2145 :60050768108182c390000000000000bc
\\.\PHYSICALDRIVE10 :IBM :2145 :60050768108182c390000000000000bb
------------------------------
Hans Populaire
------------------------------
Original Message:
Sent: Mon March 21, 2022 01:10 PM
From: Scott Herdliska
Subject: Using SVC with Flashsystems presented. How do I find the volume UID (serial number) for a SAN volume mapped to a windows server FROM a windows server?
FYI - the host in question here is a Windows 2016 Cluster server consisting of two nodes.
Using most storage devices, I can run the following command, or something similar, on a Windows server, to return the volume (or LUN) serial number coming from the IBM storage device.
Why I want this:
A SQL admin who managed a Windows 2016 cluster would like to request that a drive presented to it by the SVC is expanded by 50 GB. The admin states that the drive is called WINSERVER4_Drive_R and needs to be grown from 50 to 100 GiB. There are several 50 GiB drives presented. I want to verify that I am growing the correct volume. To do that, I need to confirm the serial number of the drive on the Windows server.
I ask the admin to run the following Powershell script:
$AllDevices = gwmi -Class Win32_DiskDrive -Namespace 'root\CIMV2'
ForEach ($Device in $AllDevices) {
@{
Name=$Device.Name;
Caption=$Device.Caption;
Index=$Device.Index;
SerialNo=$Device.SerialNumber;
} | Format-Table -AutoSize
}
which returns the following for that drive
Name Value
---- -----
Caption IBM 2145 Multi-Path Disk Device
Name \\.\PHYSICALDRIVE4
SerialNo 0203202107b6XX03
Index 4
The name and serial number of the drive are actually:
WINSERVER4_R_Backup,600507680C80841ED80000000000A8EB,650.00 GiB
When I run this script on a Windows server connected to a Pure storage array, the real serial number is returned.
The drives are being presented from a stretch SVC cluster and there are volume mirrors on both sides of the cluster. The SVC is virtualizing a FS9200 behind it, and this is where the physical storage comes from.
Does anyone know of a way to find the actual IBM UID for a volume being presented to a windows host FROM a windows host?
------------------------------
Scott Herdliska
------------------------------