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 ?
Take the serial number from your lun show -v:
filer> lun show -v
/vol/vol1/lun0 40m (41943040)
Run the "OdCvFnbbKzih" through your favorite online text to hex converter and you get:
add the NetApp prefix "60a98000"
and you get "60a98004f644376466e62624b7a6968" which is the WWID of the LUN.
Hope that helps,
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.
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.
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:
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.
This is what the article says:
|How to determine which LUN on the filer is mounted as which drive on the Windows host|