The COMPRESS command reduces and controls excessive fragmentation of disk space that is under CA VM:Secure management.
All minidisks within the extent are considered movable, provided the minidisk is not in use and moving or scratching the minidisk is not restricted by the optional SCRATCH user exit.
It does this by trying to move a minidisk from the high end of the extent to fill a free area at the low end of the extent. The COMPRESS command looks for a minidisk that exactly fits the free area first. If it cannot find a matching minidisk, it looks for a minidisk that can fit in the free area. If it cannot find a minidisk that fits in the free area, the command moves the minidisk immediately following the free area to a temporary area, then copies it from the temporary area to its new location in the free area.
The compression process continues until there are no more free spaces in the extent or until the remaining free space is concentrated in one free area. When the compression process is completed, the command formats all free space to erase any data left from a minidisk that was moved during the compression.
If you are compressing the extent where your own 191 minidisk resides, you must detach it before issuing the COMPRESS command. Any minidisk can be accessed temporarily as your A‑disk.
If a minidisk is in use, COMPRESS sends messages to the user ID to detach the minidisk or log off. If the user ID does not detach the minidisk or log off within the time limit, COMPRESS skips over the minidisk and continues the compression.
COMPRESS can move recomputed minidisks as long as there are no links to them. COMPRESS can move SQL minidisks as long as SQL is shut down and there are no links to the minidisks.
Examples
vmsecure compress usr01 423000 main temp
CA VM:Secure responds:
MOVING USER ‘ASTA’ MINIDISK ‘191’ TEMPORARILY TO VOLUME ‘USR02’ MOVING USER ‘ASTA’ MINIDISK ‘191’ TO BLOCK 423000 WAITING FOR USER ‘CINDY’ TO DETACH MINIDISK ‘191’ WAITING FOR USER ‘CINDY’ TO DETACH MINIDISK ‘191’ WAITING FOR USER ‘CINDY’ TO DETACH MINIDISK ‘191’ MOVING USER ‘CINDY’ MINIDISK ‘191’ TEMPORARILY TO VOLUME ‘USR02’ MOVING USER ‘CINDY’ MINIDISK ‘191’ TO BLOCK 425000 FORMATTING 184 BLOCKS OF FREE SPACE AT BLOCK 425800 THERE WAS A TOTAL OF 2 MINIDISK MOVES RESULTING IN 1 FREE AREA
vmsecure compress usr01 423000 main main 0
Note: For an explanation of extents, see the EXTENT Record.
| Copyright © 2011 CA. All rights reserved. | Tell Technical Publications how we can improve this information |