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
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... https://kb.netapp.com/support/index?page=content&id=1013644&actp=sea... https://kb.netapp.com/support/index?page=content&id=1010864&actp=sea...
-----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
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... viewlocale=en_US&searchid=1425310020535 https://kb.netapp.com/support/index?page=content&id=1013644&actp=sea... viewlocale=en_US&searchid=1425310020535 https://kb.netapp.com/support/index?page=content&id=1010864&actp=sea... 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
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
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
Peter> Windows command "wmic diskdrive get serialnumber,deviceid" Peter> lists serial number of each device. It just happens to display the Peter> S/N in the same ASCII format as "lun show -v" (7-mode) and "lun show Peter> -vserver <svm> -path <path>".
This is really useful. Now I just did this on my system and I get a bunch of disks without serial numbers shown. Is this because I need to install the Netapp PowerShell extensions first? I've been distracted by other issues all day today, and just now got a chance to try this out.
Peter> C:\Users\administrator.VGIBU>wmic diskdrive get serialnumber,deviceid Peter> DeviceID SerialNumber Peter> \.\PHYSICALDRIVE2 2Ff5c]ALEUCc Peter> \.\PHYSICALDRIVE1 2Ff5c]ALEUCe Peter> \.\PHYSICALDRIVE0 6000c29019552f108aa8b158a2eb040d
f35> lun show -v Peter> /vol/luntest/l1 10.0g (10742215680) (r/w, online, mapped) Peter> Serial#: 2Ff5c]ALEUCc Peter> Multiprotocol Type: windows_2008 Peter> Maps: winluntest=1 Peter> /vol/luntest/l2 10.0g (10742215680) (r/w, online, mapped) Peter> Serial#: 2Ff5c]ALEUCe Peter> Multiprotocol Type: windows_2008 Peter> Maps: winluntest=2
Peter> (Yes, I snipped some)
Peter> You won't get the NetApp volume/LUN/host name from tools native Peter> to a host/guest operating system, since that is not presented Peter> in standard SCSI code pages (a.k.a. VPD - Vital Product Data). Peter> NetApp management IP addresses are buried in proprietary pages, Peter> which is how SANLUN, VSC and other tools discover the NetApp Peter> controller or cluster hosting the LUN. From there the tools Peter> match S/N or NAA ID (which contains the S/N), like we just did Peter> above.
This is a shame, since it looks like it wouldn't be all that hard for the info to be pulled out and presented easily enough. Oh well... getting even this much info will be a big help.
John
I don't think you need our PS toolkit. It's not installed on the system I tested with. (Actually a VM, but the LUNs were attached via Windows iSCSI in the guest, so look the same either way.)
Peter
-----Original Message----- From: John Stoffel [mailto:john@stoffel.org] Sent: Tuesday, March 03, 2015 1:35 PM To: Learmonth, Peter Cc: Borzenkov, Andrei; Parisi, Justin; John Stoffel; toasters@teaparty.net Subject: RE: sanlun on Windows?
Peter> Windows command "wmic diskdrive get serialnumber,deviceid" Peter> lists serial number of each device. It just happens to display Peter> the S/N in the same ASCII format as "lun show -v" (7-mode) and Peter> "lun show -vserver <svm> -path <path>".
This is really useful. Now I just did this on my system and I get a bunch of disks without serial numbers shown. Is this because I need to install the Netapp PowerShell extensions first? I've been distracted by other issues all day today, and just now got a chance to try this out.
Peter> C:\Users\administrator.VGIBU>wmic diskdrive get serialnumber,deviceid Peter> DeviceID SerialNumber Peter> \.\PHYSICALDRIVE2 2Ff5c]ALEUCc Peter> \.\PHYSICALDRIVE1 2Ff5c]ALEUCe Peter> \.\PHYSICALDRIVE0 6000c29019552f108aa8b158a2eb040d
f35> lun show -v Peter> /vol/luntest/l1 10.0g (10742215680) (r/w, online, mapped) Peter> Serial#: 2Ff5c]ALEUCc Peter> Multiprotocol Type: windows_2008 Peter> Maps: winluntest=1 Peter> /vol/luntest/l2 10.0g (10742215680) (r/w, online, mapped) Peter> Serial#: 2Ff5c]ALEUCe Peter> Multiprotocol Type: windows_2008 Peter> Maps: winluntest=2
Peter> (Yes, I snipped some)
Peter> You won't get the NetApp volume/LUN/host name from tools native Peter> to a host/guest operating system, since that is not presented in Peter> standard SCSI code pages (a.k.a. VPD - Vital Product Data). Peter> NetApp management IP addresses are buried in proprietary pages, Peter> which is how SANLUN, VSC and other tools discover the NetApp Peter> controller or cluster hosting the LUN. From there the tools Peter> match S/N or NAA ID (which contains the S/N), like we just did Peter> above.
This is a shame, since it looks like it wouldn't be all that hard for the info to be pulled out and presented easily enough. Oh well... getting even this much info will be a big help.
John
you mean besides SnapDrive?
--tmac
*Tim McCarthy*
On Mon, Mar 2, 2015 at 10:25 AM, John Stoffel john@stoffel.org wrote:
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
I dunno... I forgot to include that I'm a Unix/Linux and Netapp storage guy, not a Windows admin at all, but I need to work on getting something working.
So would the PowerShell suggestion, SnapDrive or diskpart be the better tools?
tmac> you mean besides SnapDrive? tmac> --tmac
tmac> Tim McCarthy
tmac> On Mon, Mar 2, 2015 at 10:25 AM, John Stoffel john@stoffel.org wrote:
tmac> Guys,
tmac> Trying to map LUNs presented to a Windows host back to the source tmac> Netapp Volume/Lun using something equivilent to the 'sanlun' command I tmac> can use on Unix systems.
tmac> I tried installing the Windows HUK (Host Utilities Kit) but burried in tmac> the release notes is a cute little statment that 'sanlun' isn't tmac> available on there.
tmac> Is there *any* tool which I can use from Windows to show me the Netapp tmac> volume and lun name from the Windows side of things?
tmac> Thanks, tmac> John tmac> _______________________________________________ tmac> Toasters mailing list tmac> Toasters@teaparty.net tmac> http://www.teaparty.net/mailman/listinfo/toasters