Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

It seems that CentOS does not have a ntp.drift or similar file. In /etc/ntp.conf, it says that you can use /var/lib/ntp/drift as a drift file but this file does not exist. Does CentOS does not consider drifting? Or does it let the user adjust if necessary? Or does it use another mechanism?

share|improve this question
    
Make sure ntpd can write to the directory. If so the file will be created see answer below. –  Nils May 18 '12 at 20:04

2 Answers 2

If the drift file does not exist as ntpd starts, it enters a special mode designed to quickly adapt to the particular timing variances of the current hardware. This takes about 15 minutes, when ntpd begins to continuously track timing and frequency changes, relative to the current server. After an hour or so, ntpd writes the frequency drift factor to the configured drift file, which is then used at subsequent starts to allow ntpd to immediately enter its normal operational state. As it runs, ntpd writes timing information out to the drift file hourly.

So, a brief answer to your question would be "don't worry about it - ntpd should take care of it by itself, if the driftfile directive is specified in the config or on the command line."

share|improve this answer

Also check that the /var/lib/ntp directory (and drift file if it exists) is owned by ntp and has the correct write permisions. I haven't seen this in a while, but...

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.