- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- /var file system keeps filling up
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
03-14-2002 09:37 AM
03-14-2002 09:37 AM
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-14-2002 09:41 AM
03-14-2002 09:41 AM
Re: /var file system keeps filling up
Try these commands:
# find /var -xdev -size +1000 -exec ll {} \; > /tmp/bigfiles
# find /var -xdev -type f -mtime -1 -exec ll {} \; > /tmp/newfiles
Find the big files and newly created files.
HTH,
Shiju
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-14-2002 09:43 AM
03-14-2002 09:43 AM
Re: /var file system keeps filling up
While in /var do a:
#du -akx | sort -nr | head
This will list top ten large files in /var FS, only, in descending order.
Repeat frequently to see which files are chewing up the space.
HTH,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-14-2002 09:44 AM
03-14-2002 09:44 AM
Re: /var file system keeps filling up
Another thing is to remove files from /var/adm/crash directory, if you don't require the crash files.
Also if you find a particular file growing continously, then check the log files. It might be reporting some errors.
HTH,
Shiju
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-14-2002 09:47 AM
03-14-2002 09:47 AM
Re: /var file system keeps filling up
Example ..
# cd /var
# touch ref
# find . -xdev -type f -newer ref
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-14-2002 09:50 AM
03-14-2002 09:50 AM
Re: /var file system keeps filling up
other than the excellent suggestions offered by others, try lsof on /var to see what processes are writing on them. the list may be long, but it will give you an idea in case there are processes dumping huge files.
lsof is a free tool and is available from the portable archive source.
HTH
raj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-14-2002 11:21 AM
03-14-2002 11:21 AM
Re: /var file system keeps filling up
Another thing to look at is top, see if you have any run away processes eating up a lot of cpu. Many times these same processes use the /var file system to log activity. For instance there was a known issue with diaglogd the caused the /var/stm/data/diaglogd_hold_list
file to grow rapidly. The first a user new about it was when the /var file system was full. The same has been a issue for cclogd.
HTH
Martin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-14-2002 11:33 AM
03-14-2002 11:33 AM
Re: /var file system keeps filling up
OR
you can go to the following link and find out which file is increasing and accordingly take action. The solution given by Robin is good.
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x11cb0bce6f33d6118fff0090279cd0f9,00.html
Sandip
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-14-2002 01:09 PM
03-14-2002 01:09 PM
Re: /var file system keeps filling up
You might reduce space in var used by superseeded patches.
Use #cleanup -p -c 2 to see list of such patches.
Still use the lsof command to find the culprit process dumping big files in var.
The older version of Online diag had bug of dumping big files in /var/stm/ dir. Check it
Thanks.
Prashant.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-14-2002 01:30 PM
03-14-2002 01:30 PM
Re: /var file system keeps filling up
James
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-14-2002 01:34 PM
03-14-2002 01:34 PM
Re: /var file system keeps filling up
-- Rod Hills
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-14-2002 01:58 PM
03-14-2002 01:58 PM
SolutionAmiel,
cd /var
hostA>ls -lR | grep ^- | sort -nr -k 5 | more
This will list all files in descending order on /var
The next thing I would do is to check all processes writing to /var, as suggested earlier lsof will do the trick
>lsof | grep "/var"
-Shabu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-14-2002 02:01 PM
03-14-2002 02:01 PM