- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: var directory
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
04-02-2001 01:11 PM
04-02-2001 01:11 PM
var directory
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-02-2001 01:16 PM
04-02-2001 01:16 PM
Re: var directory
* the command 'cleanup' will remove the files/binaries for old patches, but you should make sure your machine is stable before running this command as you will no longer be able to roll back patches.
* Any core files - # find /var -name core
* mail for root
hope this helps !
Andrew
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-02-2001 01:17 PM
04-02-2001 01:17 PM
Re: var directory
You could also trim some of the log files with SAM. /var/adm has some log files.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-02-2001 01:21 PM
04-02-2001 01:21 PM
Re: var directory
> wtmp
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-02-2001 05:41 PM
04-02-2001 05:41 PM
Re: var directory
First thing you should do is to identify which directory (or directories) under /var are taking up the space.
Just do,
cd /var
du -s *
repeat the above steps you'll see all how these disk space were being used up, then decide what to do with it.
Right out of my mind, check /var/adm/sw/save (du -s /var/adm/sw/save). This dir usually took up a lots of disk space if your system has uncommited patches.
Rgds,
Philip
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-02-2001 07:24 PM
04-02-2001 07:24 PM
Re: var directory
du -kx /var | sort -rn > /tmp/du.var
Now look at the /tmp/du.var file to see what directories are at the top of the list. Then look inside to see what is occupying so much space.
Resist the temptation to just remove big files. If they are log files, look at the contents to see if anything important is there, then zero the file length rather than removing the file. Other locations with big directories:
/var/spool
/var/adm
/var/adm/sw
/var/adm/crash
/var/mail
Use this command to sort files into size order:
ls -l | sort -nrk 5 | more
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-02-2001 11:26 PM
04-02-2001 11:26 PM
Re: var directory
find /var -xdev -type f -mtime -10 -size +1000000c
## Find in /var filesystem files modified last 10 days and greater than 1M.
Also list :
/var/preserve
/var/adm/crash
/var/tmp
/var/adm/syslog
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-03-2001 12:58 AM
04-03-2001 12:58 AM