Thank you!
-----Original Message----- From: Learmonth, Peter [mailto:Peter.Learmonth@netapp.com] Sent: Tuesday, March 03, 2015 11:22 AM To: Borzenkov, Andrei; Parisi, Justin; John Stoffel; toasters@teaparty.net Subject: RE: sanlun on Windows?
Windows command "wmic diskdrive get serialnumber,deviceid" lists serial number of each device. It just happens to display the S/N in the same ASCII format as "lun show -v" (7-mode) and "lun show -vserver <svm> - path <path>".
C:\Users\administrator.VGIBU>wmic diskdrive get serialnumber,deviceid DeviceID SerialNumber \.\PHYSICALDRIVE2 2Ff5c]ALEUCc \.\PHYSICALDRIVE1 2Ff5c]ALEUCe \.\PHYSICALDRIVE0 6000c29019552f108aa8b158a2eb040d
f35> lun show -v /vol/luntest/l1 10.0g (10742215680) (r/w, online, mapped) Serial#: 2Ff5c]ALEUCc Multiprotocol Type: windows_2008 Maps: winluntest=1 /vol/luntest/l2 10.0g (10742215680) (r/w, online, mapped) Serial#: 2Ff5c]ALEUCe Multiprotocol Type: windows_2008 Maps: winluntest=2
(Yes, I snipped some)
You won't get the NetApp volume/LUN/host name from tools native to a host/guest operating system, since that is not presented in standard SCSI code pages (a.k.a. VPD - Vital Product Data). NetApp management IP addresses are buried in proprietary pages, which is how SANLUN, VSC and other tools discover the NetApp controller or cluster hosting the LUN. From there the tools match S/N or NAA ID (which contains the S/N), like we just did above.
Share and enjoy!
Peter
-----Original Message----- From: toasters-bounces@teaparty.net [mailto:toasters- bounces@teaparty.net] On Behalf Of Borzenkov, Andrei Sent: Monday, March 02, 2015 10:35 PM To: Parisi, Justin; John Stoffel; toasters@teaparty.net Subject: RE: sanlun on Windows?
Unfortunately, neither of these links explain how to match storage LUN to Windows device :( At the end the only safe possibility is to match LUN GUID but this is not displayed either by NetApp or by diskpart. NetApp shows only serial number that needs to be converted into GUID (and there is no official documentation how to do it) and I'm not sure whether GUID is stored somewhere on Windows. On Linux I use sg_inq to find it.
Another way is to figure out to which HBA disk is connected and match mapping LUN number. Again not something one would want to do manually.
-----Original Message----- From: toasters-bounces@teaparty.net [mailto:toasters- bounces@teaparty.net] On Behalf Of Parisi, Justin Sent: Monday, March 02, 2015 6:28 PM To: John Stoffel; toasters@teaparty.net Subject: RE: sanlun on Windows?
Use diskpart.
https://technet.microsoft.com/en-us/library/bb490893.aspx
Examples in these KBs:
https://kb.netapp.com/support/index?page=content&id=1012937&actp=sea... h& viewlocale=en_US&searchid=1425310020535 https://kb.netapp.com/support/index?page=content&id=1013644&actp=sea... h& viewlocale=en_US&searchid=1425310020535 https://kb.netapp.com/support/index?page=content&id=1010864&actp=sea... h& viewlocale=en_US&searchid=1425310020535
-----Original Message----- From: toasters-bounces@teaparty.net [mailto:toasters- bounces@teaparty.net] On Behalf Of John Stoffel Sent: Monday, March 02, 2015 10:25 AM To: toasters@teaparty.net Subject: sanlun on Windows?
Guys,
Trying to map LUNs presented to a Windows host back to the source Netapp Volume/Lun using something equivilent to the 'sanlun' command I can use on Unix systems.
I tried installing the Windows HUK (Host Utilities Kit) but burried in the release notes is a cute little statment that 'sanlun' isn't available on there.
Is there *any* tool which I can use from Windows to show me the Netapp volume and lun name from the Windows side of things?
Thanks, John _______________________________________________ Toasters mailing list Toasters@teaparty.net http://www.teaparty.net/mailman/listinfo/toasters
Toasters mailing list Toasters@teaparty.net http://www.teaparty.net/mailman/listinfo/toasters
Toasters mailing list Toasters@teaparty.net http://www.teaparty.net/mailman/listinfo/toasters