Previous Topic: Changing the Size of the CA VM:Director DRCT and AUDT MinidisksNext Topic: Enlarging the CP Object Directory (Keeping It on the Same DASD Volume)


Enlarging the CP Object Directory (Moving It to a Different DASD Volume)

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

Note: Although this section describes enlarging the CP object directory, you can use the instructions to move the directory without enlarging it. For example, you can move the directory because of hardware failures on the DASD volume on which the directory resides. To simply move the directory, start with Step 2.

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 required size, and then to change it to at least that size.

  1. Calculate the number of pages that CA VM:Director needs to initialize the directory.
  2. Find enough free space on a CP–owned volume for the entire directory.
  3. Optionally, allocate a placeholder minidisk in this space.
  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. Create an ignored minidisk for CA VM:Director to link to, if necessary.
  6. Back up the current CP directory.
  7. Format and allocate the new extent.
  8. Stop CA VM:Director and update the configuration.
  9. Restart CA VM:Director.
  10. Change the allocation bit map on the OLD DRCT area and re–IPL z/VM.
  11. Update links to the CP object directory.

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. See the appropriate IBM planning and administration documentation for your space requirement, and then use the information below in the IBM formulas for calculating the total control block space (TCBS):

  1. Change MAX (1, USERs/8 or 9) to MAX (1, USERs/7).
  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 a CP–owned Volume for the Entire Directory

As a rule, enough space is about double the amount of space you 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, enter the following:
    vmdirect map * free
    

    This command shows free space on all DASD volumes controlled by CA VM:Director.

    To find where you have directory space allocated, enter the CP QUERY ALLOC DRCT command. Only one directory area will be listed as active. If more than one DRCT area is allocated, we recommend you delete the inactive areas before continuing. To delete the space, mark it as PERM, using the procedure in Step 10.

    The following example shows a portion of the VMDIRECT MAP command response. It displays the availability on 3390–type DASD 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: Allocate a Placeholder Minidisk in This Space (Optional)

You may want to allocate a minidisk as a placeholder for the CP DRCT area. With this minidisk defined, the CP DRCT area will show up in the output when you use IBM’s DISKMAP command against the USER DIRECT file. In addition, if you change to another directory management product, this area will continue to be protected even though it is no longer protected by an entry in the CA VM:Director DASD CONFIG file. (You will create the entry in the DASD CONFIG file in a later step.)

If you want to create a placeholder minidisk, allocate that minidisk now. The recommended owner of this minidisk is $DIRECT$ (your site may have a different naming convention). CA VM:Director will ignore this minidisk in the CA VM:Director DASD CONFIG file. To create a placeholder minidisk (for example, $DIRECT$ 124) to cover the new CP DRCT area, follow these steps:

  1. Enter VMDIRECT CONFIG DASD and add the following record:
    IGNORE $DIRECT$ 124
    

    Save the change.

  2. Enter VMDIRECT EDIT $DIRECT$ and add an MDISK statement from the beginning of the CP object directory to the end.

    For example, if the new directory is located on volume ESA240, a 3390 device, from cylinder 1 to cylinder 50, add:

    MDISK 124 3390 1 50 ESA240 RR
    

    File the change.

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 so that it correctly represents the new CP area. Verify that 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
    

    Save the changes and close the DASD CONFIG file.

Step 5: Create an IGNORED Minidisk for CA VM:Director to Link to, If Necessary

CA VM:Director requires a read/write minidisk from cylinder 0 to the end of the DRCT area that you intend to allocate in Step 7. This IGNORED minidisk normally belongs to $DASD$ and is usually a full–pack minidisk. If you do not have a full–pack minidisk for the DASD volume that will contain the new CP object directory, do the following:

  1. Enter VMDIRECT CONFIG DASD and add the following record:
    IGNORE $DASD$ vaddr
    

    vaddr

    The address of the full–pack minidisk you will create in the next step.

    Save this change.

  2. Enter VMDIRECT EDIT $DASD$ and add an MDISK statement from 0 to END on the pack where the new DRCT area will be located. For example:
    MDISK 124 3390 0 END ESA240 RR
    

    Save this change.

Step 6: Back Up the Current CP Directory

As a precaution, back up your current 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 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 7: Format and Allocate the New Extent

Link to the minidisk described in Step 5 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.

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: Shut Down CA VM:Director

  1. 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. Do not log off, because you will need to link to the volume containing the new object directory.
  2. Go to your CA VM:Director console. Verify that the 191 minidisk is accessed as file mode A.
  3. XEDIT file PRODUCT CONFIG A and update the DIRECT record to reflect the volser of the new DASD volume that contains the CP DRCT area.
  4. XEDIT file DIRECT STATEMNT A and verify that the new pack is correctly referenced.
  5. Access the 1B0 minidisk at file mode U.

    Carefully XEDIT the CA VM:Director source directory entry. The file name of the correct file will be VMDIRECT. Change the definition of the 1A0 minidisk to be a multiple write link to the ignored minidisk described in Step 5. For example:

    LINK $DASD$ 124 1A0 MW
    

    Save this change.

  6. Detach the 1A0 minidisk.
  7. Use the CP LINK command to link to the new ONLINE directory (the minidisk described in Step 5) as 1A0 with link mode MW.

Step 9: Restart CA VM:Director

Start CA VM:Director with the VMXSYS SOURCE ALTVOL 1A0 volser command and add any other options that you normally use. To check for these options, log on to VMANAGER and issue VMSERVER VMDIRECT. Check the Server Startup Command tag.. CA VM:Director writes the CP object directory to the new directory volume and shuts down with return code 4.

Step 10: Change the Allocation Bit Map on the Old Extent and Re–IPL z/VM

When your z/VM system is IPLed, CP searches for the DRCT area on all online SYSTEM volumes, in slot order, as defined in the CP SYSTEM CONFIG file. CP uses the first DRCT area it finds.

If the pack on which the old DRCT area resides is earlier in the search order than the pack on which the new DRCT area resides, CP uses the old DRCT area when a system IPL is performed. To force CP to use the new DRCT area, change the allocation bit map on the old DRCT area. Do this by executing CPFMTXA. Use the ALLOCATE function and change the allocation to PERM.

For backout purposes, we do not recommend that you reformat the old space at this time.

Bring down your z/VM system normally by using the SHUTDOWN command. Then, IPL your system and verify that CP and CA VM:Director are using the new DRCT area by entering:

cp query alloc drct

When you are sure that CP and CA VM:Director are using the new DRCT area, you can reformat the old directory space.