LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 07-06-2007, 08:38 AM   #16
nx5000
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, 08:44 PM   #17
Rainel
Member
 
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..

Thanks.

Best Regards
Rainel A. Roflo
 
Old 07-08-2007, 08:53 PM   #18
Rainel
Member
 
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

Thanks.

Best Regards,
Rainel A. Roflo

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

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

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.



Cheers,
Tink
 
  


Reply


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 09:45 PM
/var full - need to resize RichardAnderson Linux - General 12 11-11-2006 09:49 PM
/var full manoj142 Linux - General 8 10-17-2005 07:00 AM
/var really full or not? philforrest Linux - Software 6 02-22-2005 04:10 AM
/var full masterJ Red Hat 11 01-16-2004 01:27 PM


All times are GMT -5. The time now is 06:15 AM.

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