当前host+store的主机架构仍是硬件运维作业的主要形式,在这种传统数据传输架构中最让管理员头疼的就是链路巡检和排查。下面分享工作中总结的一些思路,请各位参考和指正。
一、主机hba卡信息的获取
windows系统
工具:fcinfo
安装:需要安装
下载地址:http://www.microsoft.com/en-us/download/details.aspx?id=17530
1.linux系统
(1).检查HBA设备是否存在
05:00.0 Fibre Channel: QLogic Corp. ISP2432-based 4Gb Fibre Channel to PCI Express HBA (rev 03)
90:00.0 Fibre Channel: QLogic Corp. ISP2432-based 4Gb Fibre Channel to PCI Express HBA (rev 03)
(2).查看HBA卡的WWN号,查看端口状态
cat /sys/class/fc_host/host[n]/port_name 注意这里的n表示数字,视环境而定。
-----------------------------------------------------
0x210000**********
cat /sys/class/fc_host/host[n]/port_state
-----------------------------------------------------
Online
3.esx主机
more /proc/scsi/[HBA型号]/[n]
举例:
SCSI Device Information:
scsi-qla0-adapter-node=200000**********:300b00:0;
scsi-qla0-adapter-port=210000**********:300b00:0;
FC Target-Port List:
scsi-qla0-target-0=2049000*********:301100:81:Online;
scsi-qla0-target-1=2048000*********:301200:82:Online;
scsi-qla0-target-2=2100002*********:301800:83:Online;
4.solaris系统 v10
(1).查看WWN号
fcinfohba-port
luxadm -e dump_mapfibre_channel_HBA_port
prtconf –vp | grep -i wwn
prtpicl –v | grep -i wwn (prtpicl - print PICL tree)
(2).查看状态和链路
luxadm -e port
二、linux fc链路巡检
1.单链路:host到存储只有一条链路
df -h 查看磁盘是否掉线即可
2.多路径:host到存储有2条以上的链路
multipath -ll
sdap: checker msg is "readsector0 checker reports path is down" 掉线警告
sdaq: checker msg is