LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 09-29-2009, 12:49 AM   #1
epamuk
Member
 
Registered: May 2007
Posts: 62

Rep: Reputation: 15
Time Problem of RHEL 4,4


Hi,

I have been using a RHEL 4,4 as Ftp server. And This ftp server running in the Dmz.

I have a problem relating with this server time. I am changing this server time but it is changing again wrong time.

Example our time is now 08:44. I am changing with "date -s 08:44". It now 08.44. But it is changing again a short time.

What i must do for stay correct time?

Thanks.
 
Old 09-29-2009, 02:40 AM   #2
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,290

Rep: Reputation: 378Reputation: 378Reputation: 378Reputation: 378
Are you rebooting the server? If so it sounds like the BIOS clock is set wrong. In any case, you can use NTP (Network Time Protocol) to sync your system with an Internet time server. The configuration file (ntpd.conf) is fairly straight forward and IIRC it works out of the box on Red Hat if you install the package and start the server.
 
Old 09-29-2009, 02:48 AM   #3
chandramani_yadav
Member
 
Registered: Jan 2007
Location: Vienna
Distribution: Redhat
Posts: 47

Rep: Reputation: 19
run "hwclock" to see the Bios time. In case if it is wrong then set the correct time on the Linux server and run the following command

hwclock --systohc
 
Old 09-29-2009, 03:09 AM   #4
epamuk
Member
 
Registered: May 2007
Posts: 62

Original Poster
Rep: Reputation: 15
Hi btmiller,

This server is a virtual server in the dmz. And I saw this status;

[root@34ISTDMZFTP ~]# date
Tue Sep 29 10:04:13 EEST 2009
[root@34ISTDMZFTP ~]# clock
Tue 29 Sep 2009 11:04:05 AM EEST -0.902683 seconds

clock command export correct time.

And I didnt saw ntpd.conf file in the this server. What is your suggestions? How can i do Ntp sync with an internet time server?

Thanks.
 
Old 09-29-2009, 03:26 AM   #5
epamuk
Member
 
Registered: May 2007
Posts: 62

Original Poster
Rep: Reputation: 15
And Now I ran hwclock --systohc command and I check again, I saw this results,

[root@34ISTDMZFTP ~]# hwclock
Tue 29 Sep 2009 11:23:51 AM EEST -0.849669 seconds
[root@34ISTDMZFTP ~]# date
Tue Sep 29 11:18:48 EEST 2009

hwclock command export correct time.

What i must do now?

Last edited by epamuk; 09-29-2009 at 03:27 AM.
 
Old 09-29-2009, 01:06 PM   #6
epamuk
Member
 
Registered: May 2007
Posts: 62

Original Poster
Rep: Reputation: 15
I need help.
 
Old 09-29-2009, 01:15 PM   #7
anomie
Senior Member
 
Registered: Nov 2004
Location: Texas
Distribution: RHEL, Scientific Linux, Debian, Fedora
Posts: 3,935
Blog Entries: 5

Rep: Reputation: Disabled
Quote:
Originally Posted by epamuk
This server is a virtual server in the dmz.
Running under vmware by chance? There are some known timekeeping issues with Linux virtual machines under certain hosts.

If so, try googling "vmware linux time problem" and checking the forums here for related threads.
 
Old 09-29-2009, 01:47 PM   #8
strick1226
Member
 
Registered: Feb 2005
Distribution: Arch, CentOS, Fedora, macOS, SLES, Ubuntu
Posts: 327

Rep: Reputation: 63
Clock skew in a VM is a known issue.

First things first, you can try disabling the host computer's power savings settings (like Speedstep for Intel CPU's) and see if this doesn't correct the problem.

If that doesn't work, and this is a VMware VM, here's an official VMware document on the subject: http://www.vmware.com/pdf/vmware_timekeeping.pdf .

Hope this helps.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
How to increase Grub boot wait time on Dual OS RHEL 5 and Windows XP mbj_linux Linux - Newbie 1 04-28-2009 03:27 PM
New ISSM, new to RHEL 5, but long time 4.6 user CardsFan08 LinuxQuestions.org Member Intro 0 03-23-2009 03:26 PM
How to Install RH AS4 and RHEL 5 on the same machine having options at boot time? masquerade Red Hat 2 01-20-2009 04:33 AM
RHEL 4 local time syncproblem - jumps to far when external NTPD failed . bobbera Linux - Server 4 05-27-2008 09:39 AM
Daylight Savings Time for RHEL Servers pratul Linux - Server 3 03-05-2007 07:48 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 07:36 AM.

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