Solved

NTP not correcting server time

Posted on 2012-04-07
3
597 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

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Powercli - Help adding Multiple VMs names to script 2 43
Penetration Testing home based work 3 75
Virtual Machine Consolidation needed status 6 102
AWS ELB 5 77
Exchange server is not supported in any cloud-hosted platform (other than Azure with Azure Premium Storage).
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!
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

770 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