- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: 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
Discussions
Discussions
Forums
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
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