Installation guide

22.2. Using t he zFCP Driver
During the initial installation, you are prompted to enter SCSI/FCP information. If this information is
entered, it creates the /etc/zfcp.conf file which contains your SCSI configuration. It also adds the
line alias scsi_hostadapter zFCP to /etc/modprobe.conf. This loads the required zFCP
modules.
# cat /etc/zfcp.conf
0.0.010a 0x01 0x5005076300c18154 0x00 0x5719000000000000
# cat /etc/modprobe.conf
alias eth0 qeth
options dasd_mod dasd=201,4b2e
alias scsi_hostadapter zfcp
If no SCSI devices were defined during the initial installation, the following example demonstrates
how to add one manually:
# cd /lib/modules/2.6.7-1.451.2.3/kernel/drivers/s390/scsi
# modprobe zfcp
# lsmod
Module Size Used by
zfcp 221460 0 [permanent]
autofs4 39944 0
qeth 166288 0
qdio 60240 3 zfcp,qeth
ccwgroup 25344 1 qeth
ipt_REJECT 23552 1
ipt_state 18944 5
ip_conntrack 57904 1 ipt_state
iptable_filter 19712 1
ip_tables 37888 3 ipt_REJECT,ipt_state,iptable_filter
sd_mod 39688 0
scsi_mod 182904 2 zfcp,sd_mod
dm_mod 86408 0
ext3 179056 2
jbd 92720 1 ext3
dasd_fba_mod 25344 0
dasd_eckd_mod 77056 4
dasd_mod 85328 6 dasd_fba_mod,dasd_eckd_mod
# cd /sys/bus/ccw/drivers/zfcp/0.0.010a
# echo 1 > online
# cat online
1
# echo 0x5005076300c18154 > /sys/bus/ccw/drivers/zfcp/0.0.010a/port_add
# ls
0x5005076300c18154 failed lic_version s_id
availability fc_link_speed nameserver status
card_version fc_service_class online wwnn
cmb_enable fc_topology port_add wwpn
cutype hardware_version port_remove
detach_state host2 scsi_host_no
devtype in_recovery serial_number
# cd /sys/bus/ccw/drivers/zfcp/0.0.010a/0x5005076300c18154
# echo 0x5719000000000000 > unit_add
# ls
0x5719000000000000 d_id in_recovery status unit_remove
detach_state failed scsi_id unit_add wwnn
Red Hat Ent erprise Linux 5 Inst allat ion G uide
224