NetApp Community Update
This site will enter Read Only mode on July 23 as we prepare to move to a new platform. You will still be able to view content, but posting and replying will be temporarily disabled.
We're excited to launch our new Community experience on July 30 and more information will follow soon.
Stay connected during the transition - Join our Discord community today.

ONTAP Discussions

Identify ONTAP LUN on Windows host

schmitz_peter
14,106 Views

Hi all,

 

I give up, I'll never be a Windows guy.

 

Please enlighten me: With no SnapDrive on board, how is it possible to identify the name of an iSCSI LUN on an ONTAP 9 filer?

 

I tried to match any sort of number from the outputs of

 

::> lun mapping show

::> lun show

and

::> iscsi session show

 

with the outputs of

 

PS C:\Users\admin> iscsicli

and

PS C:\Users\admin> Get-IscsiConnection

 

 

to no avail.

 

All I want is to find the name of the LUN/volume on Windows to find the corresponding object on the filer to modify.

 

 

Any clues?

 

Thanks and best regards

 

Peter

 

1 ACCEPTED SOLUTION

dkon
14,002 Views

Using native MPIO you can find the serial number with something like `mplcaim -v mpio.txt`.  Pop open mpio.txt to find the SN, and you should be able to match that up with the output of `lun show -fields serial-hex` on the filer.  Match up the MPIO disks to system disks with `mpclaim -s -d`.

 

View solution in original post

5 REPLIES 5

mjdalton1
14,100 Views

Have you tried the MicroSoft iSCSI initiator utility in Windows. This should give you the LUN ID 

 

https://www.techrepublic.com/blog/how-do-i/how-do-i-install-configure-and-use-microsofts-iscsi-initiator/

 

Hope this helps

schmitz_peter
14,022 Views

@mjdalton1 wrote:

Have you tried the MicroSoft iSCSI initiator utility in Windows. This should give you the LUN ID 

 

https://www.techrepublic.com/blog/how-do-i/how-do-i-install-configure-and-use-microsofts-iscsi-initiator/

 

Hope this helps


 

I have, yes. Unfortunately LUN ID reported by Windows doesn't match the LUN ID on the NetApp side.

 

But thanks for the info.

 

Peter

dkon
14,003 Views

Using native MPIO you can find the serial number with something like `mplcaim -v mpio.txt`.  Pop open mpio.txt to find the SN, and you should be able to match that up with the output of `lun show -fields serial-hex` on the filer.  Match up the MPIO disks to system disks with `mpclaim -s -d`.

 

schmitz_peter
13,992 Views

@dkon wrote:

Using native MPIO you can find the serial number with something like `mplcaim -v mpio.txt`.  Pop open mpio.txt to find the SN, and you should be able to match that up with the output of `lun show -fields serial-hex` on the filer.  Match up the MPIO disks to system disks with `mpclaim -s -d`.

 


Yeah, that's it! Cheers.

 

Peter

RJC
8,714 Views

The mpclaim approach did not work for me.

The powershell command in the following NetApp KB worked perfectly 🙂

https://kb.netapp.com/onprem/ontap/da/SAN/How_to_find_the_serial_number_of_a_LUN_in_Windows_using_PowerShell

 

This provides the value you can find in ONTAP for the "serial", not the "serial-hex".

Public