- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Time Synchronisation
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-19-2008 05:24 AM
12-19-2008 05:24 AM
master (10.2.2.28)
etc/ntp.conf
server 127.127.1.1
etc/rc.config.d/netdaemons
xtnpd=1
client..etc/ntp.conf
server artemis version 3
*(artemis is hostname of master)
etc/rc.config.d/netdaemons
xtnpd=1
ntpdate_server=10.2.2.28
stopped and started xtnpd on both servers.
client is 4 minutes faster than master and it doesn't seem to be slowing down... did i miss a step somewhere ??
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-19-2008 05:48 AM
12-19-2008 05:48 AM
Re: Time Synchronisation
Check the syslog for any xntp messages.
In etc/rc.config.d/netdaemons add debugging option and if you want a separate log file option as in XNTPD_ARGS="-d -l /var/adm/syslog/xntpd.log". Then restart the daemon and check the log.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-19-2008 11:27 AM
12-19-2008 11:27 AM
Re: Time Synchronisation
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-19-2008 11:46 AM
12-19-2008 11:46 AM
Re: Time Synchronisation
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-19-2008 12:29 PM
12-19-2008 12:29 PM
Re: Time Synchronisation
The time that has passed since you started ntpd on the client is important because a 4-minute difference could take days to correct.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-19-2008 12:48 PM
12-19-2008 12:48 PM
Re: Time Synchronisation
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-19-2008 12:53 PM
12-19-2008 12:53 PM
Re: Time Synchronisation
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-19-2008 01:19 PM
12-19-2008 01:19 PM
Re: Time Synchronisation
The "can't assign..." message from 'ntpq' means that XNTP has died or isn't running.
Verify that your server's time is actually correct in UTC units:
# date -u
...should match a real world clock. If not, 'Xntpd' will not syncrhonize since it uses UTC time. Your 'TZ" setting simply changes your perception of UTC to a localtime by adding or subtracting an approprate offset.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-20-2008 09:22 AM
12-20-2008 09:22 AM
Re: Time Synchronisation
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-20-2008 04:28 PM
12-20-2008 04:28 PM
SolutionUNIX95=1 ps -fC xntdp
That should return nothing which is correct. Otherwise, kill the xntpd process. Now test that your server can see the NTP server:
ntpq -p 10.2.2.28
You will see something like this:
# ntpqp -p 10.2.2.28
remote refid st t when poll reach delay offset disp
==============================================================================
192.147.38.60 0.0.0.0 16 - - 1024 0 0.00 0.000 16000.0
*ntp.pbx.org clock.nyc.he.ne 2 u 755 1024 377 13.18 18.193 9.28
+kyna.dalbaech.n time-A.timefreq 2 u 824 1024 377 59.59 -29.138 0.53
The first line indicates that server 10.2.2.28 cannot get any time info from 192.147.38.60. That is the remote server's problem, not yours. The next 2 lines show that the remote server can talk to these time servers. This is a normal display.
However, if you get errors from ntpq such as unreachable, can't assign address, timeout, etc, don't go any farther. Your server cannot talk NTP to 10.2.2.28. Until this is fixed, the rest of the steps will be ineffective.
Once you fix the communication problem, now you can configure ntp.conf. While there are dozens of options, leave all that out and make it as simple as possible:
# cat /etc/ntp.conf
10.2.2.28 # company serverserver
fudge 127.127.1.1 stratum 10 # localhost fallback
driftfile /etc/ntp.drift
And that's it. NOTE: 127.127.1.1 should always have stratum 10 listed. This address is a fallback for NTP to use itself for sync until the servers return. But it must be the last choice, hence stratum 10.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-21-2008 10:24 AM
12-21-2008 10:24 AM
Re: Time Synchronisation
i'm still getting "Can't assign requested address" ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-21-2008 01:03 PM
12-21-2008 01:03 PM
Re: Time Synchronisation
Did you simply type the command: ntpq -p? If so, this is normal because you told ntpq to query xntpd on your local server and it is not running, or not running correctly. Be sure you type the command completely:
ntpq -p 10.2.2.28
Once you get a good response, change your ntp.conf file as mentioned above and stop/restart xntpd:
/sbin/init.d/xntpd stop
/sbin/init.d/xntpd start
then look at the end of syslog.log:
tail /var/adm/syslog/syslog.log
which will show what happened when ntpdate was run to set the current time.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-21-2008 08:39 PM
12-21-2008 08:39 PM
Re: Time Synchronisation
Did you check whether your xntpd demon is running or not ?
Are you using drift file ? if not then try with drift file restart the demon
/sbin/init.d/xntpd stop
/sbin/init.d/xntpd start
after restart give
ntpd â q
Then check you /var/adm/syslog/syslog.log
Still problem then post last 100 line of your syslog.log
Suraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-22-2008 05:56 AM
12-22-2008 05:56 AM
Re: Time Synchronisation
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-22-2008 07:00 AM
12-22-2008 07:00 AM
Re: Time Synchronisation
from client
Dec 22 09:40:02 apollo xntpd[450]: tickadj = 625, tick = 10000, tvu_maxslew = 61875
Dec 22 09:40:02 apollo xntpd[450]: precision = 6 usec
from server
Dec 22 09:45:49 artemis xntpd[3269]: refclock_open: /dev/hpgps1: No such file or directory
Dec 22 09:45:49 artemis xntpd[3269]: configuration of 127.127.26.1 failed
Dec 22 09:47:43 artemis xntpd[3405]: tickadj = 625, tick = 10000, tvu_maxslew = 61875
Dec 22 09:47:43 artemis xntpd[3405]: precision = 6 usec
Dec 22 09:47:43 artemis xntpd[3405]: refclock_open: /dev/hpgps1: No such file or directory
Dec 22 09:47:43 artemis xntpd[3405]: configuration of 127.127.26.1 failed
Dec 22 09:49:48 artemis xntpd[3456]: tickadj = 625, tick = 10000, tvu_maxslew = 61875
Dec 22 09:49:48 artemis xntpd[3456]: precision = 25 usec
Dec 22 09:49:48 artemis xntpd[3456]: refclock_open: /dev/hpgps1: No such file or directory
Dec 22 09:49:48 artemis xntpd[3456]: configuration of 127.127.26.1 failed
there is not ntp.drift file on either server?
the ntpq -p 10.2.2.28 now returns this on the client
# ntpq -p 10.2.2.28
remote refid st t when poll reach delay offset disp
==============================================================================
*LOCAL(0) LOCAL(0) 3 l 66m 64 377 0.00 0.000 10.01
artemis.lccc.ed 0.0.0.0 16 - - 64 0 0.00 0.000 16000.0
the time on the client remains 5 minutes faster than the time on the server
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-22-2008 11:19 AM
12-22-2008 11:19 AM
Re: Time Synchronisation
after stopping and starting xntpd...
Dec 22 14:15:11 apollo xntpd[23525]: synchronized to 10.2.2.28, stratum=4
Dec 22 14:15:11 apollo xntpd[23525]: time error -3918.453608 is way too large (set clock manually)
nothing shows up in the ntp.drift on the client, on the server the value is 0.0.0..
can i specify a smaller value in the ntp.drift file file on the client, and see if the client time changes ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-22-2008 12:20 PM
12-22-2008 12:20 PM
Re: Time Synchronisation
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-22-2008 12:56 PM
12-22-2008 12:56 PM
Re: Time Synchronisation
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-22-2008 01:35 PM
12-22-2008 01:35 PM
Re: Time Synchronisation
if i do the xntpd stop soon after the xntpd start then i don't get the error message.
on the ntp server i never get the error message when trying to do the xntpd stop...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-22-2008 02:25 PM
12-22-2008 02:25 PM
Re: Time Synchronisation
> i notice that on the client if i run the xntpd start, and then wait about 5-10 mins and try the xntpd stop i get the message "Unable to stop xntpd (cannot find pid)..."
> if i do the xntpd stop soon after the xntpd start then i don't get the error message.
This behavior is consistent with the 'xntpd' dying after it is started. This is likely the result of too large a time difference between your server and client.
Did you ever verify that the UTC time for your server is correct as I originally suggested?
# date -u
...should return a value very close to the correct time if NTP is going to begin to synchronize.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-22-2008 03:10 PM
12-22-2008 03:10 PM
Re: Time Synchronisation
What do you suggest would be the easiest way to change the ntp server from ast to est ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-22-2008 03:32 PM
12-22-2008 03:32 PM
Re: Time Synchronisation
> It turns out that the ntp server shows 21:50:02 utc (date = 17:51 ast) while the ntp client shows 22:50:02 utc (date = 17:51 est)..What time zone is ast ?
What do you suggest would be the easiest way to change the ntp server from ast to est ?
The timezones don't matter, although a look in '/usr/lib/tztab' should show you. What matters is that NTP works in UTC. The 'xntpd' daemon will abandon synchronization efforts if the time delta is too large. This avoids insane settings. You 'syslog' actually showed about a 65-minute difference and reported the complaint.
The best way to correct this is to set both your server's times correctly using 'date -u' so that you know they match the correct universal time. Having done this, reboot.
You should really have at least three external time sources. Use something like:
server 0.us.pool.ntp.org
server 1.us.pool.ntp.org
server 2.us.pool.ntp.org
These are freely available sources from:
http://support.ntp.org/bin/view/Servers/NTPPoolServers
Edit '/etc/rc.config.d/netdaemons' and set XNTPD=1.
Remember, localtime (as expressed by your TZ setting) is merely an offset (+-) from UTC. Local time is your *preceived* time. In fact, you could have users with different TZ settings in their login profiles on the same server if you need or want. Timekeeping occurs in UTC.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-22-2008 05:19 PM
12-22-2008 05:19 PM
Re: Time Synchronisation
There is an Aleutian Standard Time.
There also is an Atlantic Standard Time (Quebec) that matches the hour off you have.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-23-2008 05:28 AM
12-23-2008 05:28 AM
Re: Time Synchronisation
server 1.1.69.31.13.210
in the ntp.conf file
i get this error in the syslog.log file:
Dec 23 08:15:23 artemis xntpd[24766]: precision = 34 usec
Dec 23 08:15:25 artemis xntpd[24767]: couldn't resolve `0.98.172.32.171', giving up on it
Dec 23 08:15:25 artemis xntpd[24767]: couldn't resolve `1.69.31.13.210', giving up on it
yet if i use server 0.pool.ntp.org i don't get the error... can't you use ip addresses when specifying multiple external sources ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-23-2008 05:39 AM
12-23-2008 05:39 AM
Re: Time Synchronisation
> can't you use ip addresses when specifying multiple external sources ?
I never tried. That aside, you cited 1.1.69.31.13.210 and then appear to have used 1.69.31.13.210 (without the first octet). Perhaps this is your error.
Why would you want to use IPAdrresses? DNS or at least a local '/etc/hosts' file doing the name resolution would be far, far better for long-term support.
Regards!
...JRF...