How to grow a volume and file system.
![]() ![]() 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:
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. .
![]() VERITAS Software, 350 Ellis Street, Mountain View, California 94043
|