We have an older model SANs device that we are not having much luck with 
connecting to our Red Hat Linux (5.3) under z/VM 5.4. We specified the LUN as 0 
on the SANs device. It is a CorData SAN and we are contacting the vendor.
All seems to go well until I try to echo the LUN into unit_add


Following the Red Hat Installation Guide for adding FCP devices dynamically:


>From VM, attach 0000 to LSSB1 as 0900
   att 0000 LSSB1 as 0900

>From LSSB1
lscss
Device   Subchan.  DevType CU Type Use  PIM PAM POM  CHPIDs
----------------------------------------------------------------------
0.0.0592 0.0.0000  3390/0A 3990/E9          F0  F0  FF   50515253 00000000
                 "
0.0.0900 0.0.0022  1732/03 1731/03           80  80  FF   08000000 00000000

cd /sys/bus/ccw/drivers/zfcp/0.0.0900
echo 1 > online

lscss
Device   Subchan.  DevType CU Type Use  PIM PAM POM  CHPIDs
----------------------------------------------------------------------
0.0.0592 0.0.0000  3390/0A 3990/E9           F0  F0  FF   50515253 00000000
                 "
0.0.0900 0.0.0022  1732/03 1731/03 yes      80  80  FF   08000000 00000000

dmesgf
scsi0 : zfcp
zfcp: The adapter 0.0.0900 reported the following characteristics:
WWNN 0x5005076400c77aed, WWPN 0x5005076401e2a15c, S_ID 0x00000c00,
adapter version 0x4, LIC version 0x70b, FC link speed 2 Gb/s
zfcp: Point-to-Point fibrechannel configuration detected at adapter 0.0.0900
Peer WWNN 0x1000000402e00621, peer WWPN 0x2000000402e00621, peer d_id 0x000d00

echo   0x2000000402e00621 > /sys/bus/ccw/drivers/zfcp/0.0.0900/port_add
cd 0x2000000402e00621
echo  0x00               > unit_add

at this point the session is hung

from an new session

dmesg
zfcp: resetting unit 0x0000000000000000
zfcp: host/bus reset because of problems with unit 0x0000000000000000




lszfcp -a

0.0.0900 host0

Bus = "ccw"

    availability        = "good"

    card_version        = "0x0004"

    cmb_enable          = "0"

    cutype              = "1731/03"

    devtype             = "1732/03"

    failed              = "0"

    hardware_version    = "0x00000000"

    in_recovery         = "1"

    lic_version         = "0x0000070b"

    modalias            = "ccw:t1731m03dt1732dm03"

    online              = "1"

    peer_d_id           = "0x000d00"

    peer_wwnn           = "0x1000000402e00621"

    peer_wwpn           = "0x2000000402e00621"

    status              = "0x4500092e"

Class = "fc_host"

    maxframe_size       = "2112 bytes"

    node_name           = "0x5005076400c77aed"

    permanent_port_name = "0x5005076401e2a15c"

    port_id             = "0x000c00"

    port_name           = "0x5005076401e2a15c"

    port_type           = "Point-To-Point (direct nport connection"

    serial_number       = "IBM02000000077AED"

    speed               = "2 Gbit"

    supported_classes   = "Class 2, Class 3"

    supported_speeds    = "4 Gbit"

    tgtid_bind_type     = "wwpn (World Wide Port Name)"

Class = "scsi_host"

    cmd_per_lun         = "1"

    host_busy           = "1"

    proc_name           = "zfcp"

    sg_tablesize        = "538"

    state               = "recovery"

    unchecked_isa_dma   = "0"

    unique_id           = "0"



Interesting the wwpn seems to be communicated fine but the LUN causes a 
problem. The unit is getting reset on the Linux side and going into recovery. 
The logs in the SANs device don't show anything. The lszfcp command reports a 
status of "0x4500092e". Any insight or what steps to take next would be 
appreciated.



Thanks



Bobby Bauer

Center for Information Technology

National Institutes of Health

Bethesda, MD 20892-5628

301-594-7474





----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390

Reply via email to