<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Transitional//EN">
<HTML>
<HEAD>
  <!--
    *************************************************************************************
    * Copyright (c) 2005 VERITAS Software Corporation. All rights reserved. *

      For third-party license citations, please see the bottom of this file.
    *************************************************************************************
  -->
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="TEMPLATEBASE" content="vx_vxhelp_2005c">
<meta name="LASTUPDATED" content="06/14/05 13:33:58">
<meta name="PRODUCTNAME" content="VERITAS Software Documentation">
<meta name="FILENAME" content="ch9tranprirole.fm">
     
<title>Taking Over from an Original Primary</title>

</HEAD>

<BODY bgcolor="#FFFFFF" link="#000066" vlink="#0000ff" marginheight="0" topmargin="0">
<basefont=1>

<a name="114096"></a>

<div align="left">
<table border="0" cellspacing="0" cellpadding="0" width="100%">
 <tr>
   <td height="2" border="0" cellspacing="0" cellpadding="0" colspan="2" bgcolor="#000000">
   </td>
 </tr>
 <tr>
   <td height="15" width="50%" border="0" cellspacing="0" cellpadding="0" bgcolor="#cccccc">
    <img src="images/vxsymbol.gif" height="20" width="31" border="0" cellspacing="0" cellpadding="0" align="left">
     
     
   </td>
   <td align="right" width="50%" bgcolor="#cccccc">

<!-- Header Breadcrumbs -->
<font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="-2">&lt;&nbsp;<a href="ch9tranprirole_vvr100_113937.html" title="Previous - Migrating the Primary">Previous</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a href="ch9tranprirole_vvr102_114209.html" title="Next - Failing Back to the Original Primary">Next</a>
&nbsp;&gt;&nbsp;&nbsp;</font>
   </td>
 </tr>

 <tr>
  <td bgcolor="#CCCCCC" colspan="2" height="15" align="right">
  <font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="1">Product:  
<a href="vvr_splashpage_docCD_vvr1_103036.vxhd" title="Volume Replicator Guides title page ">Volume Replicator Guides</a>
  &nbsp;&nbsp;
  </font>
  </td>
 </tr>
 <tr>
  <td bgcolor="#CCCCCC" colspan="2" height="15" align="right">
  <font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="1">Manual:  
<a href="vvr_ag_hpux_titlepage_docCD_vvr41_73700.vxhd" title="Volume Replicator 4.1 Administrator's Guide title page ">Volume Replicator 4.1 Administrator's Guide</a>
  &nbsp;&nbsp;
  </font>
  </td>
 </tr>


</table>
</div>

<div align="left">
 <table border="0" width="100%" bgcolor="#FFFFFF">
  <tr>
   <td width="100%" valign="top" bgcolor="#FFFFFF">

<!-- Start Main Topic Content -->
        <a name="startcontent"></a>
	
<h1><font face="Arial, Helvetica, Geneva, sansserif, sans serif, Verdana" size="+1" color="#000000"><a name="114096"></a> Taking Over from an Original Primary</font>
</h1>
         
<p>
<font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><a name="114097"></a>The takeover procedure involves transferring the Primary role from an original Primary to a Secondary. When the original Primary fails or is destroyed because of a disaster, the takeover procedure enables you to convert a consistent Secondary to a Primary. The takeover of a Primary role by a Secondary is useful when the Primary experiences unscheduled downtimes or is destroyed because of a disaster. </font>
</p>

<p>
<font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><a name="114098"></a>In the following illustration, the Primary <font face="Courier New, Courier, sansserif, sans serif" size="2">seattle</font> is replicating to the Secondary hosts <font face="Courier New, Courier, sansserif, sans serif" size="2">london</font> and <font face="Courier New, Courier, sansserif, sans serif" size="2">tokyo</font> when disaster strikes the Primary <font face="Courier New, Courier, sansserif, sans serif" size="2">seattle</font>. The Secondary <font face="Courier New, Courier, sansserif, sans serif" size="2">london</font> has been identified as the Secondary for takeover and will become the New Primary after the takeover is complete.</font>
</p>

<a name="no_figure_caption0"> </a>  <!-- Start Image Code -->
  <!--
   CAUTION: If graphics output is truncated, change the paper size setting 
   of your WebWorks Rasterizer printer driver from "A4" to "Letter" and regenerate your project.
  -->

<p>
<a href="ch9_takeover3_t.htm">
<img src="images/ch9_takeover3.gif" width="109" height="82" border="0" ></a>
</p>
<p>
<font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="1"><em>Click the thumbnail above to view full-sized image. </font></em></p>
   <!-- End Image Code -->



<p>
<font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><a name="114104"></a></font>
</p>

