- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- /tmp is becoming 100 %
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
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
тАО10-14-2002 08:06 PM
тАО10-14-2002 08:06 PM
/tmp is becoming 100 %
We have a system running HPUX 10.20 (C3600).
Here often we see /tmp is becoming 100% and when we check using du -sk on that filesystem, it will be around 50% only, Once we reboot the filesystem will be back to the normal size and that time the du output will be same of bdf o/p. We couldn't find anything other than rebooting.
What could be the reason, what should we need to do to resolve,
Thanks in Advance
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-14-2002 08:35 PM
тАО10-14-2002 08:35 PM
Re: /tmp is becoming 100 %
There is a tool called 'lsof' that can assist you. You can get it from here.
http://hpux.cs.utah.edu/hppd/hpux/Sysadmin/lsof-4.61/
Here is some examples on it's usage.
To which files are open for a given process id (pid)
# lsof -p
To see all the open files associated with a particular command.
# lsof -c midaemon
User name.
# lsof -u
# lsof -u
processes being used via a socket.
# lsof -i tcp:23
# lsof -i udp:123
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-14-2002 11:33 PM
тАО10-14-2002 11:33 PM
Re: /tmp is becoming 100 %
(http://www.software.hp.com/RELEASES-MEDIA/history/slide2.html)
Regards,
Trond
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-15-2002 12:12 AM
тАО10-15-2002 12:12 AM
Re: /tmp is becoming 100 %
check for which users are causing this "problem"!
another way is to do the following command to check the user creating the files that are filling up your /tmp.
ll -rtl /tmp |tail
if there is nothing you can do, you can cron a job to run a command like:
============================================================
#!/bin/sh
UTIL=/scripts/admin/sys
DIR=/tmp
logfile="$UTIL/logfiles/cleanup-tmp`date +%y%m%d%H%M`.lis"
emailadd1="myemail@domain.mu"
find ${DIR} -xdev -type f -mtime +7 -name '*.*' > $logfile
find ${DIR} -xdev -type f -mtime +7 -name '*.*' -exec rm -f {} \;
/usr/bin/uuencode $logfile "tmp-deleted.lis"|mailx -m -s "Report: Deleted tmp files on `date`" $emailadd1
#YD-15/10/2002
============================================================
hope this helps!
Regards
Yogeeraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-15-2002 01:26 AM
тАО10-15-2002 01:26 AM
Re: /tmp is becoming 100 %
Be careful with previous script ...
find ${DIR} -xdev -type f -mtime +7 -name '*.*' -exec rm -f {} \;
You will suppress files not modified since 7 days ... But it doesn't mean that this file is not opened by a running process which will need it later. If this file is a logfile and something needs to be written after 7 days of inactivity you will perhaps get in a situation where 'tmp is becoming 100% and when we check using du -sk on that filesystem, it will be around 50%' ... Reboot or kill the process will fix.
Regards,
Jean-Louis.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-15-2002 01:26 AM
тАО10-15-2002 01:26 AM
Re: /tmp is becoming 100 %
Therefore, if the (temporary) files generated by the application are big this can fill up the /tmp and cause pb to other applications, OS included.
Check for these applications and when possibel have them to point their temporary directory to another file system.
my 2 cents.
Jean-Luc
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-16-2002 05:05 AM
тАО10-16-2002 05:05 AM
Re: /tmp is becoming 100 %
BTW, as one other person mentioned, you may want to consider upgrading from 10.20, which is soon to be out-of-support.
Best of luck,
SG
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-16-2002 07:49 PM
тАО10-16-2002 07:49 PM
Re: /tmp is becoming 100 %
Try fuser -c /tmp
The no with a o at the end are the PID of proc(s) having open files in /tmp.
Cheers
Florian