LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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
  Search this Thread
Old 12-10-2021, 01:30 PM   #1
shakil71
LQ Newbie
 
Registered: Dec 2021
Posts: 3

Rep: Reputation: Disabled
NTP synchronize issue?


why NTP synchronized: no?. how i fix this problem and what is mean that ?


timedatectl | grep NTP
NTP enabled: yes
NTP synchronized: no
 
Old 12-10-2021, 01:48 PM   #2
enigma9o7
Senior Member
 
Registered: Jul 2018
Location: Silicon Valley
Distribution: Bodhi Linux
Posts: 1,388

Rep: Reputation: 560Reputation: 560Reputation: 560Reputation: 560Reputation: 560Reputation: 560
probably your time is too different. ntp only makes small adjustments, not big ones. try setting your time manually then check if ntp can then sync it.
 
Old 12-10-2021, 02:11 PM   #3
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,636

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by shakil71 View Post
why NTP synchronized: no?. how i fix this problem and what is mean that ?
Code:
timedatectl | grep NTP
NTP enabled: yes
NTP synchronized: no
You don't provide us any details, such as version/distro of Linux, or tell us anything about your current NTP configuration; we can't guess. If you provide details we can try to help. You may not have an NTP pool set up, your firewall is blocking it, or your internal time source is down. Again, you provide no details.

And if you don't know what NTP is, or even what the problem means, why are you trying to fix it?? Your administrator can help you.
 
Old 12-11-2021, 02:44 AM   #4
shakil71
LQ Newbie
 
Registered: Dec 2021
Posts: 3

Original Poster
Rep: Reputation: Disabled
why NTP synchronized: no?. how i fix this problem and what is mean that ?


timedatectl | grep NTP
NTP enabled: yes
NTP synchronized: no

I am using CentOS 7 minimal version and using the command line in MobaXtream. please help to solve this problem.

i was trying so many time. but NTP synchronize is always NO. please help me
Attached Thumbnails
Click image for larger version

Name:	Screenshot (42).png
Views:	21
Size:	126.2 KB
ID:	37822   Click image for larger version

Name:	Screenshot (41).png
Views:	16
Size:	98.0 KB
ID:	37823  
 
Old 12-11-2021, 03:59 AM   #5
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,855

Rep: Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311
that is windows, not centos. I guess you need to choose a different time server (which is most probably not that far from where you are).
 
Old 12-11-2021, 07:05 AM   #6
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,636

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by shakil71 View Post
why NTP synchronized: no?. how i fix this problem and what is mean that ?
Code:
timedatectl | grep NTP
NTP enabled: yes
NTP synchronized: no
Posting the same thing again doesn't tell us anything new.
Quote:
I am using CentOS 7 minimal version and using the command line in MobaXtream. please help to solve this problem. i was trying so many time. but NTP synchronize is always NO. please help me
You posted settings on a WINDOWS Machine....not Linux. Again, we need to know how you have the LINUX system configured if you want help with Linux. Again, as you were advised before, if your time settings are vastly different than the NTP server, things won't sync initially.

And if you really did 'try so many times', it's hard to believe you couldn't put "how to configure ntp on centos 7" into Google, and read the VERY FIRST HIT:
https://www.thegeekdiary.com/centos-...er-and-client/

...which has complete instructions. If you're not going to read the answers you get or post responses to questions, there isn't going to be anything folks will be able to help you with. Read the LQ Rules and "Question Guidelines"
 
Old 12-11-2021, 02:50 PM   #7
shakil71
LQ Newbie
 
Registered: Dec 2021
Posts: 3

Original Poster
Rep: Reputation: Disabled
what should i do?
my time-server not synchronize
and I am also not configure my NTP
please help me
Attached Thumbnails
Click image for larger version

Name:	Screenshot (47).png
Views:	18
Size:	189.1 KB
ID:	37825   Click image for larger version

Name:	Screenshot (48).png
Views:	15
Size:	182.3 KB
ID:	37826   Click image for larger version

Name:	Screenshot (46).jpg
Views:	16
Size:	250.4 KB
ID:	37827   Click image for larger version

