- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- /opt full
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
Discussions
Discussions
Discussions
Forums
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
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
тАО03-18-2003 07:46 AM
тАО03-18-2003 07:46 AM
We have on our production box /opt as full. This is a new Lclass box which went live this weekend. we have 2G for /opt. pl. help??? what would be the issue???
Thanks
Brian
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-18-2003 07:48 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-18-2003 07:49 AM
тАО03-18-2003 07:49 AM
Re: /opt full
Also check for any software that you may not need. You amy also want to check for log files that are under /opt and put them somewhere else like /var
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-18-2003 07:51 AM
тАО03-18-2003 07:51 AM
Re: /opt full
What does the following command produce for output? (Note: "%" is the prompt)
% cd /opt
% du -sk *
Paste the output here please.
Shannon
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-18-2003 07:56 AM
тАО03-18-2003 07:56 AM
Re: /opt full
If you don't have OnlineJFS, you would most likely need to be in single user mode to do so. lsof could tell you what processes had /opt open. You would have to shut down the Measureware daemons and distributed print services at a minimum.
If there is no rome to extend in the root VG, you'll have to increase it via Ignite/UX or user swremove to clean out any unused installed software.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-18-2003 07:58 AM
тАО03-18-2003 07:58 AM
Re: /opt full
# find /opt -type f -name core -exec ll {} \;
Look for files that are recently created (use -mtime option in find). Look for big files ..(example bigger than 2MB)
# find /opt -type f -size +2000000c -print
If still can't spot anything run ..
# cd /opt
# du -kx *|sort -rn > /tmp/test
# more /tmp/test
That should give you some idea how the dirs/files are distributed.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-18-2003 08:02 AM
тАО03-18-2003 08:02 AM
Re: /opt full
If you do a 'du -k /opt' > /tmp/du.out', you will be able to page through the /tmp/du.out file to see which files and directories are taking up how much space (see the man page for 'du' if you aren't familiar). Hopefully you can tell from file and directory names which apps (or other items) are taking up more space than you planned for.
By convention, things in /opt should not grow, once installed. Logs and output files should be sent to the '/var' file system instead. It may be that some poorly written or incorrectly installed app or utility is writing logs or output somewhere in /opt. Or, somebody recently loaded some new SW, and filled up /opt.
If you can't find any logs or obvious culprits, you might try using the 'find' command to do a 'long listing' of all files in /opt. Then look at the timestamp (date and time) in the long listing to see which files were most recently added. This has to be taken with a grain of salt, however, because files can be moved from another location with their timestamps intact.
If new SW has just filled up /opt, it will simply need to be resized upwards to a size that is more suitable. One way to do this is to use the ignite/ux 'make_tape_recovery' utility to create a bootable image of your root volume group on tape, then boot from that tape and restore everything to the boot disk, with an interactive session that lets you specify new sizes for root file systems.
Alternatively, you could just reboot in single user mode, and grow /opt with 'lvextend' and 'extendfs'. Whichever way you go, search through the forums for examples, there are tons of them for both cases.
Regards, --bmr
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-18-2003 06:28 PM
тАО03-18-2003 06:28 PM
Re: /opt full
You can do everything except extendfs -F vxfs /dev/vg00/lvol# (whichever one is opt) after unmounting it.
I have the exact same allocation as you to /opt and am barely past half full, so look at what you installed and see if a large data file or depot accidently landed there.
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
тАО03-18-2003 06:57 PM
тАО03-18-2003 06:57 PM
Re: /opt full
So find the biggest directories. As mentioned, use du to summarize each subdirectory, but add a sort to the output so you can see the biggest first:
du -kx /opt | sort -rn | more
Now look at the top of the list. Most likely there will be oddball application or very non-standard directory at the top. Here's a somewhat normal 11.0 /opt:
1099964 /opt
198518 /opt/ignite
152122 /opt/perf
141506 /opt/hpapache2
128430 /opt/ignite/boot
122450 /opt/langtools
66500 /opt/ids
63306 /opt/perl
54760 /opt/perl/lib
Note that ignite is by far the largest, followed by perf. But they are only 100-200 megs in size. If you something else larger, the directory needs scrutiny. You can use:
ll -rnk5 /whatever | more
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-19-2003 03:02 AM
тАО03-19-2003 03:02 AM
Re: /opt full
have a look into /opt/tmp directory, if size of this is too big u can clean it.
Sunil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-19-2003 03:20 AM
тАО03-19-2003 03:20 AM
Re: /opt full
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-19-2003 12:20 PM
тАО03-19-2003 12:20 PM
Re: /opt full
bdf /opt
cd /
du -skx /opt
If the output from the du command is greatly differnet that what bdf shows is being used, someone removed an open file. If this is what happened, the only way to realcaim the space is to kill the process that has the open file (this can be determined with lsof), or a reboot if all else fails. . .