27.12.2012 Views

The Virtualization Cookbook for SLES 10 SP2 - z/VM - IBM

The Virtualization Cookbook for SLES 10 SP2 - z/VM - IBM

The Virtualization Cookbook for SLES 10 SP2 - z/VM - IBM

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Per<strong>for</strong>m the following steps:<br />

► Start an SSH session as root to LINUX02.<br />

► Verify that the zfcp module is loaded with the following command:<br />

# lsmod | grep zfcp<br />

zfcp 144433 0 [permanent]<br />

scsi_transport_fc 68240 1 zfcp<br />

scsi_mod 296490 3 zfcp,scsi_transport_fc,scsi_tgt<br />

qdio 61977 3 zfcp,qeth_l3,qeth<br />

► Change directory to /sys/bus/ccw/drivers/ and list the contents:<br />

# cd /sys/bus/ccw/drivers<br />

# ls -F<br />

3215/ 3270/ dasd-eckd/ dasd-fba/ qeth/ vmur/<br />

Note that there is no directory named zfcp/.<br />

► Go back to the MAINT 3270 session and attach an FCP device to LINUX02 with the ATTACH<br />

command:<br />

==> att 3b16 linux02<br />

FCP 3B16 ATTACHED TO LINUX02 3B16<br />

► Return the the Linux SSH session and list the contents of the directory again. This time<br />

you should see a new directory zfcp/:<br />

# ls -F<br />

3215/ 3270/ dasd-eckd/ dasd-fba/ qeth/ vmur/ zfcp/<br />

► Change into that directory and list the contents:<br />

# cd zfcp<br />

# ls -F<br />

0.0.3b16@ bind module@ uevent unbind<br />

► Note that a symbolic link (identified by the trailing ampersand, @, after the file name in<br />

conjunction the the -F flag of ls) to a new directory 0.0.3b16 . Change into that directory<br />

and list the contents<br />

# ls -F<br />

availability cutype driver@ online subsystem@<br />

cmb_enable devtype modalias power/ uevent<br />

► Type the contents of the online file:<br />

# cat online<br />

0<br />

A value of 0 shows that the device is offline.<br />

► Echo a 1 into the file and it will be put online (you could also use the chccwdev -e<br />

command):<br />

# echo 1 > online<br />

# cat online<br />

1<br />

► List the contents of the directory again. You should see that many entries were added<br />

after the device was put online. <strong>The</strong> four entries in bold are the WWPNs available from<br />

this FCP device.<br />

# ls -F<br />

0x5005076306138411/ cmb_enable host0/ peer_wwnn subsystem@<br />

0x500507630613c411/ cutype in_recovery peer_wwpn uevent<br />

0x500507630a<strong>10</strong>016c/ devtype lic_version port_remove<br />

0x500507630a13016c/ driver@ modalias port_rescan<br />

availability failed online power/<br />

Chapter 13. Miscellaneous recipes 201

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!