Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hi All,
I Have ntp set-up on SLES10 which is working fine, but strange problem i've not come across with clock syncs before.
in Shell type:-
SERVER # date
Fri Dec 5 16:32:55 GMT 2008
SERVER # hwclock
Thu Jul 22 19:54:21 2010 -0.000407 seconds
Then if i 'cat' my firewall entries... I've got iptables logging to a file. I force a filter that triggers iptables to log an occurrence and the time for that occurrence is also completely different.
Dec 5 10:27:42
(Baring in mind all these are done within a few seconds of each other..)
What could be up? The output of 'date' is as it should be, the date and time settings are set to UTC and i've set the GMT time Saving as i want it (to London Greenwich). iptables looks to be just getting the wrong daylight time somehow and hwclock... well i haven't re-booted the server PLUS i haven't forced the clock to sync to hardware clock yet but i can. Perhaps that is the problem?
Hi All,
I Have ntp set-up on SLES10 which is working fine, but strange problem i've not come across with clock syncs before.
What could be up? The output of 'date' is as it should be, the date and time settings are set to UTC and i've set the GMT time Saving as i want it (to London Greenwich). iptables looks to be just getting the wrong daylight time somehow and hwclock... well i haven't re-booted the server PLUS i haven't forced the clock to sync to hardware clock yet but i can. Perhaps that is the problem?
That's what I'd suggest first, is to sync the hardware clock to your system clock.
Also, is this a VM machine by any chance? There is a known problem with VMware linux guests that causes the system clock to skew. A kernel patch is required to fix that. Or, if you have to stay in production you can just have a small CRON job to run "ntpdate" against your time server every five minutes...
Thanks for the info Tbone, i did already go ahead and run that sync which of course would update the harware clock as expected. However no change at all occurred to the time that i saw with iptables logs... Very strange, does sugest some kind of daylight saving issue but damned if i know why thats playing about. Another server exactly the same is working fine.
No not a VMware server... but i didn't know of that issue as i do use VMs and not come across that issue yet... thanks for the heads up on that, i will look into it just in case. OR i have come across it before and it was nothing that ntp couldn't fix for me... anyway i'll double check that.
Thanks for the reply... i gave it a go but nothing changed... Its out by exactly 6 hours which is why it must be something to do with daylight savings and unlikely to be down to skew. I mean its iptables logs i see that the time is out... looking at something like /var/log/messages i can see the correct time for new log entries. So it may just be iptables specifically but still i don't understand why
Cheers,
MJ
Last edited by helptonewbie; 12-06-2008 at 05:06 AM.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.