Time sync issue in redhat system
In my redhat system, the time is showing 30 mins less than actual time.When I modify the time to actual time,after 3 mins it reverse back to previous time. Ntp is stopped.
I am getting below message from log Jun 17 19:50:32 rzsbcx10 ntpd[4969]: ntpd exiting on signal 15 Jun 17 19:50:33 rzsbcx10 ntpd: ntpd shutdown succeeded Pls give any solution. |
How are you "modifying" the time to the actual time?
Why is ntp stopped? |
I am modifying through ntpdate by syncing with external clock.I stopped the ntpd manually so that the time can't change automatically.
|
If this is Red Hat 7, it uses chronyd, not ntpd, for time synchronization.
|
What version of Red Hat are you running?
It this a real or virtual machine? Are you syncing to a NTP pool server or an internal network timeserver? |
Red Hat Enterprise Linux AS release 4 (Nahant Update 5)
|
its a real machine
|
internal network timeserver
|
What about the other questions?
If ntpd is shutdown there should be no other process that should automatically update time unless you have some cron job that runs ntpdate. Can you post your ntp.conf file? How does the internal time server sync time? |
1 Attachment(s)
I have added a cron job of ntpdate to sync with network timeserver.
#30 05 * * * /usr/sbin/ntpdate 10.201.130.89; /sbin/hwclock -w But due to this problem I have disable this cron job and manually update the time using ntpdate but after sometime system time automatically changes but hwclock remain same. |
Code:
# --- OUR TIMESERVERS ----- Check the running processes. Are you sure ntpd is not running? |
Yes I have commented out those servers for troubleshoot.
I am checking with command Service ntpd status and it is showing ntpd is stopped. Not sure another cron job isrunning or not.How to check? except "crontab -l" |
Check the cron logs /var/log/cron
The system cron files are located here: /etc/cron.d /etc/cron.daily /etc/cron.hourly /etc/cron.monthly /etc/cron.weekly /etc/crontab |
[root@rzsbcx10 ~]# cd /etc/cron.d
[root@rzsbcx10 cron.d]# ls sysstat [root@rzsbcx10 cron.d]# more sysstat # run system activity accounting tool every 10 minutes */10 * * * * root /usr/lib/sa/sa1 1 1 # generate a daily summary of process accounting at 23:53 53 23 * * * root /usr/lib/sa/sa2 -A [root@rzsbcx10 cron.d]# more /etc/cron.daily *** /etc/cron.daily: directory *** [root@rzsbcx10 cron.d]# more /etc/cron.hourly *** /etc/cron.hourly: directory *** [root@rzsbcx10 cron.d]# more /etc/cron.monthly/ *** /etc/cron.monthly/: directory *** [root@rzsbcx10 cron.d]# more /etc/cron.weekly/ *** /etc/cron.weekly/: directory *** [root@rzsbcx10 cron.d]# more /etc/crontab SHELL=/bin/bash PATH=/sbin:/bin:/usr/sbin:/usr/bin MAILTO=root HOME=/ # run-parts 01 * * * * root run-parts /etc/cron.hourly 02 4 * * * root run-parts /etc/cron.daily 22 4 * * 0 root run-parts /etc/cron.weekly 42 4 1 * * root run-parts /etc/cron.monthly |
I have stopped the cron job using command service crond stop but still time is changing.
|
All times are GMT -5. The time now is 09:41 AM. |