How to dynamically increase the size of a veritas file system?
-
This HowTo will explain the how to dynamically increase the size of a veritas file system after the back-end storage has been configured and added to the operating system.
This HowTo also assumes an additional LUN has been added to the diskgroup which contains the volume you are extending, as apposed to increasing the existing LUN.
This HowTo will also show, what will happen if, the requirments are not met.
If the filesystem is not mounted you will get an error.
# vxresize -F vxfs -g oraclerac-dg msvol1 +11g
VxVM vxresize ERROR V-5-1-2331 Cannot resize volume msvol1 (VXFS file system not mounted)
Make sure the file systems is mounted, most likely it will be, if you are extending it.
# mount -F vxfs /dev/vx/dsk/oraclerac-dg/oraadmin /mnt
If the size you want to increase the volume by is bigger, then the total space available, you will see an error
# vxresize -F vxfs -g oraclerac-dg oraadmin +2g
VxVM vxassist ERROR V-5-1-436 Cannot allocate space to grow volume to 8388608 blocks
VxVM vxresize ERROR V-5-1-4703 Problem running vxassist command for volume r01-oraadmin, in diskgroup vvt-oraclerac-dgIncreasing the size within the total space available works fine.
# vxresize -F vxfs -g oraclerac-dg oraadmin +1g
© Lightnetics 2024