Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 07-06-2007, 07:38 AM   #16
Senior Member
Registered: Sep 2005
Location: Out
Posts: 3,307

Rep: Reputation: 55

Yes thats what Tinkster mentionned:
du -sm * /var/*|sort -g

And yes, all these commands have to be run as root.
Old 07-08-2007, 07:44 PM   #17
Registered: Jun 2007
Posts: 57

Original Poster
Rep: Reputation: 15
var is full

Hello guys..

Thank you for your discontinued support for me
Well, i type "du -ks /var/log/* | sort -n" and this
are the result:

0 /var/log/aide.log
4 /var/log/acpid
4 /var/log/maillog.offset
4 /var/log/messages.offset
4 /var/log/secure.offset
4 /var/log/spooler
8 /var/log/audit
8 /var/log/ppp
8 /var/log/samba
8 /var/log/vbox
16 /var/log/dmesg
20 /var/log/anaconda.log
20 /var/log/cups
20 /var/log/mail
24 /var/log/rpmpkgs
24 /var/log/yum.log
28 /var/log/anaconda.syslog
28 /var/log/gdm
40 /var/log/prelink.log
48 /var/log/rkhunter.log
52 /var/log/lastlog
60 /var/log/Xorg.0.log
60 /var/log/Xorg.0.log.old
64 /var/log/anaconda.xlog
72 /var/log/Bastillerevert
100 /var/log/scrollkeeper.log
156 /var/log/fail2ban.log
208 /var/log/secure
408 /var/log/Bastille
444 /var/log/denyhosts
1372 /var/log/wtmp
1728 /var/log/httpd
3324 /var/log/cron
6560 /var/log/sa
23036 /var/log/psad
24412 /var/log/vsftpd.log
60300 /var/log/boot.log
342664 /var/log/snort
555400 /var/log/messages
581540 /var/log/maillog
1720652 /var/log/squid

Is there any way I can show this one and manually erase all of them.
Or by the way is it safe if I'm going to erase them the one that has the largest bytes used..


Best Regards
Rainel A. Roflo
Old 07-08-2007, 07:53 PM   #18
Registered: Jun 2007
Posts: 57

Original Poster
Rep: Reputation: 15
var is full

Hello again guys

These are the results when I type "du -h /var"
I just picked up the largest 5..

10G /var - total size partition

897M /var/named/chroot/proc
897M /var/named/chroot
897M /var/named
200K /var/named/chroot/var
180K /var/run


Best Regards,
Rainel A. Roflo

Last edited by Rainel; 07-08-2007 at 08:45 PM.
Old 07-09-2007, 01:08 PM   #19
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 911Reputation: 911Reputation: 911Reputation: 911Reputation: 911Reputation: 911Reputation: 911Reputation: 911
Firstly, you must have gotten yourself confused with
the sizes; uses -m or -k, not -h. Makes sorting more

Secondly: are you actually running bind in a chroot jail?

As for the logs: mailog and squid could certainly do
with rotation ... there's something wrong there.



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
/var/cache full jeffmski Linux - Newbie 11 12-30-2006 08:45 PM
/var full - need to resize RichardAnderson Linux - General 12 11-11-2006 08:49 PM
/var full manoj142 Linux - General 8 10-17-2005 06:00 AM
/var really full or not? philforrest Linux - Software 6 02-22-2005 03:10 AM
/var full masterJ Red Hat 11 01-16-2004 12:27 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:19 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration