LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Time Problem of RHEL 4,4 (https://www.linuxquestions.org/questions/linux-server-73/time-problem-of-rhel-4-4-a-758377/)

epamuk 09-29-2009 12:49 AM

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.

btmiller 09-29-2009 02:40 AM

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.

chandramani_yadav 09-29-2009 02:48 AM

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

epamuk 09-29-2009 03:09 AM

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.

epamuk 09-29-2009 03:26 AM

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?

epamuk 09-29-2009 01:06 PM

I need help.

anomie 09-29-2009 01:15 PM

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.

strick1226 09-29-2009 01:47 PM

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.


All times are GMT -5. The time now is 06:01 PM.