LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-25-2009, 10:42 AM   #1
jonaskellens
Member
 
Registered: Jul 2008
Location: Ghent, Belgium
Distribution: Fedora, CentOS
Posts: 690

Rep: Reputation: 34
weird time latency


Code:
[root@asterisk asterisk]# date
Thu Jun 25 17:16:27 CEST 2009
[root@asterisk asterisk]# ntpdate 192.168.2.1
25 Jun 17:39:28 ntpdate[796]: step time server 192.168.2.1 offset 1362.400014 sec
[root@asterisk asterisk]# date
Thu Jun 25 17:39:31 CEST 2009

So now and then I need to do a ntpdate to adjust the time. If not then the clock of my server runs behind...

Can someone explain me why time seems to go much slower on my server then in the real world ??
 
Old 06-25-2009, 11:36 AM   #2
neo009
LQ Newbie
 
Registered: Mar 2009
Posts: 9

Rep: Reputation: 0
Set your BIOS time as same as your system time from command line..
# date
Sun May 24 04:16:07 MDT 2009

date -s "25 May 2009 14:31:00"
 
Old 06-25-2009, 12:56 PM   #3
jonaskellens
Member
 
Registered: Jul 2008
Location: Ghent, Belgium
Distribution: Fedora, CentOS
Posts: 690

Original Poster
Rep: Reputation: 34
Quote:
Originally Posted by neo009 View Post
Set your BIOS time as same as your system time from command line..
# date
Sun May 24 04:16:07 MDT 2009

date -s "25 May 2009 14:31:00"
The cause is my BIOS-time ??

This is a server that runs in a VirtualBox virtual machine...
Other virtual servers do not have this problem...

Code:
[root@asterisk ~]# date
Thu Jun 25 19:56:37 CEST 2009
[root@asterisk ~]# date -s "25 May 2009 19:57:00"
nothing happens...

Last edited by jonaskellens; 06-25-2009 at 12:58 PM.
 
Old 06-26-2009, 07:03 AM   #4
neo009
LQ Newbie
 
Registered: Mar 2009
Posts: 9

Rep: Reputation: 0
Often-times, it happens that when you reboot, your clock does not reflect the correct date and time. You may be forgetting to sync the hardware clock with the current system time. Here is how:

First check and set the current system date and time.

# date
# date -s 'Wed May 28 11:35:00 EST 2003'

Then sync your hardware clock with the system time.

# hwclock --show
# hwclock --systohc
 
Old 06-26-2009, 07:07 AM   #5
neo009
LQ Newbie
 
Registered: Mar 2009
Posts: 9

Rep: Reputation: 0
I think in your case you should do ntpdate update and then sync hw with sys time

# hwclock --show
# hwclock --hctosys

Also set your base OS for vmware time right with hw..are you using vmware vz???
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
latency and audio programming in real-time tanoatlq Programming 2 08-12-2008 05:01 PM
hard drive weird noise during boot ...time for an update?! aldimeneira Linux - Hardware 6 03-16-2006 10:19 AM
Latency in HTTPD’s response time. aenright Linux - Networking 2 05-31-2005 07:07 AM
umount problem (this time it's a weird one) holst Linux - General 6 08-28-2004 08:17 PM
weird time problem jester_69 Linux - General 3 09-19-2002 05:28 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:42 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration