Previous Topic: Enlarging the CP Object Directory (Moving It to a Different DASD Volume)Next Topic: Backing Up CA VM:Director


Enlarging the CP Object Directory (Keeping It on the Same DASD Volume)

This section describes how to enlarge the CP object directory without moving it to a different DASD volume. For instructions on enlarging the CP object directory by moving it to another DASD volume, see Enlarging the CP Object Directory (Moving It to a Different DASD Volume).

Monitor the CP object directory so that you can enlarge its directory extents when it runs out of control block space. This happens during normal directory use.

To check your CP object directory, look for the following messages at CA VM:Director startup time. The first message indicates how many objects (users, profiles, and pool members) you have in the directory and how many pages of space the directory needs to hold the control blocks:

065I DIRECTORY CONTAINS number USERS number PROFILES AND
     number POOL MEMBERS ON number PAGES

The second message indicates the total directory size and how much is available:

294I THE DIRECTORY CONTAINS number TOTAL PAGES. number PAGES
     ARE AVAILABLE FOR USE

When the messages indicate that you need to enlarge the CP object directory allocation (there are few pages available compared to the total directory size), take the following steps to calculate the recommended size and then to change it to at least that size. (The next several pages provide details for completing each of these steps.)

To enlarge the CP object directory

  1. Calculate the number of pages that CA VM:Director needs to initialize the directory.
  2. Find enough free space on the current CP–owned volume for the entire directory.
  3. Update a placeholder minidisk in this space, if necessary.
  4. Change the appropriate EXTENT record in the DASD CONFIG file so that it accurately reflects the new location of the CP object directory.
  5. Back up the current CP directory.
  6. Stop CA VM:Director.
  7. Format and allocate the new extent.
  8. Restart CA VM:Director.

Step 1: Calculate the Number of Pages That CA VM:Director Needs to Initialize the Directory

IBM CP planning guides give space requirements for the CP object directory area. For more information about your space requirement, see the appropriate IBM planning and administration documentation, and then use the following information in the IBM formulas for calculating the total control block space (tcbs).

Note: Some versions of CP call the TCBS number of records NR, the number of USERs NU, and the number of DEVs ND.

  1. Change MAX (1, USERs /8) to MAX (1, USERs /10).
  2. Treat each directory profile on the system as a user ID: add 1 to USERs for each profile and add 1 to DEVs for each device in the profile (this is in addition to the tallying that the IBM formula does for directory profiles).
  3. Treat users on hold as active users.
  4. Change (TOTDSGRGIDs X 4) to (TOTDSGRGIDs X 8).

The TCBS calculation with these numbers gives the approximate number of pages that CA VM:Director needs to initialize the online directory. It is only approximate because CA VM:Director interactively updates the online directory. Therefore, we recommend that you add about 25 percent to the TCBS that you calculated above for work space.

After you change the directory allocation size, you can determine how close your estimate was by tracking the number of times you see message 065I on the CA VM:Director console while CA VM:Director is running. While this message is generated at CA VM:Director startup to tell you the number of online directory pages currently in use, it is also generated when CA VM:Director runs out of work space and then reclaims it. The reclaiming of work space is called dynamic rebuild.

If you see many occurrences of this message during the day, consider increasing the size of the online directory allocation.

Step 2: Find Enough Free Space on the Current CP–Owned Volume for the Entire Directory

As a rule, enough space is about double the amount of space you have just calculated in Step 1. This free space must be on one volume, but it can contain multiple extents and does not need to be contiguous. However, you can improve performance by allocating one contiguous area.

  1. To find free space on the volume that currently contains the CP object directory, enter the MAP command with the volser of the volume that contains the CP object directory (the volume listed in the CP QUERY ALLOC DRCT output) and the FREE parameter. For example, the following command displays the free space on DASD volume ESA240:
    vmdirect map esa240 free
    

    The command response in the following example displays the availability on 3390–type volume ESA240:

    *VOLUME: ESA240 TYPE: 3390 UTILIZATION: 83%

    ALLOCATION SIZE STARTING ENDING USAGE INFORMATION *FREE* 75 1 75 *FREE* *FREE* 54 190 243 *FREE* *FREE* 23 650 672 *FREE*

  2. If the output of this command indicates that there is no free space or not enough free space available, move a minidisk of the correct size to another volume to make the space available.

    Check how much free space is available after you move a minidisk. Use the MAP command to do so. If there is still not enough space, move as many minidisks as necessary to free up the space you need.

  3. Calculate the range of the new free space. These numbers are required when you are ready to format and allocate the new extent:

    To calculate the starting page number, use this formula:

    This diagram explains the formula for finding free space.

    To calculate the ending page number, use this formula:

    This diagram depicts the formula for finding enough free space.

Step 3: Update the Placeholder Minidisk in This Space, If Necessary

