
48 The Virtualization Cookbook for Red Hat Enterprise Linux 5.2
If you do not have sufficient DASD, this number can be reduced. Having adequate paging
space will give you plenty of headroom to add more Linux virtual machines. A rule of thumb
for the amount of paging space is to have twice as much as the total of all memory for all
running Linux user IDs combined.
4.6.1 Formatting the paging volumes
Before adding paging volumes to the system, the DASD volumes to be used for minidisk
space (PERM) and paging space (PAGE) must be formatted. Normally this is done one volume at
a time using the CPFMTXA command. If you have just a few volumes, that is fine, but when you
have many volumes to format, the process of running CPFMTXA can become time-consuming
and tedious, which can lead to errors.
Therefore, a REXX EXEC named CPFORMAT is provided to allow you to format many volumes
with a single command. The source code for this EXEC is located in , “The CPFORMAT
EXEC” on page 216. It is a wrapper around CPFMTXA. To use this EXEC, each DASD to be
formatted must first be attached with the virtual device address the same real device address
(using ATTACH <realDev> *).
Getting the CPFORMAT EXEC to z/VM
Logoff from MAINT so you will be able to get the MAINT 191 disk in read-write mode using FTP.
Start an SSH (putty) session to the NFS server and change to the vm/ directory that was
created when you untarred the files associated with this book. Verify that the file
CPFORMAT.EXEC exists. Note that the directory name will be one of the following, depending on
the Linux distribution you are working with:
# cd /nfs/virt-cookbook-S10SP2/vm // if you are working with SLES 10 SP2
# cd /nfs/virt-cookbook-RH52/vm // if you are working with RHEL 5.2
# ls CPFORMAT*
CPFORMAT.EXEC
Now start an FTP session to z/VM. If you get a reply from the FTP server, it shows that you
correctly configured it on the z/VM TCPMAINT user ID. Issue the ASCII subcommand to be sure
the ASCII characters are converted to EBCDIC, and use the PUT subcommand to copy the
file.
# ftp <9.12.5.22>
Name (9.12.5.22:root): maint
331-Password: maint
230-220-FTPSERVE IBM VM Level 540 at VMLINUXA.ITSO.IBM.COM, 15:47:48 EDT TUESDAY
2008-05-13
230-MAINT logged in; working directory = MAINT 191
...
ftp> ascii
...
Note: This EXEC will label the volumes according to the convention described in 2.2.1,
“Volume labeling convention” on page 9. If you want different volume labels, you can use
the CPFMTXA command and manually specify each volume label, or you can modify the
REXX EXEC.
Important: At this point, you will need access to the NFS server described in Chapter 6,
“Configuring a Network File System server for RHEL 5.2” on page 85, in order to get the
files CPFORMAT EXEC.
Comentarios a estos manuales