Watch all our Tutorials and Training Videos for Free on our Youtube Channel, Get Online Web Tools for Free on swebtools.com

Search Suggest

How to Extend Filesystem Online / Offline in HPUX

extend a filesystem online hp-ux 11, extend a file system offline, Extend file system without using online JFS, Increase filesystem space on HP-UX

How to Extend Filesystem Online / Offline in HPUX

This post will help with How to Extend Filesystem Online / Offline in HPUX.

If you are interested in learning, Request you to go through the below recommended tutorial.

To extend the filesystem online in HPUX without unmounting the mounted filesystem, OnlineJFS software is required, if not offline filesystem extend is only possible.

Lets see both the ways.


How to Extend Filesystem Online in HPUX?


Extending or Increasing the Filesystem Online using OnlineJFS:

1. Check for OnlineJFS depot:

# swlist -l product | grep -i vxfs
# swlist -l product | grep -i online

If you get the output for the above commands, then we can goahead for extending or increasing the filesystem online (onfly).

2. Calcluate the required size to be extend and check the free space available in the Volumegroup.
Lets say for example: 20GB to be extend from 30GB for the filesystem /oracle (/dev/vg00/lvol1). So we will have total size of Filesystem to be 50GB.

3. Extend the Filesystem as per the requirement.

#lvextend -L 50G /dev/vg00/lvol1
#fsadm -F vxfs -b 50G /oracle

Note: fsadm command execution not required if OnlineJFS software is not installed. Instead of fsadm, use extendfs command. Described how to use extendfs command below under Extending or increasing the filesystem Offline.

Thats it, we are done with extending the filesystem online in HPUX, verify using the bdf command.


How to Extend Filesystem Offline in HPUX?


Extending or Increasing the filesystem Offline:


1. Unmount the Filesystem:

#umount /oracle

2. Extend the Filesystem as per the requirement.

#lvextend -L 50G /dev/vg00/lvol1
#extendfs -F vxfs /dev/vg00/lvol1

3. Mount the Filesystem:

#mount /dev/vg00/lvol1 /oracle

Thats it, we are done with extending the filesystem offline in HPUX, verify using the bdf command.

Related Content on Linux might be useful to you to improve your Linux Skills.

Keep practicing and have fun. Leave your comments if any.

Support Us: Share with your friends and groups.

Stay connected with us on social networking sites, Thank you.