LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Time resetting to 00 Hrs on SLES Restart everyday (https://www.linuxquestions.org/questions/linux-server-73/time-resetting-to-00-hrs-on-sles-restart-everyday-553040/)

kvvkumar 05-10-2007 10:39 PM

Time resetting to 00 Hrs on SLES Restart everyday
 
I am using IBM x260 Series Server with SuSE Linux 9.0 Enterprise server loaded. Every Day I boot my server and after logging in as root and giving date command, I find that the date is correct but the time is 00 Hrs and 00 minutes.If I shutdown the server now and restart it after 5 minutes, I find the time back by five minutes. I am facing this problem from last 3 weeks but could not sort it out. Can anyone help me fix this problem.

stress_junkie 05-11-2007 03:05 PM

I'm not familiar with the IBM hardware but in general this is what you should do.

Find out if the machine has a hardware clock and if the hardware clock is kept running by battery when you turn the power off on the server.

If you don't have a hardware clock or if the hardware clock is not kept running by a battery when the server power is shut off then that is your problem. You will either have to enter the time whenever you power cycle the machine or get a hardware clock for the machine or just live with the incorrect time.

Your boot process should include running the network time protocol daemon called ntpd or xntpd. Find out if your system is running one of these using the following command in a terminal window.
Code:

ps aux | grep ntp
The network time protocol software will NOT reset the system clock if the system time is more than one hour out of sync with the correct time.

Make sure that you have set the network time protocol (NTP) daemon to check for the real time with a valid NTP server somewhere on the Internet. You may be able to find a time server near you on the following web page.

http://ntp.isc.org/bin/view/Servers/WebHome

You can set up the NTP Client software from within YaST.


All times are GMT -5. The time now is 12:14 PM.