Re: [chrony-users] drift file issue, possible chronyd bug? |
[ Thread Index |
Date Index
| More chrony.tuxfamily.org/chrony-users Archives
]
- To: chrony-users@xxxxxxxxxxxxxxxxxxxx
- Subject: Re: [chrony-users] drift file issue, possible chronyd bug?
- From: Miroslav Lichvar <mlichvar@xxxxxxxxxx>
- Date: Wed, 15 Dec 2021 14:01:09 +0100
- Authentication-results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=mlichvar@xxxxxxxxxx
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1639573278; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=cd714vBtqZLfV7fjE4aApDgdq0TkpMdQ6MOFD091HHs=; b=jOr/qtQ4lAD6HFF4bQyuMG/yVCzjTzMSPwpuCYfLgoCJp1OxyRn9zk6OmLILXzvbhI6dHn BW8unK5kUnYe4A7FT8ywHEDNFeC5f+YIKM5UEbgSRiujq4DnogbdiQjJZHpeoXCuJH0uhq zFTctClYtQawJhm4qnEX7kjKGCd8mI4=
On Wed, Dec 15, 2021 at 01:03:04PM +0100, Tor Rune Skoglund wrote:
> The system is using this drift file: /var/lib/chrony/drift . On this
> particular system, the drift file had had its permissions and type changed
> to this:
>
> #ls -l /var/lib/chrony/drift
> prwx------ 1 root root 0 Nov 28 16:54 /var/lib/chrony/drift
>
> We do not know the reason for this change. The system is not something
> someone can log into, so one theory is a file system error, another is some
> kind of bug in chronyd.
chronyd doesn't create named pipes. Grepping the source code for
mkfifo shows zero instances.
> However, due to the file type and permissions change, on the next reboot,
> the openrc init.d script fails to start chronyd and just hangs forever,
> blocking the boot process from proceeding. The core problem here is of
> course the file change, but we think that chronyd still should not block
> forever due to this, but rather report an error.
chronyd opens files with open(). If it's a named pipe, that will block
until something is written to the pipe as expected. I don't remember
seeing a program that would refuse to open a pipe.
If the system is prone to filesystem corruption, I think it would be
better to simply not use the drift file, or put it on tmpfs.
--
Miroslav Lichvar
--
To unsubscribe email chrony-users-request@xxxxxxxxxxxxxxxxxxxx
with "unsubscribe" in the subject.
For help email chrony-users-request@xxxxxxxxxxxxxxxxxxxx
with "help" in the subject.
Trouble? Email listmaster@xxxxxxxxxxxxxxxxxxxx.