Chez moi, /var/log occupe 2,.1G et /var/cache occupe 1,3G ! C'est quoi, ce bordel ?
[root@localhost ~]# df -h
Sys. de fichiers Taille Utilisé Dispo Uti% Monté sur
devtmpfs 2,0G 0 2,0G 0% /dev
tmpfs 2,0G 540K 2,0G 1% /dev/shm
tmpfs 2,0G 1,3M 2,0G 1% /run
tmpfs 2,0G 0 2,0G 0% /sys/fs/cgroup
/dev/sda2 20G 15G 3,8G 80% /
tmpfs 2,0G 44K 2,0G 1% /tmp
/dev/sda5 20G 9,2G 9,0G 51% /home
/dev/sdb7 56G 48G 7,1G 88% /run/media/fifi/WD500-3
/dev/sdb8 100G 42G 59G 42% /WD500-4
tmpfs 396M 0 396M 0% /run/user/990
tmpfs 396M 24K 396M 1% /run/user/1000
[root@localhost ~]#
[root@localhost ~]# du -sh /* 2>/dev/null
0 /bin
188M /boot
540K /dev
26M /etc
9,2G /home
459M /iso
0 /lib
0 /lib64
16K /lost+found
4,0K /media
4,0K /mnt
4,0K /opt
0 /proc
68M /root
48G /run
0 /sbin
4,0K /srv
0 /sys
12K /tmp
9,4G /usr
4,3G /var
4,0K /WD500-3
42G /WD500-4
[root@localhost ~]# du -sh /var/*
4,0K /var/account
4,0K /var/adm
1,3G /var/cache
4,0K /var/crash
16K /var/db
8,0K /var/empty
4,0K /var/games
4,0K /var/gopher
12K /var/kerberos
376M /var/lib
4,0K /var/local
0 /var/lock
2,1G /var/log
0 /var/mail
4,0K /var/nis
4,0K /var/opt
4,0K /var/preserve
0 /var/run
473M /var/spool
30M /var/tmp
4,0K /var/yp
[root@localhost ~]#
logrotate est configuré comme suit :
[root@localhost ~]# cat /etc/logrotate.conf
# see "man logrotate" for details
# rotate log files weekly
weekly
# keep 4 weeks worth of backlogs
rotate 4
# create new (empty) log files after rotating old ones
create
# use date as a suffix of the rotated file
dateext
# uncomment this if you want your log files compressed
#compress
# RPM packages drop log rotation information into this directory
include /etc/logrotate.d
# no packages own wtmp and btmp -- we'll rotate them here
/var/log/wtmp {
monthly
create 0664 root utmp
minsize 1M
rotate 1
}
/var/log/btmp {
missingok
monthly
create 0600 root utmp
rotate 1
}
# system-specific logs may be also be configured here.
[root@localhost ~]#
Il y a quelque chose à changer dans cette configuration de logratate ?