Linux - GeneralThis 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
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.
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).
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.
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!
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?
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
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.