<!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:34:20">
<meta name="PRODUCTNAME" content="VERITAS Software Documentation">
<meta name="FILENAME" content="task_reference.fm">
     
<title>Mapping the Name of a Secondary Data Volume to a Differently Named Primary Data Volume</title>

</HEAD>

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

<a name="73248"></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="task_reference_vvr138_73234.html" title="Previous - Appendix:  VVR Task Reference">Previous</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a href="task_reference_vvr140_73275.html" title="Next - Mapping Disk Groups">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="73248"></a> Mapping the Name of a Secondary Data Volume to a Differently Named Primary Data Volume</font>
</h1>
         
<p>
<font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><a name="73249"></a>We recommend that you use the same name for a data volume in a Primary RVG and the corresponding data volume in a Secondary RVG. However, each Secondary data volume can have a different name from that of the corresponding Primary data volume. The Primary does not know whether the name is mapped to a different name at any given Secondary. The name mapping information is maintained entirely at the Secondary. To facilitate name-mapping, each data volume associated to an RVG has a <font face="Courier New, Courier, sansserif, sans serif" size="2">primary_datavol</font> field. This field can be set to the name of the corresponding data volume on the Primary. </font>
</p>

<p>
<font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><a name="73252"></a>By default, <em>global mapping</em> is in effect, that is, the<em> </em><font face="Courier New, Courier, sansserif, sans serif" size="2">primary_datavol</font> field is not used on any Secondary data volumes. This requires that all the Secondary data volumes have the same names as used on the Primary.</font>
</p>

<p>
<font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><a name="73253"></a>One of the prerequisites for adding a Secondary using the <font face="Courier New, Courier, sansserif, sans serif" size="2">vradmin</font> <font face="Courier New, Courier, sansserif, sans serif" size="2">addsec</font> command is that data volumes of the same names and lengths as the Primary must exist on the Secondary. When adding a Secondary using the <font face="Courier New, Courier, sansserif, sans serif" size="2">vradmin</font> <font face="Courier New, Courier, sansserif, sans serif" size="2">addsec</font> command, the Secondary data volumes cannot have different names from that of the corresponding Primary data volumes.</font>
</p>

<p>
<font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><a name="73255"></a>If you use different names for the Secondary data volumes and their corresponding Primary data volumes, the <font face="Courier New, Courier, sansserif, sans serif" size="2">vradmin</font> <font face="Courier New, Courier, sansserif, sans serif" size="2">migrate</font> command does not set the <font face="Courier New, Courier, sansserif, sans serif" size="2">primary_datavol</font> field on the new Primary after transferring the Primary role. To facilitates seamless transfer of the Primary role, make sure you set the <font face="Courier New, Courier, sansserif, sans serif" size="2">primary_datavol</font> field of the Primary data volumes, in addition to the Secondary. Note that you can use the <font face="Courier New, Courier, sansserif, sans serif" size="2">vradmin</font> command to perform all other VVR operations in a configuration containing differently named volumes on the Primary and Secondary.</font>
</p>

<p>
<font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><a name="73256"></a>There are two ways to set the <font face="Courier New, Courier, sansserif, sans serif" size="2">primary_datavol</font> field on a Secondary data volume. In the examples that follow, the commands are executed only on the Secondary. The Secondary data volume is called <font face="Courier New, Courier, sansserif, sans serif" size="2">secondaryname-dv_name</font>, and the corresponding Primary data volume name is <font face="Courier New, Courier, sansserif, sans serif" size="2">dv_name</font>.</font>
</p>

<ol>
<li value="1">
<font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><a name="73257"></a>To set the name of the corresponding Primary data volume on a Secondary data volume after the volume has been associated to the Secondary RVG, use the <font face="Courier New, Courier, sansserif, sans serif" size="2">vxedit</font> command:
</font>
<br>
<font face="Courier New, Courier, sansserif, sans serif" size="2"><a name="73258"></a>&nbsp;&nbsp;#&nbsp;<font face="Courier New, Courier, sansserif, sans serif" size="2"><b>vxedit&nbsp;-g&nbsp;</b></font><em>diskgroup</em><font face="Courier New, Courier, sansserif, sans serif" size="2"><b>&nbsp;set&nbsp;primary_datavol=</b></font><em>dv_name</em><font face="Courier New, Courier, sansserif, sans serif" size="2"><b>&nbsp;</b></font>\
</font>
<br>
<font face="Courier New, Courier, sansserif, sans serif" size="2"><a name="73259"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<em>secondaryname-dv_name</em>
</font>
<br>
<font face="Courier New, Courier, sansserif, sans serif" size="2"><a name="73260"></a>
</font>
<br>
<font face="Courier New, Courier, sansserif, sans serif" size="2"><a name="73261"></a>OR
</font>
<li value="1">
<font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><a name="73262"></a>To set the name of the Primary data volume on a corresponding Secondary data volume when it is being associated with the Secondary RVG, specify the <font face="Courier New, Courier, sansserif, sans serif" size="2">-m</font> option on the <font face="Courier New, Courier, sansserif, sans serif" size="2">vxvol</font> command line:
</font>
<a name="73263"></a><br><font face="Courier New, Courier, sansserif, sans serif" size="2">		# <font face="Courier New, Courier, sansserif, sans serif" size="2"><b>vxvol -g </b></font><em>diskgroup</em><font face="Courier New, Courier, sansserif, sans serif" size="2"><b> -m assoc </b></font><em>rvg_name</em><font face="Courier New, Courier, sansserif, sans serif" size="2"><b> </b></font>\<br><em>					secondaryname-dv_name</em> <em>dv_name</em></font>
<li value="2">
<font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><a name="73265"></a>On the Secondary, display the <font face="Courier New, Courier, sansserif, sans serif" size="2"><em>primary_datavol</em></font> field for a volume using <font face="Courier New, Courier, sansserif, sans serif" size="2">vxprint</font>&nbsp;<font face="Courier New, Courier, sansserif, sans serif" size="2">-l</font>:
</font>
<br>
<font face="Courier New, Courier, sansserif, sans serif" size="2"><a name="73266"></a>&nbsp;&nbsp;#&nbsp;<font face="Courier New, Courier, sansserif, sans serif" size="2"><b>vxprint&nbsp;-g&nbsp;diskgroup&nbsp;-l&nbsp;</b></font><em>secondaryname-dv_name</em>
</font>
</ol>
<p>
<font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><a name="73267"></a>	Output resembles:</font>
</p>

<br>
<font face="Courier New, Courier, sansserif, sans serif" size="2"><a name="73268"></a>&nbsp;&nbsp;&nbsp;&nbsp;Volume:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<font face="Courier New, Courier, sansserif, sans serif" size="2"><em>secondaryname</em></font>-vol03
</font>
<br>
<font face="Courier New, Courier, sansserif, sans serif" size="2"><a name="73269"></a>&nbsp;&nbsp;&nbsp;&nbsp;assoc:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;rvg=<font face="Courier New, Courier, sansserif, sans serif" size="2"><em>rvg_name</em></font>
</font>
<br>
<font face="Courier New, Courier, sansserif, sans serif" size="2"><a name="73270"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;plexes=<font face="Courier New, Courier, sansserif, sans serif" size="2"><em>secondaryname</em></font><em>-</em>vol03-01
</font>
<br>
<font face="Courier New, Courier, sansserif, sans serif" size="2"><a name="73271"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;primary_datavol=<font face="Courier New, Courier, sansserif, sans serif" size="2"><em>dv_name</em></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="73272"></a><b>Note  &nbsp;&nbsp;</b>
</font>
<font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2" color="#000000">If any volume (on the Primary or a Secondary) is associated with an RVG (as an SRL or a data volume), 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> listing for that volume will indicate the RVG name on the output line beginning with <font face="Courier New, Courier, sansserif, sans serif" size="2">assoc</font>:, as shown above.
</font>
<hr noshade size="2" width="100%" color="#000000">

<!-- 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="task_reference_vvr139_73248.html" title="Mapping the Name of a Secondary Data Volume to a Differently Named Primary Data Volume">Return to Top</a></font>

  </td>
  <td align="right"><font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="-2">&lt;&nbsp;<a href="task_reference_vvr138_73234.html" title="Previous - Appendix:  VVR Task Reference">Previous</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a href="task_reference_vvr140_73275.html" title="Next - Mapping Disk Groups">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>
