- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: how to clear VAR folder
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
11-28-2005 03:19 PM
11-28-2005 03:19 PM
the folder /var is full, i don't know what 's file . I can remove it, please help me!
Many thanks.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-28-2005 03:30 PM
11-28-2005 03:30 PM
SolutionYou can try several ways to do housekeeping on /var file system :
1. Cleanup the crash directory at /var/adm/crash. When the system having a problem (panic or rebooting by itself), the system usually create a crash dump information on this directory. You can cleanup the un-necessary info at this directory (check the timestamp).
2. Using 'cleanup' command for patch cleanup utility, check the man page for more detail :
# man cleanup
Example :
Preview:
#cleanup -p -c 2
Clean:
#cleanup -c 2
3. Using SAM to trim-out the log files :
SAM -> Routine Tasks -> System Log Files -> [Select a log file] -> Actions -> Trim
Check the thread below for your reference :
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=977812
Hope this information can help you.
Cheers,
AW
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-28-2005 03:31 PM
11-28-2005 03:31 PM
Re: how to clear VAR folder
du -kx /var | sort -n
will give ascending list by usage.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-28-2005 05:33 PM
11-28-2005 05:33 PM
Re: how to clear VAR folder
find /var -type f -exec ls -l {} \; |sort +5 -nb
To find the largest files. It may be unreaded mail in /var/spool/mail also.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-28-2005 05:43 PM
11-28-2005 05:43 PM
Re: how to clear VAR folder
You can get most directory using files as,
# du -k /var | sort -rnk1
You can delete all OLD* logs firstly as,
# find /var -name "OLD*" | xargs rm -f
You can found installed superseeded patches to be cleanup as,
# cleanup -p -c 2
# cleanup -c 2
to clean it up.
You can trim log files of all daemons as well.
hth.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-28-2005 05:45 PM
11-28-2005 05:45 PM
Re: how to clear VAR folder
hth.