跳转到主内容

如何将 LUN NAA 编号与其序列号匹配

Views:
250
Visibility:
Public
Votes:
1
Category:
flexpod-with-infrastructure-automation
Specialty:
virt
Last Updated:

适用场景

  • SAN
  • FlexPod

问题描述

LUN网络地址颁发机构(NAA)编号是LUN的全局唯一标识符。NAA编号可用于确定LUN的序列号、反之亦然。

操作步骤

在7-模式或集群模式Data ONTAP 8.3或更高版本中运行的Data ONTAP包含一个LUN命令、用于以十六进制格式获取LUN序列号:

lun serial -x /vol/test/lun

Serial (hex)#: 0x486e542d4f5a2f47694d684b

以具有以下NAA编号的LUN为例:

naa.60a98000486e542d4f5a2f47694d684b

删除NAA字符串和前8个字符。在此示例中、为naa.60a98000 (这是NetApp供应商标识符之一)。

剩余值(486e542d4f5a2f47694d684b)是十六进制字符串、从十六进制转换为ASCII后、该字符串将成为LUN序列号。有许多基于Web的工具可将十六进制转换为ASCII、如果您使用的Data ONTAP版本没有可用的LUN serial -x命令、则可将十六进制转换为ASCII、反之亦然。

486e542d4f5a2f47694d684b 在十六进制中、将转换为Hnt-oz/GiMhK的ASCII值

您可以 使用命令的输出 lun show –v,也可以查看存储系统AutoSupport输出中的"LUN configuration"部分,根据ASCII格式的LUN序列号确定LUN。

以下是 lun show –v 命令输出的示例:

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

记下上面的LUN序列号(Hnt-0Z/GiMhK)。naa.60a98000486e542d4f5a2f47694d684b的LUN为/vol/test/lun。

注意: 有关在VMware ESX环境中识别磁盘的详细信息,请参阅VMware文章 1014953

NetApp NAA前缀如下:

集群模式Data ONTAP和Data ONTAP 7-模式 NAA.60a98000
集群模式 Data ONTAP NAA.600a0980
E 系列 naa.60080e5、naa.600a098、naa.6d039ea

 

NetApp provides no representations or warranties regarding the accuracy or reliability or serviceability of any information or recommendations provided in this publication or with respect to any results that may be obtained by the use of the information or observance of any recommendations provided herein. The information in this document is distributed AS IS and the use of this information or the implementation of any recommendations or techniques herein is a customer's responsibility and depends on the customer's ability to evaluate and integrate them into the customer's operational environment. This document and the information contained herein may be used solely in connection with the NetApp products discussed in this document.