If your site uses a minidisk as a placeholder for the CP areas such as the CP DRCT area, you need to update this user ID’s MDISK statement to represent the new location of the CP DRCT area. The benefit of this minidisk is that, when you use the IBM DIRMAP utility against the USER DIRECT file, the location of the CP DRCT area shows up in the output. In addition, if you change to another directory management product, this area will continue to be protected even though the area is no longer protected by an entry in the CA VM:Director DASD CONFIG file. (You will update this entry in the DASD CONFIG file in a later step.)

If you have a placeholder minidisk that represents the current CP object directory, you can update that minidisk now to reflect the new CP DRCT area. For example, if $DIRECT$ 123 is a placeholder for the old CP object directory and the new directory will be located on volume ESA240, a 3390 device, from cylinder 1 to cylinder 50, use the VMDIRECT EDIT $DIRECT$ command to change the location of $DIRECT$’s 123 minidisk to the following:

MDISK 123 3390 1 50 ESA240 RR

Step 4: Change the DASD CONFIG File So That It Lists the Correct Extents for the CP Object Directory

You must change the DASD CONFIG file to reflect the new location of the CP object directory so that you or other directory managers do not inadvertently allocate a new minidisk over the area you just allocated. Simply covering the area with a placeholder minidisk is not sufficient because subsequently scratching or moving that minidisk can cause CP system failures.

  1. Enter the following:
    vmdirect config dasd
    
  2. Find the EXTENT record containing the new allocated area and change it to so that it correctly represents the new CP area. Verify a fixed CP extent covers the new area.

    If the area you just created is in the middle of one extent, split the extent into three to isolate the CP area. For example:

    EXTENT beg end
    EXTENT beg *      <=== new CP area
    EXTENT beg end
    

    If the newly allocated area begins or ends the current extent, split the extent in two so that the new CP area is isolated. For example:

    EXTENT beg end
    EXTENT beg *      <=== new CP area
    
  3. Save the changes and close the DASD CONFIG file.

Step 5: Back Up the Current CP Directory

As a precaution, back up your current object directory before continuing. Use the VMXBKP01 utility to make a backup. VMXBKP01 writes a USER DIRECT file to disk. Send a copy of the USER DIRECT file to OPERATOR’s reader. We also recommend that you write a copy of this file to tape.

As an extra precaution, you may also want to take a full DDR dump of the volume containing your object directory.

Step 6: Shut Down CA VM:Director

Log on to the user ID of your CA VM:Director service virtual machine and enter the END command to shut down CA VM:Director. If you do not shut down CA VM:Director, unpredictable results may occur in CA VM:Director or in the outcome of CPFMTXA. Do not log off.

Step 7: Format and Allocate the New Extent

Link to the minidisk that covers cylinder 0 through the end of the new CP DRCT area in read/write mode. Format the new extent and allocate it, using the CPFMTXA command. The command responds with a series of prompts to first format and then allocate the directory space.

When you finish with the format/allocate program, press Enter to return to CMS.

For example, the volume that will contain the new object directory is a 3390, linked at virtual address 100. It has a label of ESA240. The new object directory will be located on cylinders 1 through 50.

Important! Do not re-IPL until you complete Step 10: Change the allocation bit map on the old extent and re–IPL z/VM, in Enlarging the CP Object Directory (Moving It to a Different DASD Volume) in this chapter.

The series of command prompts and entries required to format this volume looks like the following, where the command prompts are in light type and the user entries are in bold type:

ENTER FORMAT OR ALLOCATE:
format
FORMAT FUNCTION SELECTED:
ENTER DEVICE ADDRESS (CUU):
0100
ENTER DEVICE TYPE:
3390
ENTER START CYLINDER (xxx) OR LABEL:
0001
ENTER END CYLINDER (xxx):
0050
ENTER DEVICE LABEL:
esa240
FORMAT STARTED
FORMAT DONE
000 NO. PAGE RECORDS WITH READ-CHECK ERRORS
ENTER FORMAT OR ALLOCATE:

The series of command prompts and user entries to allocate the new directory space looks like the following:

ENTER FORMAT OR ALLOCATE:
allocate
ALLOCATE FUNCTION
ENTER DEVICE ADDRESS (CUU):
100
ENTER DEVICE TYPE:
3390
ENTER DEVICE LABEL:
esa240
ENTER ALLOCATION DATA FOR VOLUME ESA240
TYPE CYL CYL
drct 1 50
end
ALLOCATION RESULTS
PERM 0000 0000
DRCT 0001 0050
PERM 0052 3339
DEVICE 100 VOLUME ESA240 ALLOCATION ENDED
ENTER FORMAT OR ALLOCATE:

Step 8: Restart CA VM:Director

Start CA VM:Director with the VMXSYS SOURCE command and add any options that you normally use. Log on to VMANAGER and issue VMSERVER VMDIRECT and check the Server Startup Command tag.. CA VM:Director writes the CP object directory to the new directory area.