Name:	Screenshot (49).jpg
Views:	17
Size:	82.3 KB
ID:	37828  
 
Old 12-12-2021, 04:55 AM   #8
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,855

Rep: Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311
in your last post there is a syntax error.
First of all you should answer to the questions. Otherwise we won't be able to tell you anything useful.

How is it related to windows? Are these hosts connected to the network?
Did you try another ntp server already?
 
Old 12-12-2021, 06:37 AM   #9
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Bunch of screenshots, what a mess.
Anyhow, the last one says that there's a syntax error in /etc/ntp.conf on line 18.
Also check /var/log/ntp.log.
 
Old 12-12-2021, 10:14 AM   #10
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,636

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by shakil71 View Post
what should i do?
my time-server not synchronize and I am also not configure my NTP please help me
Sorry, but are you not reading or understanding what you're being told and asked??? Posting screenshots of your Windows system is pointless, since you are AGAIN asking about Linux. And again, posting the same things over and over saying "help me" is also pointless.

Again:
  • Is your firewall blocking NTP access to the servers?
  • Can you actually use those servers on your Windows system??
  • How far is the date/time from the actual time and have you tried manually syncing it??
  • Have you actually opened/read/understood the simple step-by-step guide that was looked up for you and given to you???
You say you've been working on this for a long time...which is very hard to believe since you can't tell us any answers to any of the questions that would have come up if you have been working on it and doing any research.

Again: answer the questions asked. Don't post screen-shots, and posting ANYTHING about your Windows system is meaningless, since *YOU ARE ASKING ABOUT LINUX NOT WINDOWS*
 
Old 12-12-2021, 06:55 PM   #11
allend
LQ 5k Club
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware64-15.0
Posts: 6,371

Rep: Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750
The last screenshot shows a Windows machine running an instance of CentOS 7 in VMware.
Looks to me like the OP is trying to get the CentOS instance to synchronise with NTP.
I would have thought that the simplest approach would be to let Windows handle the time synchronisation and get the VMware instance to use the time from the local machine.
 
Old 12-12-2021, 09:03 PM   #12
enigma9o7
Senior Member
 
Registered: Jul 2018
Location: Silicon Valley
Distribution: Bodhi Linux
Posts: 1,388

Rep: Reputation: 560Reputation: 560Reputation: 560Reputation: 560Reputation: 560Reputation: 560
Still dunno why OP is concerned about ntp sync either. Maybe just having a timezone issue? Or virtual machine may be the UTC thing; virtualbox has a checkbox "hardware clock in UTC time"; vmware probably has something similar, maybe got the check wrong.
 
Old 12-13-2021, 08:44 AM   #13
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,636

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by allend View Post
The last screenshot shows a Windows machine running an instance of CentOS 7 in VMware. Looks to me like the OP is trying to get the CentOS instance to synchronise with NTP. I would have thought that the simplest approach would be to let Windows handle the time synchronisation and get the VMware instance to use the time from the local machine.
Agreed, but they may be doing this as an exercise, or have a specific need; no information from the OP either way. To me, the only ways that NTP is going to fail are:
  • No connection to a time reference source (typically an Internet pool).
  • Time on server is too skewed to make an adjustment to NTP
So either it's a networking issue, or the time on the server is too far off. From the screen-shot posted, it says they're using an Internet pool, and if they tried a simple diagnostic of just pinging that time pool, they could know if it was reachable or not.
 
Old 12-13-2021, 09:24 AM   #14
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,659
Blog Entries: 4

Rep: Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941
I believe that VMWare is capable of providing the time to its guests.
 
  


Reply



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] NTP configuration in client to synchronize with NTP server. antnish Linux - General 12 04-01-2013 01:49 PM
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
synchronize ntp client rizvi_iut Linux - Newbie 6 12-08-2008 09:54 PM
how can i synchronize my NTP cheesewizz Linux - Server 4 11-07-2008 05:54 AM
Time Synchronize or NTP Management gurl4sh25 Linux - Software 5 06-04-2007 03:39 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:23 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration