what is LUN NAA
A LUN Network Address Authority (NAA) number is a globally unique identifier for a LUN. The NAA number can be used to determine a LUN's serial number and vice-versa.
Method
Data ONTAP operating in 7-Mode or clustered Data ONTAP 8.3 or later include a LUN command to obtain the LUN serial number in the hexadecimal format:
lun serial -x /vol/test/lun
Serial (hex)#: 0x486e542d4f5a2f47694d684b
Take the example of a LUN with the following NAA number:
Remove the NAA string and the first 8 characters. In this example,
naa.60a98000486e542d4f5a2f47694d684b
Remove the NAA string and the first 8 characters. In this example,
naa.60a98000
(this is one of the NetApp vendor identifiers).
The remaining value (
486e542d4f5a2f47694d684b
) is the hexadecimal string which, when converted from HEX to ASCII, will be the LUN serial number. There are many Web-based tools to convert HEX to ASCII and vice-versa if you are using a version of Data ONTAP that does not have the lun serial -x
command available.486e542d4f5a2f47694d684b
in HEX converts to an ASCII value of HnT-OZ/GiMhK
You can use either the output of the command
lun show –v,
or review the 'LUN CONFIGURATION' section of a storage system’s autosupport output to determine which is the LUN, based on the LUN serial number in the ASCII format.
The following is an example of the output of the
lun show –v
command:Filer1> lun show -v /vol/test/lun
/vol/test/lun 5g (5368709120)(r/w, online, mapped)
Serial#: HnT-OZ/GiMhK
Share: none
Space Reservation: disabled
Multiprotocol Type: vmware
Maps: test=0
after taking the serial number convert the string value to Hex value using any online tool
append the NAA prefix based on the table below:
Note the LUN serial number above (
HnT-0Z/GiMhK
). The LUN with naa.60a98000486e542d4f5a2f47694d684b
is /vol/test/lun
.
NAA prefixes:
Clustered Data ONTAP and Data ONTAP 7-Mode naa.60a98000
Clustered Data ONTAP naa.600a0980
E-Series naa.60080e50