[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Logrotate-Fehlermeldung von nmbd jeden Sonntag



* Stefan Baur <newsgroups.mail2@stefanbaur.de> [2014-07-08 14:20 +0200]:

> Hallo,
> 
> ich bekomme gerade jeden Sonntag eine Mail von cron:
> 
> /etc/cron.daily/logrotate:
> gzip: stdin: file size changed while zipping

Das ist nur eine Warnung. Kannst Du Englisch?

[...]

> compressing log with: /bin/gzip
> gzip: stdin: file size changed while zipping
> removing old log /var/log/samba/log.nmbd.8.gz

Das logrotate wird nur wöchentlich durchgeführt. Bei Dir wohl
Sonntags. Das kannst Du in /etc/cron.daily/logrotate bzw. gleich in
/etc/logrotate.conf nachlesen.
                 weekly = wöchentlich

> An den restlichen Wochentagen erscheint dagegen das fehlerlose

> rotating pattern: /var/log/samba/log.nmbd  weekly (7 rotations)
> empty log files are not rotated, old logs are removed
> considering log /var/log/samba/log.nmbd
>   log does not need rotating
> not running postrotate script, since no logs were rotated
> 
> Was ist da Sonntags los, dass der logrotate nicht klappt? Wie kann man
> das debuggen?

Das logrotate funktionert bestens. Da die letzte aktive log.nmbd
während des laufenden Cronjobs (Komprimierung) geändert wird, meldet
cron/gzip die Warnung. Die Dateiänderung wird u.a. durch NETBios
Anfragen einer Windows Maschine o.ä. getätigt. Ein Neustart von
samba hat die gleiche Wirkung.

Elimar
-- 
 Obviously the human brain works like a computer.
  Since there are no stupid computers humans can't be stupid.
  There are just a few running with Windows or even CE ;-)


Reply to: