[Eisfair] Frage logrotate - ntp

Marcus Röckrath marcus.roeckrath at gmx.de
Mo Mai 26 11:58:43 CEST 2025


Hallo Andreas,

Andreas Hager wrote:

> eishager 3.4.23 # journalctl -b | grep sda3
> May 23 09:02:36 eishager kernel:  sda: sda1 sda2 sda3 sda4
> May 23 09:02:38 eishager systemd-fsck[256]: /dev/sda3: clean,
> 89215/1871872 files, 690387/4194304 blocks
> May 23 09:02:38 eishager kernel: EXT4-fs (sda3): mounting ext3 file
> system using the ext4 subsystem
> May 23 09:02:38 eishager kernel: EXT4-fs (sda3): mounted filesystem
> 6535fcdd-2a91-4145-94a3-77abcb5b2971 ro with ordered data mode. Quota
> mode: none.
> May 23 09:02:47 eishager kernel: EXT4-fs (sda3): re-mounted
> 6535fcdd-2a91-4145-94a3-77abcb5b2971 r/w. Quota mode: none.

Beim Boot ist ja alles ok, aber

May 25 00:59:13 eishager logrotate-all[25154]: chown: changing ownership 
of '/etc/ntp.conf': Read-only file system

wirklich zu diesem Zeitpunkt nichts im Journal oder messages?

Read-Only-Switch sollte im Log stehen.

>> Was sagt smartctl zur Platte:
>> 
>> smartctl -A /dev/sda
> 
> Gibt´s bei mir nicht.

Paket smartmon installieren.

>> Was steht in /etc/logrotate.d/ntp?
>> 
> eishager 3.4.23 # cat /etc/logrotate.d/ntp
> #------------------------------------------------------------------
> # /etc/logrotate.d/ntp file generated by ntp.sh v1.4.9
> #
> # Do not edit this file, edit /etc/config.d/ntp
> # Creation Date: 2025-05-06 Time: 13:37:58
> #------------------------------------------------------------------
> /var/log/ntp.log {
>      rotate 10
>      weekly
>      compress
>      missingok
>      create 640 ntp ntp
>      notifempty
>      postrotate
>          /etc/init.d/ntp --quiet restart
>      endscript
>      }
> 
> Da sehe ich aus der create-Zeile eine Abweichung bei den Rechten.

Das create bezieht sich auf die Logdatei.

-- 
Gruß Marcus
[eisfair-Team]



Mehr Informationen über die Mailingliste Eisfair