<!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:28">
<meta name="PRODUCTNAME" content="VERITAS Software Documentation">
<meta name="FILENAME" content="ch3upgrade_hpux.fm">
     
<title>Upgrading VVR When VCS Agents are Configured</title>

</HEAD>

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

<a name="119976"></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="ch3upgrade_hpux_vvr29_124827.html" title="Previous - Upgrading VVR Without Disrupting Replication">Previous</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a href="ch3upgrade_hpux_vvr31_127080.html" title="Next - Upgrading VVR When HP Serviceguard is Configured">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_install_hpux_titlepage_docCD_vvr2_73700.vxhd" title="Volume Replicator 4.1 Installation Guide title page ">Volume Replicator 4.1 Installation 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="119976"></a>Upgrading VVR When VCS Agents are Configured</font>
</h1>
 
  
  
  

<p>
<font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><a name="119977"></a>This section details the procedure for upgrading VVR when VCS is present, with and without using upgrade scripts. </font>
</p>

<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="119978"></a><b>Note  &nbsp;&nbsp;</b>
</font>
<font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2" color="#000000">We recommend that you upgrade VVR using upgrade scripts. The <font face="Courier New, Courier, sansserif, sans serif" size="2">vvr_upgrade_start</font> and the <font face="Courier New, Courier, sansserif, sans serif" size="2">vvr_upgrade_finish</font> scripts can be found on the VERITAS software disc under the <font face="Courier New, Courier, sansserif, sans serif" size="2">foundation_suite/volume_replicator/scripts/</font> directory.
</font>
<hr noshade size="2" width="100%" color="#000000">
<p>
<font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><a name="119994"></a>If you do not intend to use the <font face="Courier New, Courier, sansserif, sans serif" size="2">vvr_upgrade_start</font> script, perform the steps listed under the section <a href="ch3upgrade_hpux_vvr28_125644.html#119799">Preparing for the Upgrade</a>.</font>
</p>

<p>
<font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><a name="119998"></a>To upgrade VVR, perform the following tasks:</font>
</p>

<p>
<ul type="disc"><li><font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><a name="120002"></a><a href="ch3upgrade_hpux_vvr30_119976.html#120027">Determining the Nodes on Which the RVG Resource is Online</a></font>
</li>
<li><font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><a name="120006"></a><a href="ch3upgrade_hpux_vvr30_119976.html#120055">Freezing the Service Groups and Stopping all the Applications</a></font>
</li>
<li><font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><a name="120010"></a><a href="ch3upgrade_hpux_vvr30_119976.html#120106">Preparing for the Upgrade VVR When VCS is Present</a></font>
</li>
<li><font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><a name="120014"></a><a href="ch3upgrade_hpux_vvr30_119976.html#120148">Upgrading VERITAS Packages When VCS is Present</a></font>
</li>
<li><font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><a name="120018"></a><a href="ch3upgrade_hpux_vvr30_119976.html#120164">Unfreezing the Service Groups</a></font>
</li>
<li><font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><a name="120022"></a><a href="ch3upgrade_hpux_vvr30_119976.html#120189">Restoring the Original Configuration</a></font>
</li>
</ul>
</p>



<h2><font face="Arial, Helvetica, Geneva, sansserif, sans serif, Verdana" size="3" color="#000000"><a name="120027"></a>Determining the Nodes on Which the RVG Resource is Online</font>
</h2>
 
<p>
<font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><a name="120028"></a>This section gives instructions for determining the nodes within a cluster on which VVR must be upgraded. Perform the following steps for the Primary and Secondary clusters.</font>
</p>

