- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Cleaning /var
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
Discussions
Discussions
Forums
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
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-03-2008 09:43 PM
тАО12-03-2008 09:43 PM
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-03-2008 10:30 PM
тАО12-03-2008 10:30 PM
Solutionuse cleanup utility to trim /var/adm/save patches. It good to start with option 1 as it will allow u to rollback any patches.
# cleanup -c 1
Other than that, try the conventional way,
# du -sk /var/*
rgds
ps: really appreciate if u could assign some points.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-03-2008 10:33 PM
тАО12-03-2008 10:33 PM
Re: Cleaning /var
do the following to look for large files in /var
# find /var -size 100000c -print
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-03-2008 10:35 PM
тАО12-03-2008 10:35 PM
Re: Cleaning /var
trim or backup the existing OLDsyslog.log file and restart the syslog daemon. it will move to OLDsyslog.log and syslog.log file would be starting from scratch.
and also you can trim any other log in that folder.
but before that you can take a backup or zip that particular file.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-04-2008 10:26 PM
тАО12-04-2008 10:26 PM
Re: Cleaning /var
You can use this commands to find the 1MB file /var
find /var -size +1000000c -exec ll {} \;
You can check for /var/adm/crash and remove the crash file if generated
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-07-2008 03:15 AM
тАО12-07-2008 03:15 AM
Re: Cleaning /var
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-07-2008 03:47 AM
тАО12-07-2008 03:47 AM
Re: Cleaning /var
It contains at & cronjobs and undelivered mail.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-07-2008 09:27 AM
тАО12-07-2008 09:27 AM
Re: Cleaning /var
/var/spool
This directory contains temporary spool files used in printer spooling, mail delivery, cron(1M), and other commands.
>>does it contain critical files.<<
YES.
could also please let us know are going to cleanup some files under /var/spool ..?
Thanks,
Johnson
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-07-2008 06:46 PM
тАО12-07-2008 06:46 PM
Re: Cleaning /var
du -kx /var | sort -rn | head
Then look at the largest directories. Large files may not be the problem...there may be hundreds of small files that can be removed.
As far as making anyone angry, the /var directory is like any other directory. A normal user cannot create any files in most of /var except /var/tmp. That is a directory that users must treat as temporary, but I would contact users with large files in /var/tmp before removing them. Let them know the rules such as: all files in /var/tmp older than 7 days will be automatically removed (or something similar). /tmp is the other directory that needs similar monitoring.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-07-2008 08:58 PM
тАО12-07-2008 08:58 PM
Re: Cleaning /var
#bdf|grep var
before running cleanup -c 1
take ignite because u wont be able to recover the system after that.
and do
#du -sk *|sort -n and check the directoreis.
Thanks
Kapil+