I'm having problems with the time on one of my computers. It's loosing nearly 4 minute per hour. I installed the ntp program, but for some reason it won't work on this computer (a fresh install of Ubuntu 11.04 32bit).
The defaults didn't work the same as my other computers. I used the command to stop apparmor (sudo invoke-rc.d apparmor teardown) in case that was the problem. As far as I know, no firewall is started by default. I checked and couldn't find any.
My /etc/ntp.conf file is exactly as it is on the machine that is working:
egrep -v "^#|^$" /etc/ntp.conf
Code:
driftfile /var/lib/ntp/ntp.drift
statistics loopstats peerstats clockstats
filegen loopstats file loopstats type day enable
filegen peerstats file peerstats type day enable
filegen clockstats file clockstats type day enable
server 0.ubuntu.pool.ntp.org
server 1.ubuntu.pool.ntp.org
server 2.ubuntu.pool.ntp.org
server 3.ubuntu.pool.ntp.org
server ntp.ubuntu.com
restrict -4 default kod notrap nomodify nopeer noquery
restrict -6 default kod notrap nomodify nopeer noquery
restrict 127.0.0.1
restrict ::1
After a few minutes the machine that works will have an out put of the command “ntpq -p” with:
Code:
remote refid st t when poll reach delay offset jitter
==============================================================================
*69.50.219.51 128.138.188.172 2 u 1 64 37 124.878 -8.041 40.524
+vf1.bbnx.net 128.4.1.1 2 u 3 64 37 72.858 -6.568 2.455
+abyss.simplysam 69.36.224.15 2 u - 64 37 119.258 -4.199 1.423
-ntp.sunflower.c 128.206.12.130 3 u 3 64 37 71.650 83.194 1.216
-europium.canoni 193.79.237.14 2 u 64 64 17 111.547 -10.939 0.620
The machine that fails will never have the symbols, “*,+, and -”, prefixes. The machine that file's “ntpq -p” output is:
Code:
smtp.envirahost 128.138.188.172 2 u 5 64 177 57.014 33716.6 13531.3
rikku.vrillusio 209.51.161.238 2 u 5 64 177 42.774 33710.4 13484.5
mirror 204.9.54.119 2 u 2 64 177 54.015 33889.3 13472.6
barricade.rack9 192.43.244.18 2 u 66 64 77 43.133 30487.7 11514.3
europium.canoni 193.79.237.14 2 u 3 64 177 106.577 33812.1 13484.2
No ntp.drift file is created by the machine that fails. I verified that the ntp.conf file is working by placing an intentionally misspelled command in it "xxxx". The syslog shows and error at the line with the incorrect command.
I also tried creating a blank ntp.drift file for ntp to use. It complained of a mal-formed ntp.drift file. So I removed the file I created so that it'll create it's own at the right time.
I've done lots of research. The ntp pool page (
http://www.pool.ntp.org/en/use.html ) says the star “*” is a very important component, as it shows which server is in use. The “*” never appears with the machine that fails.
Can someone advise me what I might be missing in this occasion or any other test I can perform to identify why ntp is failing on this machine.
Thanks in advance for any suggestions or comments.
-- L. James
--
L. D. James
ljames@apollo3.com
www.apollo3.com/~ljames