<p>
<font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><a name="145760"></a>After the takeover is complete, the Secondary <font face="Courier New, Courier, sansserif, sans serif" size="2">london</font> becomes the new Primary. If you had already created RLINKs between <font face="Courier New, Courier, sansserif, sans serif" size="2">london</font> and <font face="Courier New, Courier, sansserif, sans serif" size="2">tokyo</font> when setting up replication, you do not need to manually reconfigure the additional Secondary <font face="Courier New, Courier, sansserif, sans serif" size="2">tokyo&nbsp;</font>as a part of the RDS. It will automatically be added as a Secondary of the new Primary <font face="Courier New, Courier, sansserif, sans serif" size="2">london</font>.</font>
</p>

<p>
<font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><a name="145761"></a>You must then synchronize <font face="Courier New, Courier, sansserif, sans serif" size="2">tokyo</font> with the new Primary <font face="Courier New, Courier, sansserif, sans serif" size="2">london</font> and start replication. </font>
</p>

<a name="no_figure_caption1"> </a>  <!-- Start Image Code -->
  <!--
   CAUTION: If graphics output is truncated, change the paper size setting 
   of your WebWorks Rasterizer printer driver from "A4" to "Letter" and regenerate your project.
  -->

<p>
<a href="ch09_tosynch4_t.htm">
<img src="images/ch09_tosynch4.gif" width="109" height="81" border="0" ></a>
</p>
<p>
<font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="1"><em>Click the thumbnail above to view full-sized image. </font></em></p>
   <!-- End Image Code -->



<p>
<font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><a name="114120"></a>VVR provides the <font face="Courier New, Courier, sansserif, sans serif" size="2">vradmin</font> <font face="Courier New, Courier, sansserif, sans serif" size="2">takeover</font> command to transfer the Primary role from an original Primary to a Secondary. This command can be run from the Secondary host only when the Primary is not reachable from the Secondary on which the <font face="Courier New, Courier, sansserif, sans serif" size="2">takeover</font> command is to be run. Upon successful completion of the takeover, the Secondary becomes the Primary. VVR displays an error message if you enter the <font face="Courier New, Courier, sansserif, sans serif" size="2">vradmin</font> <font face="Courier New, Courier, sansserif, sans serif" size="2">takeover</font> command on the Primary.</font>
</p>

<p>
<font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><a name="114127"></a>For configurations with multiple Secondaries, you can use the <font face="Courier New, Courier, sansserif, sans serif" size="2">vxrlink</font> <font face="Courier New, Courier, sansserif, sans serif" size="2">updates</font> command to find the most suitable replacement for the failed Primary. For more information, see <a href="ch6display_vvr81_114830.html#114830">Identifying the Most Up-to-Date Secondary</a>.</font>
</p>




<h2><font face="Arial, Helvetica, Geneva, sansserif, sans serif, Verdana" size="3" color="#000000"><a name="114131"></a>Important Notes About Taking Over from an Original Primary</font>
</h2>
 
<p>
<ul type="disc"><li><font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><a name="114132"></a>The Secondary that is to become the new Primary must be consistent before taking over the Primary role. Any consistent Secondary can be selected to be the new Primary. A Secondary that is undergoing DCM resynchronization or autosync is inconsistent and cannot be used as a target of a takeover operation. Use the <font face="Courier New, Courier, sansserif, sans serif" size="2">vxprint</font> <font face="Courier New, Courier, sansserif, sans serif" size="2">-l</font> on the Secondary RLINK to check whether the <font face="Courier New, Courier, sansserif, sans serif" size="2">consistent</font> flag is set. </font>
</li>
<li><font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><a name="114133"></a>Writes that were not replicated to the Secondary before the Primary became unusable are lost. </font>
</li>
<blockquote>
<font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><a name="114134"></a>To preserve the data that was not replicated to the Secondary before the Primary became unusable, we recommend that you take a snapshot of the Primary data volumes before starting takeover with fast failback synchronization. The applications can later be started from the snapshot and you can apply the transactions or files that did not get replicated, to the active data. </font>
</blockquote>
<li><font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><a name="114136"></a>The Primary role takeover must be based on Recovery Point Objective (RPO) or the Recovery Time Objective (RTO) depending on the specific business requirement. For example, consider the scenario where the Secondary was behind by 100MB at the time of Primary crash and if the Primary is not expected to be available for another four hours, you will need to decide between having the application up and available on the Secondary or waiting for the Primary to become available after four hours. If it is required that the application must be available immediately, then the data on the Primary that was not yet replicated will be lost. Thus, takeover can result in data loss.</font>
</li>
<li><font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><a name="114137"></a>The Primary role takeover is intended to support disaster recovery applications. Only a limited number of error scenarios prior to loss of the Primary node can prevent a successful takeover. These error scenarios leave the Secondary RVG in an inconsistent state and prevent takeover. All such scenarios involve a hardware failure of a Secondary data volume or Secondary SRL, and as a result, the Secondary RVG will be in an inconsistent state. The chances of such an occurrence are reduced if these volumes are configured (locally) as mirrored volumes.</font>
</li>
<hr noshade size="2" width="100%" color="#000000">
<img src="images/note.gif" alt="Note " height="16" width="16">&nbsp;
<font face="Arial, Helvetica, Geneva, sansserif, sans serif, Verdana" size="2" color="#000000">
<a name="114138"></a><b>Note  &nbsp;&nbsp;</b>
</font>
<font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2" color="#000000">The takeover procedure does not guarantee that the new Primary and any additional Secondary RVGs have identical contents. The remaining Secondaries must be completely synchronized with the new Primary.
</font>
<hr noshade size="2" width="100%" color="#000000">
<li><font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><a name="114139"></a>We recommend that you set the size of the SRL the same on the Primary and Secondary nodes because any of the Secondary nodes could be later converted to a Primary by using a <font face="Courier New, Courier, sansserif, sans serif" size="2">migrate</font> or <font face="Courier New, Courier, sansserif, sans serif" size="2">takeover</font> command.</font>
</li>
<li><font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><a name="114140"></a>Each data volume on the new Primary must have a Data Change Map (DCM) associated with it.</font>
</li>
</ul>
</p>
<p>
<font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><a name="114144"></a>The <font face="Courier New, Courier, sansserif, sans serif" size="2">vradmin</font> <font face="Courier New, Courier, sansserif, sans serif" size="2">takeover</font> command performs the following functions on the RDS to which the original Primary belongs:</font>
</p>

<p>
<ul type="disc"><li><font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><a name="114145"></a>Converts the Secondary RVG to Primary RVG.</font>
</li>
<li><font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><a name="114147"></a>Enables the fast failback feature on the new Primary, which speeds up failback to the original Primary when it recovers. The fast failback feature is described in the next section.</font>
</li>
</ul>
</p>



<h3><font face="Arial, Helvetica, Geneva, sansserif, sans serif, Verdana" size="2" color="#000000"><a name="114150"></a>About Fast Failback </font>
</h3>
<p>
<font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><a name="114151"></a>The applications are started on the new Primary after the takeover is complete. The fast failback feature uses failback logging for incremental synchronization of the original Primary with the new Primary. Fast failback works by keeping track of the incoming writes to the new Primary and the writes to the original Primary that did not reach the Secondary before the original Primary failed. Based on the tracked writes, data can be transferred to the original Primary after it recovers. This eliminates the need to completely resynchronize the original Primary with the new Primary after the original Primary recovers; only the changed blocks are resynchronized. Fast failback uses DCMs on the new Primary to track the changed blocks.</font>
</p>

<p>
<font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><a name="114152"></a>To enable fast failback, each data volume on the Secondary must have an associated DCM. The <font face="Courier New, Courier, sansserif, sans serif" size="2">takeover</font> command enables fast failback on the new Primary by activating the DCM. The DCM is later used to synchronize the data volumes on the original Primary with the data volumes on the new Primary.</font>
</p>

<p>
<font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><a name="114153"></a>When the original Primary recovers, it needs to be synchronized with the new Primary by playing back the DCM on the new Primary. To receive the missing updates, the original Primary must first be converted to a Secondary. The new Primary can then begin DCM playback to the original Primary. This process can be initiated automatically upon recovery of the original Primary by using the <font face="Courier New, Courier, sansserif, sans serif" size="2">-autofb</font> option to the <font face="Courier New, Courier, sansserif, sans serif" size="2">takeover</font> command, or it can be initiated manually at some later time by using the <font face="Courier New, Courier, sansserif, sans serif" size="2">vradmin</font> <font face="Courier New, Courier, sansserif, sans serif" size="2">fbsync</font> command. </font>
</p>

<p>
<font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><a name="114157"></a>When you use the <font face="Courier New, Courier, sansserif, sans serif" size="2">-autofb</font> option with the <font face="Courier New, Courier, sansserif, sans serif" size="2">vradmin</font> <font face="Courier New, Courier, sansserif, sans serif" size="2">takeover</font> command, it automatically synchronizes the original Primary when it becomes available. The <font face="Courier New, Courier, sansserif, sans serif" size="2">-autofb</font> option converts the original Primary to a Secondary after it comes up and also uses the DCM to synchronize the data volumes on the original Primary using fast failback. The <font face="Courier New, Courier, sansserif, sans serif" size="2">-autofb</font> option can be used only if each Secondary data volume has an associated DCM.</font>
</p>

<p>
<font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><a name="114158"></a>If you prefer not to have the original Primary automatically converted to a secondary upon reboot, the process can be performed manually using the <font face="Courier New, Courier, sansserif, sans serif" size="2">vradmin</font> <font face="Courier New, Courier, sansserif, sans serif" size="2">fbsync</font> command.</font>
</p>

