214 z/VM and Linux on IBM System z: The Virtualization Cookbook for Red Hat Enterprise Linux 6.0
The output shows that the LPAR has many FCP devices free, but none of them are in use.
Associated with FCP devices are World Wide Port Numbers (WWPNs) and Logical Unit
Numbers (LUNs). Often, this information may be available as part of the LPAR definition.
However, you may not have this information handy. If you do not have this information, it can
be queried on RHEL 6. In the following section, an FCP/SCSI disk is attached to LINUX02.
Perform the following steps:
1. Start an SSH session as root to LINUX02.
2. Verify that the zfcp module is loaded by using the following command:
# lsmod | grep zfcp
zfcp 144433 0 [permanent]
scsi_transport_fc 68240 1 zfcp
scsi_mod 296490 3 zfcp,scsi_transport_fc,scsi_tgt
qdio 61977 3 zfcp,qeth_l3,qeth
3. Change the directory to /sys/bus/ccw/drivers/ and list the contents:
# cd /sys/bus/ccw/drivers
# ls -F
3215/ 3270/ dasd-eckd/ dasd-fba/ qeth/ vmur/
Note that there is no directory named zfcp/.
4. Go back to the MAINT 3270 session and attach an FCP device to LINUX02 by using the
ATTACH command:
==> att 3b16 linux02
FCP 3B16 ATTACHED TO LINUX02 3B16
5. Return to the Linux SSH session and list the contents of the directory again. This time, you
should see a new directory named zfcp/:
# ls -F
3215/ 3270/ dasd-eckd/ dasd-fba/ qeth/ vmur/ zfcp/
6. Change to that directory and list the contents:
# cd zfcp
# ls -F
0.0.3b16@ bind module@ uevent unbind
7. Note that a symbolic link (identified by the trailing ampersand, @, after the file name in
conjunction with the -F flag of ls) has been made to a new directory named 0.0.3b16.
Change to that directory and list the contents:
# ls -F
availability cutype driver@ online subsystem@
cmb_enable devtype modalias power/ uevent
8. Enter the contents of the online file:
# cat online
0
A value of 0 shows that the device is offline.
9. Echo a 1 into the file and it will be put online (you could also use the chccwdev -e
command):
# echo 1 > online
# cat online
1
Comentarios a estos manuales