Re: [chrony-dev] chronyd and hwclock |
[ Thread Index |
Date Index
| More chrony.tuxfamily.org/chrony-dev Archives
]
- To: chrony-dev@xxxxxxxxxxxxxxxxxxxx
- Subject: Re: [chrony-dev] chronyd and hwclock
- From: Dustin Marquess <jailbird@xxxxxxx>
- Date: Sat, 22 Feb 2020 22:07:32 -0600
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fdf-net.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=WqLKM7DUoIN5v9jV6w+qXr6aqGjRRC0IL6LGawos3tk=; b=BVWfb3WQCs1rAV0vfH9BSP6wxckUlxO8zl/+mMqv5wL0jg29fd1I3UrFdFLFV8VNTP XpjUCM9praoQJIgUsCTlw13wcinbp0f8Ub6mPB2KmkfpkZOmK1doQSL5FTvyAhzox+g4 YKdzWi7NBMmF12ZLce2yHnI/44kfTXB05sbG628Q/2rfKC0Om7shpLCQDG90BS570Y/q PzHF3GpAFoyWi3qPPP7lBmZD53q2yH6OxW4cmRXAOPZQskOB0QBCnqKqYjY6byErTRoA OHbrpIEEPT4GNBivkBYM/6c48RY90iSGG9eZPd4+Yd84wasQ4JTlPnRq7h0WPB+2W67Y 45fA==
I'm guessing you have the rtcsync option enabled in chrony.conf. That
probably is what is doing it.
-Dustin
On Sat, Feb 22, 2020 at 7:15 PM Bill Unruh <unruh@xxxxxxxxxxxxxx> wrote:
>
> If I run chronyc, I get the following from hwclock
>
> [root]>hwclock --verbose
> hwclock from util-linux 2.33.2
> System Time: 1582419894.572200
> Trying to open: /dev/rtc0
> No usable clock interface found.
> hwclock: Cannot access the Hardware Clock via any known method.
>
> Does chronyd purposely block access to the hardware clock?
>
> cat /sys/class/rtc/rtc0/time
> does give the rtc time as does the date file. So the hardware clock is
> running.
> Doing an strace on hwclock while chrony is running gives
> openat(AT_FDCWD, "/dev/rtc0", O_RDONLY) = -1 EBUSY (Device or resource busy)
>
> so I presume that it is chrony that is blocking rtc0.
>
> Is that on purpose? Or could it be opened when chronyd wants to read or write
> the rtc, and closed otherwise. (after all, after the first millisecond, chrony
> does not use the hardware clock, except with explicit reads)
>
>
> William G. Unruh __| Canadian Institute for|____ Tel: +1(604)822-3273
> Physics&Astronomy _|___ Advanced Research _|____ Fax: +1(604)822-5324
> UBC, Vancouver,BC _|_ Program in Cosmology |____ unruh@xxxxxxxxxxxxxx
> Canada V6T 1Z1 ____|____ and Gravity ______|_ www.theory.physics.ubc.ca/
>
> --
> To unsubscribe email chrony-dev-request@xxxxxxxxxxxxxxxxxxxx with "unsubscribe" in the subject.
> For help email chrony-dev-request@xxxxxxxxxxxxxxxxxxxx with "help" in the subject.
> Trouble? Email listmaster@xxxxxxxxxxxxxxxxxxxx.
>
--
To unsubscribe email chrony-dev-request@xxxxxxxxxxxxxxxxxxxx with "unsubscribe" in the subject.
For help email chrony-dev-request@xxxxxxxxxxxxxxxxxxxx with "help" in the subject.
Trouble? Email listmaster@xxxxxxxxxxxxxxxxxxxx.