<ol>
<li value="1">
<font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><a name="120030"></a>Log in as the superuser.
</font>
<li value="2">
<font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><a name="120031"></a>Make sure that <font face="Courier New, Courier, sansserif, sans serif" size="2">/opt/VRTS/bin</font> is in your PATH so that you can execute all the product commands.
</font>
<li value="3">
<font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><a name="120033"></a>Display the list of service groups that have RVG resources by typing the following command on any node in the cluster:
</font>
<br>
<font face="Courier New, Courier, sansserif, sans serif" size="2"><a name="120034"></a>&nbsp;&nbsp;#&nbsp;<font face="Courier New, Courier, sansserif, sans serif" size="2"><b>hares&nbsp;-display&nbsp;-type&nbsp;RVG&nbsp;-attribute&nbsp;Group</b></font>
</font>
<li value="4">
<font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><a name="120040"></a>For each of the service groups listed in the output of <a href="ch3upgrade_hpux_vvr30_119976.html#120033">step  3</a>, get the list of nodes on which the service group is present by typing the following command on any node in the cluster:
</font>
<br>
<font face="Courier New, Courier, sansserif, sans serif" size="2"><a name="120041"></a>&nbsp;&nbsp;#&nbsp;<font face="Courier New, Courier, sansserif, sans serif" size="2"><b>hagrp&nbsp;-value&nbsp;</b></font><em>group_name</em><font face="Courier New, Courier, sansserif, sans serif" size="2"><b>&nbsp;SystemList</b></font>
</font>
<p>
<font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><a name="120042"></a>Note the list of the nodes displayed in the output of the command.</font>
</p>
<li value="5">
<font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><a name="120049"></a>Repeat <a href="ch3upgrade_hpux_vvr30_119976.html#120030">step  1</a> to <a href="ch3upgrade_hpux_vvr30_119976.html#120040">step  4</a> for each cluster.
</font>
</ol>



<h2><font face="Arial, Helvetica, Geneva, sansserif, sans serif, Verdana" size="3" color="#000000"><a name="120055"></a>Freezing the Service Groups and Stopping all the Applications</font>
</h2>
 
