Specify the mkrcrelationship command to create a new Global Mirror, Metro Mirror, or active-active relationship with volumes in the same clustered system (system), forming an intrasystem Metro Mirror relationship or intersystem relationship (if it involves more than one system).
This command creates a new Global Mirror, Metro Mirror, or active-active relationship. A Metro Mirror relationship defines the relationship between two volumes. One volume is a master volume and the other volume is an auxiliary volume. This relationship persists until deleted. The auxiliary volume must be identical in size to the master volume or the command fails. This command also returns the new relationship ID.
You can optionally give the relationship a name. The name must be a unique relationship name across both systems.
For proper database operation, it is important that updates to the log files and the database data are made in a consistent and orderly fashion. It is crucial in this example that the log file volume and the data volume at the secondary site are in a consistent state. This can be achieved by putting the relationships that are associated with these volumes into a consistency group. Both Metro Mirror and Global Mirror processing ensure that updates to both volumes at the secondary are stopped, leaving a consistent image based on the updates that occurred at the primary site.
If you specify a consistency group, both the group and the relationship must are created by using the same master system and the same auxiliary system. The relationship must not be a part of another consistency group. If the consistency group is empty, it acquires the type of the first relationship that is added to it. Therefore, each subsequent relationship that you add to the consistency group must have the same type.
If the consistency group is not empty, the consistency group and the relationship must be in the same state. If the consistency group is empty, it acquires the state of the first relationship that is added to it. If the state has an assigned copy direction, the direction of the consistency group and the relationship must match that direction.
If you do not specify a consistency group, a stand-alone relationship is created.
If you specify the -sync parameter, the master and auxiliary volumes contain identical data at the point when the relationship is created. You must ensure that the auxiliary is created to match the master and that no data movement occurs to either volume before you issue the mkrcrelationship command.
If you specify the -global parameter, a Global Mirror relationship is created. Otherwise, a Metro Mirror relationship is created instead.
The volumes that are specified on the -master and -aux parameters cannot be master or auxiliary volumes in an existing relationship.
mkrcrelationship -master vdisk1 -aux vdisk2 -name rccopy1 -cluster 0000020063432AFD
The resulting output:
RC Relationship, id [28], successfully created
mkrcrelationship -master vdiskA -aux vdiskB -cluster clusterB -name new_rel -global -cyclingmode multi
The resulting output:
RC Relationship, id [28], successfully created
mkrcrelationship -master volA -aux volB -cluster localCluster -activeactive
The resulting output:
RC Relationship, id [28], successfully created