public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: staticsafe <me@staticsafe.ca>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Server system date synchronizaion
Date: Thu, 25 Apr 2013 19:57:07 -0400	[thread overview]
Message-ID: <5179C2D3.7080204@staticsafe.ca> (raw)
In-Reply-To: <5179C140.3070902@gmail.com>

On 4/25/2013 19:50, Alan McKinnon wrote:
> On 26/04/2013 01:42, William Kenworthy wrote:
>> Does anyone know a good guide to using time sync in VM's, for both
>> windows and linux (gentoo) guests using libvirt?  Especially for guests
>> that are resumed, or the whole virtualisation system is hibernated? (ntp
>> refuses to resync after guest pause/save/restore/resume (known problem),
>> even with "tinker panic 0"
> 
> 
> That's not a bug, it's by design.
> 
> If ntpd detects the clock is out by more than X seconds [1], it will not
> try to correct the difference, concluding that something is wrong and a
> human must decide. It can't easily tell the difference between a resumed
> guest (or even that it was resumed at all) and a severe problem.
> 
> We fixed this by taking the easy route of least resistance;
> 
> 1. run ntpdate on startup/restart once before ntpd starts
> 2. start ntpd as normal
> 3. a colleague wrote a $MAGIC_HOOK to detect resumed guests that runs
> ntpdate once
> 
> True, it's a brutal solution and uses a baseball bat where some finesse
> might be less ugly, but it suits our needs just fine.
> 
> [1] I forget what X is and am too lazy to look it up. Is it 30 seconds
> or thereabouts?
> 
> 

"When first started, the daemon normally polls the servers listed in the
configuration file at 64-s intervals. In order to allow a sufficient
number of samples for the NTP algorithms to reliably discriminate
between correctly operating servers and possible intruders, at least
four valid messages from the majority of servers and peers listed in the
configuration file is required before the daemon can set the local
clock. However, if the difference between the client time and server
time is greater than the panic threshold, which defaults to 1000 s, the
daemon will send a message to the system log and shut down without
setting the clock." [0]

[0] - http://doc.ntp.org/4.1.1/debug.htm
-- 
staticsafe
O< ascii ribbon campaign - stop html mail - www.asciiribbon.org
Please don't top post - http://goo.gl/YrmAb
Don't CC me! I'm subscribed to whatever list I just posted on.


  reply	other threads:[~2013-04-25 23:57 UTC|newest]

Thread overview: 47+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-04-25 14:33 [gentoo-user] Server system date synchronizaion Nick Khamis
2013-04-25 14:39 ` Dale
2013-04-25 17:24   ` Nilesh Govindrajan
2013-04-25 23:48     ` Dale
2013-04-25 14:40 ` Michael Mol
2013-04-25 14:46   ` Tanstaafl
2013-04-25 17:05     ` Michael Mol
2013-04-25 15:03   ` Nick Khamis
2013-04-25 15:02 ` Tanstaafl
2013-04-25 15:07   ` Nick Khamis
2013-04-25 23:42     ` William Kenworthy
2013-04-25 23:50       ` Alan McKinnon
2013-04-25 23:57         ` staticsafe [this message]
2013-04-26  0:25           ` William Kenworthy
2013-04-25 17:10   ` Michael Mol
2013-04-26 14:10 ` Joseph
2013-04-26 14:52   ` Jarry
2013-04-26 15:27     ` Nick Khamis
2013-04-26 15:41       ` Alan McKinnon
2013-04-26 15:54         ` Nick Khamis
2013-04-26 16:44           ` Alan McKinnon
2013-04-26 17:11             ` Nick Khamis
2013-04-26 20:33               ` Alan McKinnon
2013-04-26 21:28                 ` Nick Khamis
2013-04-27 15:06                   ` Alan McKinnon
2013-04-26 18:36         ` Stroller
2013-04-26 20:39           ` Alan McKinnon
2013-04-26 18:54 ` Paul Hartman
2013-04-26 20:41   ` Alan McKinnon
2013-04-26 20:46     ` [gentoo-user] Re[2]: " the guard
2013-04-26 20:54       ` Alan McKinnon
2013-04-26 21:02         ` [gentoo-user] Re[2]: " the guard
2013-04-26 21:10           ` Alan McKinnon
2013-04-26 21:43             ` Neil Bothwick
2013-04-27  1:20               ` Peter Humphrey
2013-04-27  3:19                 ` William Kenworthy
2013-04-27  3:44                 ` Andrew Lowe
2013-04-27 15:15                   ` Alan McKinnon
2013-04-27 17:45                     ` Neil Bothwick
2013-04-27  9:07                 ` [gentoo-user] Re[2]: [gentoo-user] Re[2]: " Neil Bothwick
2013-04-27 15:09                 ` Alan McKinnon
2013-04-27 17:48               ` Alan McKinnon
2013-04-27 16:24             ` Tanstaafl
2013-04-27 16:33               ` Alan McKinnon
2013-04-27 17:48               ` Neil Bothwick
2013-04-26 22:11         ` Paul Hartman
2013-04-27 15:27           ` Alan McKinnon

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5179C2D3.7080204@staticsafe.ca \
    --to=me@staticsafe.ca \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox