< Previous | Next > | |
Product: Volume Replicator Guides | |
Manual: Volume Replicator 4.1 Administrator's Guide |
Administering the SRL
The size of the SRL is critical to the performance of replication. When the SRL overflows for a particular Secondary, the Secondary becomes out of date until a complete resynchronization with the Primary is performed. Because resynchronization is a time-consuming process and during this time the data on the Secondary cannot be used, it is important to prevent the SRL from overflowing. Hence, when initially configuring VVR, determine an appropriate size for the SRL. The maximum size of the SRL can be derived from various criteria, however, the size of the SRL volume cannot be less than It is possible that an SRL of an appropriate size overflows because of changes in the environment. This section describes how to protect from SRL overflows and administer VVR if the SRL overflows. Protecting from SRL OverflowTo avoid complete synchronization of Secondary in the case of an SRL overflow, VVR provides autodcm or dcm mode of SRL protection. For more information, see Protection Against SRL Overflow---srlprot attribute. To enable SRL protection, each data volume in the RDS must have an associated DCM. For more information, section Associating the Component Volumes of a Volume Set to an RDS. To change the replication setting for SRL protection, see Changing the Replication Settings for a Secondary. Incrementally Synchronizing the Secondary After SRL Overflow
The default protection mode for the SRL is autodcm and every volume in the RVG must have a DCM. When the SRL fills up, whether the RLINK is connected or not, DCM logging is activated and a bit corresponding to the region of the update is turned on for every incoming update. When you are ready to replay the DCM, start the DCM resynchronization process. To start the resynchronization, use the command During DCM resynchronization, VVR does not maintain the order of updates to the Secondary. As a result, the Secondary remains inconsistent until the resynchronization operation is complete. Note that if the Primary becomes unavailable during the time the resynchronization is taking place, the applications cannot be restarted on the Secondary. If the Secondary volumes are mirrored, you can break off mirrors to retain consistent (though out-of-date) copies of data until the resynchronization is complete. However, to overcome this problem, create snapshots of the Secondary volumes before the resynchronization starts by using the following commands:
SRL Overflow Protection With DCM---Flags and Definitions
If the SRL Overflow Protection With DCM feature has been activated, VVR sets the following flag on the corresponding RLINK and its RVG:
Log Overflow Protection With DCM has been started and the DCM is in use.
If the dcm_logging flag is set on an RLINK or RVG and neither the resync_started nor the resync_paused flag is set, the resynchronization (resync) has not been started. After the vradmin resync command has been issued, one or both of the following flags are set:
Resynchronization is in progress, that is, data is being transferred from the Primary to the Secondary.
Prerequisite for incrementally resynchronizing the Secondary To incrementally resynchronize the Secondary # vradmin -g diskgroup resync local_rvgname The argument local_rvgname is the name of the RVG on the local host and represents its RDS. # vradmin -g hrdg resync hr_rvg To determine the progress of the incremental synchronization Determine the progress of the incremental synchronization after SRL overflow by issuing the following command on the Primary host: # vxrlink -g diskgroup status rlink_name The argument rlink_name is the name of the Primary RLINK to the Secondary.
The output shows how much data is left to send. To monitor the progress, issue the # vxrlink -g hrdg -i5 status rlink_name VxVM VVR vxrlink INFO V-5-1-4464 Rlink rlink_name is in AUTOSYNC. 100864 Kbytes remaining. VxVM VVR vxrlink INFO V-5-1-4464 Rlink rlink_name is in AUTOSYNC. 94464 Kbytes remaining. VxVM VVR vxrlink INFO V-5-1-4464 Rlink rlink_name is in AUTOSYNC. 76800 Kbytes remaining. Breaking Off Mirrors Before Incremental SynchronizationDuring DCM resynchronization, the data volumes on the Secondary are inconsistent and cannot be used to take over the Primary role. To maintain a consistent copy of the data volumes on the Secondary, break off a mirror from each data volume before starting DCM resynchronization. In the case of a disaster, these mirrors can be used to take over the Primary role. If you have FastResync license, make sure FR is set for all the volumes. When snapshot plexes are available: To find out if snapshot plexes are available on a data volume, use the vxprint command. The output shows the state of the plex as SNAPDONE. If a snapshot plex is available for each data volume, use the vxrvg snapshot command to take a snapshot of the data volumes in an RVG. If required, the snapshot volumes can be used to take over the Primary role. After the DCM resynchronization is complete, reattach the snapshot plexes back to the original volume using the vxrvg snapback command. When snapshot plexes are not available: If snapshot plexes are not available, detach mirrors on each of the data volumes on the Secondary using the vxplex command. After the DCM resynchronization is complete, reattach the plexes using the vxplex att command. To use the data on a detached plex in situations such as takeover, you must create a volume for the detached plex when snapshot plexes are not available. Example 1---When snapshot plexes are not availableThis example explains how to break off a mirror from a data volume and reattach a plex after the DCM resynchronization is complete. This example uses the volume hr_dv01 that has two plexes hr_dv01_01and hr_dv01_02.
Example 2---When snapshot plexes are not available and a disaster occursIf during the resynchronization process, a disaster occurs and the Secondary takes over, you can recreate the volumes as they were before the resynchronization started. The example uses the RVG hr_rvg and the volume hr_dv01 as in Example 1---When snapshot plexes are not available. All steps are performed on the former Secondary, which is now the Primary (to take over the Primary role, see Taking Over from an Original Primary).
Notes on using Incremental Synchronization on SRL Overflow
Resizing the SRLThe size of the SRL must be large enough to meet the constraints explained in the section "Sizing the SRL" in the VERITAS Volume Replicator Planning and Tuning Guide. These constraints can change with the changes in the business needs, application write rate, available network bandwidth, and so on. As a result, it is necessary to determine the appropriate size of the SRL again. This section includes the following tasks: Increasing the Size of the SRL on the PrimaryVVR enables you to increase the size of the Primary SRL in a Replicated Data Set (RDS) using the vradmin resizesrl command, even while the application is active or while replication is in progress. The vradmin resizesrl command does not increase the size of the Secondary SRL. Before increasing the size of the Primary SRL, do the following: Check whether there is enough free space in the disk group in which the SRL resides by issuing the following command: # vxdg -g diskgroup free To increase the size of the SRL on the Primary Issue the following command on the Primary: # vradmin -g diskgroup resizesrl local_rvgname length The argument local_rvgname is the name of the RVG on the local host and represents its RDS. The argument length is the desired size for the Primary SRL. The length can be specified using the standard VxVM conventions. It can be prefixed by a plus sign (+) to indicate an increase in the size of the Primary SRL by the specified amount. Decreasing the Size of the SRL on the PrimaryFor instructions on decreasing the size of the SRL on the Primary, see Decreasing the Size of the SRL on the Primary. Resizing the SRL on the SecondaryNote that you do not have to stop the applications while resizing the Secondary SRL. To resize the SRL on the Secondary
|
^ Return to Top | < Previous | Next > |
Product: Volume Replicator Guides | |
Manual: Volume Replicator 4.1 Administrator's Guide | |
VERITAS Software Corporation
www.veritas.com |