Mailinglist Archive: opensuse (729 mails)

< Previous Next >
Re: [opensuse] Leap second and old suse systems
On 06/08/2015 05:00 AM, cagsm wrote:
Thank you for your hint.

On Fri, Jun 5, 2015 at 10:44 AM, Andrei Borzenkov <arvidjaar@xxxxxxxxx> wrote:
SUSE recommendation is to disable step mode over leap second. See
https://www.suse.com/support/kb/doc.php?id=7016150 for details.

it was even old named xntp stuff, so I was able to add some xntpd parameter (-x)

XNTPD_OPTIONS="-x -u ntp"

in /etc/sysconfig/xntp

and also checked some documentation at:
<http://doc.ntp.org/4.2.0/ntpd.html#cmd>

Thanks again. Regards.


As an exercise, I put together a small script that should work as a root crontab to monitor the calendar until 6/29 (0600) for older systems that are vulnerable to leap second issues. The script would then set the ntp '-x' slew mode option in /etc/sysconfig/ntp, and restart ntpd. The script then monitors the dates until 7/1 (0600), restores the original config and restarts ntpd resuming normal operations.

NOTE: A concern is if sysconfig periodically sweeps /etc/sysconfig running something like 'files' to remove any new or unknown files which would eliminate the original config files. In that case a new backup location for the original ntp sysconfig is needed or simply run the script manually on 6/29 and then again on 7/1.

dnh, all, let me know if you find any issues or needed improvements with the script. I have tried to think of as many corner cases as possible, but experience has shown any one person rarely considers them all.

Check whether your system is one that needs to be set in slew mode to handle the leap second. If it is, test the script against your config and let me know if it does/doesn't work for you. I have tested on an older 11.0 with correct results. I will attempt to attach the script, but if the filter strips it, I'll re-post inline.

--
David C. Rankin, J.D.,P.E.
< Previous Next >