How to grow a volume and file system.
TechNote ID: 187220 Last Updated: February 08 2000 01:15 AM GMT
E-Mail Colleague IconE-Mail this document to a colleague
Subscribe Via E-Mail IconSubscribe to this document


Caution! The information in this TechNote is based upon certain assumptions, including product, operating system and platform versions. You can review this information in the TechNote Summary portion of this document. This document ( 187220 ) is provided subject to the disclaimer at the end of this document.

Symptom:
How to grow a volume and file system.
Solution:

1) Determine the device name with df -k command:
   #df -k
   Filesystem            kbytes    used   avail capacity  Mounted on
   /dev/vx/dsk/rootvol  4030518 1201027 2789186    31%    /
   /dev/vx/dsk/usr       962134  404374  500032    45%    /usr
   /proc                      0       0       0     0%    /proc
   fd                         0       0       0     0%    /dev/fd
   /dev/vx/dsk/opt      2877758  443170 2377033    16%    /opt
   swap                  371456     272  371184     1%    /tmp
   /dev/vx/dsk/datadg/mail     3445728 3132232  313496    81%    /mail


2) Determine the file system type with fstyp command:
    fstyp <device name> also fstyp /dev/vx/dsk/<diskgroup>/<volume-name>
    #fstyp /dev/vx/dsk/datadg/mail
    vxfs
   
3) To grow 2g volume and file system to 5g, use the vxresize command:
   vxresize -F <fstyp> -g <disk group> <volume> <newlength>
   #vxresize -F vxfs -g rootdg  mail 5g

note: <newlength> will not be accepted with a  decimal.  The default is sectors unless specified.
.




TechNote Summary:
TechNote Title: How to grow a volume and file system.
TechNote ID: 187220
Last Updated: February 08 2000 01:15 AM GMT
Document Expires:
This information in this TechNote applies to:
Products:
Volume Manager for UNIX   3.0, 3.0.1, 3.0.2
Subject: Application - How To
Languages: NA
Operating Systems:
Solaris   2.3, 2.4, 2.5, 2.5.1, 2.6, 7.0 (32-bit)

VERITAS Technical Services Document
VERITAS Software, 350 Ellis Street, Mountain View, California 94043
World Wide Web: http://www.veritas.com
Tech Support Web: http://support.veritas.com
E-Mail Support: http://seer.support.veritas.com/email_forms
FTP: ftp://ftp.support.veritas.com or http://ftp.support.veritas.com
 
THE INFORMATION PROVIDED IN THE VERITAS SOFTWARE KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. VERITAS SOFTWARE DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL VERITAS SOFTWARE OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES,EVEN IF VERITAS SOFTWARE OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.