Solved

NTP not correcting server time

Posted on 2012-04-07
3
600 Views
Last Modified: 2012-06-22
My CentOS server's time is incorrect. Right now, my local time is 17:22. This is what my server reports:

# date
Sat Apr  7 17:37:51 IST 2012

Open in new window


When I run ntpdate, it doesn't seem to correct this:

# ntpdate -v 0.centos.pool.ntp.org
 7 Apr 17:38:46 ntpdate[32076]: ntpdate 4.2.2p1@1.1570-o Fri Nov 18 13:21:21 UTC 2011 (1)
 7 Apr 17:38:47 ntpdate[32076]: step time server 129.128.5.210 offset -891.236361 sec

# date
Sat Apr  7 17:39:25 IST 2012

Open in new window


Is it because the offset is too large? Or is it because it's a Xen based server? How do I fix it?
0
Comment
Question by:Julian Matz
  • 2
3 Comments
 
LVL 17

Expert Comment

by:Anuroopsundd
ID: 37819453
check time on the xen server. virtual machines update time from the host OS
0
 
LVL 17

Accepted Solution

by:
Anuroopsundd earned 500 total points
ID: 37819459
set NTP on Xen server else all virtual machines will get updated from Xen server time.

XenServer Hosts manage time for all virtual machines (VMs), unless the VMs are specially configured. It is therefore very important to keep time synchronized, especially on VMs that function as domain controllers.

To configure NTP when installing or updating your XenServer, just enter NTP servers in the installation wizard.

To configure NTP on XenServer Host after the installation, perform the following steps:

1. Edit /etc/ntp.conf and add NTP servers

#vi /etc/ntp.conf

2. Add NTP servers at the end of the file in the following format:

server ntp.server

Citrix recommends using the following NTP servers:

0.pool.ntp.org
1.pool.ntp.org
2.pool.ntp.org

3. Restart the NTP service:

#/etc/init.d/ntpd restart


http://support.citrix.com/article/CTX116458
0
 
LVL 21

Author Comment

by:Julian Matz
ID: 37819559
apparently, it's a sort of hybrid server, not 100% sure how it's set up exactly, but it seems the data centre staff need to fix this on their end, so I guess it's out of my hands. Thanks though.
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

David Varnum recently wrote up his impressions of PRTG, based on a presentation by my colleague Christian at Tech Field Day at VMworld in Barcelona. Thanks David, for your detailed and honest evaluation!
Last article we focus in how to VMware: How to create and use VMs TAGs – Part 1 so before follow this article and perform the next tasks, you should read the first article how to create the TAG before using them in Veeam Backup Jobs.
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:

679 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question