[RndTbl] system loses time

Trevor Cordes trevor at tecnopolis.ca
Mon Dec 10 20:20:41 CST 2012

I have another system (not the same one with RTC problems).  It loses 
about 1s every 1m in system time!!  ntp is running, configured the same 
way I have 20 other boxes that work just fine.

Right now the system thinks it's 6:38pm when the actual time is 20:14pm.  
It lost that much time since I last ntpdate'd Dec 7!

ntpq shows some weird values:

ntpq> lpeers
     remote           refid      st t when poll reach   delay   offset jitter
 ntp1.sscgateway    3 u    5   64  377   46.645  5757133 6180.03
 time.netspectru   3 u   62   64  377   40.248  5755927 6235.07
 backup.relay.mt   3 u   14   64  377   40.161  5756937 6165.72    2 u   46   64  377   49.971  5756303 6236.14

However, the above indicates ntp is finding peers that it can sync with.

The last message in /v/l/m about ntp is from the restart:

Dec  7 14:38:32 firewall ntpd[25512]: peers refreshed
Dec  7 14:38:32 firewall ntpd[25512]: Listening on routing socket on fd #26 for interface updates
Dec  7 14:38:33 firewall ntpd[25512]: format error frequency file /var/lib/ntp/drift
Dec  7 14:38:33 firewall ntpd[25512]: c016 06 restart
Dec  7 14:38:33 firewall ntpd[25512]: c012 02 freq_set kernel 0.000 PPM
Dec  7 14:38:33 firewall ntpd[25512]: c011 01 freq_not_set
Dec  7 14:38:39 firewall ntpd[25512]: c61c 0c clock_step +5.921205 s
Dec  7 14:38:45 firewall ntpd[25512]: c614 04 freq_mode
Dec  7 14:38:46 firewall ntpd[25512]: c618 08 no_sys_peer
Dec  7 14:42:07 firewall ntpd[25512]: c628 08 no_sys_peer

This seems to match up with what my other systems look like.  Though the 
kernel 0.000 PPM is a bit weird.  no_sys_peer seems entirely normal though 
it sounds bad.

I also don't get why ntp isn't barfing out like it normally does after it 
goes out more than 1000s.

Any ideas on a) fixes for this board losing time, and b) having ntp do 
what it's supposed to.

I have wiped out the /v/l/ntp/drift file as a precaution that maybe the 
drift was wrong (it was leftover from a previous board).  Ntp doesn't seem 
to be updating this file anymore, and I have verified it's ntp:ntp 644.

In all my years I've never seen such a chronically chronologically 
challenged chronometer.

More information about the Roundtable mailing list