各作業系統檢視HBA和WWN的方法
1. Linux 中使用Systool檢視HBA資訊
命令systool可以檢視
[root@ABM-APP1 bin]# systool -c fc_host -v | more
Class = "fc_host"
Class Device = "host3"
Class Device path = "/sys/devices/pci0000:00/0000:00:05.0/0000:11:00.0/host3/fc_host/host3"
dev_loss_tmo = "16"
fabric_name = "0x2001002a6a361e19"
issue_lip =
max_npiv_vports = "254"
node_name = "0x5001438028cec4bd"
npiv_vports_inuse = "0"
port_id = "0x051100"
port_name = "0x5001438028cec4bc"
port_state = "Online"
port_type = "NPort (fabric via point-to-point)"
speed = "8 Gbit"
supported_classes = "Class 3"
supported_speeds = "1 Gbit, 2 Gbit, 4 Gbit, 8 Gbit"
symbolic_name = "HPAJ764A FW:v5.06.05 DVR:v8.04.00.04.06.3-k"
system_hostname = ""
tgtid_bind_type = "wwpn (World Wide Port Name)"
uevent =
vport_create =
vport_delete =
Device = "host3"
Device path = "/sys/devices/pci0000:00/0000:00:05.0/0000:11:00.0/host3"
fw_dump =
nvram = "ISP "
optrom =
optrom_ctl =
reset =
sfp = ""
uevent = "DEVTYPE=scsi_host"
vpd = ""
Class Device = "host4"
Class Device path = "/sys/devices/pci0000:00/0000:00:05.0/0000:11:00.1/host4/fc_host/host4"
dev_loss_tmo = "16"
fabric_name = "0x2001002a6a361e19"
issue_lip =
max_npiv_vports = "254"
node_name = "0x5001438028cec4bf"
npiv_vports_inuse = "0"
port_id = "0x051200"
port_name = "0x5001438028cec4be"
port_state = "Online"
port_type = "NPort (fabric via point-to-point)"
speed = "8 Gbit"
supported_classes = "Class 3"
supported_speeds = "1 Gbit, 2 Gbit, 4 Gbit, 8 Gbit"
symbolic_name = "HPAJ764A FW:v5.06.05 DVR:v8.04.00.04.06.3-k"
system_hostname = ""
tgtid_bind_type = "wwpn (World Wide Port Name)"
uevent =
vport_create =
vport_delete =
Device = "host4"
Device path = "/sys/devices/pci0000:00/0000:00:05.0/0000:11:00.1/host4"
fw_dump =
nvram = "ISP "
optrom =
optrom_ctl =
reset =
sfp = ""
uevent = "DEVTYPE=scsi_host"
vpd = ""
可以看出os把兩個hba識別為host3和host4(嗯~~風格和solaris很不一樣)。一般情況下,一個卡
的node_name和port_name 就是指該HBA卡的wwn,他們的值是一樣的。速度啊什麼的該列的引數都給你列出來了。
還有一個藉助systool能看到你的hba卡和哪些裝置連線(或者說能看到哪些儲存)。
[root@ABM-APP1 bin]# systool -c fc_remote_ports -v|more
Class = "fc_remote_ports"
Class Device = "0-0"
Class Device path = "/sys/devices/pci0000:00/0000:00:05.0/0000:11:00.0/host3/rport-3:0-0/fc_remote_ports/r
port-3:0-0"
dev_loss_tmo = "16"
fast_io_fail_tmo = "off"
node_name = "0x50000975f0065000"
port_id = "0x050900"
port_name = "0x50000975f0065144"
port_state = "Online"
roles = "FCP Target"
scsi_target_id = "0"
supported_classes = "Class 3"
uevent =
Device = "rport-3:0-0"
Device path = "/sys/devices/pci0000:00/0000:00:05.0/0000:11:00.0/host3/rport-3:0-0"
uevent =
Class Device = "0-0"
Class Device path = "/sys/devices/pci0000:00/0000:00:05.0/0000:11:00.1/host4/rport-4:0-0/fc_remote_ports/r
port-4:0-0"
dev_loss_tmo = "16"
fast_io_fail_tmo = "off"
node_name = "0xffffffffffffffff"
port_id = "0xffffffff"
port_name = "0x50000975f0065184"
port_state = "Not Present"
roles = "unknown"
scsi_target_id = "0"
supported_classes = "unspecified"
--More—
2. Windows 系統
方法一:在Windows系統中,可以使用FC HBA卡廠家提供的管理軟體檢視光纖介面卡的WWN號碼,具體如下:
Qlogic:SANsurfer
Emulex:HBAnyware
方法二:windows下如何查詢HBA卡的wwn號, windows系統預設沒有檢視HBA的WWN的軟體,但是微軟提供了一個名為“fcinfo”的公用程式可以實現這個功能,其按照和使用如下: 針對不同的CPU,此軟體分為三個版本: fcinfo_amd64(AMD64平臺); fcinfo_ia64(安騰平臺); fcinfo_X86(X86平臺) 選擇合適的平臺版本安裝。軟體下載官方地址: 軟體安裝完以後,在CMD下執行“fninfo”,即可看見結果:
3. SuSE Linux 9
檢視 /proc/scsi/qla2xxx/* ,並以 adapter-port 為關鍵字過濾即可檢視FC HBA卡的WWN資訊:
# cat /proc/scsi/qla2xxx/* | grep adapter-port
scsi-qla0-adapter-port=21000018822c8a2c;
scsi-qla1-adapter-port=21000018822c8a2d;
4. SuSE Linux 10
檢視 /sys/class/fc_host/host*/port_name 檔案的內容即可看到對應FC HBA卡的WWN資訊:
# cat /sys/class/fc_host/host*/port_name
0x210000e08b907955
0x210000e08b902856
5. RedHat Linux AS4
檢視HBA卡WWN:
# grep scsi /proc/scsi/qla2xxx/3
Number of reqs in pending_q= 0, retry_q= 0, done_q= 0, scsi_retry_q= 0
scsi-qla0-adapter-node=20000018822d7834;
scsi-qla0-adapter-port=21000018822d7834;
scsi-qla0-target-0=202900a0b8423858;
scsi-qla0-port-0=200800a0b8423858:202900a0b8423858:0000e8:1;
Linux 核心從2.6.11開始,一部分裝置資訊從/proc中移到了/sys中。
6. 10
提供了fcinfo命令,可以使用 fcinfo hba-port 檢視FC HBA的WWN資訊:
# fcinfo hba-port
檢視光纖卡埠的路徑及連線狀態:
# luxadm -e port
檢視埠的WWN:
# luxadm -e dump_map fibre_channel_HBA_port // 上一命令的輸出
# prtconf –vp | grep -i wwn
# prtpicl –v | grep -i wwn (prtpicl - print PICL tree)
7. HP-UX
找到HBA卡
# ioscan –funC fc
檢視HBA卡資訊
# fcmsutil /dev/fcd0(1)
8. AIX
找出HBA卡
# lsdev -Cc adapter
檢視HBA卡的WWN
# lscfg –vpl fcs0 |grep network address
備註:
AIX中HBAK卡WWN號的規律:
Emulex的HBA的WWN的第一個數字為1
Qlogic的HBA的WWN的第一個數字為2
HP Tachyon HBA的WWN的第一個數字為5
9. RedHat Linux AS5和SuSE Linux 10
RedHat Linux AS5與SuSE Linux 10中檢視FC HBA卡資訊的方法基本一致,在此在RedHat Linux AS5為便介紹如何檢視FC HBA卡資訊。
RedHat AS5系統的 /sys/class/fc_host/host*/port_name 這個檔案包含了所有已被系統發現的FC HBA卡的資訊,使用檢視命令檢視該檔案的內容即可看到FC HBA卡的資訊。
檢視WWPN:cat /sys/class/fc_host/host*/port_name
檢視WWNN:cat /sys/class/fc_host/host*/node_name
1. Linux 中使用Systool檢視HBA資訊
命令systool可以檢視
[root@ABM-APP1 bin]# systool -c fc_host -v | more
Class = "fc_host"
Class Device = "host3"
Class Device path = "/sys/devices/pci0000:00/0000:00:05.0/0000:11:00.0/host3/fc_host/host3"
dev_loss_tmo = "16"
fabric_name = "0x2001002a6a361e19"
issue_lip =
max_npiv_vports = "254"
node_name = "0x5001438028cec4bd"
npiv_vports_inuse = "0"
port_id = "0x051100"
port_name = "0x5001438028cec4bc"
port_state = "Online"
port_type = "NPort (fabric via point-to-point)"
speed = "8 Gbit"
supported_classes = "Class 3"
supported_speeds = "1 Gbit, 2 Gbit, 4 Gbit, 8 Gbit"
symbolic_name = "HPAJ764A FW:v5.06.05 DVR:v8.04.00.04.06.3-k"
system_hostname = ""
tgtid_bind_type = "wwpn (World Wide Port Name)"
uevent =
vport_create =
vport_delete =
Device = "host3"
Device path = "/sys/devices/pci0000:00/0000:00:05.0/0000:11:00.0/host3"
fw_dump =
nvram = "ISP "
optrom =
optrom_ctl =
reset =
sfp = ""
uevent = "DEVTYPE=scsi_host"
vpd = ""
Class Device = "host4"
Class Device path = "/sys/devices/pci0000:00/0000:00:05.0/0000:11:00.1/host4/fc_host/host4"
dev_loss_tmo = "16"
fabric_name = "0x2001002a6a361e19"
issue_lip =
max_npiv_vports = "254"
node_name = "0x5001438028cec4bf"
npiv_vports_inuse = "0"
port_id = "0x051200"
port_name = "0x5001438028cec4be"
port_state = "Online"
port_type = "NPort (fabric via point-to-point)"
speed = "8 Gbit"
supported_classes = "Class 3"
supported_speeds = "1 Gbit, 2 Gbit, 4 Gbit, 8 Gbit"
symbolic_name = "HPAJ764A FW:v5.06.05 DVR:v8.04.00.04.06.3-k"
system_hostname = ""
tgtid_bind_type = "wwpn (World Wide Port Name)"
uevent =
vport_create =
vport_delete =
Device = "host4"
Device path = "/sys/devices/pci0000:00/0000:00:05.0/0000:11:00.1/host4"
fw_dump =
nvram = "ISP "
optrom =
optrom_ctl =
reset =
sfp = ""
uevent = "DEVTYPE=scsi_host"
vpd = ""
可以看出os把兩個hba識別為host13和host14(嗯~~風格和solaris很不一樣)。一般情況下,一個卡
的node_name和port_name 就是指該HBA卡的wwn,他們的值是一樣的。速度啊什麼的該列的引數都給你列出來了。
還有一個藉助systool能看到你的hba卡和哪些裝置連線(或者說能看到哪些儲存)。
[root@ABM-APP1 bin]# systool -c fc_remote_ports -v|more
Class = "fc_remote_ports"
Class Device = "0-0"
Class Device path = "/sys/devices/pci0000:00/0000:00:05.0/0000:11:00.0/host3/rport-3:0-0/fc_remote_ports/r
port-3:0-0"
dev_loss_tmo = "16"
fast_io_fail_tmo = "off"
node_name = "0x50000975f0065000"
port_id = "0x050900"
port_name = "0x50000975f0065144"
port_state = "Online"
roles = "FCP Target"
scsi_target_id = "0"
supported_classes = "Class 3"
uevent =
Device = "rport-3:0-0"
Device path = "/sys/devices/pci0000:00/0000:00:05.0/0000:11:00.0/host3/rport-3:0-0"
uevent =
Class Device = "0-0"
Class Device path = "/sys/devices/pci0000:00/0000:00:05.0/0000:11:00.1/host4/rport-4:0-0/fc_remote_ports/r
port-4:0-0"
dev_loss_tmo = "16"
fast_io_fail_tmo = "off"
node_name = "0xffffffffffffffff"
port_id = "0xffffffff"
port_name = "0x50000975f0065184"
port_state = "Not Present"
roles = "unknown"
scsi_target_id = "0"
supported_classes = "unspecified"
--More—
2. Windows 系統
方法一:在Windows系統中,可以使用FC HBA卡廠家提供的管理軟體檢視光纖介面卡的WWN號碼,具體如下:
Qlogic:SANsurfer
Emulex:HBAnyware
方法二:windows下如何查詢HBA卡的wwn號, windows系統預設沒有檢視HBA的WWN的軟體,但是微軟提供了一個名為“fcinfo”的公用程式可以實現這個功能,其按照和使用如下: 針對不同的CPU,此軟體分為三個版本: fcinfo_amd64(AMD64平臺); fcinfo_ia64(安騰平臺); fcinfo_X86(X86平臺) 選擇合適的平臺版本安裝。軟體下載官方地址: 軟體安裝完以後,在CMD下執行“fninfo”,即可看見結果:
3. SuSE Linux 9
檢視 /proc/scsi/qla2xxx/* ,並以 adapter-port 為關鍵字過濾即可檢視FC HBA卡的WWN資訊:
# cat /proc/scsi/qla2xxx/* | grep adapter-port
scsi-qla0-adapter-port=21000018822c8a2c;
scsi-qla1-adapter-port=21000018822c8a2d;
4. SuSE Linux 10
檢視 /sys/class/fc_host/host*/port_name 檔案的內容即可看到對應FC HBA卡的WWN資訊:
# cat /sys/class/fc_host/host*/port_name
0x210000e08b907955
0x210000e08b902856
5. RedHat Linux AS4
檢視HBA卡WWN:
# grep scsi /proc/scsi/qla2xxx/3
Number of reqs in pending_q= 0, retry_q= 0, done_q= 0, scsi_retry_q= 0
scsi-qla0-adapter-node=20000018822d7834;
scsi-qla0-adapter-port=21000018822d7834;
scsi-qla0-target-0=202900a0b8423858;
scsi-qla0-port-0=200800a0b8423858:202900a0b8423858:0000e8:1;
Linux 核心從2.6.11開始,一部分裝置資訊從/proc中移到了/sys中。
6. 10
提供了fcinfo命令,可以使用 fcinfo hba-port 檢視FC HBA的WWN資訊:
# fcinfo hba-port
檢視光纖卡埠的路徑及連線狀態:
# luxadm -e port
檢視埠的WWN:
# luxadm -e dump_map fibre_channel_HBA_port // 上一命令的輸出
# prtconf –vp | grep -i wwn
# prtpicl –v | grep -i wwn (prtpicl - print PICL tree)
7. HP-UX
找到HBA卡
# ioscan –funC fc
檢視HBA卡資訊
# fcmsutil /dev/fcd0(1)
8. AIX
找出HBA卡
# lsdev -Cc adapter
檢視HBA卡的WWN
# lscfg –vpl fcs0 |grep network address
備註:
AIX中HBAK卡WWN號的規律:
Emulex的HBA的WWN的第一個數字為1
Qlogic的HBA的WWN的第一個數字為2
HP Tachyon HBA的WWN的第一個數字為5
9. RedHat Linux AS5和SuSE Linux 10
RedHat Linux AS5與SuSE Linux 10中檢視FC HBA卡資訊的方法基本一致,在此在RedHat Linux AS5為便介紹如何檢視FC HBA卡資訊。
RedHat AS5系統的 /sys/class/fc_host/host*/port_name 這個檔案包含了所有已被系統發現的FC HBA卡的資訊,使用檢視命令檢視該檔案的內容即可看到FC HBA卡的資訊。
檢視WWPN:cat /sys/class/fc_host/host*/port_name
檢視WWNN:cat /sys/class/fc_host/host*/node_name
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/645199/viewspace-1385615/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Redhat Server檢視HBA和WWN的方法RedhatServer
- Linux下HBA卡的WWN檢視Linux
- 檢視AIX基於HBA的儲存的WWN號AI
- 檢視系統中的WWN號
- linux作業系統如何識別hba卡的wwn號Linux作業系統
- linux系統檢視wwn號Linux
- 常用作業系統檢視主機的WWN號碼作業系統
- Redhat Linux下安裝HBA卡並檢視WWN號RedhatLinux
- 查詢hba卡wwn號
- UNIX/LINUX平臺下檢視MAC和WWN地址的方法LinuxMac
- Linux/Unix下檢視WWN號碼的方法Linux
- redhat linux系統下檢視Emulex HBA卡基本命令RedhatLinux
- 如何檢視solaris系統的版本和位數?solaris系統的版本和位數的檢視方法
- 各平臺檢視wwn號
- 各作業系統下php.ini檔案的位置在哪裡作業系統PHP
- ORACLE主要的系統表和系統檢視Oracle
- [HP-UX] 如何檢視linux/unix檢視wwn號[轉載]Linux
- Linux檢視光纖儲存wwn號Linux
- 檢視作業系統基本資訊作業系統
- 檢視作業系統塊大小作業系統
- 如何檢視作業系統的塊大小作業系統
- 系統狀態統計和檢視
- UNIX系統記憶體檢視方法記憶體
- CentOS下檢視系統版本的4種方法CentOS
- Windows10系統檢視DX版本的方法Windows
- Windows10系統檢視顯示卡配置的方法Windows
- aix/sun系統是多少位的檢視方法AI
- ORACLE在各作業系統訊號量與共享記憶體的維護Oracle作業系統記憶體
- 檢視作業系統位數(zt)作業系統
- 如何檢視作業系統(OS)的位數?作業系統
- XP上作業系統塊的檢視命令作業系統
- Linux作業系統中開啟檔案數量的檢視方法Linux作業系統
- 檢視linux 作業系統上系統塊大小Linux作業系統
- Ubuntu系統iptables規則的檢視和清除Ubuntu
- 系統關鍵程式的檢視和比較
- 系統表和資料字典檢視
- win10系統後如何檢視多久過期 檢視win10系統有效期的方法Win10
- 如何檢視Linux作業系統版本?Linux作業系統