<p>
<font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><a name="114159"></a>To change the role from Secondary to Primary without enabling fast failback, use the <font face="Courier New, Courier, sansserif, sans serif" size="2">-N</font> option with the <font face="Courier New, Courier, sansserif, sans serif" size="2">vradmin</font> <font face="Courier New, Courier, sansserif, sans serif" size="2">takeover</font> command. Use the <font face="Courier New, Courier, sansserif, sans serif" size="2">-N</font> option if you are sure that the original Primary will not recover or if most of the data on the Primary is going to change while the Primary is down. When performing <font face="Courier New, Courier, sansserif, sans serif" size="2">vradmin takeover </font>with the <font face="Courier New, Courier, sansserif, sans serif" size="2">-N</font> option the command automatically detaches the RLINKs from the old Primary to the new Primary. This requires either difference-based synchronization (<font face="Courier New, Courier, sansserif, sans serif" size="2">vradmin</font> <font face="Courier New, Courier, sansserif, sans serif" size="2">syncrvg</font>) or full synchronization of the data volumes on the original Primary.</font>
</p>

<br>
<p>
<font face="Font_SingleByte;" size="2"><a name="114164"></a><b>Example:</b></font>
</p>
<p>
<font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><a name="114165"></a>To take over from the Primary RVG <font face="Courier New, Courier, sansserif, sans serif" size="2">hr_rvg</font> on host <font face="Courier New, Courier, sansserif, sans serif" size="2">seattle</font> to the 	Secondary RVG <font face="Courier New, Courier, sansserif, sans serif" size="2">hr_rvg</font> on host <font face="Courier New, Courier, sansserif, sans serif" size="2">london</font>, make sure that the data volumes on the Secondary have associated DCMs. Use the following command to check that the <font face="Courier New, Courier, sansserif, sans serif" size="2">LOGONLY</font> attribute is set for the data volumes:</font>
</p>

<br>
<font face="Courier New, Courier, sansserif, sans serif" size="2"><a name="114166"></a><font face="Courier New, Courier, sansserif, sans serif" size="2"><b>#&nbsp;vxprint&nbsp;-g&nbsp;hrdg&nbsp;-ht&nbsp;hr_rvg</b></font>
</font>
<p>
<font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><a name="114167"></a>We recommend that you use the fast failback synchronization method to synchronize the original Primary with the new Primary. For details, see <a href="ch9tranprirole_vvr102_114209.html#114233">Failing Back Using Fast Failback Synchronization</a>.</font>
</p>

<p>
<font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><a name="144592"></a>For an RDS with multiple Secondaries, after take over, VVR automatically reconfigures any additional Secondaries as Secondaries of the new Primary, if RLINKs had been created between the Secondaries. Otherwise, you must manually reconfigure them. For more information, see <a href="ch9tranprirole_vvr101_114096.html#142304">Example 2---Taking Over from an Original Primary in a Setup with Multiple Secondaries</a>.</font>
</p>

<p>
<font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><a name="114178"></a>To take over an original Primary with fast failback enabled (default), issue the following command on the Secondary that is to take over the Primary role:</font>
</p>

<br>
<font face="Courier New, Courier, sansserif, sans serif" size="2"><a name="114182"></a>&nbsp;#&nbsp;<font face="Courier New, Courier, sansserif, sans serif" size="2"><b>vradmin</b></font>&nbsp;<font face="Courier New, Courier, sansserif, sans serif" size="2"><b>-g</b></font>&nbsp;<em>diskgroup</em><font face="Courier New, Courier, sansserif, sans serif" size="2"><b>&nbsp;takeover</b></font>&nbsp;<em>local_rvgname</em>
</font>
<blockquote>
<font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><a name="114184"></a>The argument<em> </em><font face="Courier New, Courier, sansserif, sans serif" size="2"><em>diskgroup</em></font> is the disk group on the local host.</font>
</blockquote>
<blockquote>
<font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><a name="114185"></a>The argument <font face="Courier New, Courier, sansserif, sans serif" size="2"><em>local_rvgname</em></font> is the name of the RVG on the local host.</font>
</blockquote>



<h2><font face="Arial, Helvetica, Geneva, sansserif, sans serif, Verdana" size="3" color="#000000"><a name="114187"></a>Example 1---Taking Over from an Original Primary</font>
</h2>
 
<p>
<font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><a name="114188"></a>In this example the Primary host <font face="Courier New, Courier, sansserif, sans serif" size="2">seattle</font> has failed. This example explains how to take over from the original Primary host <font face="Courier New, Courier, sansserif, sans serif" size="2">seattle</font> to the Secondary host <font face="Courier New, Courier, sansserif, sans serif" size="2">london</font>. The Secondary host <font face="Courier New, Courier, sansserif, sans serif" size="2">london</font> is converted to the new Primary. The disk group name is <font face="Courier New, Courier, sansserif, sans serif" size="2">hrdg</font>.</font>
</p>

<p>
<font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><a name="114190"></a>To take over from the Primary <font face="Courier New, Courier, sansserif, sans serif" size="2">seattle</font> to Secondary RVG <font face="Courier New, Courier, sansserif, sans serif" size="2">hr_rvg</font> on host <font face="Courier New, Courier, sansserif, sans serif" size="2">london</font>:</font>
</p>

