The DUPMDISK command lets you create an exact duplicate of a specified existing minidisk, or copy the contents of a source minidisk to a matching target minidisk. The resulting minidisk will be an exact duplicate of the input minidisk, having the same size, device type, label, and other attributes.
If any allocation parameters (subpool, volser, or loc) are specified, then a new target minidisk will be created. An error will occur if the target minidisk already exists.
If no allocation parameters are specified, and the target minidisk does not exist, then default values for the allocation parameters will be used to create the target minidisk.
If no allocation parameters are specified, and the target minidisk exists, then the data will be copied from the source minidisk to the target. An error will occur if the source and target minidisk device type and size do not match.
While the command can be used to duplicate a CMS minidisk, its real benefit is in cloning Linux images on VM. By first making a master image and then using the DUPMDISK command to duplicate the directory entry and the minidisks, you can quickly set up multiple identical Linux images.
When a CA VM:Secure macro calls the DUPMDISK command, it stacks a record for the calling macro’s use when it successfully duplicates the minidisk. The stacked record is in last in, first out (LIFO) order and contains all the information necessary to build an MDISK record to describe the duplicated minidisk’s location. The stacked record has the following format:
vaddr devtype start size volser linkmode rpw wpw mpw
The start and size values are in blocks for FBA and cylinders for CKD devices.
(CA VM:Secure only) If PEF is installed, passwords are encrypted.
Examples
vmsecure dupmdisk bobby 291 main 10 * * * mr
vmsecure dupmdisk bobby 291 main 10 *mngr * * mr
vmsecure dupmdisk bobby 291 main 10 * vmdsk1 15 mr
| Copyright © 2011 CA. All rights reserved. | Tell Technical Publications how we can improve this information |