- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- /var 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
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-13-2004 01:14 AM
05-13-2004 01:14 AM
i have a problem with L class server running hp-ux 11.00. the server is having sybase as database. when the /var filesystem (1GB) became full i checked for large files and found /var/spool/cron/tmp/croutQAAa01174 with 420MB .i tried to pass null to make this file zero.then i deleted this file and created a new file with same owner & permissions (then /var came to 60%) .on that day it was working fine. on the next day /var again came to 100% .while checking it was not showing any bigger files .after rebooting it again came to 60%.what is the reason for this?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-13-2004 01:22 AM
05-13-2004 01:22 AM
Re: /var 100%
cat /dev/null > /var/spool/cron/tmp/croutQAAa01174
Sounds like maybe there was a lock or open process trying to write to that file - doing what you did (deleting) may have left the system state a little messed up....and the reboot fixed it....I would monitor this for a few days...
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-13-2004 01:22 AM
05-13-2004 01:22 AM
Re: /var 100%
A common procedure for creating tempory files is to open a file and then immediately delete it. This a) makes it hard for another process to create a similarly named file and b) means if your program dies for some reason, the tempory file will not be left on disk.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-13-2004 01:33 AM
05-13-2004 01:33 AM
Re: /var 100%
Secondly, you had an open file that was filling /var. The file may have been removed, but the process had not completed so the space was not yet reclaimed.
You're going to need to do some more investigating if this continues to happen. Perhaps a tool like lsof could be of use to find the process that is filling /var.
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-13-2004 01:37 AM
05-13-2004 01:37 AM
SolutionYou may have to kill the cron daemon for it to release that log file. The cron job may be hung, but the cron daemon will be the parent so killing it *should* release the file lock.
My 2 cents,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-13-2004 01:43 AM
05-13-2004 01:43 AM
Re: /var 100%
du -kx /var | sort -rn | more
/var/spool will be particularly difficult because bad cron jobs (as you have already seen) can create massive amounts of data and these jobs must be fixed as soon as possible. The tmp/crout.... file was created by some cron job so look at the beginning of the file (use more or page, not cat) to see what it is doing and what cron job is causing this. Then stop the job (because it will just continue filling /var) and fix the code.
/var/spool also has printer jobs which may grow rapidly. /var/adm has most of the logfiles in the system and /var/adm/sw has installation software and patch recovery files. /var/mail can possibly be a problem. You'll need to monitor /var regularly and search for the big directories and then big files inside the directory. As mentioned, filespace is not returned even when the file is deleted until the process that has the file open closes the file or is terminated.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-13-2004 01:59 AM
05-13-2004 01:59 AM
Re: /var 100%
earlier also the /var file system became full and after restarting it came to 60%.(the file was not deleted on that time).
the cron is containing 1)system activity report by sadc 2)adding & removing routes
the croutQAAa01174 was showing zero only when /var become full on second day.now also
it is showing not contents.
if the lock was existing with the specific file and the file was open how it became 60% after deleting the file.
if a lock is existing is there any way to see it and the respective process.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-13-2004 02:44 AM
05-13-2004 02:44 AM
Re: /var 100%
Bill Hassell, sysadmin