LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 03-22-2018, 06:14 AM   #1
umar79
LQ Newbie
 
Registered: Oct 2007
Posts: 16

Rep: Reputation: 0
System OS Time keep changing automatically


HI

We are facing an issue on one of Red Hat 5.6 VM OS that the time is keep adding in minutes for every hour.

Please help out that how we can check the command or any auto schedule setup which adding time in regular intervals.

Umar
 
Old 03-22-2018, 03:23 PM   #2
MadeInGermany
Senior Member
 
Registered: Dec 2011
Location: Simplicity
Posts: 2,832

Rep: Reputation: 1218Reputation: 1218Reputation: 1218Reputation: 1218Reputation: 1218Reputation: 1218Reputation: 1218Reputation: 1218Reputation: 1218
Do you have a virtual system?
Then also consider to check the time on the host system.
 
Old 03-22-2018, 08:40 PM   #3
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,380
Blog Entries: 28

Rep: Reputation: 6163Reputation: 6163Reputation: 6163Reputation: 6163Reputation: 6163Reputation: 6163Reputation: 6163Reputation: 6163Reputation: 6163Reputation: 6163Reputation: 6163
Are you syncing the time to an ntp server?
 
1 members found this post helpful.
Old 03-22-2018, 08:43 PM   #4
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,783

Rep: Reputation: 5936Reputation: 5936Reputation: 5936Reputation: 5936Reputation: 5936Reputation: 5936Reputation: 5936Reputation: 5936Reputation: 5936Reputation: 5936Reputation: 5936
What Virtualization software are you running? VMware, VirtualBox etc.
 
Old 03-26-2018, 09:42 AM   #5
umar79
LQ Newbie
 
Registered: Oct 2007
Posts: 16

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by MadeInGermany View Post
Do you have a virtual system?
Then also consider to check the time on the host system.
Yes, we are using Virtual System VM_Where. We have two virtual machines on same system. One is working fine and time inline with OS but another is continuously changing (aprx adding 3 minutes for every hour).
 
Old 03-26-2018, 10:17 AM   #6
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,750

Rep: Reputation: 7983Reputation: 7983Reputation: 7983Reputation: 7983Reputation: 7983Reputation: 7983Reputation: 7983Reputation: 7983Reputation: 7983Reputation: 7983Reputation: 7983
Quote:
Originally Posted by umar79 View Post
Yes, we are using Virtual System VM_Where. We have two virtual machines on same system. One is working fine and time inline with OS but another is continuously changing (aprx adding 3 minutes for every hour).
You do realize that RHEL 5.6 has been totally unsupported/EOL for a LONG time now, right? That your system is insecure and unpatched?? I would strongly suggest you stop where you are and install the latest RHEL 7.4 (after PAYING FOR IT), and your problem should then resolve itself.

Otherwise, there were known issues with RHEL 5 on certain VM instances, where the clocks would skew badly. This was patched by Red Hat, and (if you were PAYING for RHEL), that patch would have been applied. VMware also issued a patch, if I remember correctly...have you applied that patch as well? Otherwise, you can simply put a script in CRON to update the system time every 30 minutes or so, but you're not doing yourself any favors by doing this. Your system is still in dire need of attention.
 
Old 03-26-2018, 11:47 AM   #7
DavidMcCann
LQ Veteran
 
Registered: Jul 2006
Location: London
Distribution: PCLinuxOS, Salix
Posts: 6,148

Rep: Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314
RHEL 5.6 dates from 2011. The last version update was 5.11 in 2014. There were a lot of updates and security patches between the two! Your system is an accident waiting to happen.

If you can't or won't pay for RHEL, get CentOS. It's virtually identical, endorsed by Red Hat, and free. Above all, it will actually work!
 
2 members found this post helpful.
Old 03-26-2018, 11:24 PM   #8
umar79
LQ Newbie
 
Registered: Oct 2007
Posts: 16

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by TB0ne View Post
You do realize that RHEL 5.6 has been totally unsupported/EOL for a LONG time now, right? That your system is insecure and unpatched?? I would strongly suggest you stop where you are and install the latest RHEL 7.4 (after PAYING FOR IT), and your problem should then resolve itself.

Otherwise, there were known issues with RHEL 5 on certain VM instances, where the clocks would skew badly. This was patched by Red Hat, and (if you were PAYING for RHEL), that patch would have been applied. VMware also issued a patch, if I remember correctly...have you applied that patch as well? Otherwise, you can simply put a script in CRON to update the system time every 30 minutes or so, but you're not doing yourself any favors by doing this. Your system is still in dire need of attention.
Thank you for the details, I will check the versions and will plan to upgrade. Currently we have installed two VM where same OS versions on same machine. One is giving problem while other running fine. Is there any command to check Kernal's log where time is updating? or any other way to check the main cauz?
 
Old 03-28-2018, 10:03 AM   #9
MadeInGermany
Senior Member
 
Registered: Dec 2011
Location: Simplicity
Posts: 2,832

Rep: Reputation: 1218Reputation: 1218Reputation: 1218Reputation: 1218Reputation: 1218Reputation: 1218Reputation: 1218Reputation: 1218Reputation: 1218
On the same host you have two virtual systems with the same OS but different behavier?
The system clock is in the kernel.
Compare the kernel boot args in grub.conf!
Do you have an ntp sync running? Check with command
ntpq -p
 
1 members found this post helpful.
Old 03-28-2018, 10:10 AM   #10
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,750

Rep: Reputation: 7983Reputation: 7983Reputation: 7983Reputation: 7983Reputation: 7983Reputation: 7983Reputation: 7983Reputation: 7983Reputation: 7983Reputation: 7983Reputation: 7983
Quote:
Originally Posted by umar79 View Post
Thank you for the details, I will check the versions and will plan to upgrade. Currently we have installed two VM where same OS versions on same machine. One is giving problem while other running fine. Is there any command to check Kernal's log where time is updating? or any other way to check the main cauz?
You can check the time with an ntpdate command, but AGAIN, unless you have the relevant patch from RHEL and/or VMWare loaded, your clock will drift. That is the cause of your problem, most likely, as this was a pretty well known bug many years ago when RHEL5 was active.

Again, if you're paying for RHEL and VMWare, call support. And since we know you're not paying for it on RHEL5 (because you CAN'T...because it's that old), your only option left is to upgrade and pay for RHEL. Or use CentOS 7.4 instead. And you can call VMware for support, since that too is a commercial product...their patches also need to be applied.

Again: you can write a script to do an ntpdate adjustment every so often and put it in cron, but it's a poor solution.
 
1 members found this post helpful.
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Does fail2ban start automatically each time system starts? grigory Linux - Server 2 03-10-2016 02:27 PM
[SOLVED] The system time switches the time zone automatically but doesn't change the time RandomTroll Linux - Software 9 03-15-2013 12:28 PM
changing the time in the system tray alejan74 General 1 06-30-2005 07:55 PM
Changing System Time rjshirts Linux - Software 4 01-24-2005 03:48 PM
System will automatically close my x server after a certain idle time. ICO Slackware 1 02-16-2004 11:26 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 09:41 AM.

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