- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: /var directory at 94%
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
тАО10-09-2010 02:14 PM
тАО10-09-2010 02:14 PM
/var directory at 94%
trying to free up room in the /var directory ??
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-09-2010 04:02 PM
тАО10-09-2010 04:02 PM
Re: /var directory at 94%
> /var/adm/syslog/mail.log
or
cat /dev/null > /var/adm/syslog/mail.log
To sort the logfiles by size:
ll /var/adm | sort -nk5
ll /var/adm/syslog | sort -nk5
The largest files are at the bottom. The mail.log file in syslog can be truncated at any time. However, you need to verify that no history is required for auditors or system administrators if you truncate syslog.log. The alternative is to copy the old logfile, then truncate. logfiles can be compressed to save a lot of space:
cd /var/adm/syslog
cp syslog.log syslog.log.1
compress syslog.log.1
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-09-2010 10:52 PM
тАО10-09-2010 10:52 PM
Re: /var directory at 94%
Check
/var/adm/crash
Delete files which is under crash folder , required for verification only when system crashed.
So delete all files under crash folder.
Rgd's
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-10-2010 03:50 AM
тАО10-10-2010 03:50 AM
Re: /var directory at 94%
You might want to copy it to another filesystem and then use gzip rather than compress.
- Tags:
- trim logfile
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-10-2010 07:26 AM
тАО10-10-2010 07:26 AM
Re: /var directory at 94%
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-10-2010 08:12 AM
тАО10-10-2010 08:12 AM
Re: /var directory at 94%
Since Don did not mention the OS, I recommended compress since it has always been part of HP-UX. Moving the old syslog to another filesystem can be a future problem if the system(s) require audit trails and no one remembers where the old files are.
Bill Hassell, sysadmin