Question on NTP and Time sychronization


 
Thread Tools Search this Thread
Operating Systems AIX Question on NTP and Time sychronization
# 1  
Old 07-07-2011
Question on NTP and Time sychronization

I want to update the ntp.conf file on different client AIX servers to so they may have to correct
ntp SERVERname info. In a few words, the clients server should have the correct NTP server name.
How can I update the NTP clients and not have time synchronization problem. How can I update client servers' ntp.conf file and make sure that
clocks are in synchronization with the master clock.
How can I avoid the clock from changing in a negative direction after updating the ntp.conf file?
Should I update an ntp.conf file with the correct info and scp that file to the clients to replace the previous ntp.conf file?
Should I edit the ntp.conf file in each client and then do a refresh -s xntpd?
What do you think is the best way to go about have the same ntp.conf file on clients and master server without changing in a negative direction?

Thanks in advance?

Last edited by jesifra; 07-07-2011 at 05:47 PM..
# 2  
Old 07-08-2011
Quote:
How can I avoid the clock from changing in a negative direction after updating the ntp.conf file?
Should I update an ntp.conf file with the correct info and scp that file to the clients to replace the previous ntp.conf file?
Should I edit the ntp.conf file in each client and then do a refresh -s xntpd?
What do you think is the best way to go about have the same ntp.conf file on clients and master server without changing in a negative direction?
For question #1 I have no clue what are you talking about , I'll check the documentation and I may post here later.
For question #2 I See no harm SCPing ntp.conf to replace the original , But you'd better to backup the original 1st
For question #3 You may issue the command
Code:
refresh -s xntpd

after making changes Please refer to steps below On Client
For question #4 I have no clue what are you talking about , I'll check the documentation and I may post here later.

Please see steps here for more information

On server

Verify that you have a suitable NTP server. Enter:

Code:
# lssrc -ls xntpd

NOTE: Sys peer should show a valid server or 127.127.1.0.

If the server is "insane", you will need to correct it by adding a server line to /etc/ntp.conf and restarting xntpd. This can be done by following these steps:

Code:
# vi /etc/ntp.conf

Add:
server 127.127.1.0
Double check that "broadcast client" is commented out.

Code:
# stopsrc -s xntpd

Code:
# startsrc -s xntpd

NOTE: If the server runs databases, use the -x flag to prevent the clock from changing in a negative direction. Enter the following:

Code:
# startsrc -s xntpd -a "-x"

Repeat Step 1 to verify that the server is synched. This process can take up to 12 minutes.

On client

Verify that you have a server suitable for synchronization. Enter:

Code:
# ntpdate -d ip.address.of.server

The offset must be less than 1000 seconds for xntpd to synch. If the offset is greater than 1000 seconds, change the time manually on the client and run the ntpdate -d again.

If you get the message, "no server suitable for synchronization found", verify xntpd is running on the server (see above) and that no firewalls are blocking port 123.
Specify your xntp server in /etc/ntp.conf, enter:

Code:
# vi /etc/ntp.conf

(Comment out the "broadcastclient" line and add server ip.address.of.server prefer.)

Leave the driftfile and tracefile at their defaults.
Start the xntpd daemon:

Code:
# startsrc -s xntpd

(Use the -x flag if it is appropriate for your environment.)

Uncomment xntpd from /etc/rc.tcpip so it will start on a reboot.

Code:
# vi /etc/rc.tcpip

Uncomment the following line:

start /usr/sbin/xntpd "$src_running"

If using the -x flag, add "-x" to the end of the line. You must include the quotes around the -x.

Verify that the client is synched.

Code:
# lssrc -ls xntpd

NOTE: Sys peer should display the IP address or name of your xntp server. This process may take up to 12 minutes.

Last edited by h@foorsa.biz; 07-08-2011 at 10:10 AM..
# 3  
Old 07-08-2011
Question on NTP and Time sychronization

Hello thank you for your kind answer. I also have this documentation by IBM that you posted on the forum. What I was really trying to find out is how can I update the ntp.conf file on production server without affecting ORACLE running on production server. I want to avoid the clock from changing in a negative direction after updating the ntp.conf file on the client servers and keep this client servers in sync with the with the master clock on the main NTP server.

Any idea how to proceed wit that?
# 4  
Old 07-08-2011
All I know as follows I do always stop database process before changing time/date as precaution procedure .
I do know that there is sync between database and OS clock , but there is some ways to sync database with OS's time/date after changes e.g ( NTP sync ) .
You'd better to wait for someone to answer your quires
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Ntp : How is the synchronization time scheduled?

Hello, one of my clients has the following task for me: To write a Perl script that checks, whether ntp is active on a particular AIX or Linux box. Obviously the last synchronization is logged in the file ntp.log So, my task would be find out, when the synchronization SHOULD have taken... (1 Reply)
Discussion started by: Bloehdian1
1 Replies

2. AIX

NTP time problem

I got an ntp time problem on AIX server. os version is AIX7.1 OS LEVEL 7.1.0.0 i got below output,when i run the below command bash-3.2# ntpdate -dv XXXXXXXXXXXXXXXXXXXXXXXX 4 Dec 12:50:49 ntpdate: 3.4y transmit(xxxxxxxxx) receive(xxxxxxxxx) transmit(xxxxxxxx) receive(xxxxxxxxx)... (9 Replies)
Discussion started by: murali969
9 Replies

3. Red Hat

Auto NTP Time Synchronization

Good morning, My first post and first visit, so hello. I have been asked to see if one of our Linux boxes can have it's time sync automatically because the person who built the system has told our staff it cannot be done. To me that raised some flags because although I am no Linux expert, I just... (12 Replies)
Discussion started by: YSupport
12 Replies

4. Red Hat

ntp time synchronization

hello all,, am trying to do a time synchronization between a ntp server and a client, but facing some problems in doing so: i run the ntpdate in debug mode and this is what i got. please help me out.. # ntpd -d -u 172.22.1.207 ntpd 4.2.2p1@1.1570-o Sun Aug 28 19:21:03 UTC 2011 (1)... (1 Reply)
Discussion started by: rahul11c
1 Replies

5. Linux

How often does Linux NTP server update its time with the external NTP server?

All here, thank you for listening. Now I've set up a Linux NTP server by adding a external windows NTP server in /etc/ntp.conf. Then I start the ntpd daemon. But how often does the Linux NTP server update its time with the external NTP server? I've looked up everywhere but found no information... (1 Reply)
Discussion started by: MichaelLi
1 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. AIX

NTP - with time difference

We have configured most of 1200 servers with an NTP server. For the rest of the servers, I have a strange requirement. I want to synchronize them with NTP time with a lag of 15 minutes. Is it possible ? If yes How ? (0 Replies)
Discussion started by: shauche
0 Replies

8. HP-UX

NTP time

Is anyone familiar with adding NTP timing to a HPUX 10 OS? Thanks Brian (2 Replies)
Discussion started by: breigner
2 Replies

9. UNIX for Advanced & Expert Users

ntp across time zones

I've been tasked to implement ntp on my SCO Unix servers. I have over 600 servers spread across the US in different time zones. Each remote server has network connectivity to a main server here, through their local ISP. (That's how we currently deliver mail to them). My question is, how can... (5 Replies)
Discussion started by: Howeird
5 Replies

10. 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