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/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Linux檢視光纖儲存wwn號Linux
- redhat 7.x 、redhat 6.x檢視硬碟UUID方法Redhat硬碟UI
- sql-server檢視SQLServer
- MySQL檢視和修改字符集的方法MySql
- 如何檢視solaris系統的版本和位數?solaris系統的版本和位數的檢視方法
- 檢視consoe具有的方法和屬性
- Oracle普通檢視和物化檢視的區別Oracle
- Linux檢視程式PID的方法?Linux
- Linux檢視網路卡流量方法的工具和命令彙總Linux
- django 的類檢視和函式檢視-雜談Django函式
- Django的檢視和模板Django
- Sql Server關於indexed view索引檢視的總結SQLServerIndexView索引
- Sql Server Linux(Redhat) Distributed Availability Group Setup — step by stepSQLServerLinuxRedhatAI
- 檢視mysql版本的六種方法MySql
- win10如何檢視版本_win10檢視版本的方法Win10
- SQL Server 檢視錶佔用空間大小SQLServer
- SQL Server建立使用者只能訪問指定資料庫和檢視SQLServer資料庫
- win10怎麼檢視自己電腦的IP地址和dns_win10檢視電腦的IP地址和dns的方法Win10DNS
- HGDB的分割槽表實現SQL Server的分割槽檢視SQLServer
- RedHat下MySQL的基本使用方法分享RedhatMySql
- 2.7.11 檢視引數設定的方法
- 在Linux命令列檢視影像的方法Linux命令列
- SQL Server檢視所有表大小,所佔空間SQLServer
- day04-檢視和檢視解析器
- Django檢視之檢視類和中介軟體Django
- Centos和Redhat有什麼關係?Centos和Redhat的區別與聯絡介紹CentOSRedhat
- 怎麼檢視電腦是windows幾 檢視電腦windows版本的方法Windows
- VisualSVN Server的配置和使用方法 圖文Server
- 檢視SQL Server資料庫修改了哪些內容SQLServer資料庫
- 檢視windows server 2003 是32位還是64位WindowsServer
- linux下檢視mysql版本的四種方法LinuxMySql
- mysql檢視主從同步狀態的方法MySql主從同步
- Linux檢視檔案大小的幾種方法Linux
- drf : 通用檢視類和(GenericAPIView)5個檢視擴充套件類,九個檢視子類,檢視集。APIView套件
- javascript - 所有的檢視屬性和方法(offsetHeight、clientHeight、scrollHeight、innerHeight等)JavaScriptclient
- RAKsmart伺服器檢視網路攻擊和投訴封停的方法伺服器
- 11 UML中的邏輯檢視、程序檢視、實現檢視、部署檢視
- linux程式和埠檢視Linux
- JavaScript 檢視全文和收起JavaScript