130 The Virtualization Cookbook for Red Hat Enterprise Linux 5.2
9.1 Formatting DASD for minidisks
In 4.6.2, “Formatting DASD for minidisks” on page 50, DASD was formatted to become
minidisks for the controller and the golden image. The CPFMTXA command can be used to
format one DASD at a time, but the CPFORMAT EXEC is a wrapper around CPFMTXA that allows
the formatting of multiple DASD.
To have access to enough DASD to define four more user IDs with two 3390-3 volumes each,
seven more volumes must be formatted (eight are needed, but one volume, D957 in this
example, is still available). In the examples used in this book, the seven volumes that will be
used are at addresses DA51-DA57. Consult your worksheets on 2.7.2, “z/VM DASD
worksheet” on page 17, for guidance.
1. Logon to a 3270 session as MAINT.
2. Query the devices that will be used for the remaining Linux user IDs.
==> q <da51-da57>
DASD DA51 NWDA51 , DASD DA52 NWDA52 , DASD DA53 NWDA53 , DASD DA54 NWDA54
DASD DA55 NWDA55 , DASD DA56 NWDA56 , DASD DA57 NWDA57
3. Attach the eight volumes that will be used for the controller, the common CMS disk and the
golden image. In this example it is the DASD at addresses:
==> att <da51-da57> *
DA51-DA57 ATTACHED TO MAINT
4. Invoke the CPFORMAT command against these volumes using the parameter as perm:
==> cpformat <da51-da57> as perm
Format the following DASD:
TargetID Tdev OwnerID Odev Dtype Vol-ID Rdev StartLoc Size
MAINT DA51 MAINT DA51 3390 NWDA51 DA51 0 3339
TargetID Tdev OwnerID Odev Dtype Vol-ID Rdev StartLoc Size
MAINT DA52 MAINT DA52 3390 NWDA52 DA52 0 3339
TargetID Tdev OwnerID Odev Dtype Vol-ID Rdev StartLoc Size
MAINT DA53 MAINT DA53 3390 NWDA53 DA53 0 3339
TargetID Tdev OwnerID Odev Dtype Vol-ID Rdev StartLoc Size
MAINT DA54 MAINT DA54 3390 NWDA54 DA54 0 3339
TargetID Tdev OwnerID Odev Dtype Vol-ID Rdev StartLoc Size
MAINT DA55 MAINT DA55 3390 NWDA55 DA55 0 3339
TargetID Tdev OwnerID Odev Dtype Vol-ID Rdev StartLoc Size
MAINT DA56 MAINT DA56 3390 NWDA56 DA56 0 3339
TargetID Tdev OwnerID Odev Dtype Vol-ID Rdev StartLoc Size
MAINT DA57 MAINT DA57 3390 NWDA57 DA57 0 3339
WARNING - this will destroy data!
ARE YOU SURE you want to format the DASD as PERM space (y/n)?
y
...
DA51-DA57 DETACHED
DA51-DA57 ATTACHED TO MAINT
DASD status after:
TargetID Tdev OwnerID Odev Dtype Vol-ID Rdev StartLoc Size
MAINT DA51 MAINT DA51 3390 MMDA51 DA51 0 3339
MAINT DA52 MAINT DA52 3390 MMDA52 DA52 0 3339
MAINT DA53 MAINT DA53 3390 MMDA53 DA53 0 3339
MAINT DA54 MAINT DA54 3390 MMDA54 DA54 0 3339
MAINT DA55 MAINT DA55 3390 MMDA55 DA55 0 3339
MAINT DA56 MAINT DA56 3390 MMDA56 DA56 0 3339
Comentarios a estos manuales