For validation purposes, Geographic Edition gives each Hitachi TrueCopy or Universal Replicator data replication component a state according to the current state of its pair. This state is returned by the pairvolchk -g devicegroup -ss command.
The remainder of this section describes the individual data replication component states and how these states are validated against the local role of the protection group.
An individual Hitachi TrueCopy or Universal Replicator data replication component can be in one of the following states:
SMPL
Regular Primary
Regular Secondary
Takeover Primary
Takeover Secondary
The state of a particular data replication component is determined by using the value that is returned by the pairvolchk -g devicegroup -ss command. The following table describes the data replication component state associated with the values returned by the pairvolchk command.
|
If a protection group contains only one Hitachi TrueCopy or Universal Replicator data replication component, then the aggregate data replication component state is the same as the individual data replication component state.
When a protection group contains multiple Hitachi TrueCopy or Universal Replicator data replication components, the aggregate data replication component state is obtained as described in the following table.
|
The aggregate data replication component state cannot be obtained for any other combination of individual data replication component states. This is considered a pair-state validation failure.
The local role of a Hitachi TrueCopy or Universal Replicator protection group is validated against the aggregate data replication component state as described in the following table.
|
This example validates the state of a Hitachi TrueCopy or Universal Replicator data replication component against the role of the Hitachi TrueCopy or Universal Replicator protection group to which it belongs.
First, the protection group is created as follows:
phys-paris-1# geopg create -s paris-newyork-ps -o primary -d truecopy -p Ctgid=5 hdspg
A data replication component, devgroup1, is added to the protection group, hdspg, as follows:
phys-paris-1# geopg add-replication-component -p Fence_level=async devgroup1 hdspg
The current state of a Hitachi TrueCopy or Universal Replicator data replication component, devgroup1, is provided in the output of the pairdisplay command as follows:
phys-paris-1# pairdisplay -g devgroup1 Group PairVol(L/R) (Port#,TID,LU),Seq#,LDEV#,P/S,Status,Fence,Seq#,P-LDEV# M devgroup1 pair1(L) (CL1-A , 0, 1) 12345 1..P-VOL PAIR ASYNC,54321 609 - devgroup1 pair1(R) (CL1-C , 0, 20)54321 609..S-VOL PAIR ASYNC,----- 1 - devgroup1 pair2(L) (CL1-A , 0, 2) 12345 2..P-VOL PAIR ASYNC,54321 610 - devgroup1 pair2(R) (CL1-C , 0,21) 54321 610..S-VOL PAIR ASYNC,----- 2 -
The pairvolchk -g <DG> -ss command is run and returns a value of 23.
phys-paris-1# pairvolchk -g devgroup1 -ss parivolchk : Volstat is P-VOL.[status = PAIR fence = ASYNC] phys-paris-1# echo $? 23
The output of the pairvolchk command is 23, which corresponds in Figure 7, Table 7, Individual Hitachi TrueCopy and Universal Replicator Data Replication Component States to an individual data replication component state of Regular Primary. Because the protection group contains only one data replication component, the aggregate data replication component state is the same as the individual data replication component state. The data replication component state is valid because the local role of the protection group, specified by the –o option, is primary, as specified in Figure 9, Table 9, Validating the Aggregate Data Replication Component State Against the Local Role of a Protection Group.