Software Development Kit (SDK) and API Discussions
Software Development Kit (SDK) and API Discussions
Hi,
I'm looking for a way to extract the LUN WWN from a Netapp LUN.
From the netapp mib, I only have the LUN Serial Number. I was wondering if such concept exists on Netapp filers.. ?
If it is not available from the MIB, I wonder if other API would expose it ?
Regards
Marc
Hi Marc and welcome to the communities!
My understanding is that in NetApp world igroup (initiator group) carries WWN address, not an individual LUN.
E.g. this shows how to identify a particular LUN by using its ID plus igroup WWN combination:
https://now.netapp.com/Knowledgebase/solutionarea.asp?id=ntapcs16500
Regards,
Radek
Hello Radek,
First, I unfortunatly don't have access to read the provided link . I guess my level of access prohibit this page to be viewed...
Well, my understand of LUNs, is that all vendors, either in the FiberChannel world, and in the iSCSI world uses LUN WWN, which would be a unique identifer of a LUN. They also provide a Serial Number, as in regular SCSI. These refers to VDP pages 0x80 & 0x83. Please correct me if I'm wrong.
I can already the the Serial Number, but I'm wondering how the LUN WWN is handled on Netapp filers, or even if such concepts exists.
Best regards
Marc
This is what the article says:
How to determine which LUN on the filer is mounted as which drive on the Windows host |
Solution |
|
Take the serial number from your lun show -v:
filer> lun show -v
/vol/vol1/lun0 40m (41943040)
Serial#: "OdCvFnbbKzih"
Run the "OdCvFnbbKzih" through your favorite online text to hex converter and you get:
4f644376466e62624b7a6968
add the NetApp prefix "60a98000"
and you get "60a98004f644376466e62624b7a6968" which is the WWID of the LUN.
Hope that helps,
-Danh
You may use online storage converter
lun serial -x /vol/lun10_vol10/lun10
Serial (hex)#: 0x424230554f2b436779773449
Hi Danh,
I am getting wwid as '360a98000426d526f4224443042567a61'. please let me know whether the prefix for netapp is changed now?
i used the scsi_id command in centos to get the wwid of the iscsi lun.
Thanks,
Muruges
The '360a98000426d526f4224443042567a61' is what you will see on a linux box.
The "naa.60a98000426d526f4224443042567a61" is what you will see in vmware.
Looks like Igor's method is much faster at getting the WWN.
-Danh
There's a readymade website for this now,
http://tower.voleg.info/netapp_serial_to_wwid_converter.html
Works nice. 🙂