- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- /tmp not shrinking in size after files are removed...
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
12-05-2001 07:27 AM
12-05-2001 07:27 AM
/tmp not shrinking in size after files are removed...
I've cleaned out my /tmp filesystem (with the exception of lost+found) and have noticed that bdf shows the filesystem to still be at 100%. The filesystem has been clean for roughly one hour and the '% free' has yet to drop even 1%
Thoughts anyone??
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-05-2001 07:32 AM
12-05-2001 07:32 AM
Re: /tmp not shrinking in size after files are removed...
This may be because the processes that are accessing the deleted files are still active. Use lsof command to get the processes and open files on /tmp and then check the processes.
You can get lsof from
http://hpux.cs.utah.edu/hppd/hpux/Sysadmin/lsof-4.55/
It's very handy and is a must to have tool on the systems.
#lsof /tmp > lsoftmp.out
To find out the files that are bigger than 50MB being accessed by the processes, you can use the command
#awk '$7 > 50000000 {print $0}' lsoftmp.out
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-05-2001 07:33 AM
12-05-2001 07:33 AM
Re: /tmp not shrinking in size after files are removed...
Apparently one or more procs still have the files in question open (even though you've rm'ed them). bdf will not reflect the freed space until every last proc using said file(s) dies.
If you need to nix big files and see the effects immediately with bdf, always redirect nothing (or /dev/null) to the file(s) like so:
> /tmp/somefile
cat /dev/null > /tmp/somefile
You can use "du -kxs /tmp" to get a true picture of what is used/available in /tmp.
Cheers,
Jim
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-05-2001 07:33 AM
12-05-2001 07:33 AM
Re: /tmp not shrinking in size after files are removed...
You can use the fuser command to find all the executable the has files open in /tmp, i.e.
fuser -cu /tmp
You can also use lsof if you have that on your system.
Hope this helps.
-Santosh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-05-2001 07:34 AM
12-05-2001 07:34 AM
Re: /tmp not shrinking in size after files are removed...
Some programs still have space allocated in /tmp. This is the explanation.
Do a lsof /tmp, kill the processes that have opened files there, umount the partition and mount it again.
In addition, read this thread:
http://forums.itrc.hp.com/cm/QuestionAnswer/1,11866,0x1cbfcf38d6bdd5118ff10090279cd0f9,00.html
E.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-05-2001 07:34 AM
12-05-2001 07:34 AM
Re: /tmp not shrinking in size after files are removed...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-05-2001 07:43 AM
12-05-2001 07:43 AM
Re: /tmp not shrinking in size after files are removed...
after cleaning up the file system it still reported full, umount it and re-mount it and it should give you the correct bdf then.
may have to use what others had said fuser -k
hope this helps
scott
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-05-2001 07:43 AM
12-05-2001 07:43 AM
Re: /tmp not shrinking in size after files are removed...
I would go with Santosh's action plan.
fuser -cu /tmp
You may have to use fuser anyway even if you kill the processes so why not cut out the middle man.
Good Luck,
C
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-05-2001 01:48 PM
12-05-2001 01:48 PM