大网数据广告活动
服务器运维问答

how to determine the iscsi target's naa in linux

· 52CE 我爱测

I understand that iSCSI uses iqn / eui to identify target LUN. Once I have discovered the iSCSI target and logged in is there a way to determine the LUN's NAA id for the remote target from a linux (RHEL/Centos) machine ?

问题原文

原帖链接 · gusaki · CC BY-SA 3.0

I understand that iSCSI uses iqn / eui to identify target LUN. Once I have discovered the iSCSI target and logged in is there a way to determine the LUN's NAA id for the remote target from a linux (RHEL/Centos) machine ?

已采纳解答

原帖链接 · Dima Chubarov · CC BY-SA 3.0

You could use scsi_id to send the INQUIRY command to the device to get its identifiers.

The following example is based on the old scsi_id syntax that is used in RHEL 5.

/sbin/scsi_id -g -p 0x83 -s /block/sdd  
36006016018202a00520d0d1ea99de111

In the new syntax as in RHEL/CentOS 6 the long option format is used.

scsi_id --whitelisted --page=0x83 --device=/dev/sdd 

Here the first digit indicates a NAA identifier (3), the second digit indicates the IEEE Registered extended format (6), next 00:60:16 is the 24-bit vendor ID. In this example we have a vendor ID that maps to EMC Corporation's CLARIION OUI. The next 9 digits are the vendor specific id: 018202a00. The remaining 16 digits are the specific naa ID 520d 0d1e a99d e111.

This would correspond to 128-bit NAA identifier naa.6006016018202a00520d0d1ea99de111

The -g or --whitelisted option is needed since by default scsi_id blacklists all devices.

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2014-03-11)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 3.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。