- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Steps to increase the file system space /opt , /us...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-28-2008 12:51 AM
07-28-2008 12:51 AM
Steps to increase the file system space /opt , /usr without rebooting in HP-UX
i would to increase the space without rebooting and in single usermode. Please tell me the steps to increase the filesystem..
warm regards,
Arun
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-28-2008 01:05 AM
07-28-2008 01:05 AM
Re: Steps to increase the file system space /opt , /usr without rebooting in HP-UX
If you have OnlineJFs
find some disk space. use vgextend to add new disk space to the volume group of /usr and /opt
lvextend the logical volume
use fsadm to expand the size.
If you don't have OnlineJFS
lvextend the logical volumes
umount the filesystems and run extendfs.
The problem you run into is /usr is probably in heavy use and its going to be very difficult to do due to open processes on /usr
Its much easier under the circumstances to schedule a downtime and do the work quickly during that window.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-28-2008 01:44 AM
07-28-2008 01:44 AM
Re: Steps to increase the file system space /opt , /usr without rebooting in HP-UX
Which OS version you are talking about?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-28-2008 09:10 PM
07-28-2008 09:10 PM
Re: Steps to increase the file system space /opt , /usr without rebooting in HP-UX
First you can check online jfs is installed or not. If in case installed you can extend file system online other wise u can unmount the opt & usr file system then extend.
You Check free space in the volume group
#vgdisplay
if u have free space u can extend file system
#lvextend -L size required /dev/dsk/lvol(opt)
#extendfs -F vxfs /dev/dsk/vol1
#mount the file system.
Regards
chandra
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-28-2008 10:57 PM
07-28-2008 10:57 PM
Re: Steps to increase the file system space /opt , /usr without rebooting in HP-UX
If you want to increase the root FS . The Bellow steps would help
a. Login as root.
b. Find out a free disk / un mirror the rootvg and make that disk free.
c. find out the next logical volume after lvol3(assumed lvol3 is root)
d. pvmove that logical volume onto the newly added disk
[ pvmove -n /dev/vg00/lvol4 /dev/dsk/CURRENT /dev/dsk/NEW]
e. now you should be able to increase root filesystem to an additional `size_of_the_lvol4`.
f. pvmove the lvol4 back to root vg ( vg00)
Regards
Sagar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-29-2008 04:16 AM
07-29-2008 04:16 AM
Re: Steps to increase the file system space /opt , /usr without rebooting in HP-UX
I've used this trick to save space until the next reboot. (or forever).
Find software that is very static and NOT used. You want to get rid of it. But you believe something would bust if you threw it away.
Copy it to a big utility disk.
Make a link from /opt to this copy.
Then swap the two names.
here is an example:
Let's say you have /bigdisk filesystem, and you have unused /opt/perl_64 because everyone is using /opt/perl.
mkdir /bigdisk/alt_opt
cd /opt
find perl_64 -print | cpio -pdumvc /bigdisk/alt_opt
ln -s /bigdisk/alt_opt/perl_64 /opt/perl_64a
verify the permissions and sizes of /bigdisk, /bigdisk/alt_opt, and /bigdisk/alt_opt/perl64_a.
Make sure no one is using /opt/perl_64.
cd /opt
Run these two commands very quickly.
mv perl_64 perl_64_old ;mv perl_64a perl_64
Now, /opt/perl_64_old is not used. You can confirm that via ps and fuser commands. Once you are sure, you can delete this data.
rm -r /opt/perl_64_old
Verify /opt/perl_64 still works even though it is really on /bigdisk.
Because /opt/perl_64 has been moved, perhaps the space saved will be enough for you.
Be careful with this concept. You want to know what you are moving. You want to be sure it is not in use.
Now that I have written this, please let me know if my advice is a bad idea or not. Experience has shown me it works. But perhaps I am just lucky? Those point assignments help tell other people if the tips are useful or not.