- Community Home
- >
- Servers and Operating Systems
- >
- Legacy
- >
- Operating System - Tru64 Unix
- >
- Re: Cleaning of /var and / (log cleaning)
Operating System - Tru64 Unix
1820057
Members
2930
Online
109608
Solutions
Forums
Categories
Company
Local Language
юдл
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
юдл
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- 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-17-2005 02:38 PM
тАО11-17-2005 02:38 PM
Cleaning of /var and / (log cleaning)
Hello to all,
I need to perform log cleaning activity on /var and /.
Can anyone suggest best practices to do it.
Are there any log files that are supposed to be archived/deleted in specified ways?
I have some 140 MB big /var/adm/messages log in production system. How do I trim it down?
Note: The ls output of /var/adm folder is follows. Please pur in your suggestions for maximum trim.
lrwxrwxrwx 1 root system 34 Aug 8 2001 acct -> ../cluster/members/{memb}/adm/acct
lrwxr-xr-x 1 root adm 43 Aug 8 2001 binary.errlog -> ../cluster/members/{memb}/adm/binary.errlog
lrwxr-xr-x 1 root adm 43 Aug 8 2001 collect.dated -> ../cluster/members/{memb}/adm/collect.dated
lrwxr-xr-x 1 root adm 35 Aug 8 2001 crash -> ../cluster/members/{memb}/adm/crash
lrwxr-xr-x 1 root adm 34 Aug 8 2001 cron -> ../cluster/members/{memb}/adm/cron
drwxr-xr-x 3 root system 8192 Aug 8 2001 dms
lrwxr-xr-x 1 root adm 37 Aug 8 2001 lastlog -> ../cluster/members/{memb}/adm/lastlog
lrwxr-xr-x 1 root adm 33 Aug 8 2001 lmf -> ../cluster/members/{memb}/adm/lmf
lrwxrwxrwx 1 root system 33 Aug 8 2001 lpd -> ../cluster/members/{memb}/adm/lpd
lrwxr-xr-x 1 root adm 38 Aug 8 2001 messages -> ../cluster/members/{memb}/adm/messages
drwxr-xr-x 3 root system 8192 Aug 8 2001 ris
lrwxrwxrwx 1 root system 36 Aug 8 2001 smlogs -> ../cluster/members/{memb}/adm/smlogs
lrwxr-xr-x 1 root adm 36 Aug 8 2001 syslog -> ../cluster/members/{memb}/adm/syslog
lrwxr-xr-x 1 root adm 42 Aug 8 2001 syslog.dated -> ../cluster/members/{memb}/adm/syslog.dated
lrwxr-xr-x 1 root adm 34 Aug 8 2001 utmp -> ../cluster/members/{memb}/adm/utmp
lrwxr-xr-x 1 root adm 34 Aug 8 2001 wtmp -> ../cluster/members/{memb}/adm/wtmp
lrwxrwxrwx 1 root adm 38 Aug 8 2001 fee -> ../cluster/members/{memb}/adm/acct/fee
lrwxrwxrwx 1 root adm 40 Aug 8 2001 pacct -> ../cluster/members/{memb}/adm/acct/pacct
lrwxrwxrwx 1 root adm 40 Aug 8 2001 qacct -> ../cluster/members/{memb}/adm/acct/qacct
drwxr-xr-x 2 root adm 8192 Sep 13 2001 versw
-rw-r--r-- 1 root adm 0 Mar 5 2002 verswclu_upgrade
drwxr-xr-x 2 root system 8192 Mar 5 2002 sendmail
drwxr-xr-x 3 root system 8192 Mar 5 2002 sysman
-rw-r--r-- 1 root system 2485 Mar 6 2002 cdsl_admin.inv
drwxr-xr-x 6 root adm 8192 Mar 6 2002 manual_patch
drwxr-xr-x 7 root adm 8192 Mar 6 2002 patch
-rw-r----- 1 root adm 77601 Apr 6 2004 messages.0
-rw-r----- 1 root adm 40288 May 18 2004 messages.1
-rw-r----- 1 root adm 149723 Oct 14 12:20 messages.bkp.141005
-rw-r--r-- 1 root adm 186 Nov 16 13:54 cdsl_check_list.old
-rw-r--r-- 1 root adm 186 Nov 16 13:54 cdsl_check_list
PS: Please have a look at attachment for ls output if it looks cluttered on query screen.
I need to perform log cleaning activity on /var and /.
Can anyone suggest best practices to do it.
Are there any log files that are supposed to be archived/deleted in specified ways?
I have some 140 MB big /var/adm/messages log in production system. How do I trim it down?
Note: The ls output of /var/adm folder is follows. Please pur in your suggestions for maximum trim.
lrwxrwxrwx 1 root system 34 Aug 8 2001 acct -> ../cluster/members/{memb}/adm/acct
lrwxr-xr-x 1 root adm 43 Aug 8 2001 binary.errlog -> ../cluster/members/{memb}/adm/binary.errlog
lrwxr-xr-x 1 root adm 43 Aug 8 2001 collect.dated -> ../cluster/members/{memb}/adm/collect.dated
lrwxr-xr-x 1 root adm 35 Aug 8 2001 crash -> ../cluster/members/{memb}/adm/crash
lrwxr-xr-x 1 root adm 34 Aug 8 2001 cron -> ../cluster/members/{memb}/adm/cron
drwxr-xr-x 3 root system 8192 Aug 8 2001 dms
lrwxr-xr-x 1 root adm 37 Aug 8 2001 lastlog -> ../cluster/members/{memb}/adm/lastlog
lrwxr-xr-x 1 root adm 33 Aug 8 2001 lmf -> ../cluster/members/{memb}/adm/lmf
lrwxrwxrwx 1 root system 33 Aug 8 2001 lpd -> ../cluster/members/{memb}/adm/lpd
lrwxr-xr-x 1 root adm 38 Aug 8 2001 messages -> ../cluster/members/{memb}/adm/messages
drwxr-xr-x 3 root system 8192 Aug 8 2001 ris
lrwxrwxrwx 1 root system 36 Aug 8 2001 smlogs -> ../cluster/members/{memb}/adm/smlogs
lrwxr-xr-x 1 root adm 36 Aug 8 2001 syslog -> ../cluster/members/{memb}/adm/syslog
lrwxr-xr-x 1 root adm 42 Aug 8 2001 syslog.dated -> ../cluster/members/{memb}/adm/syslog.dated
lrwxr-xr-x 1 root adm 34 Aug 8 2001 utmp -> ../cluster/members/{memb}/adm/utmp
lrwxr-xr-x 1 root adm 34 Aug 8 2001 wtmp -> ../cluster/members/{memb}/adm/wtmp
lrwxrwxrwx 1 root adm 38 Aug 8 2001 fee -> ../cluster/members/{memb}/adm/acct/fee
lrwxrwxrwx 1 root adm 40 Aug 8 2001 pacct -> ../cluster/members/{memb}/adm/acct/pacct
lrwxrwxrwx 1 root adm 40 Aug 8 2001 qacct -> ../cluster/members/{memb}/adm/acct/qacct
drwxr-xr-x 2 root adm 8192 Sep 13 2001 versw
-rw-r--r-- 1 root adm 0 Mar 5 2002 verswclu_upgrade
drwxr-xr-x 2 root system 8192 Mar 5 2002 sendmail
drwxr-xr-x 3 root system 8192 Mar 5 2002 sysman
-rw-r--r-- 1 root system 2485 Mar 6 2002 cdsl_admin.inv
drwxr-xr-x 6 root adm 8192 Mar 6 2002 manual_patch
drwxr-xr-x 7 root adm 8192 Mar 6 2002 patch
-rw-r----- 1 root adm 77601 Apr 6 2004 messages.0
-rw-r----- 1 root adm 40288 May 18 2004 messages.1
-rw-r----- 1 root adm 149723 Oct 14 12:20 messages.bkp.141005
-rw-r--r-- 1 root adm 186 Nov 16 13:54 cdsl_check_list.old
-rw-r--r-- 1 root adm 186 Nov 16 13:54 cdsl_check_list
PS: Please have a look at attachment for ls output if it looks cluttered on query screen.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-17-2005 06:07 PM
тАО11-17-2005 06:07 PM
Re: Cleaning of /var and / (log cleaning)
Hello k,
u can clear logs and messages, there are some crash dumps in /var/adm/crash, keep latest and remove them all, same on messagess but this is the file that u can not delete, just try with # tail -200 messages > messagess, this will decrease size of messagess, same for binary.errlog, u can see this file is too large and take much space, #> binary.errlog, u can also check space from #du /dirname, for which file is taking much space. find any core files and delete them,
# find / -name core -exec rm {}\;
Cheers,
Awadhesh
u can clear logs and messages, there are some crash dumps in /var/adm/crash, keep latest and remove them all, same on messagess but this is the file that u can not delete, just try with # tail -200 messages > messagess, this will decrease size of messagess, same for binary.errlog, u can see this file is too large and take much space, #> binary.errlog, u can also check space from #du /dirname, for which file is taking much space. find any core files and delete them,
# find / -name core -exec rm {}\;
Cheers,
Awadhesh
It's kind of fun to do the impossible
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-17-2005 06:10 PM
тАО11-17-2005 06:10 PM
Re: Cleaning of /var and / (log cleaning)
one more thing which i forgot, remove all messagess.0, .1.bkp.141005 files eating ur space.
Awadhesh
Awadhesh
It's kind of fun to do the impossible
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-17-2005 07:43 PM
тАО11-17-2005 07:43 PM
Re: Cleaning of /var and / (log cleaning)
Thanks Awadhesh. I will undertake these activities.
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Learn About
News and Events
Support
© Copyright 2025 Hewlett Packard Enterprise Development LP