This discussion is archived
2 Replies Latest reply: Sep 20, 2012 11:45 AM by blevels RSS

How to set the NTP on Oracle Linux 5.8

blevels Newbie
Currently Being Moderated
Hi,
Using:
[root@akr-odba1 ~ 10:40 AM]# cat /etc/issue
Oracle Linux Server release 5.8 - Kernel \r on an \m

Question: How does one set the NTP setting on issue release 5.8 of Oracle Linux?

Background: The default settings are pointing to random locations. I would like to use pool.ntp.org.
However the configuation settings from differ on the 5.8 release. Specifically, the /var/lib/ntp/ntp.drift file missing.
Additionally, the command driftfile is not found.


Thanks,
(BLL)
  • 1. Re: How to set the NTP on Oracle Linux 5.8
    Dude! Guru
    Currently Being Moderated
    You can check and modify /etc/ntp.conf to use the NTP server of your choice. By default it is using public servers from the pool.ntp.org project. For more details http://www.pool.ntp.org/join.html.

    Then type "ntpq" and enter "peers" to see if you can connect.

    The ntpd behavior at startup depends on whether the frequency file, usually /etc/ntp.drift, exists. It should be created automatically after 15 minutes. It may take some hours for the frequency and offset to settle down. See "Frequency Discipline" at http://doc.ntp.org/4.1.0/ntpd.htm

    If there is too much offset between your CMOS clock and the NTP time, you can use the following command to update the CMOS clock.

    <pre>
    hwclock --systohc
    </pre>

    You can also schedule this in cron if your hardware clock is bad. Maybe you need to replace the CMOS battery.
  • 2. Re: How to set the NTP on Oracle Linux 5.8
    blevels Newbie
    Currently Being Moderated
    Thanks.
    The hwclock --systohc command worked.  I'm using an ODA where the secondary node was about 4 minutes off.

    This was generating errors of "CRS-10051:CVU found following errors with Clusterware setup : PRVF-5408 : NTP Time Server".

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points