HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- /tmp filling up and then clearing
Operating System - HP-UX
1836959
Members
2504
Online
110112
Solutions
Forums
Categories
Company
Local Language
back
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
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- 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
02-02-2005 12:23 AM
02-02-2005 12:23 AM
Hello
I have the following script monitor my mount points to ensure they don't max out.
# This script will check and email any space problems over 90%
# if found on any mount point
path=$SCRIPTS/log/space_chk.txt
`bdf > $path`
cat $path | grep '9[0-9]%' > $SCRIPTS/log/space_chk.chk
cat $path | grep '100%' >> $SCRIPTS/log/space_chk.chk
if [ -s $SCRIPTS/log/space_chk.chk ];
then
$FUNCTIONS/s_email space_chk mail "SPACE PROBLEM ON DCS NOTIFICATION" "P
lease run the DCS Archive job in Omniback if the problem is related to the '/dcs
/archive/' mount point." $SCRIPTS/log/space_chk.chk isd
rm $SCRIPTS/log/space_chk.chk
fi
$SCRIPTS/sh/space_chk_95.sh
exit 0;
It is reporting at times that my /tmp is at 100%. I have checked this mount point seconds after the alert and whatever is filling it is always gone. My question, any easy way to monitor the files being created on that mount point? I looked at a few things but do not want to set my system up as a "Trusted" system.
THANKS
I have the following script monitor my mount points to ensure they don't max out.
# This script will check and email any space problems over 90%
# if found on any mount point
path=$SCRIPTS/log/space_chk.txt
`bdf > $path`
cat $path | grep '9[0-9]%' > $SCRIPTS/log/space_chk.chk
cat $path | grep '100%' >> $SCRIPTS/log/space_chk.chk
if [ -s $SCRIPTS/log/space_chk.chk ];
then
$FUNCTIONS/s_email space_chk mail "SPACE PROBLEM ON DCS NOTIFICATION" "P
lease run the DCS Archive job in Omniback if the problem is related to the '/dcs
/archive/' mount point." $SCRIPTS/log/space_chk.chk isd
rm $SCRIPTS/log/space_chk.chk
fi
$SCRIPTS/sh/space_chk_95.sh
exit 0;
It is reporting at times that my /tmp is at 100%. I have checked this mount point seconds after the alert and whatever is filling it is always gone. My question, any easy way to monitor the files being created on that mount point? I looked at a few things but do not want to set my system up as a "Trusted" system.
THANKS
Solved! Go to Solution.
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-02-2005 12:33 AM
02-02-2005 12:33 AM
Solution
Paul,
I have to wonder if the process that fills /tmp dies because it can't write any more - then when the process dies, the file that had filled up /tmp goes away.
Maybe if you add a "du -sk /tmp/* |sort -n |tail" to your monitor script you can catch the file in the act.
Pete
Pete
I have to wonder if the process that fills /tmp dies because it can't write any more - then when the process dies, the file that had filled up /tmp goes away.
Maybe if you add a "du -sk /tmp/* |sort -n |tail" to your monitor script you can catch the file in the act.
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-02-2005 01:07 AM
02-02-2005 01:07 AM
Re: /tmp filling up and then clearing
Hi,
you could try an alternative approach: I have observed the exact same behaviour when an oracle dba vi'ed huge files: the oracle user had a TMPDIR variable pointing at /tmp, and vi-ing files produced huge temporary files in /tmp. The files disappeared seconds after he exited the vi editor.
Perhaps you should check who is on the system when /tmp fills up....
regards,
John K.
you could try an alternative approach: I have observed the exact same behaviour when an oracle dba vi'ed huge files: the oracle user had a TMPDIR variable pointing at /tmp, and vi-ing files produced huge temporary files in /tmp. The files disappeared seconds after he exited the vi editor.
Perhaps you should check who is on the system when /tmp fills up....
regards,
John K.
it would be nice if you always got a second chance
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP