O comando abaixo vai dizer quais são os arquivos que estão crescendo sem controle:
sudo du -skx /var/log/* | sort -n
Os maiores arquivos vão estar no fim da listagem.
Resultado da saída do comando ==>sudo logrotate -f /etc/logrotate.conf Executado várias vezes seguidas, em 08/Setembro/2010 para vazamento da var seguido deste comando ==>sudo du -skx /var/log/* | sort -n
0 /var/log/btmp
0 /var/log/debug
0 /var/log/debug.2
0 /var/log/debug.3
0 /var/log/debug.4
0 /var/log/dpkg.log
0 /var/log/lpr.log
0 /var/log/lpr.log.1
0 /var/log/lpr.log.2
0 /var/log/lpr.log.3
0 /var/log/lpr.log.4
0 /var/log/mail.err
0 /var/log/mail.err.1
0 /var/log/mail.err.2
0 /var/log/mail.err.3
0 /var/log/mail.err.4
0 /var/log/mail.info
0 /var/log/mail.info.1
0 /var/log/mail.info.2
0 /var/log/mail.info.3
0 /var/log/mail.info.4
0 /var/log/mail.log
0 /var/log/mail.log.1
0 /var/log/mail.log.2
0 /var/log/mail.log.3
0 /var/log/mail.log.4
0 /var/log/mail.warn
0 /var/log/mail.warn.1
0 /var/log/mail.warn.2
0 /var/log/mail.warn.3
0 /var/log/mail.warn.4
0 /var/log/pm-powersave.log
0 /var/log/pycentral.log
0 /var/log/user.log.2
0 /var/log/user.log.3
0 /var/log/user.log.4
0 /var/log/wtmp
4 /var/log/apparmor
4 /var/log/aptitude.1.gz
4 /var/log/aptitude.2.gz
4 /var/log/auth.log.1
4 /var/log/auth.log.2
4 /var/log/auth.log.2.gz
4 /var/log/auth.log.3
4 /var/log/auth.log.3.gz
4 /var/log/auth.log.4
4 /var/log/auth.log.4.gz
4 /var/log/boot
4 /var/log/boot.log
4 /var/log/btmp.1.gz
4 /var/log/daemon.log
4 /var/log/daemon.log.1
4 /var/log/daemon.log.2
4 /var/log/daemon.log.2.gz
4 /var/log/daemon.log.3
4 /var/log/daemon.log.3.gz
4 /var/log/daemon.log.4
4 /var/log/daemon.log.4.gz
4 /var/log/debug.2.gz
4 /var/log/debug.3.gz
4 /var/log/dist-upgrade
4 /var/log/dpkg.log.2.gz
4 /var/log/fontconfig.log
4 /var/log/gufw_log_server.txt
4 /var/log/gufw_log.txt
4 /var/log/jockey.log.10.gz
4 /var/log/jockey.log.2.gz
4 /var/log/jockey.log.3.gz
4 /var/log/jockey.log.4.gz
4 /var/log/jockey.log.5.gz
4 /var/log/jockey.log.6.gz
4 /var/log/jockey.log.7.gz
4 /var/log/jockey.log.9.gz
4 /var/log/kern.log.1
4 /var/log/kern.log.2.gz
4 /var/log/kern.log.3.gz
4 /var/log/kern.log.4.gz
4 /var/log/lpr.log.2.gz
4 /var/log/lpr.log.3.gz
4 /var/log/lpr.log.4.gz
4 /var/log/messages.1
4 /var/log/messages.2.gz
4 /var/log/messages.3.gz
4 /var/log/messages.4.gz
4 /var/log/news
4 /var/log/pm-powersave.log.2.gz
4 /var/log/pm-powersave.log.3.gz
4 /var/log/pm-powersave.log.4.gz
4 /var/log/speech-dispatcher
4 /var/log/syslog.1
4 /var/log/syslog.2.gz
4 /var/log/syslog.3.gz
4 /var/log/syslog.4.gz
4 /var/log/syslog.5.gz
4 /var/log/syslog.6.gz
4 /var/log/syslog.7.gz
4 /var/log/ufw.log.1
4 /var/log/ufw.log.2.gz
4 /var/log/ufw.log.3.gz
4 /var/log/ufw.log.4.gz
4 /var/log/unattended-upgrades
4 /var/log/user.log
4 /var/log/user.log.1
4 /var/log/user.log.2.gz
4 /var/log/user.log.3.gz
4 /var/log/user.log.4.gz
4 /var/log/wtmp.1.gz
8 /var/log/faillog
8 /var/log/jockey.log.8.gz
8 /var/log/pm-powersave.log.1
12 /var/log/auth.log
12 /var/log/fsck
16 /var/log/dmesg.1.gz
16 /var/log/dmesg.2.gz
16 /var/log/dmesg.3.gz
16 /var/log/dmesg.4.gz
16 /var/log/dpkg.log.3.gz
16 /var/log/dpkg.log.4.gz
16 /var/log/syslog.4
16 /var/log/Xorg.0.log
16 /var/log/Xorg.0.log.old
28 /var/log/cups
28 /var/log/popularity-contest.1.gz
28 /var/log/popularity-contest.2.gz
28 /var/log/popularity-contest.3.gz
32 /var/log/dpkg.log.1
32 /var/log/popularity-contest.4.gz
32 /var/log/popularity-contest.5.gz
32 /var/log/popularity-contest.6.gz
36 /var/log/ConsoleKit
40 /var/log/debug.4.gz
40 /var/log/lastlog
44 /var/log/bootstrap.log
44 /var/log/kern.log.3
44 /var/log/messages.3
44 /var/log/syslog.3
52 /var/log/apt
56 /var/log/dmesg
56 /var/log/dmesg.0
68 /var/log/jockey.log.1
72 /var/log/syslog.6
80 /var/log/syslog.5
84 /var/log/gdm
108 /var/log/popularity-contest
108 /var/log/popularity-contest.0
124 /var/log/debug.1
156 /var/log/dpkg.log.5.gz
244 /var/log/kern.log.4
244 /var/log/messages.4
280 /var/log/udev
548 /var/log/kern.log.2
548 /var/log/messages.2
548 /var/log/syslog.2
1028 /var/log/installer
1280 /var/log/samba
2044 /var/log/syslog.7
6060 /var/log/messages
6060 /var/log/syslog
6064 /var/log/kern.log
6064 /var/log/ufw.log
Resultado da saída do comando ==>sudo du -skx /var/log/* | sort -n em 12/Setembro/2010 após ter recebido o aviso de var com pouco espaço 158,5 MB
0 /var/log/btmp
0 /var/log/debug
0 /var/log/debug.2
0 /var/log/debug.3
0 /var/log/debug.4
0 /var/log/jockey.log
0 /var/log/lpr.log
0 /var/log/lpr.log.1
0 /var/log/lpr.log.2
0 /var/log/lpr.log.3
0 /var/log/lpr.log.4
0 /var/log/mail.err
0 /var/log/mail.err.1
0 /var/log/mail.err.2
0 /var/log/mail.err.3
0 /var/log/mail.err.4
0 /var/log/mail.info
0 /var/log/mail.info.1
0 /var/log/mail.info.2
0 /var/log/mail.info.3
0 /var/log/mail.info.4
0 /var/log/mail.log
0 /var/log/mail.log.1
0 /var/log/mail.log.2
0 /var/log/mail.log.3
0 /var/log/mail.log.4
0 /var/log/mail.warn
0 /var/log/mail.warn.1
0 /var/log/mail.warn.2
0 /var/log/mail.warn.3
0 /var/log/mail.warn.4
0 /var/log/pycentral.log
0 /var/log/user.log.2
0 /var/log/user.log.3
0 /var/log/user.log.4
4 /var/log/apparmor
4 /var/log/aptitude.1.gz
4 /var/log/aptitude.2.gz
4 /var/log/auth.log.2
4 /var/log/auth.log.2.gz
4 /var/log/auth.log.3
4 /var/log/auth.log.3.gz
4 /var/log/auth.log.4
4 /var/log/auth.log.4.gz
4 /var/log/boot
4 /var/log/boot.log
4 /var/log/btmp.1.gz
4 /var/log/daemon.log.2
4 /var/log/daemon.log.2.gz
4 /var/log/daemon.log.3
4 /var/log/daemon.log.3.gz
4 /var/log/daemon.log.4
4 /var/log/daemon.log.4.gz
4 /var/log/debug.3.gz
4 /var/log/debug.4.gz
4 /var/log/dist-upgrade
4 /var/log/dpkg.log.2.gz
4 /var/log/fontconfig.log
4 /var/log/gufw_log_server.txt
4 /var/log/gufw_log.txt
4 /var/log/jockey.log.10.gz
4 /var/log/jockey.log.3.gz
4 /var/log/jockey.log.4.gz
4 /var/log/jockey.log.5.gz
4 /var/log/jockey.log.6.gz
4 /var/log/jockey.log.7.gz
4 /var/log/jockey.log.8.gz
4 /var/log/kern.log.2.gz
4 /var/log/kern.log.3.gz
4 /var/log/kern.log.4.gz
4 /var/log/lpr.log.2.gz
4 /var/log/lpr.log.3.gz
4 /var/log/lpr.log.4.gz
4 /var/log/messages.2.gz
4 /var/log/messages.3.gz
4 /var/log/messages.4.gz
4 /var/log/news
4 /var/log/pm-powersave.log.2.gz
4 /var/log/pm-powersave.log.3.gz
4 /var/log/pm-powersave.log.4.gz
4 /var/log/speech-dispatcher
4 /var/log/syslog.5.gz
4 /var/log/syslog.6.gz
4 /var/log/syslog.7.gz
4 /var/log/ufw.log.2.gz
4 /var/log/ufw.log.3.gz
4 /var/log/ufw.log.4.gz
4 /var/log/unattended-upgrades
4 /var/log/user.log
4 /var/log/user.log.2.gz
4 /var/log/user.log.3.gz
4 /var/log/user.log.4.gz
4 /var/log/wtmp.1.gz
8 /var/log/faillog
8 /var/log/jockey.log.2.gz
8 /var/log/jockey.log.9.gz
8 /var/log/pm-powersave.log
8 /var/log/pm-powersave.log.1
8 /var/log/user.log.1
12 /var/log/debug.2.gz
12 /var/log/fsck
16 /var/log/auth.log
16 /var/log/dmesg.1.gz
16 /var/log/dmesg.2.gz
16 /var/log/dmesg.3.gz
16 /var/log/dmesg.4.gz
16 /var/log/dpkg.log.3.gz
16 /var/log/dpkg.log.4.gz
16 /var/log/syslog.4
16 /var/log/Xorg.0.log
20 /var/log/Xorg.0.log.old
28 /var/log/popularity-contest.1.gz
28 /var/log/popularity-contest.2.gz
28 /var/log/popularity-contest.3.gz
32 /var/log/dpkg.log
32 /var/log/dpkg.log.1
32 /var/log/jockey.log.1
32 /var/log/popularity-contest.4.gz
32 /var/log/popularity-contest.5.gz
32 /var/log/popularity-contest.6.gz
36 /var/log/cups
40 /var/log/daemon.log
40 /var/log/lastlog
44 /var/log/bootstrap.log
44 /var/log/ConsoleKit
44 /var/log/kern.log.3
44 /var/log/messages.3
44 /var/log/syslog.3
52 /var/log/auth.log.1
56 /var/log/dmesg
56 /var/log/dmesg.0
64 /var/log/wtmp
72 /var/log/apt
72 /var/log/syslog.6
80 /var/log/syslog.5
88 /var/log/gdm
108 /var/log/popularity-contest
108 /var/log/popularity-contest.0
156 /var/log/dpkg.log.5.gz
200 /var/log/debug.1
244 /var/log/kern.log.4
244 /var/log/messages.4
284 /var/log/udev
360 /var/log/daemon.log.1
548 /var/log/kern.log.2
548 /var/log/messages.2
548 /var/log/syslog.2
1028 /var/log/installer
1308 /var/log/samba
2044 /var/log/syslog.7
3448 /var/log/syslog.4.gz
6152 /var/log/syslog.3.gz
7704 /var/log/syslog.2.gz
76932 /var/log/ufw.log
76936 /var/log/kern.log
76936 /var/log/messages
76972 /var/log/syslog
140072 /var/log/syslog.1
482104 /var/log/ufw.log.1
482804 /var/log/messages.1
482984 /var/log/kern.log.1
A seguir vou executar várias vezes o comando ==>sudo logrotate -f /etc/logrotate.conf para vazar a var e aguardar que o colega zekkerj deu uma ideia de uma solução
João Fernando Machado Mão de Ferro