<!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/17/05 10:12:14">
<meta name="PRODUCTNAME" content="VERITAS Software Documentation">
<meta name="FILENAME" content="06admin_vcs_cli.fm">
     
<title>Stopping VCS</title>

</HEAD>

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

<a name="263683"></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="06admin_vcs_cli_vcs308_205928.html" title="Previous - Starting VCS">Previous</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a href="06admin_vcs_cli_vcs310_288980.html" title="Next - Logging On to VCS">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="vcs_splashpage_docCD_vcs1_103036.vxhd" title="Cluster Server Guides title page ">Cluster Server 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="vcshp_ug_titlepage_docCD_vcs258_73700.vxhd" title="Cluster Server 4.1 User's Guide title page ">Cluster Server 4.1 User'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="263683"></a> Stopping VCS</font>
</h1>
         
<p>
<font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><a name="189088"></a>The <font face="Courier New, Courier, sansserif, sans serif" size="2">hastop</font> command stops HAD and related processes. This command includes the following options:</font>
</p>

<br>
<font face="Courier New, Courier, sansserif, sans serif" size="2"><a name="226250"></a>hastop&nbsp;-all&nbsp;[-force]
</font>
<br>
<font face="Courier New, Courier, sansserif, sans serif" size="2"><a name="226254"></a>hastop&nbsp;[-help]
</font>
<br>
<font face="Courier New, Courier, sansserif, sans serif" size="2"><a name="226246"></a>hastop&nbsp;-local&nbsp;[-force&nbsp;|&nbsp;-evacuate&nbsp;|&nbsp;-noautodisable]
</font>
<br>
<font face="Courier New, Courier, sansserif, sans serif" size="2"><a name="226265"></a>hastop&nbsp;-local&nbsp;[-force&nbsp;|&nbsp;-evacuate&nbsp;-noautodisable]
</font>
<br>
<font face="Courier New, Courier, sansserif, sans serif" size="2"><a name="189093"></a>hastop&nbsp;-sys&nbsp;<em>system&nbsp;...&nbsp;</em><font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><b>&nbsp;</b></font>[-force&nbsp;|&nbsp;-evacuate&nbsp;|&nbsp;-noautodisable]
</font>
<br>
<font face="Courier New, Courier, sansserif, sans serif" size="2"><a name="226274"></a>hastop&nbsp;-sys&nbsp;<em>system&nbsp;...&nbsp;</em><font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><b>&nbsp;</b></font>[-force&nbsp;|&nbsp;-evacuate&nbsp;-noautodisable]
</font>
<p>
<font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><a name="226283"></a>The option <font face="Courier New, Courier, sansserif, sans serif" size="2">-all</font> stops HAD on all systems in the cluster and takes all service groups offline.</font>
</p>

<p>
<font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><a name="226290"></a>The option <font face="Courier New, Courier, sansserif, sans serif" size="2">-help</font> displays command usage.</font>
</p>

<p>
<font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><a name="226315"></a>The option <font face="Courier New, Courier, sansserif, sans serif" size="2">-local</font> stops HAD on the system on which you typed the command.</font>
</p>

<p>
<font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><a name="226309"></a>The option <font face="Courier New, Courier, sansserif, sans serif" size="2">-force</font> allows HAD to be stopped without taking service groups offline on the system.</font>
</p>

<p>
<font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><a name="226281"></a>The option <font face="Courier New, Courier, sansserif, sans serif" size="2">-evacuate</font>, when combined with <font face="Courier New, Courier, sansserif, sans serif" size="2">-local</font> or <font face="Courier New, Courier, sansserif, sans serif" size="2">-sys</font>, migrates the system's active service groups to another system in the cluster, before the system is stopped. </font>
</p>

