- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: bdf /tmp shows 100% 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
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
05-16-2005 08:36 AM
05-16-2005 08:36 AM
bdf /tmp shows 100% full
On our PROD server, I don't understand why.
I did ll -R /tmp and very few files. I did
ls -altr shows very few files and directories. I went into the directories and hidden directories, NOTHING!!!
du -ks /tmp shows:
71 /tmp
bdf shows 100% full.
/dev/vg00/lvol4 819200 819200 0 100% /tmp
Why is this? This is our PROD. Please help!!!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-16-2005 08:40 AM
05-16-2005 08:40 AM
Re: bdf /tmp shows 100% full
By the way, /tmp is not supposed to be used for user temp files; that is the role of /var/tmp these days. /tmp is strictly for OS related processes.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-16-2005 08:40 AM
05-16-2005 08:40 AM
Re: bdf /tmp shows 100% full
You probably have a process that is holding open a file in /tmp, but the file has been removed. The disk space won't be released until the process finishes. The trick now is to figure out which process is holding the disk space. I'd use Glance or lsof to try to find the offending process.
JP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-16-2005 08:49 AM
05-16-2005 08:49 AM
Re: bdf /tmp shows 100% full
/tmp: 922o 930o 938o
are 922, 930 and 938 process ids? I'm sorry, I just inherited this system from the unix sysadmin.
If so,
root 938 1 0 Jan 26 ? 0:00 /usr/sbin/trapdestagt
root 930 1 0 Jan 26 ? 11:51 /usr/sbin/mib2agt
root 922 1 0 Jan 26 ? 0:00 /usr/sbin/hp_unixagt
Thanks!
Ravi.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-16-2005 08:53 AM
05-16-2005 08:53 AM
Re: bdf /tmp shows 100% full
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-16-2005 08:55 AM
05-16-2005 08:55 AM
Re: bdf /tmp shows 100% full
root 930 1 0 Jan 26 ? 11:51 /usr/sbin/mib2agt
root 922 1 0 Jan 26 ? 0:00 /usr/sbin/hp_unixagt
Any ideas as to what these "agt" processes are?
Thanks for all your help.
-- Ravi.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-16-2005 09:04 AM
05-16-2005 09:04 AM
Re: bdf /tmp shows 100% full
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-16-2005 02:01 PM
05-16-2005 02:01 PM
Re: bdf /tmp shows 100% full
/sbin/init.d/SnmpFddi4 stop
/sbin/init.d/SnmpMaster stop
/sbin/init.d/SnmpTrpDst stop
/sbin/init.d/SnmpHpunix stop
/sbin/init.d/SnmpMib2 stop
These processes are enabled by default and most sysadmins will turn them off unless a Network Operations Center is monitoring systems. To make these SNMP process not run at bootup, edit the file in /etc/rc.config.d that start with: Snmp Change all XXXXX=1 lines to XXXXX=0 and now SNMP agents will not be started.
Now if your system has not been reasonably patched, mib2agt had a fairly serious bug that caused it to grow extremely large. The reason that the space in /tmp isn't being returned is that rm does not really remove a file--it decrements the link count. For a simple file, the link count goes to zero and if the file is not open, it is removed. The problem is that rm will succeed even though a file is still open. So until you kill all processes that have the file open, the file appears to have been deleted but the space has not been returned.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-16-2005 05:25 PM
05-16-2005 05:25 PM
Re: bdf /tmp shows 100% full
so you can delete un needed files.
1, search big files
#cd /tmp
#du -sk *|sort -nr
#rm -rf bigfiles (big files listed at above command)
2, extend /tmp lv
see
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=881438
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-17-2005 12:27 AM
05-17-2005 12:27 AM
Re: bdf /tmp shows 100% full
I went through a list of processes to see what each process was doing.
I killed the custom (cron) processes that I know can be killed. After killing one (or some) of these processes, the used space became 8% immediately! I know what the problem with the cron jobs was. I fixed that problem afterwards.
The only thing I don't understand is that "fuser /tmp" did NOT show any of these processes as using /tmp because obviously, killing one of these processes cleared the /tmp.
Thanks!
Ravi.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-17-2005 12:48 AM
05-17-2005 12:48 AM
Re: bdf /tmp shows 100% full
Search for lsof
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-17-2005 02:29 AM
05-17-2005 02:29 AM
Re: bdf /tmp shows 100% full
We're on hp-ux 11.00, though. http://hpux.connect.org.uk shows only for 11i pa-risc and itanium 2.
Where can I download for 11.0?
Thanks!
Ravi.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-17-2005 03:35 AM
05-17-2005 03:35 AM
Re: bdf /tmp shows 100% full
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-17-2005 03:47 AM
05-17-2005 03:47 AM
Re: bdf /tmp shows 100% full
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-17-2005 03:55 AM
05-17-2005 03:55 AM
Re: bdf /tmp shows 100% full
then lsof|grep /tmp will show who and what is using /tmp