<ol>
<li value="1">
<font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><a name="114191"></a>Make sure that the data volumes on the Secondary have associated DCMs.
</font>
<br>
<font face="Courier New, Courier, sansserif, sans serif" size="2"><a name="114192"></a>&nbsp;&nbsp;#&nbsp;<font face="Courier New, Courier, sansserif, sans serif" size="2"><b>vxprint&nbsp;-g&nbsp;hrdg&nbsp;-ht&nbsp;hr_rvg</b></font>
</font>
<li value="2">
<font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><a name="114193"></a>Make the Secondary RVG <font face="Courier New, Courier, sansserif, sans serif" size="2">hr_rvg</font> the new Primary RVG by typing the following command on the Secondary <font face="Courier New, Courier, sansserif, sans serif" size="2">london</font>:
</font>
<br>
<font face="Courier New, Courier, sansserif, sans serif" size="2"><a name="114197"></a>&nbsp;&nbsp;#&nbsp;<font face="Courier New, Courier, sansserif, sans serif" size="2"><b>vradmin</b></font>&nbsp;<font face="Courier New, Courier, sansserif, sans serif" size="2"><b>-g</b></font>&nbsp;<font face="Courier New, Courier, sansserif, sans serif" size="2"><b>hrdg</b></font>&nbsp;<font face="Courier New, Courier, sansserif, sans serif" size="2"><b>takeover&nbsp;hr_rvg</b></font>
</font>
<p>
<font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><a name="114201"></a>The <font face="Courier New, Courier, sansserif, sans serif" size="2">vradmin</font> <font face="Courier New, Courier, sansserif, sans serif" size="2">takeover</font> command enables fast failback.</font>
</p>
<li value="3">
<font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><a name="114202"></a>Verify whether fast failback is enabled by typing the following command on the Secondary <font face="Courier New, Courier, sansserif, sans serif" size="2">london</font>:
</font>
<br>
<font face="Courier New, Courier, sansserif, sans serif" size="2"><a name="114203"></a>&nbsp;&nbsp;#&nbsp;<font face="Courier New, Courier, sansserif, sans serif" size="2"><b>vxprint&nbsp;-l</b></font>&nbsp;<em>rlink_name</em>
</font>
<p>
<font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><a name="114204"></a>If fast failback is enabled, the <font face="Courier New, Courier, sansserif, sans serif" size="2">dcm_logging</font> flag is set.</font>
</p>
<li value="4">
<font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><a name="114205"></a>Start the application on the new Primary <font face="Courier New, Courier, sansserif, sans serif" size="2">london</font>. Starting the applications on the new Primary after a takeover may require an application recovery to be run.
</font>
</ol>



<h2><font face="Arial, Helvetica, Geneva, sansserif, sans serif, Verdana" size="3" color="#000000"><a name="142304"></a>Example 2---Taking Over from an Original Primary in a Setup with Multiple Secondaries</font>
</h2>
 
<p>
<font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><a name="142309"></a>We recommend that you create RLINKs between the hosts <font face="Courier New, Courier, sansserif, sans serif" size="2">london</font> and <font face="Courier New, Courier, sansserif, sans serif" size="2">tokyo</font> when setting up the RDS.</font>
</p>

<p>
<font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><a name="142493"></a>In this example the Primary host <font face="Courier New, Courier, sansserif, sans serif" size="2">seattle</font> has failed. The example explains how to take over from the original Primary host <font face="Courier New, Courier, sansserif, sans serif" size="2">seattle</font> to the Secondary host <font face="Courier New, Courier, sansserif, sans serif" size="2">london</font>. This example also explains how to start replication from the new Primary <font face="Courier New, Courier, sansserif, sans serif" size="2">london</font> to the additional Secondary <font face="Courier New, Courier, sansserif, sans serif" size="2">tokyo</font>. </font>
</p>

