Use the DUPMDISK command to create an exact duplicate of a specified minidisk.
To create a duplicate minidisk:
DUPMdisk “Source” “Target” ["Parms"] [("Options"]
Source:
sourceentry sourcedisk Target:
targetentry targetdisk Parms:
"Mdisk Parms" | "Devno Parms" Mdisk Parms:
{subpool | *MNGR | *}
[{volser|=|*}
[{loc|=|*}
[{mode|=|W}
[{rpw|=}
[{wpw|=}
[mpw|=]]]]]]
Devno Parms:
DEVNO rdev
[*
[{mode|=|W}
[{rpw|=}
[{wpw|=}
[mpw|=]]]]]
Options:
[FILE [filename]] [MSG | NOMSG] [STACK [FIFO | LIFO]] [FIFO] [LIFO] [Wait | NOWait]
Note: Options can be specified in any order.
You must have DUPMDISK authorization through a GRANT DUPMDISK record in the AUTHORIZ CONFIG file.
To use the DUPMDISK command on user IDs other than your own:
Note: For more information about Authorizations for selective User Ids, see the section, Granting Authorizations to Use Commands on Only Some User IDs in the chapter "Authorizations" of the Administration Guide.
Either you or the directory manager that will own the user ID must be authorized to allocate from the subpool in which you specify the minidisk to be duplicated. It is not required that both you and the owning manager be authorized. Alternately, either one of you can have ANYPOOL authorization, which allows you to allocate space from any subpool.
Specifies the USER, IDENTITY, or SUBCONFIG directory entry defining the minidisk to be used as the source. The directory entry must not be in HOLD status.
Specifies the virtual address of the minidisk to be used as the source.
Specifies the USER, IDENTITY, or SUBCONFIG directory entry that owns the new duplicate (target) minidisk. The directory entry must not be in HOLD status.
Specifies the virtual address of the new duplicate minidisk.
Specifies the subpool from which to allocate space for the duplicate (target) minidisk or the subpool list to search for space to allocate for the duplicate minidisk. The default is *MNGR, which searches the list of subpools in which the directory manager for this user ID can allocate space for the first subpool with enough space.
If you specify the subpool by name, that subpool must be defined in the DASD CONFIG file and included in your or the owning manager’s list of subpools in the VMDIRECT MANAGERS file. ANYPOOL authorization overrides this restriction. The following predefined lists can be searched for an available subpool. The first subpool in the list with enough space to accommodate the duplicate minidisk is the one that is used:
|
Subpool List |
Subpools Represented |
|---|---|
|
*MINE |
All subpools in which you, or the person submitting this DUPMDISK command, can allocate space |
|
*MNGR |
All subpools in which the directory manager for this user ID can allocate space |
|
*BOTH |
Those in the *MNGR and *MINE lists, in that order |
|
*ANY |
Any subpool defined to CA VM:Director. Note: Your user ID must have ANYPOOL authorization. |
CA VM:Director searches subpools in a list according to the order in which the MANAGER record in the VMDIRECT MANAGERS file specifies them. It does not include in the search any subpool that is defined with the EXPLICIT attribute.
Specifies the volume serial number (volser) of the DASD volume on which to allocate the duplicate minidisk. The volume must be defined in the DASD CONFIG file and the subpool (specified on the subpool parameter) must be defined on one of the volume extents.
By default, CA VM:Director determines volser based on the location of the allocation. If you specify volser as an equal sign, CA VM:Director allocates the new minidisk from the same volume as the original one. However, if you specify a volser, you must also specify a location (loc).
Specifies the location (starting cylinder or block) at which to allocate the duplicate minidisk on a given volume. This location can be any integer up to seven digits for number of cylinders or blocks.
If you specify the location, you must specify the volser parameter as a valid volume name or an equal sign. If you specify an equal sign, CA VM:Director uses the starting location of the original minidisk, presumably on a different volume but of the same device type. If the volume name is unchanged, the allocation of the new minidisk fails, because the original minidisk still occupies that space.
By default, CA VM:Director allocates the minidisk according to the algorithms defined for the applicable subpool.
Specifying an equal sign for both volser and loc causes the allocation of the new minidisk to fail, because the new minidisk still occupies that space.
Creates a permanent fullpack minidisk defined by a real device address. CA VM:Director does not control this type of minidisk and does not map the internal minidisk structure. You must specify * for the loc parameter to use the subsequent parameters.
Specifies the real device address of the volume on which to define the minidisk. No validation of this address is done until the user logs on and CP verifies the presence of the minidisk. The rdev parameter is used in the position of the size parameter in other versions of the parameter list. If you do not specify an rdev value or if you specify an *, CA VM:Director uses the virtual device address specified for targetdisk.
Specifies the read/write mode for the duplicate minidisk when the user logs on. CP defines the valid modes, which are R, RR, W, WR, M, MR, and MW, each with an optional suffix of V, S, E, VS, VE, D, VD, SD, ED, VSD, and VED. The default mode is W.
Specifies the read, write, and multiple link passwords, respectively, for the duplicate minidisk.
Each password can be one to eight characters in length. These parameters do not have default values, and you cannot specify an asterisk for them. If one of the passwords is not specified, CA VM:Director places no value on the generated MDISK statement for that password and does not allow anyone to link to that minidisk with the respective link mode.
(CA VM:Secure only) If PEF is installed on your system, CA VM:Director encrypts the passwords.
These options are explained in the Common API Command Options.
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:Director 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
vmdirect dupmdisk bobby 291 main 10 * * * mr
vmdirect dupmdisk bobby 291 main 10 *mngr * * mr
vmdirect dupmdisk bobby 291 main 10 * vmdsk1 15 mr
The following table lists return codes and error messages for the DUPMDISK command:
|
Return Code |
Message Number |
Text |
|---|---|---|
|
2 |
0127E |
USER userid1 EXCEEDED USER userid2 type PASSWORD LIMIT [FOR vaddr] |
|
4 |
0038E |
MISSING PARAMETER |
|
6 |
0531E |
PARAMETER userid IS TOO LONG |
|
8 |
0265E |
NOT AUTHORIZED FOR authorization words |
|
10 |
0349E |
PASSWORD IS INCORRECT |
|
12 |
0080E |
USER userid DOES NOT EXIST |
|
14 |
0632E |
MANAGER mgrid WAS NOT FOUND IN THE MANAGERS FILE |
|
16 |
0040E |
TOTAL ALLOCATION LIMIT OF number EXCEEDED |
|
18 |
0632E |
MANAGER mgrid WAS NOT FOUND IN THE MANAGERS FILE |
|
20 |
0382E |
USER userid IS ON HOLD |
|
22 |
0621E |
UNEXPECTED RETURN CODE code FROM OPEN |
|
23 |
0304E |
ADDRESS vaddr IS AN INVALID DEVICE ADDRESS |
|
25 |
0531E |
PARAMETER vaddr IS TOO LONG |
|
26 |
0313E |
DEVICE device DOES NOT EXIST |
|
27 |
0549E |
DEVICE device ALREADY EXISTS |
|
28 |
0634E |
DIRECTORY PROFILE LINKS ALREADY EXIST FOR DEVICE device |
|
30 |
none |
non‑zero return code from DIRECT_PRFLINKS |
|
32 |
0635E |
YOU ARE NOT A MANAGER AND HAVE NO SUBPOOLS THAT YOU ARE AUTHORIZED TO USE |
|
33 |
0636E |
ANYPOOL AUTHORIZATION IS REQUIRED TO ALLOCATE FROM SUBPOOL subpool |
|
34 |
0637E |
THE MINIDISK SIZE size MUST BE AN INTEGER NO LONGER THAN 7 DIGITS |
|
35 |
0043E |
SUBPOOL subpool IS UNDEFINED |
|
36 |
0638E |
A MINIDISK SIZE OF 0 IS NOT ALLOWED |
|
37 |
0831E |
Userid1 vaddr1 AND userid2 vaddr2 MUST HAVE MATCHING SIZE AND DEVICE TYPE. |
|
38 |
0547E |
INVALID DEVICE TYPE devtype (not found in table) |
|
39 |
0119E |
VOLUME ‘volser’ IS NOT A devtype DEVICE |
|
40 |
0547E |
INVALID DEVICE TYPE devtype (not CKD or FBA type) |
|
41 |
0639E |
YOU ARE NOT AUTHORIZED TO ADD A CACHE’d DEVICE |
|
42 |
0640E |
THE parm PARAMETER MAY NOT BE SPECIFIED FOR A MINIDISK ON DEVNO |
|
44 |
0531E |
PARAMETER volser IS TOO LONG |
|
52 |
0637E |
THE MINIDISK SIZE size MUST BE AN INTEGER NO LONGER THAN 7 DIGITS |
|
54 |
0574E |
CANNOT SPECIFY MINIDISK LOCATION WITHOUT VOLSER |
|
58 |
0640E |
THE MODE PARAMETER MAY NOT BE SPECIFIED FOR A MINIDISK ON T‑DISK | V‑DISK |
|
60 |
0642E |
THE SPECIFIED LINK MODE mode IS INVALID |
|
61 |
0531E |
PARAMETER password IS TOO LONG |
|
62 |
0640E |
THE PASSWORD PARAMETER MAY NOT BE SPECIFIED FOR A MINIDISK ON T‑DISK | V‑DISK |
|
65 |
0625E |
TOO MANY SERVANTS IN USE, COMMAND CANNOT BE EXECUTED |
|
66 |
none |
non‑zero return code from DIRECT_QALLOC |
|
67 (CA VM:Secure only) |
none |
non‑zero return code from PENCRYPT |
|
68 |
0643E |
EXTRA PARAMETERS parameters WERE ENTERED AND ARE NOT ALLOWED |
|
69 |
0586E |
ERROR STARTING SERVANT |
|
70 |
0644E |
NOWAIT OPTION SPECIFIED BUT THE SERVANT FACILITY IS NOT ACTIVE |
|
71 |
0648E |
THE NOWAIT OPTION MAY NOT BE SPECIFIED WITH THE STACK OR FILE OPTIONS |
|
76 |
0018E |
INVALID OPTION option |
|
77 |
0698E |
THE option OPTION MAY NOT BE SPECIFIED WITH THE option OPTION |
|
78 |
0647E |
THE WAIT AND FORMAT OPTIONS MAY NOT BE SPECIFIED FOR A MINIDISK ON T‑DISK |
|
79 |
0076S |
USER ERROR ‘nnn’ COPYING FILE ‘fileid’ |
|
80 |
0364E |
FILE filename filetype IS BEING UPDATED |
|
81 |
0220E |
INVALID option OPTION OPERAND parameter |
|
82 |
0617E |
DDR FAILED WITH RC= code WHILE ATTEMPTING TO MOVE THE vaddr1 DISK |
|
88 |
none |
non‑zero return code from DIRECT_OBTAIN |
|
90 |
0209E |
BLOCKSIZE 800 IS NOT SUPPORTED ON FB‑512 DEVICES |
|
91 |
0209E |
BLOCKSIZE 800 IS NOT SUPPORTED ON FB‑512 DEVICES |
|
95 |
none |
non‑zero return code from DIRECT UPDATE |
|
96 |
none |
non‑zero return code from MAN000S0 |
|
98 |
none |
non‑zero return code from MAN000R0 |
|
103 |
0383I |
FROM EXIT: exit message |
|
1nnn |
0200E |
UNEXPECTED ERROR ‘nnn’ LINKING USER ‘userid’ MINIDISK ‘vaddr’ |
|
-231 |
0726E |
SERVANT ABENDED DURING command COMMAND. DIRECTORY NOT CHANGED |
Note:
|
Copyright © 2014 CA.
All rights reserved.
|
|