![]() |
![]() |
![]() |
![]() |
![]() |
The vradmin
stoprep
command can be used to stop replication to a Secondary in an RDS. The vradmin
stoprep
command can be entered from any host in the RDS.
The vradmin
stoprep
command fails if the Primary and Secondary RLINKs are not up-to-date. Use the -f
option to stop replication to a Secondary even when the RLINKs are not up-to-date.
Before stopping replication, the vradmin
stoprep
command displays a warning and prompts the user to confirm whether or not to stop replication. To skip this confirmation, use the -s
option with the vradmin
stoprep
command. The -s
option to the vradmin
stoprep
command proves useful in scripts.
To stop replication to a specific Secondary in an RDS, specify the Secondary host name. For an RDS with a single Secondary, you do not have to specify the Secondary host name.
To stop replication to a specific Secondary in an RDS
# vradmin -g
diskgroup stoprep
local_rvgname sec_hostname
The argument local_rvgname
is the name of the RVG on the local host and represents its RDS.
The argument sec_hostname
is the name of the Secondary host as displayed in the output of the vradmin
printrvg
command.
To stop replication from the Primary RVG hr_rvg
on seattle
to the Secondary RVG on host london
, type:
# vradmin -g hrdg stoprep hr_rvg london