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.
DevOps Full Course Tutorial for Beginners - DevOps Free Training Online
Docker Full Course Tutorial for Beginners - Docker Free Training Online
Kubernetes Full Course Tutorial for Beginners - Kubernetes Free Training Online
Ansible Full Course Tutorial for Beginners - Ansible Free Training Online
Openstack Full Course Tutorial for Beginners - Openstack Free Training Online
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.
How to Access Linux Server from Windows Remotely
Configure SSH Passwordless Login Authentication (SSH-keygen)
How to Create LVM Partition in Linux – LVM Tutorial
Install & Configure Samba Server on Linux (RHEL7 / CentOS7)
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.
0 Comments