logrotate no rota borrando mensajes
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
El 2005-05-09 a las 11:43 -0400, Hipolito A. Gonzalez M. escribió:
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
-rw-r--r-- 1 root root 2332818 May 5 16:47 mail
Menos de 4 megas.
-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
¿Cientos? Ahí arriba sólo hay 8, no rotará. ¿O es que hay más? ¿O has recortado el listado? Ah, es eso.
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:
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
...
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
Vale, tiene menos de cuatro megas. Los logs antiguos no los toca hasta que ejecute 10 rotaciones del log en uso - y eso no sucederá hasta que llegue a 4 megas.
rotating file /var/log/warn log does not need rotating
Ídem.
rotating file /var/log/messages log does not need rotating
Ídem.
rotating file /var/log/allmessages file /var/log/allmessages does not exist -- skipping rotating file /var/log/localmessages log does not need rotating
Idem
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.
No los borra porque no toca hacerlo. Es decir, no piensa en hacer la rotación de los comprimidos has el instante que comprima uno.
Que puede estar pasando? Gracias!
Nada. Lo pone en el manual :-p Prueba a cambiar el tamaño a 2 megas, y a ver si rota alguno. -- Saludos Carlos Robinson
Carlos E. R. wrote:
El 2005-05-09 a las 11:43 -0400, Hipolito A. Gonzalez M. escribió:
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
-rw-r--r-- 1 root root 2332818 May 5 16:47 mail
Menos de 4 megas.
Si, todavia no toca, como bien dije, NO BORRA LOS MENSAJES amigo, si esta comprimiendo a llegar a 4 mb
-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
¿Cientos? Ahí arriba sólo hay 8, no rotará. ¿O es que hay más? ¿O has recortado el listado? Ah, es eso.
Lo recorte, porque son cientos, fijate que puse solo los del 20044, pero cada 3 dias mas o menos se hace uno nuevo, si pego todos, el email pasa de los 50 kb. No esta borrando los antiguos..
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:
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
...
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
Vale, tiene menos de cuatro megas. Los logs antiguos no los toca hasta que ejecute 10 rotaciones del log en uso - y eso no sucederá hasta que llegue a 4 megas.
Bueno, tengo mas de 100.....
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.
No los borra porque no toca hacerlo. Es decir, no piensa en hacer la rotación de los comprimidos has el instante que comprima uno.
Que puede estar pasando? Gracias!
Nada. Lo pone en el manual :-p
Prueba a cambiar el tamaño a 2 megas, y a ver si rota alguno.
He probasdo con 10 (como estaba hace como un año), con 4, con 2.... Pero poner tan pequeño hace que casi no se tenga un historial de facil acceso de los ultimos pocos dias. Lo que necesito es que borre al pasar de 10, y esto me ha ocurrido a veces en algunos sistemas, es aleatorio, algunos si, otros no. Ya que el email se ha recortado elimiando un poco del anterio, pego algunas lineas mas: Openserver:/var/log # ls -al total 101056 drwxr-xr-x 10 root root 12288 May 7 17:12 . 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 20034 May 7 17:12 XFree86.0.log -rw-r--r-- 1 root root 20088 May 5 16:39 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 27588 May 7 17:12 boot.msg -rw-r--r-- 1 root root 35715 May 7 17:10 boot.omsg drwxr-xr-x 2 lp sys 4096 Aug 19 2004 cups -rw------- 1 root root 2424 May 7 14:35 faillog -rw-r--r-- 1 root root 553612 May 10 07:06 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 117640 May 7 17:12 kdm.log -rw-r--r-- 1 root tty 29492 May 10 09:21 lastlog -rw-r--r-- 1 root root 1942467 May 10 09:21 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 localmessages-20040811.bz2 -rw-r--r-- 1 root root 280607 Aug 15 2004 localmessages-20040815.bz2 -rw-r--r-- 1 root root 306978 Aug 20 2004 localmessages-20040820.bz2 -rw-r--r-- 1 root root 301031 Aug 25 2004 localmessages-20040825.bz2 -rw-r--r-- 1 root root 283351 Aug 29 2004 localmessages-20040829.bz2 -rw-r--r-- 1 root root 365568 Sep 3 2004 localmessages-20040903.bz2 -rw-r--r-- 1 root root 299195 Sep 8 2004 localmessages-20040908.bz2 -rw-r--r-- 1 root root 359427 Sep 14 2004 localmessages-20040914.bz2 -rw-r--r-- 1 root root 330408 Sep 19 2004 localmessages-20040919.bz2 -rw-r--r-- 1 root root 365073 Sep 24 2004 localmessages-20040924.bz2 -rw-r--r-- 1 root root 352323 Sep 30 2004 localmessages-20040930.bz2 -rw-r--r-- 1 root root 291314 Oct 5 2004 localmessages-20041005.bz2 -rw-r--r-- 1 root root 318676 Oct 9 2004 localmessages-20041009.bz2 -rw-r--r-- 1 root root 363880 Oct 16 2004 localmessages-20041016.bz2 -rw-r--r-- 1 root root 310771 Oct 21 2004 localmessages-20041021.bz2 -rw-r--r-- 1 root root 328579 Oct 26 2004 localmessages-20041026.bz2 -rw-r--r-- 1 root root 306394 Oct 29 2004 localmessages-20041029.bz2 -rw-r--r-- 1 root root 278266 Nov 3 2004 localmessages-20041103.bz2 -rw-r--r-- 1 root root 306758 Nov 8 2004 localmessages-20041108.bz2 -rw-r--r-- 1 root root 365861 Nov 12 00:13 localmessages-20041112.bz2 -rw-r--r-- 1 root root 289891 Nov 17 00:06 localmessages-20041117.bz2 -rw-r--r-- 1 root root 290738 Nov 22 00:14 localmessages-20041122.bz2 -rw-r--r-- 1 root root 335353 Nov 25 23:50 localmessages-20041126.bz2 -rw-r--r-- 1 root root 301778 Dec 1 00:14 localmessages-20041201.bz2 -rw-r--r-- 1 root root 267237 Dec 4 00:14 localmessages-20041204.bz2 -rw-r--r-- 1 root root 296201 Dec 9 00:14 localmessages-20041209.bz2 -rw-r--r-- 1 root root 342653 Dec 15 00:06 localmessages-20041215.bz2 -rw-r--r-- 1 root root 326795 Dec 21 00:14 localmessages-20041221.bz2 -rw-r--r-- 1 root root 347965 Dec 28 00:11 localmessages-20041228.bz2 -rw-r--r-- 1 root root 331092 Jan 4 00:13 localmessages-20050104.bz2 -rw-r--r-- 1 root root 303422 Jan 10 00:00 localmessages-20050110.bz2 -rw-r--r-- 1 root root 356025 Jan 14 23:59 localmessages-20050115.bz2 -rw-r--r-- 1 root root 375411 Jan 21 00:12 localmessages-20050121.bz2 -rw-r--r-- 1 root root 289113 Jan 25 23:56 localmessages-20050126.bz2 -rw-r--r-- 1 root root 285432 Jan 29 00:11 localmessages-20050129.bz2 -rw-r--r-- 1 root root 251802 Feb 2 00:13 localmessages-20050202.bz2 -rw-r--r-- 1 root root 275851 Feb 6 00:13 localmessages-20050206.bz2 -rw-r--r-- 1 root root 312734 Feb 13 00:14 localmessages-20050213.bz2 -rw-r--r-- 1 root root 359389 Feb 18 00:09 localmessages-20050218.bz2 -rw-r--r-- 1 root root 349764 Feb 24 00:12 localmessages-20050224.bz2 -rw-r--r-- 1 root root 295147 Mar 1 00:12 localmessages-20050301.bz2 -rw-r--r-- 1 root root 328327 Mar 5 00:12 localmessages-20050305.bz2 -rw-r--r-- 1 root root 308099 Mar 10 00:09 localmessages-20050310.bz2 -rw-r--r-- 1 root root 354043 Mar 16 00:07 localmessages-20050316.bz2 -rw-r--r-- 1 root root 309008 Mar 21 00:13 localmessages-20050321.bz2 -rw-r--r-- 1 root root 386415 Mar 29 00:12 localmessages-20050329.bz2 -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 -rw-r--r-- 1 root root 365601 May 7 00:01 localmessages-20050507.bz2 drwx------ 2 root root 16384 May 7 2004 lost+found -rw-r--r-- 1 root root 3097120 May 10 09:21 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 -rw-r--r-- 1 root root 434347 Aug 10 2004 mail-20040810.bz2 -rw-r--r-- 1 root root 370326 Aug 12 2004 mail-20040812.bz2 -rw-r--r-- 1 root root 359601 Aug 14 2004 mail-20040814.bz2 -rw-r--r-- 1 root root 518631 Aug 19 2004 mail-20040819.bz2 -rw-r--r-- 1 root root 369648 Aug 21 2004 mail-20040821.bz2 -rw-r--r-- 1 root root 484977 Aug 25 2004 mail-20040825.bz2 -rw-r--r-- 1 root root 393435 Aug 27 2004 mail-20040827.bz2 -rw-r--r-- 1 root root 479222 Aug 31 2004 mail-20040831.bz2 -rw-r--r-- 1 root root 397673 Sep 2 2004 mail-20040902.bz2 -rw-r--r-- 1 root root 352617 Sep 5 2004 mail-20040905.bz2 -rw-r--r-- 1 root root 377729 Sep 8 2004 mail-20040908.bz2 -rw-r--r-- 1 root root 505669 Sep 11 2004 mail-20040911.bz2 -rw-r--r-- 1 root root 445267 Sep 14 2004 mail-20040915.bz2 -rw-r--r-- 1 root root 355675 Sep 17 2004 mail-20040917.bz2 -rw-r--r-- 1 root root 409447 Sep 21 2004 mail-20040921.bz2 -rw-r--r-- 1 root root 364394 Sep 23 2004 mail-20040923.bz2 -rw-r--r-- 1 root root 350862 Sep 24 2004 mail-20040925.bz2 -rw-r--r-- 1 root root 340418 Sep 28 2004 mail-20040928.bz2 -rw-r--r-- 1 root root 381570 Sep 30 2004 mail-20040930.bz2 -rw-r--r-- 1 root root 379443 Oct 3 2004 mail-20041003.bz2 -rw-r--r-- 1 root root 398245 Oct 6 2004 mail-20041006.bz2 -rw-r--r-- 1 root root 514261 Oct 9 2004 mail-20041009.bz2 -rw-r--r-- 1 root root 415491 Oct 14 2004 mail-20041014.bz2 -rw-r--r-- 1 root root 385917 Oct 17 2004 mail-20041017.bz2 -rw-r--r-- 1 root root 409761 Oct 20 2004 mail-20041020.bz2 -rw-r--r-- 1 root root 389800 Oct 22 2004 mail-20041022.bz2 -rw-r--r-- 1 root root 494329 Oct 26 2004 mail-20041026.bz2 -rw-r--r-- 1 root root 447003 Oct 28 2004 mail-20041028.bz2 -rw-r--r-- 1 root root 395468 Oct 30 2004 mail-20041030.bz2 -rw-r--r-- 1 root root 545019 Nov 4 2004 mail-20041104.bz2 -rw-r--r-- 1 root root 406040 Nov 6 2004 mail-20041106.bz2 -rw-r--r-- 1 root root 474827 Nov 10 00:04 mail-20041110.bz2 -rw-r--r-- 1 root root 378923 Nov 12 00:10 mail-20041112.bz2 -rw-r--r-- 1 root root 530120 Nov 16 00:10 mail-20041116.bz2 -rw-r--r-- 1 root root 401046 Nov 18 00:14 mail-20041118.bz2 -rw-r--r-- 1 root root 377045 Nov 21 00:09 mail-20041121.bz2 -rw-r--r-- 1 root root 397761 Nov 24 00:15 mail-20041124.bz2 -rw-r--r-- 1 root root 377366 Nov 26 00:03 mail-20041126.bz2 -rw-r--r-- 1 root root 464653 Nov 30 00:15 mail-20041130.bz2 -rw-r--r-- 1 root root 395272 Dec 2 00:03 mail-20041202.bz2 -rw-r--r-- 1 root root 390572 Dec 5 00:11 mail-20041205.bz2 -rw-r--r-- 1 root root 411584 Dec 8 00:12 mail-20041208.bz2 -rw-r--r-- 1 root root 363441 Dec 10 00:13 mail-20041210.bz2 -rw-r--r-- 1 root root 526131 Dec 15 00:03 mail-20041215.bz2 -rw-r--r-- 1 root root 421037 Dec 18 00:14 mail-20041218.bz2 -rw-r--r-- 1 root root 414416 Dec 22 00:08 mail-20041222.bz2 -rw-r--r-- 1 root root 375603 Dec 26 00:09 mail-20041226.bz2 -rw-r--r-- 1 root root 462602 Dec 30 00:14 mail-20041230.bz2 -rw-r--r-- 1 root root 494484 Jan 5 00:13 mail-20050105.bz2 -rw-r--r-- 1 root root 467342 Jan 8 00:15 mail-20050108.bz2 -rw-r--r-- 1 root root 530497 Jan 13 00:12 mail-20050113.bz2 -rw-r--r-- 1 root root 356116 Jan 16 00:12 mail-20050116.bz2 -rw-r--r-- 1 root root 354454 Jan 19 00:12 mail-20050119.bz2 -rw-r--r-- 1 root root 375541 Jan 21 00:12 mail-20050121.bz2 -rw-r--r-- 1 root root 406428 Jan 25 00:11 mail-20050125.bz2 -rw-r--r-- 1 root root 376035 Jan 27 00:03 mail-20050127.bz2 -rw-r--r-- 1 root root 391047 Jan 29 00:09 mail-20050129.bz2 -rw-r--r-- 1 root root 465409 Feb 2 00:10 mail-20050202.bz2 -rw-r--r-- 1 root root 368509 Feb 4 00:09 mail-20050204.bz2 -rw-r--r-- 1 root root 324995 Feb 8 00:14 mail-20050208.bz2 -rw-r--r-- 1 root root 367369 Feb 10 00:12 mail-20050210.bz2 -rw-r--r-- 1 root root 380631 Feb 12 00:08 mail-20050212.bz2 -rw-r--r-- 1 root root 472986 Feb 16 00:10 mail-20050216.bz2 -rw-r--r-- 1 root root 382929 Feb 17 23:56 mail-20050218.bz2 -rw-r--r-- 1 root root 413525 Feb 22 00:13 mail-20050222.bz2 -rw-r--r-- 1 root root 519335 Feb 25 00:04 mail-20050225.bz2 -rw-r--r-- 1 root root 407855 Mar 1 00:10 mail-20050301.bz2 -rw-r--r-- 1 root root 372451 Mar 3 00:14 mail-20050303.bz2 -rw-r--r-- 1 root root 346435 Mar 5 00:03 mail-20050305.bz2 -rw-r--r-- 1 root root 484662 Mar 9 00:03 mail-20050309.bz2 -rw-r--r-- 1 root root 525823 Mar 12 00:09 mail-20050312.bz2 -rw-r--r-- 1 root root 5082273 Mar 16 00:10 mail-20050316 -rw-r--r-- 1 root root 388040 Mar 18 00:14 mail-20050318.bz2 -rw-r--r-- 1 root root 470254 Mar 22 00:10 mail-20050322.bz2 -rw-r--r-- 1 root root 420261 Mar 26 00:14 mail-20050326.bz2 -rw-r--r-- 1 root root 412939 Mar 29 00:06 mail-20050329.bz2 -rw-r--r-- 1 root root 395259 Mar 31 00:14 mail-20050331.bz2 -rw-r--r-- 1 root root 371716 Apr 2 00:09 mail-20050402.bz2 -rw-r--r-- 1 root root 540031 Apr 6 00:10 mail-20050406.bz2 -rw-r--r-- 1 root root 417321 Apr 8 00:14 mail-20050408.bz2 -rw-r--r-- 1 root root 506092 Apr 12 00:13 mail-20050412.bz2 -rw-r--r-- 1 root root 425095 Apr 14 00:14 mail-20050414.bz2 -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 419475 May 7 00:12 mail-20050507.bz2 -rw-r--r-- 1 root root 3319544 May 10 09:21 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 -rw-r--r-- 1 root root 322917 Aug 7 2004 messages-20040807.bz2 -rw-r--r-- 1 root root 337840 Aug 12 2004 messages-20040812.bz2 -rw-r--r-- 1 root root 268712 Aug 17 2004 messages-20040817.bz2 -rw-r--r-- 1 root root 372081 Aug 21 2004 messages-20040821.bz2 -rw-r--r-- 1 root root 333406 Aug 26 2004 messages-20040826.bz2 -rw-r--r-- 1 root root 341597 Aug 31 2004 messages-20040831.bz2 -rw-r--r-- 1 root root 377176 Sep 4 2004 messages-20040904.bz2 -rw-r--r-- 1 root root 308836 Sep 9 2004 messages-20040909.bz2 -rw-r--r-- 1 root root 320347 Sep 14 2004 messages-20040914.bz2 -rw-r--r-- 1 root root 334091 Sep 18 2004 messages-20040918.bz2 -rw-r--r-- 1 root root 344282 Sep 23 2004 messages-20040923.bz2 -rw-r--r-- 1 root root 304039 Sep 28 2004 messages-20040928.bz2 -rw-r--r-- 1 root root 368356 Oct 2 2004 messages-20041002.bz2 -rw-r--r-- 1 root root 322695 Oct 7 2004 messages-20041007.bz2 -rw-r--r-- 1 root root 326437 Oct 12 2004 messages-20041012.bz2 -rw-r--r-- 1 root root 304998 Oct 17 2004 messages-20041017.bz2 -rw-r--r-- 1 root root 319848 Oct 21 2004 messages-20041021.bz2 -rw-r--r-- 1 root root 382219 Oct 26 2004 messages-20041026.bz2 -rw-r--r-- 1 root root 337996 Oct 29 2004 messages-20041029.bz2 -rw-r--r-- 1 root root 320156 Nov 3 2004 messages-20041103.bz2 -rw-r--r-- 1 root root 323072 Nov 7 2004 messages-20041107.bz2 -rw-r--r-- 1 root root 335599 Nov 11 00:15 messages-20041111.bz2 -rw-r--r-- 1 root root 327272 Nov 16 00:15 messages-20041116.bz2 -rw-r--r-- 1 root root 391768 Nov 20 00:15 messages-20041120.bz2 -rw-r--r-- 1 root root 344730 Nov 25 00:15 messages-20041125.bz2 -rw-r--r-- 1 root root 342263 Nov 30 00:15 messages-20041130.bz2 -rw-r--r-- 1 root root 302126 Dec 3 00:15 messages-20041203.bz2 -rw-r--r-- 1 root root 338158 Dec 8 00:15 messages-20041208.bz2 -rw-r--r-- 1 root root 309795 Dec 12 00:15 messages-20041212.bz2 -rw-r--r-- 1 root root 356563 Dec 17 00:15 messages-20041217.bz2 -rw-r--r-- 1 root root 290705 Dec 22 00:15 messages-20041222.bz2 -rw-r--r-- 1 root root 317336 Dec 28 00:15 messages-20041228.bz2 -rw-r--r-- 1 root root 284619 Jan 2 00:15 messages-20050102.bz2 -rw-r--r-- 1 root root 325019 Jan 7 00:15 messages-20050107.bz2 -rw-r--r-- 1 root root 351118 Jan 13 00:15 messages-20050113.bz2 -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 -rw-r--r-- 1 root root 300986 May 6 00:15 messages-20050506.bz2 drwxr-xr-x 2 news news 4096 May 7 2004 news -rw-r--r-- 1 root root 20038 May 7 17:15 ntp -rw------- 1 postgres postgres 618922 May 10 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 10 09:15 sysMonitor -rw-r--r-- 1 root root 72786 Apr 8 07:42 update-messages -rw-r--r-- 1 root root 3906816 May 10 09:20 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 1296216 May 10 07:00 webmail.log -rw-rw-r-- 1 root tty 238080 May 10 09:21 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 Vistes amigo? Ni con el de postgresql lo hace, esta en 10 y lleva como 12 -- ------------------------------------------------------ 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
El 2005-05-10 a las 09:28 -0400, Hipolito A. Gonzalez M. escribió:
Que puede estar pasando? Gracias!
Nada. Lo pone en el manual :-p
Prueba a cambiar el tamaño a 2 megas, y a ver si rota alguno.
He probasdo con 10 (como estaba hace como un año), con 4, con 2.... Pero poner tan pequeño hace que casi no se tenga un historial de facil acceso de los ultimos pocos dias. Lo que necesito es que borre al pasar de 10, y esto me ha ocurrido a veces en algunos sistemas, es aleatorio, algunos si, otros no.
A ver. Dije que no el programa no mira siquiera si existen logs antiguos hasta el instante en que el actual pasa de cuatro megas y lo comprime. Justo en ese instante es cuando debe mirar si hay 10 o 100 logs antiguos. Por tanto cuando tu ahora ejecutas "logrotate -d /etc/logrotate.conf" no ocurre nada. Por eso te dije que pusieras el límite temporalmente a 2 megas (no dos ficheros) y ejecutaras logrotate, a ver si funciona.
Ya que el email se ha recortado elimiando un poco del anterio, pego algunas lineas mas:
No me hacen falta.
Vistes amigo?
Ni con el de postgresql lo hace, esta en 10 y lleva como 12
Poprque el log tiene menos de 1048576 bytes. Hasta que no llege a ese limite, importa un bledo que haya 12 antiguos. -- Saludos Carlos Robinson
Carlos E. R. wrote:
El 2005-05-10 a las 09:28 -0400, Hipolito A. Gonzalez M. escribió:
Que puede estar pasando? Gracias!
Nada. Lo pone en el manual :-p
Prueba a cambiar el tamaño a 2 megas, y a ver si rota alguno.
He probasdo con 10 (como estaba hace como un año), con 4, con 2.... Pero poner tan pequeño hace que casi no se tenga un historial de facil acceso de los ultimos pocos dias. Lo que necesito es que borre al pasar de 10, y esto me ha ocurrido a veces en algunos sistemas, es aleatorio, algunos si, otros no.
A ver.
Dije que no el programa no mira siquiera si existen logs antiguos hasta el instante en que el actual pasa de cuatro megas y lo comprime. Justo en ese instante es cuando debe mirar si hay 10 o 100 logs antiguos. Por tanto cuando tu ahora ejecutas "logrotate -d /etc/logrotate.conf" no ocurre nada.
Por eso te dije que pusieras el límite temporalmente a 2 megas (no dos ficheros) y ejecutaras logrotate, a ver si funciona.
yo te entiendo perfectamente, pero fijate, cuando pasa de los 4 megas el si lo comprime, por cierto, lo hizo hace pocos minutos.. fijate... Openserver:/var/log # ls -al mai* -rw-r--r-- 1 root root 803178 May 11 09:50 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 -rw-r--r-- 1 root root 434347 Aug 10 2004 mail-20040810.bz2 -rw-r--r-- 1 root root 370326 Aug 12 2004 mail-20040812.bz2 -rw-r--r-- 1 root root 359601 Aug 14 2004 mail-20040814.bz2 -rw-r--r-- 1 root root 518631 Aug 19 2004 mail-20040819.bz2 ..... continua mas abajo -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 419475 May 7 00:12 mail-20050507.bz2 -rw-r--r-- 1 root root 444113 May 11 00:13 mail-20050511.bz2 Mira el ultimo, lo hizo hoy a las 00:12 GMT -4. Es decir, si hace la compresion cuando pasa de 4 megas! Voy a pner eso en 500 bytes y hago la prueba, te lo mando aqui abajo
Ya que el email se ha recortado elimiando un poco del anterio, pego algunas lineas mas:
No me hacen falta.
Vistes amigo?
Ni con el de postgresql lo hace, esta en 10 y lleva como 12
Poprque el log tiene menos de 1048576 bytes. Hasta que no llege a ese limite, importa un bledo que haya 12 antiguos.
bueno, aqui voy con 500 Kb, ya que el mail de ahorita tiene 800 Kb Openserver:/etc/logrotate.d # 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 512000 bytes (10 rotations) empty log files are not rotated old logs are removed rotating file /var/log/mail log needs rotating glob finding old rotated logs failed renaming /var/log/mail to /var/log/mail-20050511 creating new log mode = 0644 uid = 0 gid = 0 new log /var/log/mail-20050511 does not exist rotating file /var/log/warn log needs rotating glob finding old rotated logs failed renaming /var/log/warn to /var/log/warn-20050511 creating new log mode = 0644 uid = 0 gid = 0 new log /var/log/warn-20050511 does not exist rotating file /var/log/messages log needs rotating glob finding old rotated logs failed renaming /var/log/messages to /var/log/messages-20050511 creating new log mode = 0644 uid = 0 gid = 0 new log /var/log/messages-20050511 does not exist rotating file /var/log/allmessages file /var/log/allmessages does not exist -- skipping rotating file /var/log/localmessages log needs rotating glob finding old rotated logs failed renaming /var/log/localmessages to /var/log/localmessages-20050511 creating new log mode = 0644 uid = 0 gid = 0 new log /var/log/localmessages-20050511 does not exist 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 (10 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 (10 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 Fijate que en donde puse 500 KBytes me dice que si necesita rotacion, si lo hace Pero no borra los anteriores!!!! Porque anoche lo hizo con 4 Mb, comprimio, creo uno nuevo, pero no borro los anteriores. Es de lo mas raro! -- ------------------------------------------------------ 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
El 2005-05-11 a las 10:01 -0400, Hipolito A. Gonzalez M. escribió:
Es decir, si hace la compresion cuando pasa de 4 megas!
Voy a pner eso en 500 bytes y hago la prueba, te lo mando aqui abajo
Vamos a verlo.
rotating pattern: /var/log/mail /var/log/warn /var/log/messages /var/log/allmessages /var/log/localmessages /var/log/firewall 512000 bytes (10 rotations) empty log files are not rotated old logs are removed rotating file /var/log/mail log needs rotating glob finding old rotated logs failed <===========
Ese es el problema. Es un bug, en mi opinión. Prueba con la opción "-v", a ver si te dice más. Incluso un fsck, por si las moscas.
Fijate que en donde puse 500 KBytes me dice que si necesita rotacion, si lo hace Pero no borra los anteriores!!!! Porque anoche lo hizo con 4 Mb, comprimio, creo uno nuevo, pero no borro los anteriores. Es de lo mas raro!
Una curiosidad. ¿Estás trabajando a partir de un login como root, o has hecho "su -"? Tengo la sospecha de que rotate falla en el segundo caso. Si todo falla, y siendo una SLES8, que si no me equivoco tiene contrato de mantenimiento, debes reportarlo y que SuSE te responda, como es su obligación. -- Saludos Carlos Robinson
Carlos E. R. wrote:
El 2005-05-11 a las 10:01 -0400, Hipolito A. Gonzalez M. escribió:
Es decir, si hace la compresion cuando pasa de 4 megas!
Voy a pner eso en 500 bytes y hago la prueba, te lo mando aqui abajo
Vamos a verlo.
rotating pattern: /var/log/mail /var/log/warn /var/log/messages /var/log/allmessages /var/log/localmessages /var/log/firewall 512000 bytes (10 rotations) empty log files are not rotated old logs are removed rotating file /var/log/mail log needs rotating glob finding old rotated logs failed <===========
Ese es el problema. Es un bug, en mi opinión. Prueba con la opción "-v", a ver si te dice más. Incluso un fsck, por si las moscas.
wowww, eso me tiene super cabezon!!!! Que sea un bug, que malo....
Fijate que en donde puse 500 KBytes me dice que si necesita rotacion, si lo hace Pero no borra los anteriores!!!! Porque anoche lo hizo con 4 Mb, comprimio, creo uno nuevo, pero no borro los anteriores. Es de lo mas raro!
Una curiosidad. ¿Estás trabajando a partir de un login como root, o has hecho "su -"? Tengo la sospecha de que rotate falla en el segundo caso.
como root como tal!!! Nada de su
Si todo falla, y siendo una SLES8, que si no me equivoco tiene contrato de mantenimiento, debes reportarlo y que SuSE te responda, como es su obligación.
Sera, en realidad es un SLOX4.1 que esta basado en SLES8 Antes de interntar cualquier cosa por fuera, preguntar a ver si yo tenia el error Ahora, ese equipo va para dos años de instalado, y es raro que en ninguna de la actualizaciones se haya acomodado!
-- ------------------------------------------------------ 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
El 2005-05-12 a las 12:34 -0400, Hipolito A. Gonzalez M. escribió:
Ese es el problema. Es un bug, en mi opinión. Prueba con la opción "-v", a ver si te dice más. Incluso un fsck, por si las moscas.
wowww, eso me tiene super cabezon!!!! Que sea un bug, que malo....
Ejecutalo una vez, cuando haya algo que rotar, con la opción -v, para ver si dice algo más. Y haz también un fsck de la partición, por si las moscas.
Si todo falla, y siendo una SLES8, que si no me equivoco tiene contrato de mantenimiento, debes reportarlo y que SuSE te responda, como es su obligación.
Sera, en realidad es un SLOX4.1 que esta basado en SLES8 Antes de interntar cualquier cosa por fuera, preguntar a ver si yo tenia el error
No sigo la pista de las diferentes versiones de SuSE.
Ahora, ese equipo va para dos años de instalado, y es raro que en ninguna de la actualizaciones se haya acomodado!
Tienes logs comprimidos del 17/Jul/2004, incluso alguno de mayo (postgres). Lo que no se es si los que no están (anteriores) es porque hasta entonces funcionaba, o porque se borraron manualmente. Mira por esas fechas si se instaló algún parche al logrotate (en la 9.3 es en /var/lib/YaST2/you/mnt/i386/update/9.3/patches/). -- Saludos Carlos Robinson
Carlos E. R. wrote:
El 2005-05-12 a las 12:34 -0400, Hipolito A. Gonzalez M. escribió:
Ese es el problema. Es un bug, en mi opinión. Prueba con la opción "-v", a ver si te dice más. Incluso un fsck, por si las moscas.
wowww, eso me tiene super cabezon!!!! Que sea un bug, que malo....
Escale esto al soporte de suse, por ser productos enterprise y tener pago al dia el soporte! Me hicieron que les mandara un strace del comando, si a alguno le interesa lo que me pidieronm, a la orden! -- ------------------------------------------------------ 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
El 2005-05-16 a las 14:48 -0400, Hipolito A. Gonzalez M. escribió:
Escale esto al soporte de suse, por ser productos enterprise y tener pago al dia el soporte! Me hicieron que les mandara un strace del comando, si a alguno le interesa lo que me pidieronm, a la orden!
Ah, si, conozco la herramienta. No te dije nada porque ver eso a mi probablemente no me serviría de nada, no soy el desarrollador de eso. Aunque algunas veces me ha servido para comprobar cosas raras. -- Saludos Carlos Robinson
Hola amigos, tengo un desanimo con mi querida empresa SuSE Os cuento. Se acuerdan del problema del logrotate, bueno, es un servidor enterprise, el cual uno paga un realero al año para la solucion de problemas y demas, y les mando esa pregunta a SuSE y miren su respuesta Dear Mr Gonzalez, Thank you for your enquiry to Novell Support. You wrote: [...]
I have a SLOX 4.1 with logrotate, but logrotate is compressing the files but is not deleting the old files (10).
[...] At this point I have to inform you about the following: The configuration of "logrotate" unfortunately is not covered by the maintenance support The installation and maintenance support included with your product covers basic product installation
Eso me parece una burla, uno no paga 1000 euros para un soporte de instalacion QUE BOLAS! Perdon por la expresión! -- ------------------------------------------------------ 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
El 2005-05-17 a las 10:44 -0400, Hipolito A. Gonzalez M. escribió:
Hola amigos, tengo un desanimo con mi querida empresa SuSE Os cuento. Se acuerdan del problema del logrotate, bueno, es un servidor enterprise, el cual uno paga un realero al año para la solucion de problemas y demas, y les mando esa pregunta a SuSE y miren su respuesta
...
The configuration of "logrotate" unfortunately is not covered by the maintenance support
The installation and maintenance support included with your product covers basic product installation
¿Soporte de instalación unicamente, por mil euros al año? No lo entiendo. A no ser... a no ser, que leyendo entre lineas, digan que hay un error de configuración. Habrá que revisarla, quizás rehacerla entera (ponla por defecto desde el rpm), y si sigue fallando, insistir en que no es un problema de configuración de logrotate, sino un bug. -- Saludos Carlos Robinson
Carlos E. R. wrote:
El 2005-05-17 a las 10:44 -0400, Hipolito A. Gonzalez M. escribió:
Hola amigos, tengo un desanimo con mi querida empresa SuSE Os cuento. Se acuerdan del problema del logrotate, bueno, es un servidor enterprise, el cual uno paga un realero al año para la solucion de problemas y demas, y les mando esa pregunta a SuSE y miren su respuesta
...
The configuration of "logrotate" unfortunately is not covered by the maintenance support
The installation and maintenance support included with your product covers basic product installation
¿Soporte de instalación unicamente, por mil euros al año? No lo entiendo.
A no ser... a no ser, que leyendo entre lineas, digan que hay un error de configuración. Habrá que revisarla, quizás rehacerla entera (ponla por defecto desde el rpm), y si sigue fallando, insistir en que no es un problema de configuración de logrotate, sino un bug.
No es de configuracion, el logrotate lo unico que tiene modificado es quemantenga 10 en vea de 99 y 30 dias en vez de 365. En otro email me dicen que el logrotate no esta hecho por ellos Me desanima mucho eso! El mantenimiento del SLOX son 1300 dolares, como 1000 euros!!!! Y lo peor, lo he renovado como 3 veces ya! PAra la instalacion estoy yo, soy el consultor! -- ------------------------------------------------------ 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
El 2005-05-17 a las 19:28 -0400, Hipolito A. Gonzalez M. escribió:
No es de configuracion, el logrotate lo unico que tiene modificado es quemantenga 10 en vea de 99 y 30 dias en vez de 365.
Prueba a reponerlo de todos modos. Tus logs tienen más de 365 dias. Si no, lo único que se me ocurre es compilar e instalar otra versión, la del suse normal 9.3. Pero eso debe romper el soporte, imagino.
En otro email me dicen que el logrotate no esta hecho por ellos Me desanima mucho eso!
Desde luego, es desanimante. Ya sabemos que no lo han hecho ellos, pero... ¿para que rayos vamos a pagarles ese dinero si luego al primer problema escurren el bulto?
El mantenimiento del SLOX son 1300 dolares, como 1000 euros!!!! Y lo peor, lo he renovado como 3 veces ya! PAra la instalacion estoy yo, soy el consultor!
Dan ganas de mandarles a paseo. ¿Tendrán un defensor del cliente? -- Saludos Carlos Robinson
participants (2)
-
Carlos E. R.
-
Hipolito A. Gonzalez M.