Tengo un SLOX4.1, que esta basado en SLES8 que hace de servidor de correo entre otras cosas, y me esta sucediendo que el logrotate no me rota lo que es /var/log/mail /var/log/messages ni postgress ni localmessages Si le doy un ls a /var/log obtengo: Openserver:/var/log # ls . Openserver:/var/log # ls -al total 101448 drwxr-xr-x 10 root root 8192 May 5 00:15 . drwxr-xr-x 17 root root 4096 Oct 23 2004 .. -rw------- 1 root root 12288 Jul 30 2004 .faillog.swp -rw-r--r-- 1 root root 7414 May 14 2004 SaX.log -rw-r--r-- 1 root root 19008 May 14 2004 XFree86.0.0.log -rw-r--r-- 1 root root 19008 May 14 2004 XFree86.0.0.log.old -rw-r--r-- 1 root root 20088 May 5 16:39 XFree86.0.log -rw-r--r-- 1 root root 20088 Apr 29 15:13 XFree86.0.log.old -rw-r--r-- 1 root root 16249 May 14 2004 XFree86.99.0.log -rw-r--r-- 1 root root 14482 May 14 2004 XFree86.99.0.log.old drwx------ 2 root root 4096 Sep 29 2004 YaST2 -rw-r--r-- 1 root root 276 Jun 3 2004 antivir.log -rw-r----- 1 root root 0 May 7 2004 boot.log -rw-r--r-- 1 root root 27590 Apr 26 07:30 boot.msg -rw-r--r-- 1 root root 35617 Apr 26 07:27 boot.omsg drwxr-xr-x 2 lp sys 4096 Aug 19 2004 cups -rw------- 1 root root 2424 May 5 16:40 faillog -rw-r--r-- 1 root root 547280 May 5 16:36 groupware.log drwxrwx--- 2 root root 4096 Apr 23 00:15 httpd drwxr-x--- 2 wwwrun root 4096 May 8 2004 jserv -rw-r--r-- 1 root root 116715 May 5 16:40 kdm.log -rw-r--r-- 1 root tty 29492 May 5 16:40 lastlog -rw-r--r-- 1 root root 3870981 May 5 16:47 localmessages -rw-r--r-- 1 root root 296440 Jul 21 2004 localmessages-20040721.bz2 -rw-r--r-- 1 root root 325873 Jul 27 2004 localmessages-20040727.bz2 -rw-r--r-- 1 root root 306951 Jul 31 2004 localmessages-20040731.bz2 -rw-r--r-- 1 root root 318849 Aug 6 2004 localmessages-20040806.bz2 -rw-r--r-- 1 root root 290467 Aug 11 2004 ...... Cientos de localmessages SIN BORRAR -rw-r--r-- 1 root root 340290 Apr 2 00:14 localmessages-20050402.bz2 -rw-r--r-- 1 root root 339063 Apr 7 00:09 localmessages-20050407.bz2 -rw-r--r-- 1 root root 333141 Apr 12 00:14 localmessages-20050412.bz2 -rw-r--r-- 1 root root 361295 Apr 16 00:14 localmessages-20050416.bz2 -rw-r--r-- 1 root root 381335 Apr 23 00:09 localmessages-20050423.bz2 -rw-r--r-- 1 root root 314414 Apr 28 00:12 localmessages-20050428.bz2 -rw-r--r-- 1 root root 317813 May 3 00:10 localmessages-20050503.bz2 drwx------ 2 root root 16384 May 7 2004 lost+found -rw-r--r-- 1 root root 2332818 May 5 16:47 mail -rw-r--r-- 1 root root 443457 Jul 17 2004 mail-20040717.bz2 -rw-r--r-- 1 root root 348039 Jul 20 2004 mail-20040720.bz2 -rw-r--r-- 1 root root 461522 Jul 22 2004 mail-20040722.bz2 -rw-r--r-- 1 root root 391856 Jul 23 2004 mail-20040724.bz2 -rw-r--r-- 1 root root 522240 Jul 28 2004 mail-20040728.bz2 -rw-r--r-- 1 root root 409235 Jul 29 2004 mail-20040730.bz2 -rw-r--r-- 1 root root 361794 Aug 3 2004 mail-20040803.bz2 -rw-r--r-- 1 root root 512512 Aug 6 2004 mail-20040806.bz2 Cientos de mail comprimidos, pero sin borrar -rw-r--r-- 1 root root 385212 Apr 16 00:14 mail-20050416.bz2 -rw-r--r-- 1 root root 518065 Apr 21 00:12 mail-20050421.bz2 -rw-r--r-- 1 root root 386168 Apr 23 00:07 mail-20050423.bz2 -rw-r--r-- 1 root root 524232 Apr 27 00:14 mail-20050427.bz2 -rw-r--r-- 1 root root 394008 Apr 29 00:05 mail-20050429.bz2 -rw-r--r-- 1 root root 523363 May 3 00:09 mail-20050503.bz2 -rw-r--r-- 1 root root 427994 May 5 00:14 mail-20050505.bz2 -rw-r--r-- 1 root root 4014786 May 5 16:47 messages -rw-r--r-- 1 root root 358249 Jul 20 2004 messages-20040720.bz2 -rw-r--r-- 1 root root 350580 Jul 24 2004 messages-20040724.bz2 -rw-r--r-- 1 root root 335063 Jul 29 2004 messages-20040729.bz2 -rw-r--r-- 1 root root 324514 Aug 3 2004 messages-20040803.bz2 Cientos de messages comprimidos pero sin borrar, igual que antes -rw-r--r-- 1 root root 328427 Jan 18 00:15 messages-20050118.bz2 -rw-r--r-- 1 root root 388174 Jan 22 00:15 messages-20050122.bz2 -rw-r--r-- 1 root root 324939 Jan 27 00:15 messages-20050127.bz2 -rw-r--r-- 1 root root 266327 Jan 31 00:15 messages-20050131.bz2 -rw-r--r-- 1 root root 334481 Feb 3 00:15 messages-20050203.bz2 -rw-r--r-- 1 root root 352684 Feb 10 00:15 messages-20050210.bz2 -rw-r--r-- 1 root root 333275 Feb 15 00:15 messages-20050215.bz2 -rw-r--r-- 1 root root 358476 Feb 19 00:15 messages-20050219.bz2 -rw-r--r-- 1 root root 312757 Feb 24 00:15 messages-20050224.bz2 -rw-r--r-- 1 root root 329805 Mar 1 00:15 messages-20050301.bz2 -rw-r--r-- 1 root root 374957 Mar 5 00:15 messages-20050305.bz2 -rw-r--r-- 1 root root 344670 Mar 10 00:15 messages-20050310.bz2 -rw-r--r-- 1 root root 305924 Mar 15 00:15 messages-20050315.bz2 -rw-r--r-- 1 root root 366335 Mar 19 00:15 messages-20050319.bz2 -rw-r--r-- 1 root root 299369 Mar 24 00:15 messages-20050324.bz2 -rw-r--r-- 1 root root 382329 Mar 31 00:15 messages-20050331.bz2 -rw-r--r-- 1 root root 350865 Apr 5 00:15 messages-20050405.bz2 -rw-r--r-- 1 root root 311025 Apr 8 00:15 messages-20050408.bz2 -rw-r--r-- 1 root root 366767 Apr 13 00:15 messages-20050413.bz2 -rw-r--r-- 1 root root 309387 Apr 17 00:15 messages-20050417.bz2 -rw-r--r-- 1 root root 386719 Apr 23 00:15 messages-20050423.bz2 -rw-r--r-- 1 root root 340606 Apr 28 00:15 messages-20050428.bz2 -rw-r--r-- 1 root root 340864 May 3 00:15 messages-20050503.bz2 drwxr-xr-x 2 news news 4096 May 7 2004 news -rw-r--r-- 1 root root 19807 Apr 26 07:33 ntp -rw------- 1 postgres postgres 380401 May 5 00:15 postgresql -rw------- 1 postgres postgres 49863 May 31 2004 postgresql-20040531.gz -rw------- 1 postgres postgres 8932 Aug 5 2004 postgresql-20040805.bz2 -rw------- 1 postgres postgres 7926 Aug 27 2004 postgresql-20040827.bz2 -rw------- 1 postgres postgres 7886 Sep 18 2004 postgresql-20040918.bz2 -rw------- 1 postgres postgres 7653 Oct 10 2004 postgresql-20041010.bz2 -rw------- 1 postgres postgres 8184 Nov 1 2004 postgresql-20041101.bz2 -rw------- 1 postgres postgres 7960 Nov 23 00:15 postgresql-20041123.bz2 -rw------- 1 postgres postgres 7768 Dec 15 00:15 postgresql-20041215.bz2 -rw------- 1 postgres postgres 7607 Jan 7 00:15 postgresql-20050107.bz2 -rw------- 1 postgres postgres 8167 Jan 29 00:15 postgresql-20050129.bz2 -rw------- 1 postgres postgres 8029 Feb 20 00:15 postgresql-20050220.bz2 -rw------- 1 postgres postgres 8206 Mar 14 00:15 postgresql-20050314.bz2 -rw------- 1 postgres postgres 7970 Apr 6 00:15 postgresql-20050406.bz2 -rw------- 1 postgres postgres 8353 Apr 28 00:15 postgresql-20050428.bz2 drwxr-x--- 2 root root 4096 Jan 27 21:25 samba drwxr-xr-x 2 root root 4096 May 5 16:45 sysMonitor -rw-r--r-- 1 root root 72786 Apr 8 07:42 update-messages -rw-r--r-- 1 root root 3845114 May 5 16:47 warn -rw-r--r-- 1 root root 274380 Sep 27 2004 warn-20040928.bz2 -rw-r--r-- 1 root root 277813 Feb 4 23:55 warn-20050205.bz2 -rw-r--r-- 1 root root 1279526 May 5 16:36 webmail.log -rw-rw-r-- 1 root tty 220416 May 5 16:47 wtmp -rw-rw-r-- 1 root tty 9802 Oct 2 2004 wtmp-20041002.bz2 -rw-rw-r-- 1 root tty 9237 Feb 12 00:15 wtmp-20050212.bz2 -rw-r--r-- 1 root root 845 May 27 2004 xdm.errors -rw-r--r-- 1 root root 15 May 14 2004 xvt Si vemos el /etc/logrotate.d tengo varios archivos, pero tengo uno que interesa que es el del syslog y dice asi: Openserver:/var/log # cat /etc/logrotate.d/syslog /var/log/mail /var/log/warn /var/log/messages /var/log/allmessages /var/log/localmessages /var/log/firewall { compress dateext maxage 15 rotate 10 missingok notifempty size +4096k create 644 root root sharedscripts postrotate /etc/init.d/syslog reload endscript } Y si ejecuto logrotate -d /etc/logrotate.conf obtengo lo siguiente: Openserver:/var/log # logrotate -d /etc/logrotate.conf reading config file /etc/logrotate.conf compress_prog is now /usr/bin/bzip2 uncompress_prog is now /usr/bin/bunzip2 including /etc/logrotate.d reading config file syslog reading config info for /var/log/mail /var/log/warn /var/log/messages /var/log/allmessages /var/log/localmessages /var/log/firewall reading config file aaa_base reading config info for /var/log/mgetty.* reading config info for /var/log/vgetty.* reading config info for /var/log/vbox.tty* reading config info for /var/adm/isdn.log reading config info for /var/lib/xdm/xdm-errors reading config info for /var/log/debug reading config info for /var/log/isdn reading config info for /var/log/isdn.log reading config info for /var/log/isdncalls reading config info for /var/log/log.ceptd reading config info for /var/log/samba/log.nmbd reading config info for /var/log/samba/log.smbd reading config info for /var/log/samba/log.winbindd reading config info for /var/log/maillog reading config info for /var/log/ntp reading config info for /var/log/pop3svr.log reading config info for /var/log/pvf.log reading config info for /var/log/rinetd.log reading config info for /var/log/rsyncd.log reading config info for /var/log/wtmp reading config info for /var/log/xdm.errors reading config info for /var/log/xferlog reading config info for /var/log/radius.log reading config info for /var/log/radwatch.log reading config info for /var/log/radwtmp reading config file apache reading config info for /var/log/httpd/access_log reading config info for /var/log/httpd/error_log reading config info for /var/log/httpd/suexec.log reading config info for /var/log/httpd/ssl_request_log reading config info for /var/log/httpd/ssl_engine_log reading config file postgresql reading config info for /var/log/postgresql reading config file groupware reading config info for /var/log/groupware.log reading config info for /var/log/jserv/jserv.log reading config file dyce reading config info for /var/log/dyce.log reading config info for /var/opt/dyce/log/access.log reading config file webmail reading config info for /var/log/webmail.log reading config file ucdsnmp reading config info for /var/log/ucd-snmpd.log Handling 38 logs rotating pattern: /var/log/mail /var/log/warn /var/log/messages /var/log/allmessages /var/log/localmessages /var/log/firewall 4194304 bytes (10 rotations) empty log files are not rotated old logs are removed rotating file /var/log/mail log does not need rotating rotating file /var/log/warn log does not need rotating rotating file /var/log/messages log does not need rotating rotating file /var/log/allmessages file /var/log/allmessages does not exist -- skipping rotating file /var/log/localmessages log does not need rotating rotating file /var/log/firewall file /var/log/firewall does not exist -- skipping running shared postrotate script running script with arg /var/log/mail /var/log/warn /var/log/messages /var/log/allmessages /var/log/localmessages /var/log/firewall : " /etc/init.d/syslog reload " rotating pattern: /var/log/mgetty.* 1048576 bytes (10 rotations) empty log files are not rotated old logs are removed rotating file /var/log/mgetty.* file /var/log/mgetty.* does not exist -- skipping rotating pattern: /var/log/vgetty.* 2097152 bytes (10 rotations) empty log files are not rotated old logs are removed rotating file /var/log/vgetty.* file /var/log/vgetty.* does not exist -- skipping rotating pattern: /var/log/vbox.tty* 1048576 bytes (10 rotations) empty log files are not rotated old logs are removed rotating file /var/log/vbox.tty* file /var/log/vbox.tty* does not exist -- skipping rotating pattern: /var/adm/isdn.log 1048576 bytes (10 rotations) empty log files are not rotated old logs are removed rotating file /var/adm/isdn.log file /var/adm/isdn.log does not exist -- skipping rotating pattern: /var/lib/xdm/xdm-errors 204800 bytes (10 rotations) empty log files are not rotated old logs are removed rotating file /var/lib/xdm/xdm-errors file /var/lib/xdm/xdm-errors does not exist -- skipping rotating pattern: /var/log/debug 1048576 bytes (10 rotations) empty log files are not rotated old logs are removed rotating file /var/log/debug file /var/log/debug does not exist -- skipping rotating pattern: /var/log/isdn 4194304 bytes (10 rotations) empty log files are not rotated old logs are removed rotating file /var/log/isdn file /var/log/isdn does not exist -- skipping rotating pattern: /var/log/isdn.log 4194304 bytes (10 rotations) empty log files are not rotated old logs are removed rotating file /var/log/isdn.log file /var/log/isdn.log does not exist -- skipping rotating pattern: /var/log/isdncalls 1048576 bytes (10 rotations) empty log files are not rotated old logs are removed rotating file /var/log/isdncalls file /var/log/isdncalls does not exist -- skipping rotating pattern: /var/log/log.ceptd 1048576 bytes (10 rotations) empty log files are not rotated old logs are removed rotating file /var/log/log.ceptd file /var/log/log.ceptd does not exist -- skipping rotating pattern: /var/log/samba/log.nmbd 1048576 bytes (10 rotations) empty log files are not rotated old logs are removed rotating file /var/log/samba/log.nmbd file /var/log/samba/log.nmbd does not exist -- skipping rotating pattern: /var/log/samba/log.smbd 1048576 bytes (10 rotations) empty log files are not rotated old logs are removed rotating file /var/log/samba/log.smbd file /var/log/samba/log.smbd does not exist -- skipping rotating pattern: /var/log/samba/log.winbindd 1048576 bytes (10 rotations) empty log files are not rotated old logs are removed rotating file /var/log/samba/log.winbindd file /var/log/samba/log.winbindd does not exist -- skipping rotating pattern: /var/log/maillog 1048576 bytes (10 rotations) empty log files are not rotated old logs are removed rotating file /var/log/maillog file /var/log/maillog does not exist -- skipping rotating pattern: /var/log/ntp 2097152 bytes (10 rotations) empty log files are not rotated old logs are removed rotating file /var/log/ntp log does not need rotating rotating pattern: /var/log/pop3svr.log 1048576 bytes (10 rotations) empty log files are not rotated old logs are removed rotating file /var/log/pop3svr.log file /var/log/pop3svr.log does not exist -- skipping rotating pattern: /var/log/pvf.log 1048576 bytes (10 rotations) empty log files are not rotated old logs are removed rotating file /var/log/pvf.log file /var/log/pvf.log does not exist -- skipping rotating pattern: /var/log/rinetd.log 1048576 bytes (10 rotations) empty log files are not rotated old logs are removed rotating file /var/log/rinetd.log file /var/log/rinetd.log does not exist -- skipping rotating pattern: /var/log/rsyncd.log 1048576 bytes (10 rotations) empty log files are not rotated old logs are removed rotating file /var/log/rsyncd.log file /var/log/rsyncd.log does not exist -- skipping rotating pattern: /var/log/wtmp 409600 bytes (10 rotations) empty log files are not rotated old logs are removed rotating file /var/log/wtmp log does not need rotating rotating pattern: /var/log/xdm.errors 4194304 bytes (10 rotations) empty log files are not rotated old logs are removed rotating file /var/log/xdm.errors log does not need rotating rotating pattern: /var/log/xferlog 4194304 bytes (10 rotations) empty log files are not rotated old logs are removed rotating file /var/log/xferlog file /var/log/xferlog does not exist -- skipping rotating pattern: /var/log/radius.log 1048576 bytes (10 rotations) empty log files are not rotated old logs are removed rotating file /var/log/radius.log file /var/log/radius.log does not exist -- skipping rotating pattern: /var/log/radwatch.log 1048576 bytes (10 rotations) empty log files are not rotated old logs are removed rotating file /var/log/radwatch.log file /var/log/radwatch.log does not exist -- skipping rotating pattern: /var/log/radwtmp 2097152 bytes (10 rotations) empty log files are not rotated old logs are removed rotating file /var/log/radwtmp file /var/log/radwtmp does not exist -- skipping rotating pattern: /var/log/httpd/access_log 4194304 bytes (10 rotations) empty log files are not rotated old logs are removed rotating file /var/log/httpd/access_log log does not need rotating rotating pattern: /var/log/httpd/error_log 1048576 bytes (10 rotations) empty log files are not rotated old logs are removed rotating file /var/log/httpd/error_log log does not need rotating rotating pattern: /var/log/httpd/suexec.log 1048576 bytes (10 rotations) empty log files are not rotated old logs are removed rotating file /var/log/httpd/suexec.log file /var/log/httpd/suexec.log does not exist -- skipping rotating pattern: /var/log/httpd/ssl_request_log 4194304 bytes (10 rotations) empty log files are not rotated old logs are removed rotating file /var/log/httpd/ssl_request_log log does not need rotating rotating pattern: /var/log/httpd/ssl_engine_log 1048576 bytes (10 rotations) empty log files are not rotated old logs are removed rotating file /var/log/httpd/ssl_engine_log log does not need rotating rotating pattern: /var/log/postgresql 1048576 bytes (10 rotations) empty log files are not rotated old logs are removed rotating file /var/log/postgresql log does not need rotating rotating pattern: /var/log/groupware.log 4194304 bytes (99 rotations) empty log files are not rotated old logs are removed rotating file /var/log/groupware.log log does not need rotating rotating pattern: /var/log/jserv/jserv.log 4194304 bytes (99 rotations) empty log files are not rotated old logs are removed rotating file /var/log/jserv/jserv.log log does not need rotating rotating pattern: /var/log/dyce.log 4194304 bytes (99 rotations) empty log files are not rotated old logs are removed rotating file /var/log/dyce.log file /var/log/dyce.log does not exist -- skipping rotating pattern: /var/opt/dyce/log/access.log 4194304 bytes (99 rotations) empty log files are not rotated old logs are removed rotating file /var/opt/dyce/log/access.log file /var/opt/dyce/log/access.log does not exist -- skipping rotating pattern: /var/log/webmail.log 4194304 bytes (99 rotations) empty log files are not rotated old logs are removed rotating file /var/log/webmail.log log does not need rotating rotating pattern: /var/log/ucd-snmpd.log 1048576 bytes (99 rotations) empty log files are not rotated old logs are removed rotating file /var/log/ucd-snmpd.log file /var/log/ucd-snmpd.log does not exist -- skipping Si vemos, dice que /var/log/mail no necesita rotación, y claro que la necesita, no por el espacio porque cuando llega a mas de 4 Mb si lo comprime, pero NO borra los antiguos, y tengo como nivel de rotación a 10 archivos. Que puede estar pasando? Gracias! -- ------------------------------------------------------ Una prensa libre es el gran enemigo de los dictadores. Independientemente de sus abusos, sus debilidades, sus errores. Una prensa libre es la gran aliada y defensora de la democracia. Charlos S. Shapiro Embajador de USA en la Rep. de Venezuela Martes, 20 de Mayo 2003