Redhat Server檢視HBA和WWN的方法
Redhat Server檢視HBA和WWN的方法 (2011-01-30 18:13)
在redhat下檢視wwn是件麻煩事,有的人說用vendor自帶的工具查,有的說可以看/proc/scsi/下的某個目錄檔案,偏偏我遇到的,這些都看不見,雖然使用的是QLogic,但是系統沒安裝,未經許可也不方便隨便安裝這些軟體,只能另想辦法。
查了很多資料,終於知道有個命令systool可以實現
[ tmp]# systool -c fc_host -v
Class = "fc_host"
Class Device = "host13"
Class Device path = "/sys/class/fc_host/host13"
fabric_name = "0xxxxxxxxxxxxx"
issue_lip =
node_name = "0xxxxxxxxxxx"
port_id = "0x331400"
port_name = "0xxxxxxxxxxx"
port_state = "Online"
port_type = "NPort (fabric via point-to-point)"
speed = "4 Gbit"
supported_classes = "Class 3"
supported_speeds = "1 Gbit, 2 Gbit, 4 Gbit"
symbolic_name = "QLE2460 FW:v4.04.09 DVR:v8.03.01.04.05.05-k"
system_hostname = ""
tgtid_bind_type = "wwpn (World Wide Port Name)"
uevent =
Device = "host13"
Device path = "/sys/devices/pci0000:00/0000:00:0a.0/0000:02:00.0/host13"
ct =
els =
fw_dump =
nvram = "ISP "
optrom_ctl =
optrom =
reset =
sfp = ""
uevent =
vpd = "?0"
Class Device = "host14"
Class Device path = "/sys/class/fc_host/host14"
fabric_name = "0xxxxxxxxxxx"
issue_lip =
node_name = "0xxxxxxxxxxx"
port_id = "0x331400"
port_name = "0xxxxxxxxxxx"
port_state = "Online"
port_type = "NPort (fabric via point-to-point)"
speed = "4 Gbit"
supported_classes = "Class 3"
supported_speeds = "1 Gbit, 2 Gbit, 4 Gbit"
symbolic_name = "QLE2460 FW:v4.04.09 DVR:v8.03.01.04.05.05-k"
system_hostname = ""
tgtid_bind_type = "wwpn (World Wide Port Name)"
uevent =
Device = "host14"
Device path = "/sys/devices/pci0000:80/0000:80:0b.0/0000:81:00.0/host14"
ct =
els =
fw_dump =
nvram = "ISP "
optrom_ctl =
optrom =
reset =
sfp = ""
uevent =
vpd = "?0"
可以看出os把兩個hba識別為host13和host14(嗯~~風格和solaris很不一樣)。一般情況下,一個卡
的node_name和port_name 就是指該HBA卡的wwn,他們的值是一樣的。速度啊什麼的該列的引數都給你列出來了。
還有一個藉助systool能看到你的hba卡和哪些裝置連線(或者說能看到哪些儲存)。
[tmp]# systool -c fc_remote_ports -v|more
Class = "fc_remote_ports"
Class Device = "0-0"
Class Device path = "/sys/class/fc_remote_ports/rport-13:0-0"
dev_loss_tmo = "60"
fast_io_fail_tmo = "off"
node_name = "0xxxxxxxxxxxx"
port_id = "0x330400"
port_name = "0xxxxxxxxxxx"
port_state = "Online"
roles = "FCP Initiator"
scsi_target_id = "-1"
supported_classes = "Class 3"
uevent =
....
查了很多資料,終於知道有個命令systool可以實現
[ tmp]# systool -c fc_host -v
Class = "fc_host"
Class Device = "host13"
Class Device path = "/sys/class/fc_host/host13"
fabric_name = "0xxxxxxxxxxxxx"
issue_lip =
node_name = "0xxxxxxxxxxx"
port_id = "0x331400"
port_name = "0xxxxxxxxxxx"
port_state = "Online"
port_type = "NPort (fabric via point-to-point)"
speed = "4 Gbit"
supported_classes = "Class 3"
supported_speeds = "1 Gbit, 2 Gbit, 4 Gbit"
symbolic_name = "QLE2460 FW:v4.04.09 DVR:v8.03.01.04.05.05-k"
system_hostname = ""
tgtid_bind_type = "wwpn (World Wide Port Name)"
uevent =
Device = "host13"
Device path = "/sys/devices/pci0000:00/0000:00:0a.0/0000:02:00.0/host13"
ct =
els =
fw_dump =
nvram = "ISP "
optrom_ctl =
optrom =
reset =
sfp = ""
uevent =
vpd = "?0"
Class Device = "host14"
Class Device path = "/sys/class/fc_host/host14"
fabric_name = "0xxxxxxxxxxx"
issue_lip =
node_name = "0xxxxxxxxxxx"
port_id = "0x331400"
port_name = "0xxxxxxxxxxx"
port_state = "Online"
port_type = "NPort (fabric via point-to-point)"
speed = "4 Gbit"
supported_classes = "Class 3"
supported_speeds = "1 Gbit, 2 Gbit, 4 Gbit"
symbolic_name = "QLE2460 FW:v4.04.09 DVR:v8.03.01.04.05.05-k"
system_hostname = ""
tgtid_bind_type = "wwpn (World Wide Port Name)"
uevent =
Device = "host14"
Device path = "/sys/devices/pci0000:80/0000:80:0b.0/0000:81:00.0/host14"
ct =
els =
fw_dump =
nvram = "ISP "
optrom_ctl =
optrom =
reset =
sfp = ""
uevent =
vpd = "?0"
可以看出os把兩個hba識別為host13和host14(嗯~~風格和solaris很不一樣)。一般情況下,一個卡
的node_name和port_name 就是指該HBA卡的wwn,他們的值是一樣的。速度啊什麼的該列的引數都給你列出來了。
還有一個藉助systool能看到你的hba卡和哪些裝置連線(或者說能看到哪些儲存)。
[tmp]# systool -c fc_remote_ports -v|more
Class = "fc_remote_ports"
Class Device = "0-0"
Class Device path = "/sys/class/fc_remote_ports/rport-13:0-0"
dev_loss_tmo = "60"
fast_io_fail_tmo = "off"
node_name = "0xxxxxxxxxxxx"
port_id = "0x330400"
port_name = "0xxxxxxxxxxx"
port_state = "Online"
roles = "FCP Initiator"
scsi_target_id = "-1"
supported_classes = "Class 3"
uevent =
....
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/22907091/viewspace-723582/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 各作業系統檢視HBA和WWN的方法作業系統
- Redhat Linux下安裝HBA卡並檢視WWN號RedhatLinux
- Linux下HBA卡的WWN檢視Linux
- 檢視AIX基於HBA的儲存的WWN號AI
- 查詢hba卡wwn號
- UNIX/LINUX平臺下檢視MAC和WWN地址的方法LinuxMac
- Linux/Unix下檢視WWN號碼的方法Linux
- redhat linux系統下檢視Emulex HBA卡基本命令RedhatLinux
- 檢視系統中的WWN號
- 各平臺檢視wwn號
- Redhat Linux 7檢視和啟停防火牆的方法RedhatLinux防火牆
- linux系統檢視wwn號Linux
- linux作業系統如何識別hba卡的wwn號Linux作業系統
- [HP-UX] 如何檢視linux/unix檢視wwn號[轉載]Linux
- how to add a hba adapter on redhatAPTRedhat
- Linux檢視光纖儲存wwn號Linux
- redhat 7.x 、redhat 6.x檢視硬碟UUID方法Redhat硬碟UI
- 常用作業系統檢視主機的WWN號碼作業系統
- 【MySQL】檢視MySQL Server引數方法MySqlServer
- sql server 檢視tempdb使用的相關檢視SQLServer
- SQL Server基礎之《檢視的概述和基本操作》SQLServer
- sql-server檢視SQLServer
- Sql Server系列:檢視SQLServer
- MySQL檢視和修改字符集的方法MySql
- oracle 檢視和修改global_name 的方法Oracle
- (轉)檢視sql server 資料庫連線數方法SQLServer資料庫
- Redhat 5.3 安裝hba卡,配置emc powerpath,配置LVMRedhatLVM
- 檢視錶、檢視、索引、儲存過程和觸發器的定義的方法索引儲存過程觸發器
- 如何檢視solaris系統的版本和位數?solaris系統的版本和位數的檢視方法
- 利用DBCC PAGE檢視SQL Server中的表和索引資料SQLServer索引
- 檢視Androi的appPackage和Activity的多種方法APPPackage
- aix etherchannel 切換方法和檢視方式AI
- SQL SERVER檢視列的預設值SQLServer
- 檢視Sql Server的log檔案大小SQLServer
- 普通檢視和物化檢視的區別
- Oracle普通檢視和物化檢視的區別Oracle
- Redhat 5.3 安裝hba卡,配置emc powerpath,配置LVM-轉RedhatLVM
- 如何檢視和轉移 Windows Server 2003 中的 FSMO 角色WindowsServer