<!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="DocCD Manual Pages 1.4">
<meta name="LASTUPDATED" content="06/13/05 11:55:13">
<meta name="PRODUCTNAME" content="VERITAS Software Documentation">
<meta name="FILENAME" content="vxfs_vol_remove.fm">
     
<title>vxfs_vol_remove</title>

</HEAD>

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

<a name="426866"></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="vxfs_vol_enumerate_vxfs_manpages89_426807.html" title="Previous - vxfs_vol_enumerate">Previous</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a href="vxfs_vol_resize_vxfs_manpages91_426762.html" title="Next - vxfs_vol_resize">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="vxfs_manpages_splashpage_docCD_vxfs_manpages1_103036.vxhd" title="File System Manual Pages for Storage Foundation title page ">File System Manual Pages for Storage Foundation</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="man3_titlepage_docCD_vxfs_manpages40_73700.vxhd" title="Library Functions (3) title page ">Library Functions (3)</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>
	
<h2><font face="Arial, Helvetica, Geneva, sansserif, sans serif, Verdana" size="3" color="#000000"><a name="426537"></a>vxfs_vol_remove</font>
</h2>

        

<h3><font face="Arial, Helvetica, Geneva, sansserif, sans serif, Verdana" size="2" color="#000000">
<a name="426567"></a> NAME</font>
</h3>
<p>
<a name="426572"></a><font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2">vxfs_vol_remove - remove a volume from a multi-volume file system </font>
</p>

<h3><font face="Arial, Helvetica, Geneva, sansserif, sans serif, Verdana" size="2" color="#000000">
<a name="426575"></a> SYNOPSIS</font>
</h3>
<br>
<font face="Courier, Courier New, sansserif, sans serif" size="2"><a name="426580"></a><font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><b>cc -I /opt/VRTS/include -L /opt/VRTS/lib <br>-l vxfsutil -ldld </b></font>
</font>
<br>
<font face="Courier, Courier New, sansserif, sans serif" size="2"><a name="426586"></a><font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><b>#include &lt;sys/types.h&gt;</b></font>  
</font>
<br>
<font face="Courier, Courier New, sansserif, sans serif" size="2"><a name="426589"></a><font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><b>#include &lt;vxfsutil.h&gt;</b></font>  
</font>
<br>
<font face="Courier, Courier New, sansserif, sans serif" size="2"><a name="426592"></a><font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><b>int vxfs_vol_remove(int </b></font><em>fd</em><font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><b>, char *</b></font><em>volname</em><font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><b>); </b></font>
</font>

<h3><font face="Arial, Helvetica, Geneva, sansserif, sans serif, Verdana" size="2" color="#000000">
<a name="426595"></a> AVAILABILITY</font>
</h3>
<p>
<font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><a name="426600"></a>VRTSvxfs  </font>
</p>


<h3><font face="Arial, Helvetica, Geneva, sansserif, sans serif, Verdana" size="2" color="#000000">
<a name="426603"></a> DESCRIPTION</font>
</h3>
<p>
<font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><a name="426608"></a><font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><b>vxfs_vol_remove()</b></font> removes the component volume with the specified volume <em>volname </em>from the file system. The file descriptor <em>fd </em>can specify any file in the file system. </font>
</p>


<h3><font face="Arial, Helvetica, Geneva, sansserif, sans serif, Verdana" size="2" color="#000000">
<a name="426667"></a> CLUSTER FILE SYSTEM ISSUES</font>
</h3>
<p>
<font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><a name="426672"></a>For a cluster mounted file system, you must call <font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><b>vxfs_vol_remove</b></font>() from the primary node of the cluster, and the primary must be mounted with read and write access. <font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><b>vxfs_vol_remove</b></font>() fails if called from one of the secondary mounts. You can use the <font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><b>fsclustadm showprimary</b></font><em> mount_point </em>command to determine which cluster node is the primary before you call <font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><b>vxfs_vol_remove</b></font>(). </font>
</p>


<h3><font face="Arial, Helvetica, Geneva, sansserif, sans serif, Verdana" size="2" color="#000000">
<a name="426776"></a> NOTES</font>
</h3>
<p>
<font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><a name="426781"></a>In the current implementation, the specified volume must be empty before it can be removed. </font>
</p>


<h3><font face="Arial, Helvetica, Geneva, sansserif, sans serif, Verdana" size="2" color="#000000">
<a name="426793"></a> RETURN VALUES</font>
</h3>
<p>
<font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><a name="426798"></a><font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><b>vxfs_vol_remove() </b></font>returns zero on success, non-zero on failure. </font>
</p>


