< 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. Note If the latency protection is set to override, read Primary and Secondary Disconnected. To pause and resume replication to a Secondary 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. 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 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: The new host names must be configured for proper resolution at both the Primary and Secondary sites using the appropriate mechanisms such as DNS, NIS, or hosts. This means that each system must be configured to bring up their addresses on reboot, or if this is a cluster, the cluster monitor must bring up the proper address. The Secondary must be reachable from the Primary either through the previous network, the new network, or both the networks. If the previous network is no longer available, the vradmin changeip command must be run from the Primary host. Note The VVR heartbeat port can be changed using the vrport command. To ensure that the RLINKs pick up the new port, always run the vradmin changeip command (without passing the newpri and newsec arguments) after changing the port. Restart the vxnetd daemon on the required system for the changes to take effect. To change 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:
To change the IP addresses used for replication
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: To resolve a port number conflict with other applications. To configure VVR to work in your firewall environment. To configure VVR to work in your firewall environment when using UDP; to specify a restricted number of ports to replicate data between the Primary and the Secondary. 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. To display the port number used for heartbeats # vrport heartbeat To change the port number used for heartbeats # vrport heartbeat port To change the replication heartbeat port on seattle from 4145 to 5000
Follow the same steps to change the heartbeat port on secondary (london). Note VVR supports a configuration with different heartbeat port numbers on the primary and secondary. 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. To display the port number used by vradmind # vrport vradmind To change the port number used by vradmind # vrport vradmind port Note You must restart the server vradmind for this change to take effect. Make sure you change the port number on all the hosts in the RDS. 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. To display the port number used by in.vxrsyncd # vrport vxrsyncd To change the port number used by in.vxrsyncd # vrport vxrsyncd port Note You must restart the server in.vxrsyncd for this change to take effect. Make sure you change the port number on all the hosts in the RDS. 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. Note For systems using the TCP protocol for replication, you are not required to select any data port as the connection is established with the listener port on the remote host. The listener uses this port number which is numerically same as the UDP port used for heartbeat messages. To display ports used to replicate data when using UDP # vrport data To change ports used to replicate data when using UDP 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 Note To use the new port information, execute /usr/sbin/vxnetd, and then pause and resume all RLINKs. |
^ Return to Top | < Previous | Next > |
Product: Volume Replicator Guides | |
Manual: Volume Replicator 4.1 Administrator's Guide | |
VERITAS Software Corporation
www.veritas.com |