Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1185631
  • 博文数量: 259
  • 博客积分: 10
  • 博客等级: 民兵
  • 技术积分: 2518
  • 用 户 组: 普通用户
  • 注册时间: 2012-10-13 16:12
个人简介

科技改变世界,技术改变人生。

文章分类

全部博文(259)

分类: 系统运维

2015-04-09 16:36:39

HBA,字面理解是主机总线适配卡,我觉得现在狭义的叫做FCHBA,在的HBA也就是Fibre Channel HostBus Adapter,因为网卡是不是也可以叫做NETWORK HBA呢,在FC网络中,主机(如服务器)需要和FC网络、FC存储设备(如SAN)连接时,需要使用一种接口卡,就如同连接以太网需要以太网卡一样。这种接口卡就叫做FC HBA,简称HBA

cat /sys/class/fc_host/hostx/port_name   查看hba卡的状态  redhat 5版本
cd /proc/scsi  之后 ls -al|grep scsi scsi     redhat 6版本

# grep scsi /proc/scsi/qla2300/1
Number of reqs in pending_q= 0, retry_q= 0, done_q= 0,scsi_retry_q= 0
scsi-qla0-adapter-node=200000e08b9cf661;
scsi-qla0-adapter-port=210000e08b9cf661;
就可以查到系统第一块HBA卡的WWNN和WWPN号.

通过工具systool

#systool -c fc_host -v
Class = "fc_host"

  Class Device = "host2"
  Class Device path = "/sys/class/fc_host/host2"
    fabric_name         = "0x10000027f824ea4f"
    issue_lip           =
    node_name           = "0x5001438018753191"
    port_id             = "0x010300"
    port_name           = "0x5001438018753190"     WWN号
    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       = "HPAK344A FW:v5.06.05 DVR:v8.04.00.06.5.6-k2"
    system_hostname     = ""
    tgtid_bind_type     = "wwpn (World Wide Port Name)"
    uevent              =

    Device = "host2"
    Device path = "/sys/devices/pci0000:00/0000:00:01.0/0000:07:00.0/host2"
      fw_dump             =
      nvram               = "ISP "
      optrom_ctl          =
      optrom              =
      reset               =
      sfp                 = ""
      uevent              =
      vpd                 = "?&"
...

Redhat 5.7 额外信息
1、查看HBA卡的速率:cat /sys/class/fc_host/host0/speed
2、查看HBA卡的类型:cat /sys/class/fc_host/host0/port_type
3、查看HBA卡的状态:cat /sys/class/fc_host/host0/port_state
阅读(1635) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~