- Community Home
- >
- Servers and Operating Systems
- >
- Legacy
- >
- Operating System - Tru64 Unix
- >
- /var is at 90% capacity
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-08-2006 07:25 AM
03-08-2006 07:25 AM
/var is at 90% capacity
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-08-2006 07:54 AM
03-08-2006 07:54 AM
Re: /var is at 90% capacity
Quota files probably wouldn't be the problem. Use this command as root:
# find /var -exec ls -s1 {} \; | sort -k1,1nr | more
This will list files sorted by size in KBs largest files 1st.
Vic
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-08-2006 08:06 AM
03-08-2006 08:06 AM
Re: /var is at 90% capacity
You should check for unreaded mailboxes on /var/spool/mail
Also use:
du -sk * |sort -nrb
To identify the biggest directory.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-08-2006 09:48 AM
03-08-2006 09:48 AM
Re: /var is at 90% capacity
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-08-2006 03:43 PM
03-08-2006 03:43 PM
Re: /var is at 90% capacity
1. /var/spool/mail and see any user mail is having more size.
2. /var/adm/crash, if crash dir contains core files.
3. zip the old /var/adm/syslog.dated/ directories which are not required.
Hope this will clear most of the things. If you still couldnot make the space use du -ks /var and see which dir is taking more space.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-08-2006 04:00 PM
03-08-2006 04:00 PM
Re: /var is at 90% capacity
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-08-2006 04:14 PM
03-08-2006 04:14 PM
Re: /var is at 90% capacity
> taking more space.
Close, but "du -ks /var" will tell you about
"/var" as a whole, not about the directories
in "/var".
Perhaps "du -ks /var/*", as was suggested
(more or less) earlier.
Trying this stuff before posting it might be
more helpful.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-09-2006 02:25 AM
03-09-2006 02:25 AM
Re: /var is at 90% capacity
Check for this condition by comparing the output of df (disk free) and du (disk used).
df /var
du -sk /var
If the values for space used differ by more than a few megabytes, then check to see if you have any long-running processes with files open in /var that do not have corresponding file entries in the file system. The main tool I use for this check is lsof (LiSt Open Files) available from ftp://lsof.itap.purdue.edu/pub/tools/unix/lsof
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-09-2006 04:00 AM
03-09-2006 04:00 AM
Re: /var is at 90% capacity
Thank you for your replies. Steven's suggestions helped alot with the du -ks /var/*. It narrowed it and turns out that the /var/audit directory was the biggest directory. The filesystem has 16GB and the /var/audit is taking up over 14GB.
This leads to this question, can I delete the auditlog.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-09-2006 04:16 AM
03-09-2006 04:16 AM
Re: /var is at 90% capacity
ls: /var/audit not found
Clearly, none of that stuff is needed.
Of course, mine is only a hobbyist system,
and does nothing very important.
"man -k audit" does offer some stuff,
including:
audit_tool, audit_tool.ultrix (8) - Audit log reduction tool
auditconfig, audit_setup (8) - Audit subsystem configuration graphical interface (Enhanced Security)
So, I know nothing, but I'd bet that
there's a manual somewhere. My guess is
that if it makes sense to collect these data,
then it probably makes sense to archive them
(possibly) and to purge them (certainly).
If you didn't even know the data were there,
they may not be too important, but I also
tend not to throw anything away (totally),
especially when I don't know its purpose
and/or value.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-09-2006 05:13 AM
03-09-2006 05:13 AM
Re: /var is at 90% capacity
Somebody turn on the auditing and the output files are in /var/audit.
If you doesn´t take care of that you could delete them. The best way is delete the oldest.
Good luck,
Larry
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-09-2006 12:11 PM
03-09-2006 12:11 PM
Re: /var is at 90% capacity
You can stop and then restart audit process again which will automatically zip this 14gb file and free up the space and will create new log file.
/sbin/init.d/audit stop
and then
/sbin/init.d/audit start
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-10-2006 01:11 AM
03-10-2006 01:11 AM
Re: /var is at 90% capacity
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-10-2006 06:23 AM
03-10-2006 06:23 AM
Re: /var is at 90% capacity
You should probably reconfigure auditing to use up less space, depending on what your auditing requirements are. Does your company have a Security Policy that you are required to follow? This would have your auditing requirements in it. If you have a requirement for auditing you probably also have a requirement for saving the audit logs for a certain period of time, so you might want to look into setting up a procedure to periodically backup and delete old audit logs.
Ann
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-10-2006 06:26 AM
03-10-2006 06:26 AM
Re: /var is at 90% capacity
# auditd -dx
will empty the audit buffers into the current log file and start logging to the next file, see the man page for auditd for more details.
Ann
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-12-2006 05:18 PM
03-12-2006 05:18 PM
Re: /var is at 90% capacity
because it generates so many files andcan also be one of the reason...
Further it will be very useful if you can submmit the output of following commands...
ls -als /var
df -kh
du -sk /var
Regards
Manish Pathak
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-02-2007 09:17 PM
02-02-2007 09:17 PM
Re: /var is at 90% capacity
#cleanup -c 3
#cleanup -c 2
#cleanup -c 1
to delete superseeded patches and this can
give you some space on /var