</ol>
<p><img src="images/stepintro.gif" height="16" width="16">
<font face="Arial, Helvetica, Geneva, sansserif, sans serif, Verdana" size="2" color="#000000"><a name="142311"></a>&nbsp;&nbsp;<b>To take over from the Primary <font face="Courier New, Courier, sansserif, sans serif" size="2">seattle</font> to Secondary RVG on host <font face="Courier New, Courier, sansserif, sans serif" size="2">london</font></b></font>
</p>
<ol>
<li value="1">
<font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><a name="142312"></a>Make sure that the data volumes on the Secondary have associated DCMs.
</font>
<br>
<font face="Courier New, Courier, sansserif, sans serif" size="2"><a name="142313"></a>&nbsp;&nbsp;#&nbsp;<font face="Courier New, Courier, sansserif, sans serif" size="2"><b>vxprint&nbsp;-g&nbsp;hrdg&nbsp;-ht&nbsp;hr_rvg</b></font>
</font>
<li value="2">
<font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><a name="142314"></a>Make the Secondary RVG <font face="Courier New, Courier, sansserif, sans serif" size="2">hr_rvg</font> the new Primary RVG by typing the following command on the Secondary <font face="Courier New, Courier, sansserif, sans serif" size="2">london</font>:
</font>
<br>
<font face="Courier New, Courier, sansserif, sans serif" size="2"><a name="142318"></a>&nbsp;&nbsp;#&nbsp;<font face="Courier New, Courier, sansserif, sans serif" size="2"><b>vradmin</b></font>&nbsp;<font face="Courier New, Courier, sansserif, sans serif" size="2"><b>-g</b></font>&nbsp;<font face="Courier New, Courier, sansserif, sans serif" size="2"><b>hrdg</b></font>&nbsp;<font face="Courier New, Courier, sansserif, sans serif" size="2"><b>takeover&nbsp;hr_rvg</b></font>
</font>
<p>
<font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><a name="142322"></a>The <font face="Courier New, Courier, sansserif, sans serif" size="2">vradmin</font> <font face="Courier New, Courier, sansserif, sans serif" size="2">takeover</font> command enables fast failback.</font>
</p>
<li value="3">
<font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><a name="142323"></a>Verify whether fast failback is enabled by typing the following command on the Secondary <font face="Courier New, Courier, sansserif, sans serif" size="2">london</font>:
</font>
<br>
<font face="Courier New, Courier, sansserif, sans serif" size="2"><a name="142324"></a>&nbsp;&nbsp;#&nbsp;<font face="Courier New, Courier, sansserif, sans serif" size="2"><b>vxprint&nbsp;-l</b></font>&nbsp;<em>rlink_name</em>
</font>
<p>
<font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><a name="142325"></a>If fast failback is enabled, the <font face="Courier New, Courier, sansserif, sans serif" size="2">dcm_logging</font> flag is set.</font>
</p>
<li value="4">
<font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><a name="142840"></a>If you had created RLINKs between the Secondary <font face="Courier New, Courier, sansserif, sans serif" size="2">london</font> and the additional Secondary <font face="Courier New, Courier, sansserif, sans serif" size="2">tokyo</font>, host <font face="Courier New, Courier, sansserif, sans serif" size="2">tokyo</font> is automatically added to the new configuration.
</font>
<p>
<font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><a name="144837"></a>Otherwise, you must manually add <font face="Courier New, Courier, sansserif, sans serif" size="2">tokyo</font> as a Secondary to the new Primary <font face="Courier New, Courier, sansserif, sans serif" size="2">london</font>. To do this, create RLINKs between <font face="Courier New, Courier, sansserif, sans serif" size="2">london</font> and <font face="Courier New, Courier, sansserif, sans serif" size="2">tokyo</font> and associate them to the respective RVGs using the following commands.</font>
</p>
<p>
<font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><a name="144838"></a>On host <font face="Courier New, Courier, sansserif, sans serif" size="2">london</font>:</font>
</p>
<br>
<font face="Courier New, Courier, sansserif, sans serif" size="2"><a name="144839"></a><font face="Courier New, Courier, sansserif, sans serif" size="2"><b>#&nbsp;vxmake&nbsp;-g&nbsp;hrdg&nbsp;rlink&nbsp;rlk_tokyo_hr_rvg&nbsp;local_host=london&nbsp;\</b></font>
</font>
<br>
<font face="Courier New, Courier, sansserif, sans serif" size="2"><a name="144840"></a><font face="Courier New, Courier, sansserif, sans serif" size="2"><b>&nbsp;&nbsp;&nbsp;&nbsp;remote_host=tokyo&nbsp;remote_rlink=rlk_london_hr_rvg&nbsp;\</b></font>
</font>
<br>
<font face="Courier New, Courier, sansserif, sans serif" size="2"><a name="144841"></a><font face="Courier New, Courier, sansserif, sans serif" size="2"><b>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;remote_dg=hrdg</b></font>
</font>
<br>
<font face="Courier New, Courier, sansserif, sans serif" size="2"><a name="144842"></a>#&nbsp;<font face="Courier New, Courier, sansserif, sans serif" size="2"><b>vxrlink&nbsp;-g&nbsp;hrdg&nbsp;assoc&nbsp;hr_rvg&nbsp;rlk_tokyo_hr_rvg</b></font>
</font>
<p>
<font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><a name="148109"></a>On host <font face="Courier New, Courier, sansserif, sans serif" size="2">tokyo</font>:</font>
</p>
<br>
<font face="Courier New, Courier, sansserif, sans serif" size="2"><a name="144844"></a><font face="Courier New, Courier, sansserif, sans serif" size="2"><b>#&nbsp;vxmake&nbsp;-g&nbsp;hrdg&nbsp;rlink&nbsp;rlk_london_hr_rvg&nbsp;local_host=tokyo&nbsp;\</b></font>
</font>
<br>
<font face="Courier New, Courier, sansserif, sans serif" size="2"><a name="144845"></a><font face="Courier New, Courier, sansserif, sans serif" size="2"><b>&nbsp;&nbsp;&nbsp;&nbsp;remote_host=london&nbsp;remote_rlink=rlk_tokyo_hr_rvg&nbsp;\</b></font>
</font>
<br>
<font face="Courier New, Courier, sansserif, sans serif" size="2"><a name="144846"></a><font face="Courier New, Courier, sansserif, sans serif" size="2"><b>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;remote_dg=hrdg</b></font>
</font>
<br>
<font face="Courier New, Courier, sansserif, sans serif" size="2"><a name="144847"></a>
</font>
<br>
<font face="Courier New, Courier, sansserif, sans serif" size="2"><a name="144848"></a>#&nbsp;<font face="Courier New, Courier, sansserif, sans serif" size="2"><b>vxrlink&nbsp;-g&nbsp;hrdg&nbsp;assoc&nbsp;hr_rvg&nbsp;rlk_london_hr_rvg</b></font>
</font>
<hr noshade size="2" width="100%" color="#000000">
<img src="images/note.gif" alt="Note " height="16" width="16">&nbsp;
<font face="Arial, Helvetica, Geneva, sansserif, sans serif, Verdana" size="2" color="#000000">
<a name="144849"></a><b>Note  &nbsp;&nbsp;</b>
</font>
<font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2" color="#000000">By default, the <font face="Courier New, Courier, sansserif, sans serif" size="2">vxmake</font> <font face="Courier New, Courier, sansserif, sans serif" size="2">rlink</font> command creates the RLINK with the protocol set to UDP/IP. To change the protocol to TCP/IP, see <a href="ch5confvvr_vvr70_113968.html#114347">Setting the Network Transport Protocol</a>.
</font>
<hr noshade size="2" width="100%" color="#000000">
<li value="5">
<font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><a name="146992"></a>Even after takeover, the RLINK from <font face="Courier New, Courier, sansserif, sans serif" size="2">tokyo</font> to the original primary <font face="Courier New, Courier, sansserif, sans serif" size="2">seattle</font> still remains attached. Detach this RLINK using the following command on the new Primary <font face="Courier New, Courier, sansserif, sans serif" size="2">london</font> or on the Secondary <font face="Courier New, Courier, sansserif, sans serif" size="2">tokyo</font>:
</font>
<br>
<font face="Courier New, Courier, sansserif, sans serif" size="2"><a name="146994"></a><font face="Courier New, Courier, sansserif, sans serif" size="2"><b>&nbsp;&nbsp;&nbsp;</b></font>#<font face="Courier New, Courier, sansserif, sans serif" size="2"><b>&nbsp;vradmin&nbsp;-g&nbsp;hrdg&nbsp;stoprep&nbsp;hr_rvg&nbsp;tokyo</b></font>
</font>
<li value="6">
<font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><a name="146982"></a>On the new Primary <font face="Courier New, Courier, sansserif, sans serif" size="2">london</font>:
</font>
<p>
<ul type="disc"><li><font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><a name="147564"></a>Synchronize the data volumes in the Secondary RVG <font face="Courier New, Courier, sansserif, sans serif" size="2">hr_rvg</font> on <font face="Courier New, Courier, sansserif, sans serif" size="2">tokyo</font> with the data volumes in the original Primary RVG <font face="Courier New, Courier, sansserif, sans serif" size="2">hr_rvg</font> using the difference-based synchronization and checkpoint. To do this, use the following command on any host in the RDS:</font>
</li>
<br>
<font face="Courier New, Courier, sansserif, sans serif" size="2"><a name="147565"></a>&nbsp;&nbsp;&nbsp;&nbsp;<font face="Courier New, Courier, sansserif, sans serif" size="2"><b>#&nbsp;vradmin&nbsp;-g&nbsp;hrdg&nbsp;-c&nbsp;checkpt&nbsp;syncrvg&nbsp;hr_rvg&nbsp;tokyo</b></font>
</font>
<ul><p>
<font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><a name="147566"></a>The <font face="Courier New, Courier, sansserif, sans serif" size="2">-c</font> option when used with the vradmin syncrvg command automatically starts a checkpoint with the specified name, <font face="Courier New, Courier, sansserif, sans serif" size="2">checkpt</font>, in this example. After the data volumes are synchronized the checkpoint is ended. </font>
</p>
<p>
<font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><a name="147567"></a>After the data volumes are synchronized, the checkpoint is ended.</font>
</p>
</ul><li><font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><a name="147631"></a>Start replication to <font face="Courier New, Courier, sansserif, sans serif" size="2">tokyo</font> using the checkpoint created above:</font>
</li>
<br>
<font face="Courier New, Courier, sansserif, sans serif" size="2"><a name="147635"></a>&nbsp;&nbsp;&nbsp;#&nbsp;<font face="Courier New, Courier, sansserif, sans serif" size="2"><b>vradmin</b></font>&nbsp;<font face="Courier New, Courier, sansserif, sans serif" size="2"><b>-g&nbsp;hrdg&nbsp;-c&nbsp;checkpt&nbsp;startrep&nbsp;hr_rvg&nbsp;tokyo</b></font>
</font>
</ul>
</p>
<li value="7">
<font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><a name="142693"></a>Start the application on the new Primary <font face="Courier New, Courier, sansserif, sans serif" size="2">london</font>. Starting the applications on the new Primary after a takeover may require an application recovery to be run.
</font>
</ol>