<ol>
<li value="1">
<font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><a name="120057"></a>On any node in the cluster, list the disk groups in your configuration, and note down the disk group names listed in the output for future use:
</font>
<br>
<font face="Courier New, Courier, sansserif, sans serif" size="2"><a name="120058"></a>&nbsp;&nbsp;#&nbsp;<font face="Courier New, Courier, sansserif, sans serif" size="2"><b>hares&nbsp;-display&nbsp;-type&nbsp;RVG&nbsp;-attribute&nbsp;DiskGroup</b></font>
</font>
<p>
<font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><a name="120059"></a>The output displays a list of the disk groups that are under VCS control.</font>
</p>
<li value="2">
<font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><a name="120064"></a>For each disk group listed in the output in <a href="ch3upgrade_hpux_vvr30_119976.html#120057">step  1</a>, list its corresponding disk group resource name:
</font>
<br>
<font face="Courier New, Courier, sansserif, sans serif" size="2"><a name="120065"></a>&nbsp;&nbsp;#&nbsp;<font face="Courier New, Courier, sansserif, sans serif" size="2"><b>hares&nbsp;-list&nbsp;DiskGroup=</b></font><font face="Courier New, Courier, sansserif, sans serif" size="2"><b>diskgroup</b></font><font face="Courier New, Courier, sansserif, sans serif" size="2"><b>&nbsp;Type=DiskGroup</b></font>
</font>
<li value="3">
<font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><a name="120070"></a>For each disk group resource name listed in the output in <a href="ch3upgrade_hpux_vvr30_119976.html#120064">step  2</a>, get and note down the node on which the disk group is imported by typing the following command:
</font>
<br>
<font face="Courier New, Courier, sansserif, sans serif" size="2"><a name="120071"></a>&nbsp;&nbsp;#&nbsp;<font face="Courier New, Courier, sansserif, sans serif" size="2"><b>hares&nbsp;-display&nbsp;</b></font><em>dg_resname</em><font face="Courier New, Courier, sansserif, sans serif" size="2"><b>&nbsp;-attribute&nbsp;State</b></font>
</font>
<p>
<font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><a name="120072"></a>The output displays the disk groups that are under VCS control and nodes on which the disk groups are imported.</font>
</p>
<li value="4">
<font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><a name="120074"></a>Because the upgrade requires a reboot, cleanly shut down all applications as follows:
</font>
<p>
<ul type="disc"><li><font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><a name="120075"></a><font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="1">OFFLINE</font> all application service groups that do not contain RVG resources.</font>
</li>
<li><font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><a name="120076"></a>If the application resources are part of the same service group as an RVG resource, then <font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="1">OFFLINE</font> only the application resources.</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="120077"></a><b>Note  &nbsp;&nbsp;</b>
</font>
<font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2" color="#000000">You must also stop any remaining applications not managed by VCS. 
</font>
<hr noshade size="2" width="100%" color="#000000">
</ul>
</p>
<li value="5">
<font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><a name="120078"></a>On any node in the cluster, make the VCS configuration writable:
</font>
<br>
<font face="Courier New, Courier, sansserif, sans serif" size="2"><a name="120079"></a>&nbsp;&nbsp;#&nbsp;<font face="Courier New, Courier, sansserif, sans serif" size="2"><b>haconf&nbsp;-makerw</b></font>
</font>
<li value="6">
<font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><a name="120080"></a>On any node in the cluster, list the groups in your configuration:
</font>
<br>
<font face="Courier New, Courier, sansserif, sans serif" size="2"><a name="120081"></a>&nbsp;&nbsp;#&nbsp;<font face="Courier New, Courier, sansserif, sans serif" size="2"><b>hagrp&nbsp;-list</b></font>
</font>
<li value="7">
<font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><a name="120083"></a>On any node in the cluster, freeze all service groups by typing the following command for each group name displayed in the output from step 5:
</font>
<br>
<font face="Courier New, Courier, sansserif, sans serif" size="2"><a name="120084"></a>&nbsp;&nbsp;#&nbsp;<font face="Courier New, Courier, sansserif, sans serif" size="2"><b>hagrp&nbsp;-freeze&nbsp;</b></font><em>group_name</em><font face="Courier New, Courier, sansserif, sans serif" size="2"><b>&nbsp;-persistent</b></font>
</font>
<p>
<font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><a name="120085"></a>Note down the list of frozen service groups for future use.</font>
</p>
<li value="8">
<font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><a name="120087"></a>On any node in the cluster, save the configuration file (<font face="Courier New, Courier, sansserif, sans serif" size="2">main.cf</font>) with the groups frozen:
</font>
<br>
<font face="Courier New, Courier, sansserif, sans serif" size="2"><a name="120088"></a>&nbsp;&nbsp;#&nbsp;<font face="Courier New, Courier, sansserif, sans serif" size="2"><b>haconf&nbsp;-dump&nbsp;-makero</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="120095"></a><b>Note  &nbsp;&nbsp;</b>
</font>
<font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2" color="#000000">Continue only after you have performed <a href="ch3upgrade_hpux_vvr30_119976.html#120057">step  1</a> to <a href="ch3upgrade_hpux_vvr30_119976.html#120087">step  8</a> for each node of the cluster.
</font>
<hr noshade size="2" width="100%" color="#000000">
<li value="9">
<font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><a name="120096"></a>Shut down VCS on each of the nodes that have been identified for upgrade, in the section <a href="ch3upgrade_hpux_vvr30_119976.html#120027">Determining the Nodes on Which the RVG Resource is Online</a>. 
</font>
<p>
<font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><a name="120100"></a>For each node being upgraded, enter the following command on any node in the cluster: </font>
</p>
<br>
<font face="Courier New, Courier, sansserif, sans serif" size="2"><a name="120101"></a>&nbsp;&nbsp;#&nbsp;<font face="Courier New, Courier, sansserif, sans serif" size="2"><b>hastop&nbsp;-sys&nbsp;</b></font><em>node_name</em><font face="Courier New, Courier, sansserif, sans serif" size="2"><b>...&nbsp;-force</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="120102"></a><b>Note  &nbsp;&nbsp;</b>
</font>
<font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2" color="#000000">Perform this step for all of the nodes that you are upgrading, on the Primary and Secondary clusters.
</font>
<hr noshade size="2" width="100%" color="#000000">
</ol>



<h2><font face="Arial, Helvetica, Geneva, sansserif, sans serif, Verdana" size="3" color="#000000"><a name="120106"></a>Preparing for the Upgrade VVR When VCS is Present</font>
</h2>
 
