Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I've successfully set the date/time and, after reboot, it is reset [or, at least, off].

I use Linode to host the F14 VPS.

Fix: set proper time zone in /etc/sysconfig/clock

share|improve this question

1 Answer 1

up vote 2 down vote accepted

Is your timezone set correctly? With Linode (and most Xen kernels) the DomUs will automatically get their time from the Dom0. Linode has all of their Dom0 hypervisors running ntpd, so their time should be accurate. As such, it's likely that you just need to set your timezone correctly and everything should be good.

If you want to "untether" your VPS's clock from the host's clock, set the following in /etc/sysctl.conf:

xen.independent_wallclock=1

After this change, you'll either need to reboot for it to take effect or else run the following:

$ echo 1 > /proc/sys/xen/independent_wallclock

Also, if you haven't already done so, make sure to set the TZ correctly in /etc/sysconfig/clock.

share|improve this answer
    
"I Think" it is set correctly. I set the time zone to MST [cp /usr/share/zoneinfo/MST /etc/localtime] and set the time. Am I missing a step.? –  DaedBaet Jan 1 '12 at 3:21
    
What is the output of date, and what do you expect the output to be? –  EEAA Jan 1 '12 at 3:22
    
OUtput of date: Sun Jan 1 03:23:15 UTC 2012 –  DaedBaet Jan 1 '12 at 3:23
    
Then you haven't set the timezone correctly - the system is still using UTC. –  EEAA Jan 1 '12 at 3:24
    
Output expected: Sat Dec 31 20:23:15 MST 2011 –  DaedBaet Jan 1 '12 at 3:24

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.