This command creates, updates, and backs up the copy group definition file.
This command sets or changes the copy group attributes in the copy group definition file according to the values set for each parameter.
Request body format
{ "action":"submit", "cliname":"YKDEFGRP", "CLIPARMS":[ "GROUP△1copy-group-ID" [,"PREFIX△11configuration-file-dataset-prefix"] [,"DAD△1DADID-of-the-host-on-which-BC-Manager-is-running"] [,"BACKUPGROUP△1copy-group-ID-of-the-copy-destination"] [,"LOADGROUP△1{YES|NO}"] [,"DESCRIPTION△1description-of-the-copy-group"] ,"COPYTYPE△1{SI|TC|UR}" ,"PRIDAD△1primary-DADID" ,"SECDAD△1secondary-DADID" [",PRISCHSET△1primary-subchannel-set-ID"] [,"SECSCHSET△1secondary-subchannel-set-ID"] [,"COPYPACE△1{SLOW|NORMAL|FAST}"] ---- for the SI copy type [,"PRESETMODE△1{NORMAL|STEADY|QUICK}"] ---- for the SI copy type [,"PROTECTMODE△1{PROTECT|PERMIT}"] ---- for the SI copy type [,"COPYPACE△1{SLOW|NORMAL}"] ---- for the TC copy type [,"DIFFUNIT△1{CYL|TRK}"] ---- for the TC copy type [,"FENCELEVEL△1{DATA|STATUS|NEVER}"] ---- for the TC copy type [,"FREEZESCPMODE△1{Y|N}"] ---- for the TC copy type [,"LINKAGEOPTION△1{HS|NONE}"] ---- for the TC copy type [,"OPENMF△1{Y|N}"] ---- for the TC copy type [,"PROTECTMODE△1{PROTECT|PERMIT}"] ---- for the TC copy type [,"TIMESTAMPMODE△1{Y|N}"] ---- for the TC copy type [,"CTTIMEMODE△1{JOURNAL|VOLUME|ASIS}"] ---- for the UR copy type [,"ERRORLEVEL△1{VOLUME|GROUP}"] ---- for the UR copy type [,"MIRRORID△1mirror-ID"] ---- for the UR copy type [,"PROTECTMODE△1{PROTECT|PERMIT}"] ---- for the UR copy type [,"SUSPENDOPTION△1{FLUSH|PURGE}"] ---- for the UR copy type }
Parameters specified in the request body (common to all copy types)
- PREFIX configuration-file-dataset-prefix
-
This is a common parameter included in the default parameter dataset. For details, see Creating a default parameter dataset.
- DAD DADID-of-the-host-on-which-BC-Manager-is-running
-
This is a common parameter included in the default parameter dataset. For details, see Creating a default parameter dataset.
- BACKUPGROUP copy-group-ID-of-the-copy-destination ~ <GROUP string>
-
Specify the copy group ID of the destination to which the copy group is replicated.
Maximum length that can be specified = 44 - (5 + PREFIX length)
If this parameter is specified, the command will make a copy before updating the copy group definition file.
This parameter is valid only when the file specified in the GROUP parameter exists and the value specified in the GROUP parameter is different from the value specified in the BACKUPGROUP parameter.
If this parameter is omitted, no copy will be made.
- LOADGROUP NO{YES|}
-
Specify whether to load the copy group definition file specified in the GROUP parameter if the file exists. The default value is YES.
- DESCRIPTION description-of-the-copy-group ~ <string of 32 or fewer characters>
-
Specify a description of the copy group. If this parameter is omitted and no copy group definition file is loaded, a null string is assumed.
- COPYTYPE {SI|TC|UR}
-
Specify the copy type of the copy group.
You cannot change COPYTYPE. If you want to change COPYTYPE, create a new copy group definition by specifying NO in the LOADGROUP parameter.
- SECDAD secondary-DADID ~ <DAD string>
-
Specify the secondary device address domain ID.
When the value of the COPYTYPE parameter is SI, specify the value that is specified in the PRIDAD parameter. Note that, when defining a Non Gen'ed volume and a Gen'ed volume on the same storage system as a ShadowImage (SI) copy pair, you can specify a different value (the device address domain ID specified when performing an NG scan or the one specified when performing a local scan).
- PRISCHSET primary-subchannel-set-ID ~ <one-digit hexadecimal number>
-
Specify the primary subchannel set ID. For multiple subchannel set IDs, specify a value in the range from 1 to 3. For dummy subchannel set IDs, specify a value in the range from 1 to F. If this parameter is omitted and no copy group definition file is loaded, 0 is assumed.
Parameters specified in the request body (for the SI copy type)
- COPYPACE {SLOW|NORMAL|FAST}
-
Specify the copy pace when a copy pair is created (YKMAKE command) or resynchronized (YKRESYNC command). If this parameter is omitted and no copy group definition file is loaded, NORMAL is assumed.
- SLOW
-
The speed of the copy operation will be slower so as to minimize the impact of the copy operation on the I/O performance of the host.
Parameters specified in the request body (for the TC copy type)
- COPYPACE {SLOW|NORMAL}
-
Specify the copy pace when a copy pair is created (YKMAKE command) or resynchronized (YKRESYNC command). If this parameter is omitted and no copy group definition file is loaded, PERMIT is assumed.
- DIFFUNIT {CYL|TRK}
-
Specify the unit for managing the differential data between the P-VOL and S-VOL (differential-data management unit). If this parameter is omitted and no copy group definition file is loaded, TRK is assumed.
Notes
-
If TRK is specified, there is an upper limit to the number of copy pairs that can be created on each storage system. For details, see the TrueCopy for Mainframe User Guide.
-
For VSP G1000, VSP G1500, VSP F1500, and VSP 5000 series storage systems, TRK is used even if CYL is specified.
-
- FENCELEVEL {DATA|STATUS|NEVER}
-
Specify the fence level. If this parameter is omitted and no copy group definition file is loaded, NEVER is assumed.
- DATA
-
Places the P-VOL in the fence status (updates suppressed) when updates to the P-VOL cannot be copied to the S-VOL due to a problem such as a failure.
- Note 2
-
For a system volume that is used for control by the OS or by applications such as Business Continuity Manager, if you specify DATA or STATUS for the FENCELEVEL parameter to create and operate a copy pair, writing to the P-VOL is prohibited and the OS or application might hang when a problem such as a failure occurs. For this reason, if you use the system volume as a TrueCopy copy pair, specify NEVER for the FENCELEVEL parameter, or set and operate the system volume itself so that it does not become a TrueCopy copy pair.
- FREEZESCPMODE {Y|N}
-
Specify whether to freeze a storage system (place it in the SCP status) when a failure suspension (SUSPER) occurs. If this parameter is omitted and no copy group definition file is loaded, Y is assumed.
- Y
-
Places the storage system in the SCP status. When a copy group for which Y is specified for this parameter changes to a failure suspension status, execute the YKRUN command to cancel the SCP status. If you do not cancel the SCP status, update I/O operations from the host will be put on hold for a long period of time. Note that you cannot use the SCP Delay Time that was set by using Storage Navigator to change the time for putting update I/O operations on hold. The specification of Y is valid only for TrueCopy copy groups for which consistency group IDs are specified.
- LINKAGEOPTION {HS|NONE}
-
Specify the linkage option. If this parameter is omitted and no copy group definition file is loaded, NONE is assumed.
Notes
-
Although you can change the definitions in Business Continuity Manager by specifying HS or NONE for the LINKAGEOPTION parameter, the changes will not be applied to the host or storage system. If the definitions are changed on the host or storage system, make sure that you change the definitions in Business Continuity Manager so that they match the definitions on the host and storage system.
-
For PPRC copy pairs in a 2DC configuration with HyperSwap and Universal Replicator, specify HS. For a TrueCopy copy group created by executing the YKH2B command, HS is displayed. If HS is displayed, Business Continuity Manager can be used only for monitoring, and the operations it can perform are limited. However, Business Continuity Manager can be used to dissolve copy pairs (by executing the YKRECVER or YKDELETE command).
- OPENMF {Y|N}
-
Specify whether to use the Open/MF Consistency Preservation function. If this parameter is omitted and no copy group definition file is loaded, N is assumed.
- TIMESTAMPMODE {Y|N}
-
Specify whether to transfer the writing timestamp to the S-VOL (timestamp transfer mode). If this parameter is omitted and no copy group definition file is loaded, N is assumed.
Parameters specified in the request body (for the UR copy type)
- CTTIMEMODE {JOURNAL|VOLUME|ASIS}
-
Specify the consistency time mode to be used when the copy type is Universal Replicator. If this parameter is omitted and no copy group definition file is loaded, ASIS is assumed.
- ERRORLEVEL {VOLUME|GROUP}
-
Specify the error level that determines whether all of the copy pairs in the same consistency group are suspended. If this parameter is omitted and no copy group definition file is loaded, GROUP is assumed.
- MIRRORID mirror ID ~ <number> (0 to 3)
-
Specify the mirror ID by using a number in the range from 0 to 3. If this parameter is omitted and no copy group definition file is loaded, 1 is assumed.
Notes
-
Do not specify 0 for MIRRORID if you are using a Universal Replicator copy group or a TrueCopy copy group in a 3DC Cascade configuration or 3DC Multi-Target configuration. Note that, in a 3DC Multi-Target configuration or a 2DC configuration where both HyperSwap and Universal Replicator are used, the mirror ID cannot be the same as any other mirror ID assigned to another Universal Replicator copy group.
-
When you execute the YKMAKE command, if one or more volumes are not in the SIMPLEX status, the command might not execute correctly.
-
- PROTECTMODE {PROTECT|PERMIT}
-
Specify whether to allow writing to the S-VOL. If this parameter is omitted and no copy group definition file is loaded, PROTECT is assumed.
- SUSPENDOPTION {FLUSH|PURGE}
-
Specify the data synchronization method used at suspension when the copy type is Universal Replicator. If this parameter is omitted and no copy group definition file is loaded, FLUSH is assumed.
- FLUSH
-
Suspends the copy pair after all data is synchronized. Because the suspension is performed when data up until the time of the suspend request is synchronized, the system does not wait for updating to finish. Data updated after the suspend request is managed by the main control unit and remote control unit as differential data, and becomes a differential copy target when the copy pair is resynchronized.
Responses
Return code
If the CLI command has finished running, the return code of the CLI command is set in the rc key of the response. If an error occurs before the CLI command is run, the BCM Web API server sets the return code.
The following table lists and describes the return codes when the YKDEFGRP command ends.
Return code |
Meaning |
---|---|
0 |
The command terminated normally. |
4 |
Unknown XML attribute(s) or element(s) were encountered in the configuration file. |
36 |
The configuration file is invalid. |
40 |
|
44 |
Allocation or writing to the configuration file could not be performed. |
48 |
There is an error in the record specified for the parameter dataset. |
For details about return codes set by the BCM Web API server, see Return codes set by the BCM Web API server.