2 Replies Latest reply: Sep 20, 2012 1:45 PM by user12000796 RSS

    How to set the NTP on Oracle Linux 5.8

    user12000796
      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
          Catch~22
          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
            user12000796
            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".