<ol>
<li value="1">
<font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><a name="120108"></a>List the disk groups on each of the nodes by typing the following command on each node:
</font>
<br>
<font face="Courier New, Courier, sansserif, sans serif" size="2"><a name="120109"></a>&nbsp;&nbsp;#&nbsp;<font face="Courier New, Courier, sansserif, sans serif" size="2"><b>vxdisk&nbsp;-o&nbsp;alldgs&nbsp;list</b></font>
</font>
<p>
<font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><a name="120110"></a>The output displays a list of the disk groups that are under VCS control and the disk groups that are not under VCS control. Note that disk groups that are not locally imported are displayed in parentheses. </font>
</p>
<li value="2">
<font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><a name="120114"></a>If any of the disk groups in your VCS configuration that contain RVGs have not been imported on any node, import them by entering the following command on any node:
</font>
<br>
<font face="Courier New, Courier, sansserif, sans serif" size="2"><a name="120121"></a>&nbsp;&nbsp;#&nbsp;<font face="Courier New, Courier, sansserif, sans serif" size="2"><b>vxdg&nbsp;-t&nbsp;import&nbsp;</b></font><font face="Courier New, Courier, sansserif, sans serif" size="2"><b>diskgroup</b></font>
</font>
<li value="3">
<font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><a name="120123"></a>For the remaining disk groups listed for each node in step 1, if any disk group is not imported, then import the disk group by typing the following command on the appropriate node:
</font>
<br>
<font face="Courier New, Courier, sansserif, sans serif" size="2"><a name="120124"></a><font face="Courier New, Courier, sansserif, sans serif" size="2"><b>&nbsp;&nbsp;</b></font>#<font face="Courier New, Courier, sansserif, sans serif" size="2"><b>&nbsp;vxdg&nbsp;import&nbsp;</b></font><em>diskgroup</em>
</font>
<li value="4">
<font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><a name="120125"></a>If a disk group is already imported, then recover the disk group by typing the following command on the node on which it is imported:
</font>
<br>
<font face="Courier New, Courier, sansserif, sans serif" size="2"><a name="120126"></a>&nbsp;&nbsp;#&nbsp;<font face="Courier New, Courier, sansserif, sans serif" size="2"><b>vxrecover&nbsp;-bs</b></font>
</font>
<li value="5">
<font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><a name="120127"></a>Verify that all the Primary RLINKs are up to date on all the Primary nodes on which applications were OFFLINED or stopped in <a href="ch3upgrade_hpux_vvr30_119976.html#120074">step  4</a> of the section <a href="ch3upgrade_hpux_vvr30_119976.html#120055">Freezing the Service Groups and Stopping all the Applications</a>.
</font>
<br>
<font face="Courier New, Courier, sansserif, sans serif" size="2"><a name="120134"></a>&nbsp;&nbsp;#&nbsp;<font face="Courier New, Courier, sansserif, sans serif" size="2"><b>vxrlink&nbsp;-g&nbsp;</b></font><em>diskgroup</em><font face="Courier New, Courier, sansserif, sans serif" size="2"><b>&nbsp;status&nbsp;</b></font><em>rlink_name</em>
</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="120135"></a><b>Note  &nbsp;&nbsp;</b>
</font>
<font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2" color="#000000">Do not continue until the Primary RLINKs are up to date.
</font>
<hr noshade size="2" width="100%" color="#000000">
<li value="6">
<font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><a name="120137"></a>To preserve the original VVR configuration perform one of the following tasks:
</font>
<ol type=a>
<li><font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><a name="120138"></a>Run the <font face="Courier New, Courier, sansserif, sans serif" size="2">vvr_upgrade_start</font> script on the nodes that are to be upgraded, before upgrading your installation.</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="120139"></a><b>Note  &nbsp;&nbsp;</b>
</font>
<font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2" color="#000000">The <font face="Courier New, Courier, sansserif, sans serif" size="2">vvr_upgrade_start</font> script can be found on the <em>VERITAS</em>&nbsp;software disc under the <font face="Courier New, Courier, sansserif, sans serif" size="2">foundation_suite/volume_replicator/scripts/</font> directory. Use the upgrade scripts only for VERITAS versions 3.5 and later. For versions prior to 3.5 you must manually perform the tasks to preserve the configuration.
</font>
<hr noshade size="2" width="100%" color="#000000">
<br>
<font face="Courier New, Courier, sansserif, sans serif" size="2"><a name="120140"></a>&nbsp;&nbsp;#&nbsp;<font face="Courier New, Courier, sansserif, sans serif" size="2"><b>/dvd_path/volume_replicator/scripts/upgrade/vvr_upgrade_start</b></font>
</font>
<li><font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><a name="120142"></a>To preserve the VVR configuration without using upgrade scripts, perform the steps prelisted under the section <a href="ch3upgrade_hpux_vvr28_125644.html#119799">Preparing for the Upgrade</a>.</font>
</li>
</ol>
</ol>



