Previous topic |
Next topic |
Contents |
Contact z/OS |
Library |
PDF
Copying the physical blocks of the aggregate to a larger data set z/OS Distributed File Service zFS Administration SC23-6887-00 |
|
Another method to increase the size of a zFS aggregate is to copy the physical blocks of the aggregate to a larger data set using the DFSMS REPRO command. This approach is normally faster than using the pax command. However, do not format the target zFS data set before using the REPRO command. Figure 1 shows an example of this approach. Figure 1. Sample job to copy the
physical blocks of an aggregate to a larger data set
Figure 2 shows a zFS file system (PLEX.OLD.AGGR002.LDS0002) that is full and a newly-defined zFS data set (PLEX.NEW.AGGR002.LDS0002 before the REPRO) that is larger. PLEX.NEW.AGGR002.LDS0002 has a larger HI-A-RBA than PLEX.OLD.AGGR002.LDS0002. When the blocks from PLEX.OLD.AGGR002.LDS0002 are copied into PLEX.NEW.AGGR002.LDS0002 using REPRO, the result is PLEX.NEW.AGGR002.LDS0002 after REPRO. There is now room to add data to PLEX.NEW.AGGR002.LDS0002. Figure 2. Copying blocks
from a full zFS data set into a larger data set
With this approach, the new VSAM linear data set must not be formatted as an empty zFS file system before the REPRO command is used. (If the new data set was formatted, the REPRO would copy blocks to the end of the primary allocation, not the beginning. The data blocks being copied contain all the file system data and the file system information, so formatting is not necessary.) Neither file system needs to be mounted. REPRO uses native VSAM calls to read and write the blocks. Follow these guidelines:
Notice that the ZFS attribute is not set in the LISTCAT output for the target data set (PLEX.NEW.AGGR002.LDS0002). It is set the first time the zFS file system is mounted read-write. Now the new aggregate can grow into the available space in the allocated portion of the data set or even extend to additional extents if there is space on the volume. After you successfully copy the data, when you are comfortable with the new, larger aggregate, you can delete the old aggregate. |
Copyright IBM Corporation 1990, 2014
|