<!-- End Main Topic Content -->

   </td>
  </tr>
 </table>
</div>

<div>
<table border="0" cellspacing="0" cellpadding="0" width="100%">
 <tr>
  <td height="18" border="0" cellspacing="0" cellpadding="0" colspan="2" bgcolor="#FFFFFF">
  </td>
 </tr>
  <td align="left"><font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="-2">&nbsp;&#94;&nbsp;<a href="ch9tranprirole_vvr101_114096.html" title="Taking Over from an Original Primary">Return to Top</a></font>

  </td>
  <td align="right"><font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="-2">&lt;&nbsp;<a href="ch9tranprirole_vvr100_113937.html" title="Previous - Migrating the Primary">Previous</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a href="ch9tranprirole_vvr102_114209.html" title="Next - Failing Back to the Original Primary">Next</a>
&nbsp;&gt;&nbsp;&nbsp;</font>
  </td>
 <tr>
   <td height="9" border="0" cellspacing="0" cellpadding="0" colspan="2" bgcolor="#FFFFFF">
   </td>
 </tr>

<!-- Footer Breadcrumbs -->
<tr>
<td bgcolor="#FFFFFF" colspan="2" height="15" align="right">
<font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="1">Product:  
<a href="vvr_splashpage_docCD_vvr1_103036.vxhd" title="Volume Replicator Guides title page ">Volume Replicator Guides</a>&nbsp;&nbsp;</font></td>
</tr>

