Best way to sync time on a Linux machine

 
Thread Tools Search this Thread
Operating Systems Linux Red Hat Best way to sync time on a Linux machine
# 8  
Old 10-03-2013
I don't see how. Test NTP on a non-production system with these time servers before deploying it to production. The point of having multiple servers is to mitigate against errors.

Also, reading the man page, it's not necessary to run ntpdate at all. ntpd supports this functionality. Add -q to the ntpd startup options instead.
# 9  
Old 10-03-2013
I guess there is some confusion, what I meant is that if the ntpd service is not running and we need to sync the clock once or at regular intervals, only then the ntpdate command would be helpful.

I hope, my query is clear now that the ntpdate command to be used only if the service ntpd service is not running.

Regards
# 10  
Old 10-03-2013
If time is a critical issue for your server then it makes no sense not to run ntpd. But if you only want to update the time periodically, as you suggest, then ntpdate is fine.
# 11  
Old 10-03-2013
Thanks for your answer, I tried ntpdate but it giving error like:

Code:
ntpdate[5771]: no server suitable for synchronization found

I tried to sync server1 with server2 where the time difference between the servers is less than 1 minute. For e.g. I gave,

Code:
ntpdate -b <server2>

from server1.

Request you to throw light on this so that the understanding can become completely clear on this.

Regards

Last edited by Scott; 10-03-2013 at 06:08 AM.. Reason: Code tags
# 12  
Old 10-03-2013
server2 isn't an NTP server.

You'll notice that your account it read-only. It will be so for one day. That should give you enough time to re-read the rules. For your convenience, I have copied a link to them here. Perhaps in the future you will kindly revert to our requests to use [code][/code] tags.
This User Gave Thanks to Scott For This Post:
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Solaris

Rebooting Windows machine leads to continue sync reset on UNIX

Hello, We have Windows 10 machine connected to Sparc T5440 server via serial cable. We access the server from the Windows 10 machine using putty via serial connection. This allows us to access ILOM and Unix. We have recently noticed that whenever we reboot the windows machine (Windows 10),... (11 Replies)
Discussion started by: jasonu
11 Replies

2. Shell Programming and Scripting

Rsync from remote machine via ssh and sync by uisng find by modified time

Hi I have a requirement to rsync from remote to local machine via ssh and sync files that are changed in last n hours. pgrep to check if no other sync is running pgrep -f rsync.*/opt > /dev/null || rsync --bwlimit=10000 -avz --delete root@X.X.X.X:/var/source/ /opt/dest/ >> /home/log 2>&1... (0 Replies)
Discussion started by: robo
0 Replies

3. Red Hat

How to sync time with bios in rhel7?

Hi All, I deployed the rhel7 server in the bare metal hardware. I want to configure the rhel7 server to sync time with bios. I tired the below commands. Still it did not sync the time with bios. Thanks, Kalai (3 Replies)
Discussion started by: kalpeer
3 Replies

4. Linux

Questions about the NTP time server sync

Hi folks, I have developed a Linux server for my customer. After migrating the server to my customer site, I was trying to sync its time to the NTP time servers at my customer site. Below is the ntp.conf: % vi /etc/ntp.conf # Permit time synchronization with our time source, but do not # permit... (2 Replies)
Discussion started by: kimurayuki
2 Replies

5. Red Hat

Time Sync issue on RHEL 5.3

Hi, My Linux VMs are running on citrix XEN.Somehow the time drift is too high (going very fast). Even if the correct time configured using date -s command, for every 1 hr it is differing almost 5 - 10 mins. Tried configuring ntpd (local NTP server) and still it is not synchronized. Machine... (2 Replies)
Discussion started by: uday123
2 Replies

6. Solaris

NTP time sync in Solaris 10

Ok, I have 4 production systems. There is one NTP server for all four systems. In each system there is one Solaris 10 box that points to that NTP server. All of the other machines in the system point to the Solaris 10 machine to get their time sync. All four Solaris 10 machines have essentially... (2 Replies)
Discussion started by: DeCoTwc
2 Replies

7. SuSE

unable to sync the time with ntp server

Hi folks, The server time is no tgetiing synched up with the NTP server. I tried ntpdate -u <ipadress> this is not working. please help out. regards, Sag. (7 Replies)
Discussion started by: sag71155
7 Replies

8. UNIX for Advanced & Expert Users

How To Provide Time Sync Using Nts-150 Time Server On Unix Network?

can anybody tel lme,how to instal NTS -150 on a unix network,it needs some patch to fetch time frm serve,,?? (2 Replies)
Discussion started by: pesty
2 Replies

9. UNIX for Dummies Questions & Answers

TIME SYNC (NTP)

Is there a utility which offers the ability to utilize NTP to sync time on machine. If so please point to man page or web site (3 Replies)
Discussion started by: SmartJuniorUnix
3 Replies
Login or Register to Ask a Question