<h3><font face="Arial, Helvetica, Geneva, sansserif, sans serif, Verdana" size="2" color="#000000">
<a name="426819"></a> ERRORS</font>
</h3>
<p>
<font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><a name="426825"></a><font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><b>ENOSPC</b></font></font>
</p>
<p>
<a name="427163"></a><font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2">There was insufficient space to perform the operation. </font>
</p>
<p>
<font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><a name="426839"></a><font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><b>EPERM</b></font></font>
</p>
<p>
<a name="427178"></a><font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2">The calling process does not have correct access privileges. </font>
</p>
<p>
<font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><a name="426853"></a><font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><b>ENXIO</b></font></font>
</p>
<p>
<a name="427193"></a><font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2">An I/O error occurred during the operation. </font>
</p>

<h3><font face="Arial, Helvetica, Geneva, sansserif, sans serif, Verdana" size="2" color="#000000">
<a name="426866"></a> SEE ALSO</font>
</h3>
<blockquote>
<font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><a name="426871"></a><a href="vxfs_ap_assign_ckpt_vxfs_manpages64_426934.html#426593"><font color="#0000ff"><font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><b>vxfs_ap_assign_ckpt </b></font></font></a>(3), <a href="vxfs_ap_assign_file_vxfs_manpages65_426977.html#426621"><font color="#0000ff"><font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><b>vxfs_ap_assign_file </b></font></font></a>(3), <a href="vxfs_ap_assign_fs_vxfs_manpages66_426918.html#426586"><font color="#0000ff"><font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><b>vxfs_ap_assign_fs </b></font></font></a>(3), <a href="vxfs_ap_define_vxfs_manpages67_427607.html#426992"><font color="#0000ff"><font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><b>vxfs_ap_define </b></font></font></a>(3), <a href="vxfs_ap_remove_vxfs_manpages76_426835.html#426544"><font color="#0000ff"><font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><b>vxfs_ap_remove </b></font></font></a>(3), <a href="vxfs_ap_enforce_file_vxfs_manpages69_426899.html#426570"><font color="#0000ff"><font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><b>vxfs_ap_enforce_file </b></font></font></a>(3), <a href="vxfs_ap_enumerate_vxfs_manpages71_427002.html#426621"><font color="#0000ff"><font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><b>vxfs_ap_enumerate </b></font></font></a>(3), <a href="vxfs_ap_query_vxfs_manpages72_427096.html#426740"><font color="#0000ff"><font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><b>vxfs_ap_query </b></font></font></a>(3), <a href="vxfs_ap_query_ckpt_vxfs_manpages73_426891.html#426551"><font color="#0000ff"><font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><b>vxfs_ap_query_ckpt </b></font></font></a>(3), <a href="vxfs_ap_query_file_vxfs_manpages74_426918.html#426579"><font color="#0000ff"><font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><b>vxfs_ap_query_file </b></font></font></a>(3), <a href="vxfs_ap_query_fs_vxfs_manpages75_426889.html#426551"><font color="#0000ff"><font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><b>vxfs_ap_query_fs </b></font></font></a>(3), <a href="vxfs_vol_add_vxfs_manpages85_426779.html#426495"><font color="#0000ff"><font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><b>vxfs_vol_add </b></font></font></a>(3), <a href="vxfs_vol_deencapsulate_vxfs_manpages86_427070.html#426635"><font color="#0000ff"><font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><b>vxfs_vol_deencapsulate </b></font></font></a>(3), <a href="vxfs_vol_encapsulate_vxfs_manpages87_426845.html#426537"><font color="#0000ff"><font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><b>vxfs_vol_encapsulate </b></font></font></a>(3), <a href="vxfs_vol_enumerate_vxfs_manpages89_426807.html#426495"><font color="#0000ff"><font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><b>vxfs_vol_enumerate </b></font></font></a>(3), <a href="vxfs_vol_resize_vxfs_manpages91_426762.html#426488"><font color="#0000ff"><font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><b>vxfs_vol_resize </b></font></font></a>(3), <a href="vxfs_vol_stat_vxfs_manpages92_426838.html#426544"><font color="#0000ff"><font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="2"><b>vxfs_vol_stat </b></font></font></a>(3) </font>
</blockquote>

<!-- 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="vxfs_vol_remove_vxfs_manpages90_426866.html" title="vxfs_vol_remove">Return to Top</a></font>

  </td>
  <td align="right"><font face="Verdana, Arial, Helvetica, Geneva, sansserif, sans serif" size="-2">&lt;&nbsp;<a href="vxfs_vol_enumerate_vxfs_manpages89_426807.html" title="Previous - vxfs_vol_enumerate">Previous</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a href="vxfs_vol_resize_vxfs_manpages91_426762.html" title="Next - vxfs_vol_resize">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="vxfs_manpages_splashpage_docCD_vxfs_manpages1_103036.vxhd" title="File System Manual Pages for Storage Foundation title page ">File System Manual Pages for Storage Foundation</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="man3_titlepage_docCD_vxfs_manpages40_73700.vxhd" title="Library Functions (3) title page ">Library Functions (3)</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>
