- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: How to increase /opt file system?
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
08-11-2002 03:16 PM
08-11-2002 03:16 PM
How can I increase /opt ?or do I have to reinstall the system ?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-11-2002 03:29 PM
08-11-2002 03:29 PM
SolutionSince you don't the easiest thing is going to be to reboot your system, interrupt the system when it says "press any key in 10 seconds....." and boot into single user mode.
When in single-user mode you can then extend /opt without any problem. Be sure to mount the other VG00 LV's (especially /usr) so that you have all the commands you need.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-11-2002 03:34 PM
08-11-2002 03:34 PM
Re: How to increase /opt file system?
If you have free extents left in the vg00 ( root volume group) then you can increase the /opt filesystem by booting the system into the single-user mode.
If you dont have the free extents then you may have to add another harddisk to the root volume-group or you may have to free some space from the /opt fileysystem if possible. If you cannot add a new harddisk then you can reinstall the OS.
HTH,
Piyush
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-11-2002 03:38 PM
08-11-2002 03:38 PM
Re: How to increase /opt file system?
$ /usr/sbin/swlist -l product | grep -i jfs
JFS B.11.11 The Base VxFS File System
OnlineJFS B.11.11 Online features of the VxFS File System
If you do have this product, assuming new size is 2Gb. For the sizes in blocks you can refer to the 'fsadm_vxfs' man page.
# lvextend -L 2048 /dev/vg00/lvol?
# fsadm -F vxfs -b 2097152 /opt
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-11-2002 03:41 PM
08-11-2002 03:41 PM
Re: How to increase /opt file system?
How to add a new hardisk to the vg00. Boot in single user mode.
Umount /opt: umount /opt
1. Create LVM info to the unused disk:
#pvcreate -f /dev/rdsk/c?t?d0
2. Add the unused disk to vg00:
#vgextend vg00 /dev/dsk/c?t?d0
3.Increase the logical volume:
#lvextend -L
Extend the filesystem:
#extendfs -F
Remount /opt:
mount /opt
HTH,
Piyush
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-11-2002 06:47 PM
08-11-2002 06:47 PM
Re: How to increase /opt file system?
I would rather suggest you to take an ignite backup. While restoring go to advanced options and increase your /opt size then continue restoration.
Hope this helps...
Regards,
AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-11-2002 07:17 PM
08-11-2002 07:17 PM
Re: How to increase /opt file system?
While taking an ignite backup and then booting from that tape is a viable option. I think it is overkill and not necessary in this case and would take much more time than you need to in this case.
/opt does NOT have to be contiguous like /, /stand and primary swap (lvols 1, 2 and 3) so you don't have to use the ignite backup here.
The only time an ignite backup is the best option is when you want to extend /, /stand or pri. swap.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-11-2002 07:31 PM
08-11-2002 07:31 PM
Re: How to increase /opt file system?
Also,
you can create a link to opt from some other file system for installation so that /opt is not taken for space
eg.
ln -s /home2/DB2 /opt/DB2
You can install DB2 under a file system which has enough space eg.home2 and link that to opt so that your application can refer to /opt/ file system.
If /opt is to used for all application installations then I think it should have around 10GB of space.
I have seen oracle,WEbsphere,Weblogic,DB2 and many other application to be installed on /opt.
So you can just create a link from other file system to /opt.
but make sure that you document it so that the next administrator does not delete the files on ignorance.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-11-2002 07:49 PM
08-11-2002 07:49 PM
Re: How to increase /opt file system?
There is also an online document which explains how to Adjust File System Sizes such as /usr, /opt, /stand or /var.
http://docs.hp.com/cgi-bin/fsearch/framedisplay?top=/hpux/onlinedocs/5187-0103/5187-0103_top.html&con=/hpux/onlinedocs/5187-0103/00/00/44-con.html&toc=/hpux/onlinedocs/5187-0103/00/00/44-toc.html&searchterms=/opt%7cincrease&queryid=20020811-204641
Of course, if you don't have online JFS.
hope this helps!
Regards
Yogeeraj