HP-UX - HBA Fiber Channel connectivity check

HP-UX、Linux、Tru64 UNIX、NonStop、OpenVMS、Windows Server等,数据中心、虚拟化方案等

版主: xyevolve

版面规则
1. 本版是定位于惠普软件系统及解决方案的技术讨论区。
2. 本版鼓励发帖共同讨论技术问题,不鼓励站内信件私下交流,独知知不如众知知。
3. 本版允许转贴或引用他人的作品,但必须声明原作者信息。
4. 本版禁止发表出售、求购、或其他非技术讨论等帖子。
5. 本版禁止灌水,包括但不限于任何与所讨论主题无关的回复,无意义字符,直接复制其他回复等。
6. 本站附件禁止用于商业目的,请在下载后24小时内删除,本站不对其造成的结果负任何责任。
回复
admin
网站编辑
帖子: 767
注册时间: 2010年 12月 22日 04:06 星期三

HP-UX - HBA Fiber Channel connectivity check

帖子 admin » 2015年 4月 28日 19:58 星期二

Log in via the terminal on your HP-UX system with your root account or an account that has sufficient rights.

Enter the following command: (ioscan -fnCfc make sure it isn't capitalized. 11i won't see it if it's FC)

ioscan -fnCfc

Class I H/W Path Driver S/W State H/W Type Description
=================================================================
fc 0 0/4/2/0 td CLAIMED INTERFACE HP Tachyon Fibre Channel Adapter
/dev/td0
fc 1 0/5/2/0 td CLAIMED INTERFACE HP Tachyon Fibre Channel Adapter
/dev/td1

ioscan scans system hardware, usable I/O system devices, or kernel I/O system data structures as appropriate, and lists the results. For each hardware module on the system, ioscan displays by default the hardware path to the hardware module, the class of the hardware module, and a brief description.You see both Fibre Channel cards are claimed by the system in above example. That's a good thing!

Other "ioscan"commands are:

for HDD

ioscan -nfCdisk

for LAN

ioscan -nfClan

for Fiber Channel

ioscan -nfCfc

If the device has been replaced intentionally as I did, use the fcmsutil replace_dsk command (Fibre Channel Mass Storage Utility) Command to allow the new device to be used. In point 3 you see two HBA's with /dev/td0 and /dev/td1. We are going to use these ones to check it.

Enter the following command:

fcmsutil /dev/td0
fcmsutil /dev/td1


Vendor ID is = 0x00103c
Device ID is = 0x001029
XL2 Chip Revision No is = 2.3
PCI Sub-system Vendor ID is = 0x00103c
PCI Sub-system ID is = 0x00128c
Topology = PTTOPT_FABRIC
Link Speed = 2Gb
Local N_Port_id is = 0x160200
N_Port Node World Wide Name = 0x50060b000035375b
N_Port Port World Wide Name = 0x50060b000035375a
Driver state = ONLINE
Hardware Path is = 0/4/2/0
Number of Assisted IOs = 1264
Number of Active Login Sessions = 0
Dino Present on Card = NO
Maximum Frame Size = 2048
Driver Version = @(#) libtd.a HP Fibre Channel Tachyon TL/TS/XL2 Driver B.11.11.12 PATCH_11.11 (PHSS_31326) /ux/kern/kisu/TL/src/common/wsio/td_glue.c: Sep 5 2005, 10:14:40

When your Driver state = Online you are good! You can check out more as you see above

Let's look if the hosts see disks. This can be done by the H/W path parameter you find in the outcome of point 3. Enter the following command:

ioscan -fnH 0/4/2/0
ioscan -fnH 0/5/2/0

Class I H/W Path Driver S/W State H/W Type Description
===========================================================================
fc 1 0/5/2/0 td CLAIMED INTERFACE HP Tachyon XL2 Fibre Channel Mass Storage Adapter
/dev/td1
fcp 1 0/5/2/0.11 fcp CLAIMED INTERFACE FCP Domain
ext_bus 34 0/5/2/0.11.1.0.0 fcparray CLAIMED INTERFACE FCP Array Interface
target 17 0/5/2/0.11.1.0.0.0 tgt CLAIMED DEVICE
disk 5 0/5/2/0.11.1.0.0.0.0 sdisk CLAIMED DEVICE DGC CX4-240WDUNB
/dev/dsk/c34t0d0 /dev/rdsk/c34t0d0
disk 147 0/5/2/0.11.1.0.0.0.1 sdisk CLAIMED DEVICE DGC CX4-240WDR5
/dev/dsk/c34t0d1 /dev/rdsk/c34t0d1
disk 149 0/5/2/0.11.1.0.0.0.2 sdisk CLAIMED DEVICE DGC CX4-240WDR5
/dev/dsk/c34t0d2 /dev/rdsk/c34t0d2
disk 45 0/5/2/0.11.1.0.0.0.3 sdisk CLAIMED DEVICE DGC CX4-240WDR5
/dev/dsk/c34t0d3 /dev/rdsk/c34t0d3

And so on...

You see a long list of claimed and connected paths. All should be fine at this point. You see I am connected with an EMC CLARiiON CX4-240. The last one to check is whether the failover mode is correct configured. Use the vgdisplay command for this. There are probably more, but I'm no Unix expert. vgdisplay allows you to see the attributes of volumegroupname (or all volume groups if none is given) with it's physical and logical volumes and their sizes etc.

Enter the following command:

#vgdisplay -v

VG Name /dev/vg17
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 1
Open LV 1
Max PV 16
Cur PV 2
Act PV 2
Max PE per PV 65535
VGDA 4
PE Size (Mbytes) 32
Total PE 638
Alloc PE 638
Free PE 0
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0

--- Logical volumes ---
LV Name /dev/vg17/lvol1
LV Status available/syncd
LV Size (Mbytes) 10208
Current LE 319
Allocated PE 638
Used PV 2


--- Physical volumes ---
PV Name /dev/dsk/c32t0d1
PV Name /dev/dsk/c33t0d1 Alternate Link
PV Name /dev/dsk/c34t0d1 Alternate Link
PV Name /dev/dsk/c35t0d1 Alternate Link
PV Status available
Total PE 319
Free PE 0
Autoswitch On
Proactive Polling On

PV Name /dev/dsk/c28t0d1
PV Name /dev/dsk/c29t0d1 Alternate Link
PV Name /dev/dsk/c30t0d1 Alternate Link
PV Name /dev/dsk/c31t0d1 Alternate Link
PV Status available
Total PE 319
Free PE 0
Autoswitch On
Proactive Polling On

And so on...

You see in each physical volume four PV names. One is ONLINE and three are defined by Alternate Links. So you are good here as well. For further information you can look at EMC Powerpath or other 3rd party tools if available.

--------------
http://www.mikes.eu/index.php/how-to/19 ... hp-ux.html

回复