To create SRDF devices in an
SRDF/Metro configuration, use the -metro option with the
createpair command.
The
symrdf createpair command allows creating a concurrent RDF device resulting in one
SRDF/Metro mirror and one Asynchronous or Adaptive Copy RDF mirror.
The
createpair -format -metro command allows creating devices into an non-empty
SRDF/Metro group when the existing devices are RW on the link. The devices that are being added will be formatted as a part of the createpair.
The
createpair -metro -invalidate R1 [or R2] command allows adding devices to a non-empty
SRDF/Metro group when the group is suspended (all devices already in the group are NR on the link). Data on the devices being added is preserved (-invalidate R2 preserves the R1 data;
-invalidate R1 preserves the R2 data).
The
symrdf createpair -metro -exempt command allows creating device pairs that get special handling allowing devices to be added without affecting the state of the
SRDF/Metro session or requiring that other devices in the session be suspended.
-exempt also allows creating device pairs whose R1 and/or R2 sides are not aligned with those of devices already in the group; SRDF/Metro sets alignments to match when the devices become Ready (RW) on the link.
Even if the device pairs are being created in an existing
SRDF/Metro group, the
-metro option is still necessary.
Use the
-use_bias option to indicate that the
SRDF/Metro configuration uses Device Bias rather than either form of witness protection. This is only valid with the
-establish or
-restore options.
When using the
createpair operation with the
-establish or
-restore options the following rules apply when a witness method is in use:
In an Array Witness configuration, the required Witness SRDF groups must exist and be online.
In a vWitness configuration, both arrays must be connected to the same vWitness instance and that instance must be active.
Options
Table 1. createpair -metro options
Option
Preserves Data
SRDF/Metro Group
Polarity can differ from SRDF/Metro
Not Empty
Empty
RW on Link
NR on Link
-invalidate R1/R2
Y
Y
Y
Y
Y
-format
Y
Y
Y
-establish
Y
Y
-restore
Y
Y
-exempt
Y
Y
Y
Y
Y
Restrictions
The following operations are not allowed when using the
symrdf createpair command to create concurrent RDF devices:
Adding an
SRDF/Metro mirror when the device is already part of an
SRDF/Metro configuration.
Adding an
SRDF/Metro mirror when the device is already an R2 device.
Adding a non-SRDF/Metro R2 mirror to a device that has an Metro RDF mirror.
Adding an
SRDF/Metro mirror when the non-SRDF/Metro mirror is in Synchronous mode.
Adding a non-SRDF/Metro mirror in Synchronous mode when the device is already part of an
SRDF/Metro configuration.
An
SRDF/Metro group cannot contain a mixture of R1 and R2 devices except for devices added as exempt that have not yet synchronized between the two sides.
Examples
In the following example:
-metro indicates the devices are created in a
SRDF/Metro configuration.
-sid 174 -type R1 indicates array 174 is the R1 side.
-sg specifies the name of the storage group.
-remote_sg specifies the remote storage group name.
-establish starts the synchronization process from R1 to R2 devices.
NOTE:Since
-use_bias is not specified, the
-establish operation requires either a witness array or a vWitness, otherwise the
createpair action is blocked.
symrdf createpair -metro -sid 174 -type R1 -rdfg 2 -sg RDF1_SG -remote_sg RDF2_SG –establish
Execute an RDF 'Create Pair' operation for storage group 'RDF1_SG' (y/[n]) ? y
An RDF 'Create Pair' operation execution is
in progress for storage group 'RDF1_SG'. Please wait...
Create RDF Pair in (0174,002)....................................Started.
Create RDF Pair in (0174,002)....................................Done.
Mark target device(s) in (0174,002) for full copy from source....Started.
Devices: 006B-0074 in (0174,002).................................Marked.
Mark target device(s) in (0174,002) for full copy from source....Done.
In the following example, the
createpair command:
Creates device pairs using device pairs listed in a device file
/tmp/device_file.
Specifies the pairs are in a
SRDF/Metro configuration (-metro) .
As with the previous example, this
createpair operation omits the
-use_bias option; hence a witness array or vWitness is required.