1752573 Members
4650 Online
108788 Solutions
New Discussion юеВ

Re: Linux Date

 
SOLVED
Go to solution
gigiz
Valued Contributor

Re: Linux Date

HELP ME ....
The problem is on all my installed server, that are about 12.
I have a PROLIANT DL380 G4 SERVER, with PROCESSOR - INTEL XEON 3.60Hz, and are 64 bit kernel (x86_64).
Rob Leadbeater
Honored Contributor

Re: Linux Date

Have you read the previous posts ...?

There is lots of helpful information there.

Cheers,

Rob
John Poff
Honored Contributor

Re: Linux Date

The fact that it is happening on all 12 servers is good. That certainly rules out a hardware problem. Based on Stuart and Matti's advice, it would seem to any reasonable person that one might try updating the kernel. If it were me, I'd take one of the 12 boxes and try it. Just a suggestion.

JP
drb_1
Occasional Advisor

Re: Linux Date

From your frustration,
I suspect you may be unaware that in
typical front-end/engine style,
unix uses two clocks, and timezone locale
setting.

The hardware clock is like a watch for host.
It has a battery that maintains the time
when the host is off,
and which must be replaced/recharged
periodically.

The system clock is a virtual clock
that is set to match the hardware clock
when the host is booted, and daily(?)
thereafter.

The default time reported by date,
and otherwise often used,
is offset from the system clock,
according to timezone set with
environment variable "$TZ".



The hardware clock and the system clock
are normally set to UTC,
a.k.a. "internet time".

You can read the system clock setting as
ksh> date -u



This may be naive,
but is it possible that you have ntp setup,
and configured to use an ntp server,
that is improperly set.

This would account for resetting the time
after a few days.
(ntp would be doing its job of synchronizing
your host clocks.)

If ntp is in use and misconfigured,
after setting the time
and immediately seeing a correct report from
ksh> date -u
wait a few days, and rerun
ksh> date -u
to see major drift.


How can you determine if an ntp client
is running?
Where are the logs?

On my box, I know that ntp is being used,
(due to recent DST problems) but
/etc/ntp.conf and /etc/ntp.drift
appear unused,
ksh> ps -ef | grep ntp
and
ksh> netstat | grep 123
report nothing.




Is it possible that you have the timezone
($TZ) set inconsistently.
This would account for a fixed multi-hour
offset.
(When you reset the time with an inconsistent
timezone, you may offset the hardware clock,
by a fixed number of hours.)

If TZ is misconfigured,
after setting the time
and immediate report from
ksh> date -u
will be offset by hours.




When a hardware clock battery fails,
a drifting clock is usually the first symptom,
but before it reaches hours per day,
the host usually shuts down completely.


Hopefully helpful,
Court Campbell
Honored Contributor
Solution

Re: Linux Date

I would suggest running in s clockwise circle as fast as you can. Then maybe you can slow down the earths rotation; therefore, slowing down the system clock.
"The difference between me and you? I will read the man page." and "Respect the hat." and "You could just do a search on ITRC, you don't need to start a thread on a topic that's been answered 100 times already." Oh, and "What. no points???"
gigiz
Valued Contributor

Re: Linux Date

... Court you are a genius ... but sorry i'm not so fast .... have you a DELORIAN for back to the future ....!!!:-)
Wouter Jagers
Honored Contributor

Re: Linux Date

Funny thing:

We are considering the installation of a RedHat server on a VMWare ESX, running on AMD.

However, a supplier just told us he'd seen problems with such configurations before. The description he gave matches your problem exactly ! You seem to not be alone with this.

I've been looking around some more, and found this webpage, containing some potential fixes:

http://kb.vmware.com/selfservice/viewContent.do?externalId=1420

(note that this problem could also arise on non-virtualized boxes)

Let us know how it turns out, since I might soon be facing this issue myself ;-)

Cheers,
Wout
an engineer's aim in a discussion is not to persuade, but to clarify.
gigiz
Valued Contributor

Re: Linux Date

Ok .... i want try the upgrade, but i have a problem, i can't config my server for internet connection ....
I need to download the iso for my server and then install it ...
I want know the kernel version for my server and where i can download it ....

Thanks a lot
Steven E. Protter
Exalted Contributor

Re: Linux Date

Shalom,

Try a newer distribution of Red Hat. Use a PC to get it and burn the cd's. Red Hat 4 update 5 just got released and maybe its mature.

Your problems stem from the fact that the kernel doesn't support the hardware. After update 2 there is no problems with the DL380 class of server, we use a bunch of them.

If by chance you are using base RH 4 because thats all you have and you don't have a subscription to RHN, then consider http://www.centos.org

Its a legal port of RH 4, and its free.

No please read the thread, follow the good advice and let us know what happens.

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
gigiz
Valued Contributor

Re: Linux Date

I have resolved with kernel upgrade.

:-)