LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 11-08-2006, 10:46 AM   #1
heytimc
LQ Newbie
 
Registered: Nov 2003
Distribution: Centos 7/Ubuntu 20.04.2
Posts: 14

Rep: Reputation: 6
Unhappy Different process times?


All.
About a fortnight ago an older (RedHat 9) server started to run
some processes 5 hours late. We are in the "Europe/London"
timezone, currently in GMT and the TZ environment variable is
being correctly set in /etc/profile. Despite (as a last resort)
a reboot, the cron tasks are going off at 9am not 4am and the
even the maillog contains obvious process-different timestamps,
vis excerpt:

Nov 6 09:37:18 man1 sendmail[7703]: kA693YVO007703: from=root,
size=417, class=0, nrcpts=1,
msgid=<200611060903.kA693YVO007703@******.co.uk>, rel
ay=root@localhost
Nov 6 04:37:18 man1 sendmail[7922]: kA69bI0U007922:
from=<root@******.co.uk>, size=714, class=0, nrcpts=1,
msgid=<200611060903.kA693YVO007703@******.co.uk>, proto=ESMTP,
daemon=MTA, relay=localhost.localdomain [127.0.0.1]
Nov 6 09:37:18 man1 sendmail[7703]: kA693YVO007703: to=root,
ctladdr=root (0/0), delay=00:33:44, xdelay=00:00:00,
mailer=relay, pri=30417, relay=[127.0.0.1
] [127.0.0.1], dsn=2.0.0, stat=Sent (kA69bI0U007922 Message
accepted for delivery)
Nov 6 04:37:21 man1 sendmail[7923]: kA69bI0U007922:
to=administrators@******.co.uk, ctladdr=<root@******.co.uk>
(0/0), delay=00:00:03, xdelay=0
0:00:03, mailer=relay, pri=30959, relay=******.co.uk
[200.200.200.2], dsn=2.0.0, stat=Sent (kA69bI5I005319 Message
accepted for delivery)

Which looks like the sendmail process has the correct "temporal
view"!! but not cron.

Any ideas?

Tim Clarke
 
Old 11-08-2006, 11:07 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
server started to run some processes 5 hours late.
So you checked for what things that changed up to a fortnight ago?


older (RedHat 9) server
RHL, EOL'd in 2004, Fedora Legacy support, etc, etc. You know the drill, right?
 
Old 11-08-2006, 11:13 AM   #3
heytimc
LQ Newbie
 
Registered: Nov 2003
Distribution: Centos 7/Ubuntu 20.04.2
Posts: 14

Original Poster
Rep: Reputation: 6
Hehe and I thought I was being explicit.

I checked everything TZ related that I could think of; startup scripts, env vars /etc/localtime file hw time. No joy. Yeah I know its EOL and just about to be upgraded but there *has* to be a simple answer to this that's not a re-install/upgrade/package/blah issue?
 
Old 11-08-2006, 11:24 AM   #4
heytimc
LQ Newbie
 
Registered: Nov 2003
Distribution: Centos 7/Ubuntu 20.04.2
Posts: 14

Original Poster
Rep: Reputation: 6
Hmmm...seems that creating an /etc/timezone file will do the trick:

su -c "echo Europe/London > /etc/timezone"

Can't find documentation on that at first attempt. Will go away and dig. Also try to work out why three other boxes (some different RH distros, granted) have no file either but no problem.....
 
Old 11-08-2006, 01:30 PM   #5
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Hehe and I thought I was being explicit.
Yeah, you've been thorough on a different plane, different train of thought. I'm thinking that if a system operates "as advertised" w/o interruption then if changes occur they can be contributed to either human intervention (good or bad) or say upgrades. So what I was thinking was tracking changes by looking for files with changed MAC times and recent updates...


Yeah I know its EOL and just about to be upgraded but there *has* to be a simple answer to this that's not a re-install/upgrade/package/blah issue?
Sure is.


Hmmm...seems that creating an /etc/timezone file will do the trick:
su -c "echo Europe/London > /etc/timezone"

LOL. Never heard of /etc/timezone.

I do know TZ skew between apps usually can be contributed to a problem with /etc/localtime (Glibc). Fix that by slinking: "ln -sf /usr/share/zoneinfo/Europe/London /etc/localtime". For other typical probs you'd check /etc/sysconfig/clock: "grep ^ZONE= /etc/sysconfig/clock" should show your TZ as "Europe/London".


BTW: there's an edit button so you can edit your post and add info.
 
Old 11-09-2006, 05:58 AM   #6
heytimc
LQ Newbie
 
Registered: Nov 2003
Distribution: Centos 7/Ubuntu 20.04.2
Posts: 14

Original Poster
Rep: Reputation: 6
Talking

> Yeah, you've been thorough on a different plane, different train
> of thought. I'm thinking that if a system operates "as advertised"
> w/o interruption then if changes occur they can be contributed to
> either human intervention (good or bad) or say upgrades. So what I was
> thinking was tracking changes by looking for files with changed MAC
> times and recent updates...

Me thorough? lol. Well I did start at exactly that point but got no changes that I could obviously trace to this prob :-( So I started from scratch with tz configuration. Gotta be simple I thought...

> LOL. Never heard of /etc/timezone.

lol - suggestion from another list - can't find man or docs on it either....

> I do know TZ skew between apps usually can be contributed to a problem
> with /etc/localtime (Glibc). Fix that by slinking: "ln -sf
> /usr/share/zoneinfo/Europe/London /etc/localtime". For other typical
> probs you'd check /etc/sysconfig/clock: "grep ^ZONE=
> /etc/sysconfig/clock" should show your TZ as "Europe/London".

Skew? Nope, ntp fine and we're not talking even a few minutes here. 5 hours dead different it was.

> BTW: there's an edit button so you can edit your post and add info.?

ooo shiny



Thread closable now, crystal ball still required for reason....thanks unSpawn!
 
  


Reply

Tags
management, process, server, time



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how a father process know which child process send the signal SIGCHLD icoming Programming 10 07-20-2010 07:26 AM
child process usses same amount of ram as parent process socialjazz Programming 7 10-19-2006 05:48 PM
Data transfer online is slow "at times" or "stops at times" Balarabay1 SUSE / openSUSE 14 04-30-2006 10:00 AM
System hangs; Atheros Madwifi-ping times out every 15/16 times james 456 Linux - Networking 0 01-12-2006 06:55 PM
Bash Scripting - child process affecting parent process mthaddon Linux - General 1 05-02-2004 01:19 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 04:58 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration