27.12.2012 Views

z/VM: CP Commands and Utilities Reference - z/VM - IBM

z/VM: CP Commands and Utilities Reference - z/VM - IBM

z/VM: CP Commands and Utilities Reference - 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.

formatted, <strong>and</strong> asking you if you want to continue. If the cylinders or pages are<br />

incorrect, you can reply NO, <strong>and</strong> the disk remains unchanged. If they are<br />

correct, you can reply YES, <strong>and</strong> processing continues.<br />

If the starting cylinder is not 0, <strong>CP</strong>FMTXA first verifies the DASD before<br />

prompting you with the cylinder range to be formatted. When formatting a<br />

portion of a DASD (anything other than cylinder 0) you must specify the existing<br />

label for that DASD. You cannot change the label during the format of a DASD<br />

unless cylinder 0 is included in the range of cylinders to format.<br />

5. If you enter the <strong>CP</strong>FMTXA comm<strong>and</strong> without the LABEL or ALLOCATE options,<br />

it is assumed that you want to format the entire DASD.<br />

For example, suppose you enter <strong>CP</strong>FMTXA 192 TEST1<br />

<strong>CP</strong>FMTXA assumes that you want to format the entire device. All cylinders or<br />

pages are formatted, <strong>and</strong> all cylinders or pages are initially allocated as PERM<br />

space. Then you are prompted to update the DASD allocation, <strong>and</strong> the volume<br />

on 192 is labeled TEST1.<br />

Suppose, however, that you enter cpfmtxa 192 test2 0.3<br />

<strong>CP</strong>FMTXA formats cylinders or pages 0, 1, <strong>and</strong> 2. Since you formatted cylinder<br />

or page 0, all cylinders or pages are to be initially allocated as PERM space.<br />

Then you are prompted to update the DASD allocation, <strong>and</strong> the volume on 192<br />

is labeled TEST2.<br />

If you enter cpfmtxa 192 test3 1-3 <strong>CP</strong>FMTXA first checks to see if the volume<br />

ID on 192 is TEST3. If it is not, you receive an error message indicating what<br />

the correct label is, <strong>and</strong> <strong>CP</strong>FMTXA processing terminates. If volid is TEST3,<br />

<strong>CP</strong>FMTXA formats cylinders or pages 1, 2, <strong>and</strong> 3, <strong>and</strong> you are prompted to<br />

update the DASD allocation. Since you did not format cylinder or page 0, the<br />

label is not written, <strong>and</strong> the cylinders or pages are not initially allocated as<br />

PERM.<br />

6. DRCT, PAGE, PARM, PERM, SPOL, <strong>and</strong> TDSK are allocation types. You may<br />

use these entries in any order. Each entry in turn overlays the allocation record,<br />

<strong>and</strong> any space not reallocated remains the same.<br />

Note: Special care should be exercised in this area, especially when cylinder 0<br />

or pages 0-3 are being reformatted. If, for example, new directory<br />

cylinders or pages are allocated, the allocation record is overwritten,<br />

effectively destroying any pointers to the active directory <strong>and</strong> rendering it<br />

inaccessible. If an allocation entry overlays a previous cylinder or page<br />

allotment, the previous cylinder or page space allotment is truncated to<br />

the beginning of the next cylinder or page allotment. For example,<br />

assume that the following is the current allocation of a vdev:<br />

CYLINDER ALLOCATION CURRENTLY IS AS FOLLOWS:<br />

TYPE START END TOTAL<br />

.................................<br />

PERM 0 0 1<br />

PARM 1 29 29<br />

PERM 30 554 525<br />

<strong>and</strong> you enter the following allocation data:<br />

parm 20-49<br />

tdsk 50-100<br />

drct 100-200<br />

spol 150-500<br />

page 400.50<br />

The actual output follows:<br />

CYLINDER ALLOCATION CURRENTLY IS AS FOLLOWS:<br />

TYPE START END TOTAL<br />

................................<br />

<strong>CP</strong>FMTXA<br />

Chapter 3. <strong>CP</strong> <strong>Utilities</strong> 1787

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

Saved successfully!

Ooh no, something went wrong!