Results 1 to 12 of 12
Thread: New VPS but Wrong Time?
-
04-03-2008, 09:18 PM #1Junior Guru Wannabe
- Join Date
- Feb 2006
- Posts
- 74
New VPS but Wrong Time?
I just got another VPS (first one's host decided to quit hosting) and the time the server shows (entering "date" via ssh) is exactly 24 hours in advance. The time is correct but it shows up one day forward.
It has cPanel/WHM and when I try to change the date it won't allow me. I've also tried via the date command in ssh but get an access restricted message (or something to that extent).
Thanks.
-
04-03-2008, 09:48 PM #2SEO Extraordinaire
- Join Date
- Jan 2007
- Location
- Miami Beach, FL, USA
- Posts
- 765
You cannot change the time on a VPS, they all use the time set on the node. You can however change the time-zone and ask your host if their node has the correct time set.
Website Design and Marketing in France
www.SagaNET.fr
-
04-03-2008, 10:24 PM #3Aspiring Evangelist
- Join Date
- Apr 2007
- Location
- New York
- Posts
- 424
Yes, As eclouds said, that is something that has to be taken care of by the host. Just ask the host to run the following script.
Code:ntpdate time.nist.gov
-
04-03-2008, 10:35 PM #4Junior Guru Wannabe
- Join Date
- Feb 2006
- Posts
- 74
Alright cool, thanks for the info, I'll let the host know.
-
04-03-2008, 10:38 PM #5Aspiring Evangelist
- Join Date
- Apr 2007
- Location
- New York
- Posts
- 424
No Problem, That should take care of the problem, IF it is on their site.
-
04-03-2008, 11:28 PM #6Junior Guru Wannabe
- Join Date
- Mar 2008
- Posts
- 47
If you have a time zone setting, make sure its set correctly.
FluidVM :: Manage Xen PV, Xen HVM and OpenVZ
Multi-Hypervisor, Extensible Virtualization Platform :: Website :: User Forums ::
Simple Browser based UI-Simple User VPS Control Panel!
-
04-03-2008, 11:31 PM #7Junior Guru Wannabe
- Join Date
- Feb 2006
- Posts
- 74
-
04-03-2008, 11:50 PM #8Web Hosting Master
- Join Date
- Jan 2003
- Location
- U.S.A.
- Posts
- 3,928
I am guessing your using openvz? You can ask your host to also do the following...
Stop VE vzctl stop 101
in HD node, run:
vzctl set 101 --capability sys_timen --save
Start VE: vzctl start 101
Enter VE: vzctl enter 101
mv /etc/localtime /etc/localtime.old
ln -s /usr/share/zoneinfo/EST5EDT /etc/localtime
-
04-03-2008, 11:51 PM #9Web Hosting Guru
- Join Date
- May 2007
- Location
- Chicago
- Posts
- 322
I assume your VPS provider is using either Virtuozzo or OpenVZ. This is one of the differences between those and Xen - with Xen, the system clock is virtualized as well, so you can control it via NTP from inside a virtual machine. Definitely a benefit if you have an application that requires accurate clock synchronization.
One comment on getting the host to run ntpdate - that only resets the clock at the current time. Over time, it will drift and become inaccurate again. It's best to have the host run NTP as a service on the main server node so that they time is regularly synced.Panopta | Never Blinks
Advanced Server Monitoring and Outage Management Solutions
http://www.panopta.com | sales@panopta.com
-
04-04-2008, 09:55 AM #10New Member
- Join Date
- Apr 2008
- Posts
- 1
open a ticket with your host. my host responds quick
-
04-04-2008, 05:15 PM #11Junior Guru Wannabe
- Join Date
- Feb 2006
- Posts
- 74
-
04-06-2008, 04:02 PM #12Junior Guru Wannabe
- Join Date
- Feb 2006
- Posts
- 74
Thanks everyone, support took care of it.