Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Fri Jul 10, 2009 3:19 pm 
Offline
Senior Newbie

Joined: Fri Jul 10, 2009 3:03 pm
Posts: 19
Just set up Ubuntu 9.04 on my linode and while installing and setting up Webmin/Virtualmin, I went into System Information > Time on Server. There it reads, "This form is for changing the system's current time, which is used by all running processes. On operating systems that have a separate hardware clock, it can be used to set that too." At the bottom, it gives the error "hwclock failed :". If I click the tabs "Change timezone" or "Time server sync" it's completely blank. Since the time is incorrect, I try to change the hour yet it doesn't change. I have to assume this is related to the hwclock issue.

So, I decide to go root into SSH via Putty. Here are the commands I've tried:

Code:
#hwclock --show
Cannot access the Hardware Clock via any known method.
Use the --debug option to see the details of our search for an access method.

# hwclock --debug
hwclock from util-linux-ng 2.14.2
hwclock: Open of /dev/rtc failed, errno=2: No such file or directory.
No usable clock interface found.
Cannot access the Hardware Clock via any known method.


Is there some way to fix this hwclock issue?


Top
   
 Post subject:
PostPosted: Fri Jul 10, 2009 3:28 pm 
Offline
Señor Yaakov

Joined: Fri Feb 06, 2009 3:13 pm
Posts: 23
First of all, you don't want to play with the hardware clock in any case, so there is no concern about that. Second, you'll want to make sure that ntpd is installed and running. If it is *not*, you can type:

sudo ntpdate time.nist.gov

at a shell prompt to get the current time correct, then install ntpd.


Top
   
 Post subject:
PostPosted: Fri Jul 10, 2009 3:30 pm 
Offline
Senior Member

Joined: Thu May 21, 2009 3:19 am
Posts: 336
I've been able to set the timezone on my Linode several times, running Debian 5.0, but should be very similar in Ubuntu:

https://www.linode.com/wiki/index.php/C ... e_Timezone


Top
   
 Post subject:
PostPosted: Fri Jul 10, 2009 3:53 pm 
Offline
Senior Newbie

Joined: Fri Jul 10, 2009 3:03 pm
Posts: 19
@ Yaakov,

I ran this command:
Code:
# apt-get install ntpd
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Couldn't find package ntpd
root@li101-14:~# apt-get install ntp
Reading package lists... Done
Building dependency tree
Reading state information... Done
Suggested packages:
  ntp-doc
The following NEW packages will be installed:
  ntp
0 upgraded, 1 newly installed, 0 to remove and 8 not upgraded.
Need to get 443kB of archives.
After this operation, 1106kB of additional disk space will be used.
Get:1 http://security.ubuntu.com jaunty-security/main ntp 1:4.2.4p4+dfsg-7ubuntu5.1 [443kB]
Fetched 443kB in 0s (538kB/s)
Selecting previously deselected package ntp.
(Reading database ... 31489 files and directories currently installed.)
Unpacking ntp (from .../ntp_1%3a4.2.4p4+dfsg-7ubuntu5.1_i386.deb) ...
Setting up ntp (1:4.2.4p4+dfsg-7ubuntu5.1) ...
 * Starting NTP server ntpd


Is that what you mean?

----------------------------------------------------

@waldo,

I ran this command:

Code:
dpkg-reconfigure tzdata 


Yes, I was able to set time zone, thank you.

It still shows hwclock failed and the tabs for Change Timezone and Time Server Sync are blank.

Image

Image


Top
   
 Post subject:
PostPosted: Fri Jul 10, 2009 3:57 pm 
Offline
Señor Yaakov

Joined: Fri Feb 06, 2009 3:13 pm
Posts: 23
Yes, ntp is now running and your clock will be kept in sync with time servers. You don't need to make any manual adjustments to it. If it is currently far off, you can stop the ntpd and then use the ntpdate command I mentioned above, then restart ntpd.


Top
   
 Post subject:
PostPosted: Fri Jul 10, 2009 5:02 pm 
Offline
Senior Member

Joined: Sun Aug 31, 2008 4:29 pm
Posts: 177
On a Xen VPS, the time is usually set and synchronized by the host node.

If you want to take control of time synchronization for your VPS you can install and run ntpd, but you also need to make a config change within your VPS.

At a root command prompt do:

Code:
echo 1 > /proc/sys/xen/independent_wallclock


To make the change persistent over a reboot, add the following to /etc/sysctl.conf

Code:
xen.independent_wallclock = 1


I haven't found a need to run ntpd on my Linodes as the time from the host node is quite precise. If you're on a node where the clock is off you might drop a note to support.


Top
   
 Post subject:
PostPosted: Mon Jul 13, 2009 12:17 pm 
Offline
Senior Newbie

Joined: Fri Jul 10, 2009 3:03 pm
Posts: 19
Thanks guys, great help!


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group