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
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
Partition number (1-4): 1<br />
First cylinder (1-8192, default 1):<br />
Using default value 1<br />
Last cylinder, +cylinders or +size{K,M,G} (1-8192, default 8192):<br />
Using default value 8192<br />
Command (m <strong>for</strong> help): w<br />
<strong>The</strong> partition table has been altered!<br />
Calling ioctl() to re-read partition table.<br />
Syncing disks.<br />
► Create an ext4 file system with the mkfs.ext4 command:<br />
# mkfs.ext4 /dev/sda1<br />
mke2fs 1.41.12 (17-May-20<strong>10</strong>)<br />
Filesystem label=<br />
OS type: Linux<br />
...<br />
► You should now be able to mount it and see the size:<br />
# mount /dev/sda1 /mnt<br />
# df -h /mnt<br />
Filesystem Size Used Avail Use% Mounted on<br />
/dev/sda1 7.9G 146M 7.4G 2% /mnt<br />
► Create a test file:<br />
# echo “this is the file foo” > /mnt/foo<br />
# umount /mnt<br />
13.4.2 Configuring multipath<br />
It is a best practice to set up multipathing <strong>for</strong> better availability. Per<strong>for</strong>m the following steps:<br />
► Create a second WWPN<br />
# cd /sys/bus/ccw/drivers/zfcp/0.0.0<strong>10</strong>a<br />
# ls<br />
availability cutype driver online subsystem<br />
cmb_enable devtype modalias power uevent<br />
# echo 1 > online<br />
► Note the second WWPN. In this example it is 0x500507630503c73d:<br />
# ls<br />
0x500507630503c73d devtype in_recovery peer_wwnn status<br />
availability driver lic_version peer_wwpn subsystem<br />
card_version failed modalias port_remove uevent<br />
cmb_enable hardware_version online port_rescan<br />
cutype host2 peer_d_id power<br />
# cd 0x500507630503c73d<br />
► Echo the same LUN into the file unit_add This will enable the same LUN, but from a<br />
different WWPN.<br />
# cd /sys/bus/ccw/drivers/zfcp/0.0.0<strong>10</strong>a<br />
# ls<br />
0x500507630513c73d devtype in_recovery peer_wwnn status<br />
availability driver lic_version peer_wwpn subsystem<br />
card_version failed modalias port_remove uevent<br />
cmb_enable hardware_version online port_rescan<br />
cutype host1 peer_d_id power<br />
# cd 0x500507630513c73d/<br />
Chapter 13. Miscellaneous recipes 203