LinHES Forums
http://forums.linhes.org/

Time syncing
http://forums.linhes.org/viewtopic.php?f=21&t=20520
Page 1 of 1

Author:  glennph93 [ Sat Nov 14, 2009 9:10 am ]
Post subject:  Time syncing

I know in previous version knoppmyth used to sync with a timeserver automatically(cron job?). Is Linhes still set up to do this? because my time seems to be getting off (3min ahead).

Thank you for a great myth distro

Author:  graysky [ Sat Nov 14, 2009 11:59 am ]
Post subject: 

I believe it uses ntpd and that it's auto configured to start... you can check by doing:

Code:
$ sudo sv status ntpd
run: ntpd: (pid 2974) 11332s


It's up on my machine as you can see (up for 11332 seconds).

Author:  Greg Frost [ Sat Nov 14, 2009 2:59 pm ]
Post subject: 

Or even better, this command will query the peers that the ntp daemon is obtaining its time from including the time offset to each peer:
Code:
[root@mythtv ~]# ntpq -p 127.0.0.1
     remote           refid      st t when poll reach   delay   offset  jitter
==============================================================================
 ali.rack1_gigab 128.250.33.242   2 u   18   64   17   70.512   43.164  60.824
*ntp2.Housing.Be 128.32.206.55    2 u   17   64   17  198.731   40.113  37.324
+null-routed.net 198.153.152.52   2 u   12   64   17  200.552   34.848  37.355
-ntp.pbx.org     192.5.41.40      2 u   19   64   17  268.033  -37.686  60.326
+miami.esysmail. 128.252.19.1     2 u   14   64   17  260.488   13.826  35.324

Author:  glennph93 [ Sun Nov 15, 2009 7:18 am ]
Post subject: 

Well ntpd is running

Code:
[root@mythtv john]# sv status ntpd
run: ntpd: (pid 4514) 1857007s


But I'm not sure its working right?
Code:
[root@mythtv john]# ntpq -p 127.0.0.1
No association ID's returned

Author:  glennph93 [ Sun Nov 15, 2009 8:25 am ]
Post subject: 

Well I fixed it. I just restarted ntpd and it corrected the time. I'm thinking my network wasn't working the first time ntpd started.
Code:
[root@mythtv sv]# ntpq -p 127.0.0.1
     remote           refid      st t when poll reach   delay   offset  jitter
==============================================================================
 ntp.yoinks.net  198.60.22.240    2 u   50   64    3   58.893   -2.987   4.973
-65.254.214.170  129.6.15.29      2 u   50   64    3   30.576   -0.027   2.054
+69.36.241.112   132.163.4.102    2 u   47   64    3  103.207   -4.380   2.473
+morose.quex.org 128.118.25.5     2 u   46   64    3   39.059   -4.363   6.548
*ntp.your.org    .CDMA.           1 u   48   64    3   27.985   -1.883   6.023
[root@mythtv sv]#

Page 1 of 1 All times are UTC - 6 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/