- Community Home
- >
- Servers and Operating Systems
- >
- Operating System - HP-UX
- >
- System Administration
- >
- Re: /var directory at 94%
-
- Forums
-
- Advancing Life & Work
- Advantage EX
- Alliances
- Around the Storage Block
- HPE Ezmeral: Uncut
- OEM Solutions
- Servers & Systems: The Right Compute
- Tech Insights
- The Cloud Experience Everywhere
- HPE Blog, Austria, Germany & Switzerland
- Blog HPE, France
- HPE Blog, Italy
- HPE Blog, Japan
- HPE Blog, Middle East
- HPE Blog, Russia
- HPE Blog, Saudi Arabia
- HPE Blog, South Africa
- HPE Blog, UK & Ireland
-
Blogs
- Advancing Life & Work
- Advantage EX
- Alliances
- Around the Storage Block
- HPE Blog, Latin America
- HPE Blog, Middle East
- HPE Blog, Saudi Arabia
- HPE Blog, South Africa
- HPE Blog, UK & Ireland
- HPE Ezmeral: Uncut
- OEM Solutions
- Servers & Systems: The Right Compute
- Tech Insights
- The Cloud Experience Everywhere
-
Information
- Community
- Welcome
- Getting Started
- FAQ
- Ranking Overview
- Rules of Participation
- Tips and Tricks
- Resources
- Announcements
- Email us
- Feedback
- Information Libraries
- Integrated Systems
- Networking
- Servers
- Storage
- Other HPE Sites
- Support Center
- Aruba Airheads Community
- Enterprise.nxt
- HPE Dev Community
- Cloud28+ Community
- Marketplace
-
Forums
-
Blogs
-
Information
-
English
- 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
- Email to a Friend
- 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
- Email to a Friend
- 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
- Email to a Friend
- 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
- Email to a Friend
- 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
- Email to a Friend
- 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
- Email to a Friend
- 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
Hewlett Packard Enterprise International
- Communities
- HPE Blogs and Forum
© Copyright 2021 Hewlett Packard Enterprise Development LP