Solved

NTP not correcting server time

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

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

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

If your vDisk VHD file gets deleted from the image store accidentally or on purpose, you won't be able to remove the vDisk from the PVS console. There is a known workaround that is solid.
Is your company's data protection keeping pace with virtualization? Here are 7 dynamic ways to adapt to rapid breakthroughs in technology.
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 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…

863 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now