<h2><font face="Arial, Helvetica, Geneva, sansserif, sans serif, Verdana" size="3" color="#000000"><a name="120148"></a>Upgrading VERITAS Packages When VCS is Present</font>
</h2>
 
<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="120149"></a><b>Note  &nbsp;&nbsp;</b>
</font>
<font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2" color="#000000">Upgrade VVR only after you have completed the steps provided in the section <a href="ch3upgrade_hpux_vvr30_119976.html#120106">Preparing for the Upgrade VVR When VCS is Present</a>, on the Primary and Secondary clusters. You must upgrade VVR on the nodes identified by the steps in the section <a href="ch3upgrade_hpux_vvr30_119976.html#120027">Determining the Nodes on Which the RVG Resource is Online</a> for the Primary and Secondary cluster.
</font>
<hr noshade size="2" width="100%" color="#000000">
<p>
<font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><a name="120158"></a>To upgrade to VVR packages using the product installer, refer to the information provided in the section <a href="ch3upgrade_hpux_vvr27_121604.html#125348">Upgrading the VERITAS Packages</a>.</font>
</p>

<p>
<font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><a name="125917"></a>To upgrade to VVR packages using the <font face="Courier New, Courier, sansserif, sans serif" size="2">swinstall</font> command, refer to the information provided in the section <a href="ch3upgrade_hpux_vvr28_125644.html#119857">Upgrading the VERITAS Packages</a>.</font>
</p>




<h2><font face="Arial, Helvetica, Geneva, sansserif, sans serif, Verdana" size="3" color="#000000"><a name="120164"></a>Unfreezing the Service Groups</font>
</h2>
 
<ol>
<li value="1">
<font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><a name="120165"></a>On any node in the cluster, make the VCS configuration writable:
</font>
<br>
<font face="Courier New, Courier, sansserif, sans serif" size="2"><a name="120166"></a>&nbsp;&nbsp;#&nbsp;<font face="Courier New, Courier, sansserif, sans serif" size="2"><b>haconf&nbsp;-makerw</b></font>
</font>
<li value="2">
<font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><a name="120172"></a>Unfreeze all service groups that were frozen in <a href="ch3upgrade_hpux_vvr30_119976.html#120083">step  7</a> of the section <a href="ch3upgrade_hpux_vvr30_119976.html#120055">Freezing the Service Groups and Stopping all the Applications</a>, by typing the following command on any node in the cluster:
</font>
<br>
<font face="Courier New, Courier, sansserif, sans serif" size="2"><a name="120174"></a>&nbsp;&nbsp;#&nbsp;<font face="Courier New, Courier, sansserif, sans serif" size="2"><b>hagrp&nbsp;-unfreeze&nbsp;</b></font><em>service_group</em><font face="Courier New, Courier, sansserif, sans serif" size="2"><b>&nbsp;-persistent</b></font>
</font>
<li value="3">
<font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><a name="120175"></a>Save the configuration on any node in the cluster.
</font>
<br>
<font face="Courier New, Courier, sansserif, sans serif" size="2"><a name="120176"></a>&nbsp;&nbsp;#&nbsp;<font face="Courier New, Courier, sansserif, sans serif" size="2"><b>haconf&nbsp;-dump&nbsp;-makero</b></font>
</font>
<li value="4">
<font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><a name="120180"></a>Bring the respective IP resources online on each node listed in <a href="ch3upgrade_hpux_vvr30_119976.html#120070">step  3</a> of the section <a href="ch3upgrade_hpux_vvr30_119976.html#120055">Freezing the Service Groups and Stopping all the Applications</a>, by typing the following command on any node in the cluster. This IP is the virtual IP that is used for replication within the cluster. 
</font>
<br>
<font face="Courier New, Courier, sansserif, sans serif" size="2"><a name="120184"></a>&nbsp;&nbsp;#&nbsp;<font face="Courier New, Courier, sansserif, sans serif" size="2"><b>hares&nbsp;-online&nbsp;</b></font><font face="Courier New, Courier, sansserif, sans serif" size="2"><b>ip_name</b></font><font face="Courier New, Courier, sansserif, sans serif" size="2"><b>&nbsp;-sys&nbsp;</b></font><em>system</em>
</font>
</ol>