<tr>
<td bgcolor="#FFFFFF" colspan="2" height="15" align="right">
<font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="1">Manual:  
<a href="vvr_ag_hpux_titlepage_docCD_vvr41_73700.vxhd" title="Volume Replicator 4.1 Administrator's Guide title page ">Volume Replicator 4.1 Administrator's Guide</a>&nbsp;&nbsp;</font></td>
</tr>


 <tr>
  <td colspan="2" align="left"><font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" color="#000000" align="right" size="-2">
<em>VERITAS Software Corporation
</em></font><br>

<font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="-2">www.veritas.com</font><br>
  </td>
 </tr>
</table>
</div>

</BODY>
  <!--
    *************************************************************************************
    * Copyright (c) 2005 VERITAS Software Corporation. All rights reserved. *

    VERITAS, VERITAS SOFTWARE, the VERITAS Logo, and VERITAS Software Documentation 
    are trademarks or registered trademarks of VERITAS Software Corporation 
    or its affiliates in the U.S. and other countries. Other names may be 
    trademarks of their respective owners. 

    Apache Jakarta Lucene:
    Apache Software License
    Version 1.1

    Copyright (c) 2000 The Apache Software Foundation. All rights reserved.

    Redistribution and use in source and binary forms, with or without modification, 
    are permitted provided that the following conditions are met:

    1. Redistributions of source code must retain the above copyright notice, this 
    list of conditions and the following disclaimer.

    2. Redistributions in binary form must reproduce the above copyright notice, this 
    list of conditions and the following disclaimer in the documentation and/or other 
    materials provided with the distribution.

    3. The end-user documentation included with the redistribution, if any, must include 
    the following acknowledgment: "This product includes software developed by the Apache 
    Software Foundation (http://www.apache.org/)." Alternately, this acknowledgment may 
    appear in the software itself, if and wherever such third-party acknowledgments 
    normally appear.

    4. The names "Apache" and "Apache Software Foundation" must not be used to endorse or 
    promote products derived from this software without prior written permission. For 
    written permission, please contact apache@apache.org.

    5. Products derived from this software may not be called "Apache", nor may "Apache" 
    appear in their name, without prior written permission of the Apache Software Foundation.

    THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, 
    BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A 
    PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION 
    OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, 
    OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 
    OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 
    ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 
    NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF 
    ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

    This software consists of voluntary contributions made by many individuals on behalf 
    of the Apache Software Foundation. For more information on the Apache Software Foundation, 
    please see <http://www.apache.org/>. Portions of this software are based upon public domain 
    software originally written at the National Center for Supercomputing Applications, University 
    of Illinois, Urbana-Champaign.
    
    This product includes WebWindow Software developed by Horst Heistermann.
    *************************************************************************************
  -->
</HTML>
