Operating System - Linux
1830239 Members
2204 Online
109999 Solutions
New Discussion

Hwclock does not maintain correct time

 
ScottLClement
Occasional Advisor

Hwclock does not maintain correct time

I have a DL580 itanium server running redhat linux RHEL 4. THe hardware clock floats drastically. After 19 days of uptime it was 2days + behind. Does anyone have any ideas why this is?
5 REPLIES 5
Ivan Ferreira
Honored Contributor

Re: Hwclock does not maintain correct time

Hello, please see this thread and try the suggestions there.

http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=999210
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
Steven E. Protter
Exalted Contributor

Re: Hwclock does not maintain correct time

Shalom,

Congratulations, you have discovered that computers can't tell time.

I would suggest you set up ntp and ignore the hardware clock.

If its really interfering with system operation and ntp can't sync it, have the system board replaced. Your results are pretty bad but I've seen worse.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
ScottLClement
Occasional Advisor

Re: Hwclock does not maintain correct time

We have set up ntp but we are having problems getting out the correct nic to hit the outside time server. We have 3 nics on 3 different subnets and it fails to get out yet from telnet window we can ping and nslookup the time server just fine.
Morten Lange
Occasional Advisor

Re: Hwclock does not maintain correct time

Hi,

Regarding connectivity to the NTP server, you should know that NTP uses port 123 udp _and_ tcp.

When you say telnet, are you telnetting to port 123 on the ntp server ?
To test 123 udp I think you could use nmap.
Is there a firewall on the route between the to boxes or perhaps iptables or something running on your linux box ?

Then there is the question of whether you are going out through the right NIC. Have you double-checked the routing tables ?

Best Regards,
Morten
Its a _N_Iceland
George Liu_4
Trusted Contributor

Re: Hwclock does not maintain correct time

1. firewall to allow tcp/udp 123 on both
sides
2. modify ntp.conf, and step-tickers
3. restart ntpd
that's it