*SOLVED* Time difference between hwnode and vps [message #9031] |
Wed, 13 December 2006 23:27 |
randletr
Messages: 3 Registered: December 2006
|
Junior Member |
|
|
Hi All,
While I did see this question was asked. I didn't see a clear answer on this topic. I have a hwnode running RHEL4 and vps's all running CentOS 4. All I want is my vps's to have the same time as the HW node. In fact, I'm surprised this isn't the default. Is there a simple command to accomplish this? The manual suggests setting up a separate vps just to do NTP, which is ridiculous.
[Updated on: Fri, 15 December 2006 02:02] by Moderator Report message to a moderator
|
|
|
|
Re: Time difference between hwnode and vps [message #9036 is a reply to message #9031] |
Thu, 14 December 2006 07:31 |
rickb
Messages: 368 Registered: October 2006
|
Senior Member |
|
|
Your timezone in the VPS is MSK; this likely differs from your HN.
Quote: | I'm surprised this isn't the default
|
During the redhat/centos installer, you choose the timezone for your HN. The VE template has its own preconfigured timezone. So, its very possible for the zones to differ.
To resolve the problem, You should configure your VE to have the same timezone as the HN. For example, if EST is your preferred timezone:
rm -rf /etc/localtime 2>/dev/null; unlink /etc/localtime 2>/dev/null
ln -s /usr/share/zoneinfo/EST /etc/localtime
vzctl exec 1041 rm -rf /etc/localtime 2>/dev/null
vzctl exec 1041 unlink /etc/localtime 2>/dev/null
vzctl exec 1041 ln -s /usr/share/zoneinfo/EST /etc/localtime
You can find many more exciting timezones with:
find /usr/share/zoneinfo/ | more
Hope this helps!
Rick
-------------
Common Terms I post with: http://wiki.openvz.org/Category:Definitions
UBC. Learn it, love it, live it: http://wiki.openvz.org/Proc/user_beancounters
|
|
|
|
|
|
|
|