<p>
<font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><a name="226322"></a>The option <font face="Courier New, Courier, sansserif, sans serif" size="2">-noautodisable</font> ensures that service groups that can run on the node where the <font face="Courier New, Courier, sansserif, sans serif" size="2">hastop</font> command was issued are not autodisabled. This option can be used with <font face="Courier New, Courier, sansserif, sans serif" size="2">-evacuate</font> but not with <font face="Courier New, Courier, sansserif, sans serif" size="2">-force</font>.</font>
</p>

<p>
<font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><a name="189099"></a>The option <font face="Courier New, Courier, sansserif, sans serif" size="2">-sys</font> stops HAD on the system you specified.</font>
</p>




<h2><font face="Arial, Helvetica, Geneva, sansserif, sans serif, Verdana" size="3" color="#000000"><a name="203838"></a>Stopping VCS Without -force Option</font>
</h2>
 
<p>
<font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><a name="203839"></a>When VCS is stopped on a system without using the <font face="Courier New, Courier, sansserif, sans serif" size="2">-force</font> option to <font face="Courier New, Courier, sansserif, sans serif" size="2">hastop</font>, it enters the <font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="1">LEAVING</font> state, and waits for all groups to go offline on the system. Use the output of the command <font face="Courier New, Courier, sansserif, sans serif" size="2">hasys</font> <font face="Courier New, Courier, sansserif, sans serif" size="2">-display</font> <em>system</em> to verify that the values of the SysState and the OnGrpCnt attributes are non-zero. VCS continues to wait for the service groups to go offline before it shuts down. See <a href="21trouble_vcs_vcs619_231240.html#231240">Troubleshooting Resources</a> for more information.</font>
</p>




<h2><font face="Arial, Helvetica, Geneva, sansserif, sans serif, Verdana" size="3" color="#000000"><a name="203835"></a>Stopping VCS with Options Other Than -force</font>
</h2>
 
<p>
<font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><a name="189103"></a>When VCS is stopped by options other than <font face="Courier New, Courier, sansserif, sans serif" size="2">-force</font> on a system with online service groups, the groups running on the system are taken offline and remain offline. This is indicated by VCS setting the attribute IntentOnline to 0. Using the option <font face="Courier New, Courier, sansserif, sans serif" size="2">-force</font> enables service groups to continue running while HAD is brought down and restarted (IntentOnline remains unchanged).</font>
</p>




<h2><font face="Arial, Helvetica, Geneva, sansserif, sans serif, Verdana" size="3" color="#000000"><a name="189104"></a>Additional Considerations for Stopping VCS</font>
</h2>
 
<p>
<ul type="disc"><li><font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><a name="192058"></a>If using the command <font face="Courier New, Courier, sansserif, sans serif" size="2">reboot</font>, behavior is controlled by the ShutdownTimeOut parameter. After HAD exits, if GAB exits within the time designated in the ShutdownTimeout attribute, the remaining systems recognize this as a reboot and fail over service groups from the departed system. For systems running several applications, consider increasing the value in the ShutdownTimeout attribute.</font>
</li>
<li><font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><a name="192059"></a>Stopping VCS on a system autodisables each service group that include the system in their SystemList attribute. (This does not apply to systems that are powered off.)</font>
</li>
<li><font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><a name="192060"></a>If you use the <font face="Courier New, Courier, sansserif, sans serif" size="2">-evacuate</font> option, evacuation occurs before VCS is brought down.</font>
</li>
</ul>
</p>

<!-- 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="06admin_vcs_cli_vcs309_263683.html" title="Stopping VCS">Return to Top</a></font>

  </td>
  <td align="right"><font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="-2">&lt;&nbsp;<a href="06admin_vcs_cli_vcs308_205928.html" title="Previous - Starting VCS">Previous</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a href="06admin_vcs_cli_vcs310_288980.html" title="Next - Logging On to VCS">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="vcs_splashpage_docCD_vcs1_103036.vxhd" title="Cluster Server Guides title page ">Cluster Server 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="vcshp_ug_titlepage_docCD_vcs258_73700.vxhd" title="Cluster Server 4.1 User's Guide title page ">Cluster Server 4.1 User'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>
