11.01.2013 Views

ABCs of z/OS System Programming Volume 3 - IBM Redbooks

ABCs of z/OS System Programming Volume 3 - IBM Redbooks

ABCs of z/OS System Programming Volume 3 - IBM Redbooks

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

3.22 Update VTOC after volume expansion<br />

REFORMAT command must be used to rebuild the<br />

VTOC and index structures after a volume has been<br />

expanded - (Method used with V1R10)<br />

The command updates portions <strong>of</strong> a previously<br />

initialized volume<br />

You can also enter ICKDSF commands with ISMF<br />

If an index exists when you expand the VTOC, it must<br />

be deleted and rebuilt to reflect the VTOC changes<br />

Parameters for index total track size rebuild<br />

EXTINDEX(n)<br />

XINDEX(n)<br />

Figure 3-23 Create a new VTOC after volume expansion<br />

New VTOC after expansion<br />

To prepare a volume for activity by initializing it, use the Device Support Facilities (ICKDSF)<br />

utility to build the VTOC. You can create a VTOC index when initializing a volume by using<br />

the ICKDSF INIT command and specifying the INDEX keyword.<br />

To convert a non-indexed VTOC to an indexed VTOC, use the BUILDIX command with the<br />

IXVTOC keyword. The reverse operation can be performed by using the BUILDIX command<br />

and specifying the <strong>OS</strong>VTOC keyword.<br />

Parameters for index rebuild<br />

To refresh a volume VTOC and INDEX in its current format, use the ICKDSF command<br />

REFORMAT with the RVTOC keyword. To optionally extend the VTOC and INDEX, use the<br />

ICKDSF command REFORMAT with the EXTVTOC and EXTINDEX keywords.<br />

Run REFORMAT NEWVTOC(cc,hh,n|ANY,n) to expand the VTOC. The new VTOC will be<br />

allocated on the beginning location cc,hh with total size <strong>of</strong> n tracks. Overlay between the new<br />

and old VTOC is not allowed. If cc,hh is omitted, ICKDSF will locate the new VTOC at the first<br />

eligible location on the volume other than at the location <strong>of</strong> the old VTOC where free space<br />

with n tracks is found. n must be greater than the old VTOC size. The volume must be <strong>of</strong>fline<br />

to use the NEWVTOC parameter.<br />

Run REFORMAT EXTVTOC(n) where n is the total size <strong>of</strong> the new VTOC in tracks. There<br />

must be free space available to allow for contiguous expansion <strong>of</strong> the VTOC. If there is no<br />

Chapter 3. Extended access volumes 87

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

Saved successfully!

Ooh no, something went wrong!