![]() |
![]() |
![]() |
![]() |
![]() |
Failing back to the original Primary using difference-based synchronization involves the following steps:
The examples in the following section explain how to fail back to the original Primary using VVR.
VVR provides the vradmin
makesec
command to convert the original Primary to a Secondary. This command is only needed if fast failback was not enabled when the original takeover was performed. If fast failback was enabled, the original Primary will automatically be converted to a Secondary when DCM playback begins. Note that this command can be run only from the original Primary host where one of its original Secondaries has taken over the Primary role.
You can issue the vradmin
makesec
command in the failback procedure only if fast failback has not been enabled when taking over from the original Primary. Run this command when the original Primary restarts. Stop the application if it restarts automatically when the Primary restarts. The vradmin
makesec
command converts the original Primary to a Secondary RVG.
Tip
Before using the
vradmin
makesec
command make sure you close all the applications running on the original Primary's data volumes. Also ensure that none of the data volumes are open.
The vradmin
makesec
command fails if the Secondary data volumes are not up-to-date or if there are some applications still running on the failed Primary's data volumes. Use the -f
option to convert a failed Primary to a Secondary even when the Secondary data volumes are not up-to-date. If any of the failed Primary data volumes are open or have applications running on them, then using the vradmin
makesec
command with the -f
option will fail. To proceed with the vradmin
makesec
command, first close the volumes or stop the applications as required.
To convert an original Primary to a Secondary:
# vradmin
-g
diskgroup makesec
local_rvgname newprimary_name
The argument diskgroup
is the disk group on the local host.
The argument local_rvgname
is the name of the RVG on the local host, that is, the original Primary and represents its RDS.
The argument newprimary_name
is the name of the new Primary host, that is, the previous Secondary host. Note that the newprimary_name
argument must be the same as the host name displayed with the Primary-Primary configuration error in the output of the vradmin
-l
printrvg
command.
In this example, the Primary host seattle
has restarted after an unexpected failure. After the failure, the original Primary seattle
has been manually taken over by the Secondary host london
. This example shows how to fail back to the original Primary seattle
using difference-based synchronization. For more information, see Synchronizing volumes using difference-based synchronization.
To fail back to the original Primary seattle
hr_rvg
on seattle
the Secondary RVG of the new Primary london
by typing the following command on the original Primary seattle
:
# vradmin -g hrdg makesec hr_rvg london
hr_rvg
with the data volumes in the new Primary RVG hr_rvg
on london
using the difference-based synchronization and checkpoint. To synchronize the Secondary based on differences using a checkpoint, type the following command on any host in the RDS:
# vradmin
-g hrdg -c checkpt_presync syncrvg hr_rvg seattle
london
.
hr_rvg
on seattle
from the new Primary RVG hr_rvg
on london
using the checkpoint by typing the following command on any host in the RDS:
# vradmin
-g hrdg -c checkpt_presync startrep hr_rvg seattle
london
to the original Primary host seattle
by typing the following command on any host in the RDS:
# vradmin
-g hrdg migrate hr_rvg seattle
Replication from the original Primary seattle
to the original Secondary london
is started by default.
seattle
. Because the application was stopped properly before the migration, an application recovery is not required.
This example shows how to fail back to the original Primary seattle
using the difference-based synchronization feature.
seattle
:
# vradmin -g hrdg -c checkpt syncrvg hr_rvg tokyo
The -c
option when used with the vradmin syncrvg command automatically starts a checkpoint with the specified name, checkpt
, in this example. After the data volumes are synchronized, the checkpoint is ended.
# vradmin -g hrdg -c checkpt startrep hr_rvg tokyo
seattle
. Because the application was stopped properly before the migration, an application recovery is not required.