<h2><font face="Arial, Helvetica, Geneva, sansserif, sans serif, Verdana" size="3" color="#000000"><a name="120189"></a>Restoring the Original Configuration</font>
</h2>
 
<ol>
<li value="1">
<font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><a name="120190"></a>Upgrade VVR on all the nodes in the Primary and Secondary clusters.
</font>
<li value="2">
<font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><a name="120200"></a>Import all the disk groups in your VVR configuration.
</font>
<br>
<font face="Courier New, Courier, sansserif, sans serif" size="2"><a name="120205"></a>&nbsp;&nbsp;#&nbsp;<font face="Courier New, Courier, sansserif, sans serif" size="2"><b>vxdg&nbsp;-t&nbsp;import&nbsp;</b></font><em>diskgroup</em>
</font>
<p>
<font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><a name="124946"></a>Each disk group should be imported onto the same node on which it was online when the upgrade was performed. The reboot after the upgrade could result in another node being online; for example, because of the order of the nodes in the AutoStartList. In this case, switch the disk groups to the node which was originally online using the following command:</font>
</p>
<br>
<font face="Courier New, Courier, sansserif, sans serif" size="2"><a name="124947"></a>&nbsp;&nbsp;#&nbsp;<font face="Courier New, Courier, sansserif, sans serif" size="2"><b>hagrp&nbsp;-switch&nbsp;</b></font><em>diskgroup</em><font face="Courier New, Courier, sansserif, sans serif" size="2"><b>&nbsp;-to&nbsp;</b></font><em>system</em>
</font>
<li value="3">
<font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><a name="120206"></a>Recover all the disk groups by typing the following command on the node on which the disk group was imported in <a href="ch3upgrade_hpux_vvr30_119976.html#120200">step  2</a> above:
</font>
<br>
<font face="Courier New, Courier, sansserif, sans serif" size="2"><a name="120210"></a>&nbsp;&nbsp;#&nbsp;<font face="Courier New, Courier, sansserif, sans serif" size="2"><b>vxrecover&nbsp;-bs</b></font>
</font>
<li value="4">
<font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><a name="120212"></a>On all nodes that are Secondary hosts of VVR, make sure the data volumes on the Secondary are the same length as the corresponding ones on the Primary. To shrink volumes that are longer on the Secondary than the Primary, use the following command on each volume on the Secondary:
</font>
<br>
<font face="Courier New, Courier, sansserif, sans serif" size="2"><a name="120213"></a>&nbsp;&nbsp;#&nbsp;<font face="Courier New, Courier, sansserif, sans serif" size="2"><b>vxassist&nbsp;-g&nbsp;</b></font><font face="Courier New, Courier, sansserif, sans serif" size="2"><b>diskgroup</b></font><font face="Courier New, Courier, sansserif, sans serif" size="2"><b>&nbsp;shrinkto&nbsp;</b></font><font face="Courier New, Courier, sansserif, sans serif" size="2"><b>volume_name</b></font><font face="Courier New, Courier, sansserif, sans serif" size="2"><b>&nbsp;</b></font><font face="Courier New, Courier, sansserif, sans serif" size="2"><b>volume_length</b></font>
</font>
<p>
<font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><a name="120214"></a>where<font face="Courier New, Courier, sansserif, sans serif" size="2"> </font><em>volume_length</em> is the length of the volume on the Primary.</font>
</p>
<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="120215"></a><b>Note  &nbsp;&nbsp;</b>
</font>
<font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2" color="#000000">Do not continue until you complete this step on all the nodes in the Primary and Secondary clusters on which VVR is upgraded. 
</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="120217"></a>Restore the configuration according to the method you used for preserving the configuration:
</font>
<p>
<font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><a name="125943"></a><font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><b>If you used the upgrade scripts to preserve the configuration for upgrading from VVR 3.5</b></font></font>
</p>
<ol type=a>
<li><font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><a name="120219"></a>Complete the upgrade by running the <font face="Courier New, Courier, sansserif, sans serif" size="2">vvr_upgrade_finish</font> script on all the nodes on which VVR was upgraded. We recommend that you first run the <font face="Courier New, Courier, sansserif, sans serif" size="2">vvr_upgrade_finish</font> script on each node that is a Secondary host of VVR. </font>
</li>
<ul><p>
<font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><a name="120220"></a>The <font face="Courier New, Courier, sansserif, sans serif" size="2">vvr_upgrade_finish</font> script can be found on the <em>VERITAS</em>&nbsp;software disc<em> </em>under the <font face="Courier New, Courier, sansserif, sans serif" size="2">foundation_suite/volume_replicator/scripts/</font> directory.</font>
</p>
</ul><li><font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><a name="120221"></a>To run the <font face="Courier New, Courier, sansserif, sans serif" size="2">vvr_upgrade_finish</font> script, type the following command:</font>
</li>
<br>
<font face="Courier New, Courier, sansserif, sans serif" size="2"><a name="120222"></a>&nbsp;&nbsp;&nbsp;#&nbsp;<font face="Courier New, Courier, sansserif, sans serif" size="2"><b>/dvd-path/volume_replicator/scripts/vvr_upgrade_finish</b></font>
</font>
<li><font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><a name="125974"></a>Attach the RLINKs to the RVG:</font>
</li>
<br>
<font face="Courier New, Courier, sansserif, sans serif" size="2"><a name="125975"></a>&nbsp;&nbsp;&nbsp;#&nbsp;<font face="Courier New, Courier, sansserif, sans serif" size="2"><b>vxrlink&nbsp;-g&nbsp;</b></font><em>diskgroup</em><font face="Courier New, Courier, sansserif, sans serif" size="2"><b>&nbsp;-f&nbsp;att&nbsp;</b></font><em>rlink_name</em>
</font>
<ul><p>
<font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><a name="125979"></a>If the following messages appear on any node, go to <a href="ch3upgrade_hpux_vvr30_119976.html#125984">step  d</a>; otherwise, skip to <a href="ch3upgrade_hpux_vvr30_119976.html#120239">step  6</a>.<br><font face="Courier New, Courier, sansserif, sans serif" size="2">vxvm:vxrlink:&nbsp;INFO:&nbsp;</font>V-5-0-5298 <font face="Courier New, Courier, sansserif, sans serif" size="2">Unable&nbsp;to&nbsp;establish&nbsp;connection&nbsp;with&nbsp;remote&nbsp;host&nbsp;remote_hostname,&nbsp;retrying.<br>vxvm:vxrlink:&nbsp;ERROR:&nbsp;</font>V-5-0-5579 <font face="Courier New, Courier, sansserif, sans serif" size="2">Unable&nbsp;to&nbsp;establish&nbsp;connection&nbsp;with&nbsp;remote&nbsp;remote_hostname.</font></font>
</p>
</ul><li><font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><a name="125984"></a>Start <font face="Courier New, Courier, sansserif, sans serif" size="2">vradmind</font> on the remote host using the command</font>
</li>
<br>
<font face="Courier New, Courier, sansserif, sans serif" size="2"><a name="125985"></a>&nbsp;&nbsp;&nbsp;&nbsp;#&nbsp;<font face="Courier New, Courier, sansserif, sans serif" size="2"><b>/sbin/init.d/vras-vradmind.sh&nbsp;start</b></font>
</font>
<li><font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><a name="125987"></a>Attach the RLINKs on the nodes on which the messages were displayed:</font>
</li>
<br>
<font face="Courier New, Courier, sansserif, sans serif" size="2"><a name="125988"></a>&nbsp;&nbsp;&nbsp;#&nbsp;<font face="Courier New, Courier, sansserif, sans serif" size="2"><b>vxrlink&nbsp;-g&nbsp;</b></font><em>diskgroup</em><font face="Courier New, Courier, sansserif, sans serif" size="2"><b>&nbsp;-f&nbsp;att&nbsp;</b></font><em>rlink_name</em>
</font>
<p>
<font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><a name="125967"></a><font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><b>If you did not use the upgrade scripts to preserve the configuration for upgrading from releases prior to VVR 3.5</b></font></font>
</p>
<li><font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><a name="120224"></a>Perform the steps listed under the section <a href="ch3upgrade_hpux_vvr28_125644.html#119885">Restoring the Original Configuration</a>.</font>
</li>
<li><font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><a name="123512"></a>Attach the RLINKs to the RVG:</font>
</li>
<br>
<font face="Courier New, Courier, sansserif, sans serif" size="2"><a name="123513"></a>&nbsp;&nbsp;&nbsp;#&nbsp;<font face="Courier New, Courier, sansserif, sans serif" size="2"><b>vxrlink&nbsp;-g&nbsp;</b></font><em>diskgroup</em><font face="Courier New, Courier, sansserif, sans serif" size="2"><b>&nbsp;-f&nbsp;att&nbsp;</b></font><em>rlink_name</em>
</font>
<ul><p>
<font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><a name="120231"></a>If the following messages appear on any node, go to <a href="ch3upgrade_hpux_vvr30_119976.html#123155">step  c</a>; otherwise, skip to <a href="ch3upgrade_hpux_vvr30_119976.html#120239">step  6</a>.<br><font face="Courier New, Courier, sansserif, sans serif" size="2">vxvm:vxrlink:&nbsp;INFO:&nbsp;</font>V-5-0-5298 <font face="Courier New, Courier, sansserif, sans serif" size="2">Unable&nbsp;to&nbsp;establish&nbsp;connection&nbsp;with&nbsp;remote&nbsp;host&nbsp;remote_hostname,&nbsp;retrying.<br>vxvm:vxrlink:&nbsp;ERROR:&nbsp;</font>V-5-0-5579 <font face="Courier New, Courier, sansserif, sans serif" size="2">Unable&nbsp;to&nbsp;establish&nbsp;connection&nbsp;with&nbsp;remote&nbsp;remote_hostname.</font></font>
</p>
</ul><li><font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><a name="123155"></a>Start <font face="Courier New, Courier, sansserif, sans serif" size="2">vradmind</font> on the remote host using the command</font>
</li>
<br>
<font face="Courier New, Courier, sansserif, sans serif" size="2"><a name="123138"></a>&nbsp;&nbsp;&nbsp;&nbsp;#&nbsp;<font face="Courier New, Courier, sansserif, sans serif" size="2"><b>/sbin/init.d/vras-vradmind.sh&nbsp;start</b></font>
</font>
<li><font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><a name="123137"></a>Attach the RLINKs on the nodes on which the messages were displayed:</font>
</li>
<br>
<font face="Courier New, Courier, sansserif, sans serif" size="2"><a name="120237"></a>&nbsp;&nbsp;&nbsp;#&nbsp;<font face="Courier New, Courier, sansserif, sans serif" size="2"><b>vxrlink&nbsp;-g&nbsp;</b></font><em>diskgroup</em><font face="Courier New, Courier, sansserif, sans serif" size="2"><b>&nbsp;-f&nbsp;att&nbsp;</b></font><em>rlink_name</em>
</font>
</ol>
<li value="6">
<font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><a name="120239"></a>Upgrade all the disk groups on all the nodes on which VVR has been upgraded:
</font>
<br>
<font face="Courier New, Courier, sansserif, sans serif" size="2"><a name="120240"></a>&nbsp;&nbsp;&nbsp;#&nbsp;<font face="Courier New, Courier, sansserif, sans serif" size="2"><b>vxdg&nbsp;upgrade&nbsp;</b></font><em>diskgroup</em>
</font>
<li value="7">
<font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><a name="120241"></a>Restart the applications that were stopped.
</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="ch3upgrade_hpux_vvr30_119976.html" title="Upgrading VVR When VCS Agents are Configured">Return to Top</a></font>

  </td>
  <td align="right"><font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="-2">&lt;&nbsp;<a href="ch3upgrade_hpux_vvr29_124827.html" title="Previous - Upgrading VVR Without Disrupting Replication">Previous</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a href="ch3upgrade_hpux_vvr31_127080.html" title="Next - Upgrading VVR When HP Serviceguard is Configured">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_install_hpux_titlepage_docCD_vvr2_73700.vxhd" title="Volume Replicator 4.1 Installation Guide title page ">Volume Replicator 4.1 Installation 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>
