![]() |
< Previous | Next > |
Product: Volume Replicator Guides | |
Manual: Volume Replicator 4.1 Administrator's Guide |
Administering ReplicationChanging the Replication SettingsYou can change the VVR replication attributes according to your requirements with the vradmin set command. The vradmin set command enables you to set the following VVR replication attributes:
For more information on replication settings, see Changing the Replication Settings for a Secondary. Pausing and Resuming Replication to a SecondaryPausing an RLINK prevents new and already-queued updates from reaching the Secondary from the Primary, and the Primary and Secondary do not communicate. The vradmin pauserep command does not provide a way to pause a Secondary RLINK. To do this, use the vxrlink command on the Secondary host. The vradmin resumerep command resumes both types of pauses on the selected RLINKs. ![]()
To pause replication to a specific Secondary in an RDS, specify the Secondary hostname. For an RDS with a single Secondary, you do not have to specify the Secondary hostname.
Stopping Replication to a SecondaryThe 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.
# 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 Changing the IP Addresses Used for ReplicationYou may need to change the host name or IP address of the Primary and Secondary used for replication if you move a Primary or Secondary to a new location or if you need to make the replication use a different network. You can change the host name or IP address even after replication has been established. The vradmin changeip command enables you to change the replication network between the Primary and a Secondary in an RDS. Prerequisites for changing the IP addresses used for replication:
![]()
vradmin [-g diskgroup] changeip local_rvgname [sec_hostname] \ [newpri=<new_pri_ip | hostname>] [newsec=<new_sec_ip | hostname>] The argument diskgroup is the name of the local disk group that contains the RVG. The local_rvgname argument is the name of the RVG on the host where the command is issued. The sec_hostname is the name of the Secondary to which the replication network is being changed. This argument must be specified if the RDS has more than one Secondary. The newpri attribute specifies a new hostname or IP address for the Primary host that is to be used to establish a network connection for the replication to the Secondary. This is the new value for the local_host attribute of the Primary RLINK and the remote_host attribute of the corresponding Secondary RLINK. The newsec specifies a new hostname or IP address for the Secondary host that is to be used to establish a network connection for the replication. This is the new value for the remote_host attribute of the Primary RLINK and the local_host attribute of the Secondary RLINK.
This example shows how to change the network used for replication. The current configuration looks like this:
After making the changes to the replication network, the configuration looks like this:
Changing the Network Ports Used for ReplicationPort Numbers Used by VVR
VVR uses the UDP and TCP transport protocols to communicate between the Primary and Secondary. This section lists the default ports used by VVR. VVR uses the following ports by default when replicating data using UDP:
VVR uses the following ports by default when replicating data using TCP.
Displaying and Changing the Ports Used by VVRUse the vrport(1M) command to display, change or set the port numbers used by VVR. You may have to change the port numbers in the following cases:
Use the vrport heartbeat command to display the port number used by VVR, for heartbeats. To change the heartbeat port number on a host, specify the port number with the vrport heartbeat command. Use the vradmin changeip command to update the RLINKs with the new port information, and then restart the vxnetd daemon on the required system for the changes to take effect.
# vrport heartbeat
# vrport heartbeat port
Follow the same steps to change the heartbeat port on secondary (london). ![]() To display the port number used by vradmind, use the vrport vradmind command. To change the vradmind port, specify the port number with the vrport vradmind command.
# vrport vradmind
# vrport vradmind port ![]() To display the port numbers used by in.vxrsyncd, use the vrport vxrsyncd command. To change the port numbers used by in.vxrsyncd, specify the port number with the vrport vxrsyncd command.
# vrport vxrsyncd
# vrport vxrsyncd port ![]() Ports Used to Replicate Data Using UDP To display the ports used to replicate data when using UDP, use the vrport data command. To change the ports used to replicate data when using UDP, specify the list of port numbers to use with the vrport data command. Each RLINK requires one UDP port for replication. Specify an unused, reserved port number that is less than 32768 so that there is no port conflict with other applications. The number of ports specified must be equal to or greater than the number of RLINKs on the system. ![]()
# vrport data
For a system configured with one RLINK, use the following command: # vrport data port For a system configured with multiple RLINKs, you can specify either a range of port numbers or a list of port numbers or both. To specify a range of port numbers, use the following command: # vrport data port1, port2, portlow-porthigh, ..... # vrport data 3400, 3405, 3500-3503, 5756-5760 ![]() |
^ Return to Top | < Previous | Next > |
Product: Volume Replicator Guides | |
Manual: Volume Replicator 4.1 Administrator's Guide | |
VERITAS Software Corporation
www.veritas.com |