LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
LinkBack Search this Thread
Old 02-11-2013, 01:16 PM   #1
LittleMaster
Member
 
Registered: Jun 2012
Posts: 96
Blog Entries: 1

Rep: Reputation: Disabled
NTP client is not syncing to ntp server


Hi
Few of my linux Box .I could found the ntp service is not rsyncing as per Ntp server .Restarting of Ntp service is fixing out issue .There is any alternative command to make NTP client to sync to ntp server without restarting service .



What could be the better step to do ? ntpq -q (or) ntpdate -du ntpserver .Fix my solution .

Last edited by LittleMaster; 02-11-2013 at 01:22 PM.
 
Old 02-11-2013, 01:29 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,344

Rep: Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945
no please or thank you? "Fix my solution" is hardly friendly...

Please post the output of "ntpq -pn" after the service has been running for a while.
 
Old 02-11-2013, 02:10 PM   #3
LittleMaster
Member
 
Registered: Jun 2012
Posts: 96
Blog Entries: 1

Original Poster
Rep: Reputation: Disabled
Hi Chris

Im planning to restart ntp client .whether ntpd -qg & /etc/init.d/ntpd restart .Both the perform same activities.

I had gone through below article,it says ntpd -qg is unsafe to run on production boxes.I had placed ntpd -qg in /etc/rc.local file to sync when ever the server get reboot .

Since do you have any idea of which could be the better options for starting ntpd service .Runnning ntpd -qg on /etc/rc.local is unsafe



https://wiki.archlinux.org/index.php...rotocol_daemon

Last edited by LittleMaster; 02-11-2013 at 02:16 PM.
 
Old 02-11-2013, 02:36 PM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,344

Rep: Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945
you could try reading what I typed and responding to it.
 
Old 02-18-2013, 03:49 PM   #5
LittleMaster
Member
 
Registered: Jun 2012
Posts: 96
Blog Entries: 1

Original Poster
Rep: Reputation: Disabled
Hi

Very sorry for late reply .I Could find the ntp uses udp protocol.The ntp server is getting reachable by tracert command.And i could int reach ntp server via traceroute command

ntp service is running fine

telnet to ntpsever to port 123 not working

root:ubuntu# /usr/sbin/ntpq -p
remote refid st t when poll reach delay offset jitter
==============================================================================
sync0.part. .INIT. 16 u - 1024 0 0.000 0.000 0.000
sync1.part. .INIT. 16 u - 1024 0 0.000 0.000 0.000
sync2.part. .INIT. 16 u - 1024 0 0.000 0.000 0.000
*LOCAL(0) .LOCL. 10 l 14 64 377 0.000 0.000


root:ubuntu# /usr/sbin/tcpdump -i eth0 dst ubuntu and port 123
tcpdump: WARNING: eth0: no IPv4 address assigned
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on eth0, link-type EN10MB (Ethernet), capture size 96 bytes

0 packets captured
20 packets received by filter
0 packets dropped by kernel
root:ubuntu#
 
Old 02-19-2013, 01:57 AM   #6
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,344

Rep: Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945
telnet is no use for troubleshooting UDP, only TCP.

the servers there are listed as strata 16. This means they are not reachable. Either they are not running NTP services, or something between you and them is preventing the access.
 
Old 04-05-2013, 02:37 PM   #7
LittleMaster
Member
 
Registered: Jun 2012
Posts: 96
Blog Entries: 1

Original Poster
Rep: Reputation: Disabled
Clearing of ARP CACHE resolved the issue temporarily .Every days i could found ntp client is not synchronising once i cleared ARP Cache problem get resolved .Does any one have any sort of idea about it
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
ntp server keeps on changing time-local ntp server Gil@LQ Linux - Newbie 3 01-23-2013 09:33 AM
ntp drift file in /etc/ntp instead of /var/lib/ntp - suggestion for a patch in Slack niels.horn Slackware 16 05-07-2009 07:35 PM
Suse server not responding after syncing with NTP Server vipin123 Suse/Novell 2 09-04-2008 03:56 PM
Setting Up NTP Client/Server kaplan71 Suse/Novell 2 05-31-2006 04:38 PM
Need help with NTP server/client setup ncorreia Linux - General 0 11-06-2003 05:21 AM


All times are GMT -5. The time now is 11:40 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration