Skip to content

How to Resolve PRVG-1017 : NTP configuration file

  • by

There're 2 error types of PRVG-1017 in this post.

  1. NTP Configuration in Linux
  2. NTP Configuration in AIX

A. PRVG-1017 in Linux

Found PRVG-1017 which is related to time synchronization during pre-installation of Oracle RAC database 19c:

[grid@primary01 ~]$ cd $ORACLE_HOME
[grid@primary01 grid]$ ./runcluvfy.sh stage -pre crsinst -n primary01,primary02 -verbose
...
Verifying Network Time Protocol (NTP) ...FAILED
primary01: PRVG-1017 : NTP configuration file "/etc/chrony.conf" is present on
           nodes "primary01" on which NTP daemon or service was not running

PRVG-1017 means that NTP service daemon for cluster time synchronization is not running.

Solution

The solution is to install, enable and then start NTP service. In this case, we should enable and start chronyd service daemon in Oracle Linux 7.

[root@primary01 ~]# systemctl enable chronyd
Created symlink from /etc/systemd/system/multi-user.target.wants/chronyd.service to /usr/lib/systemd/system/chronyd.service.
[root@primary01 ~]# systemctl start chronyd

B. PRVG-1017 in AIX

In AIX, we have the same NTP configuration problem.

[grid@primary01 /home/grid]$ cd $ORACLE_HOME
[grid@primary01 /u01/app/19.0.0/grid]$ ./runcluvfy.sh stage -pre crsinst -n primary01,primary02 -verbose
...
Verifying Network Time Protocol (NTP) ...FAILED
primary01: PRVG-1017 : NTP configuration file "/etc/ntp.conf" is present on
           nodes "primary01,primary02" on which NTP daemon or service
           was not running

primary02: PRVG-1017 : NTP configuration file "/etc/ntp.conf" is present on
           nodes "primary01,primary02" on which NTP daemon or service
           was not running

This means that the pre-installation program found there's no NTP service, even though we have /etc/ntp.conf on both nodes.

Solution

The solution is to configure NTP service and make it run.

1. Make sure that NTP Server is Working

[root@primary01 /]# ntpdate -d 10.1.2.100
23 Feb 11:16:29 ntpdate[51839350]: 3.4y
transmit(10.1.2.100)
receive(10.1.2.100)
transmit(10.1.2.100)
receive(10.1.2.100)
transmit(10.1.2.100)
receive(10.1.2.100)
transmit(10.1.2.100)
receive(10.1.2.100)
transmit(10.1.2.100)
server 10.1.2.100, port 123
stratum 3, precision -23, leap 00, trust 000
refid [211.22.103.158], delay 0.02573, dispersion 0.00003
transmitted 4, in filter 4
reference time:      e3deef5e.5bb75571  Tue, Feb 23 2021 11:05:02.358
originate timestamp: e3def201.21cd3025  Tue, Feb 23 2021 11:16:17.132
transmit timestamp:  e3def20d.e8944000  Tue, Feb 23 2021 11:16:29.908
filter delay:  0.02606  0.02573  0.02579  0.02573
               0.00000  0.00000  0.00000  0.00000
filter offset: -12.7764 -12.7766 -12.7765 -12.7765
               0.000000 0.000000 0.000000 0.000000
delay 0.02573, dispersion 0.00003
offset -12.776612

23 Feb 11:16:29 ntpdate[51839350]: step time server 10.1.2.100 offset -12.776612

2. Configure NTP Server

[root@primary01 /]# vi /etc/ntp.conf

#broadcastclient
slewalways yes
server 10.1.2.100 prefer
...

Please make sure broadcastclient is commented out.

3. Configure NTP Reboot

Please remove the leading comment symbol (#) from the command line of xntpd service in /etc/rc.tcpip, so it will start on a reboot.

[root@primary01 /]# vi /etc/rc.tcpip
...
# Start up Network Time Protocol (NTP) daemon
start /usr/sbin/xntpd "$src_running" "-x"

Make sure you add "-x" to enable slewing option.

4. Start NTP Daemon

[root@primary01 /]# startsrc -s xntpd
0513-059 The xntpd Subsystem has been started. Subsystem PID is 51839392.

5. Check NTP Service

[root@primary01 /]# lssrc -ls xntpd
 Program name:    /usr/sbin/xntpd
 Version:         3
 Leap indicator:  11 (Leap indicator is insane.)
 Sys peer:        no peer, system is insane
 Sys stratum:     16
 Sys precision:   -18
 Debug/Tracing:   DISABLED
 Root distance:   0.000000
 Root dispersion: 0.000000
 Reference ID:    no refid, system is insane
 Reference time:  no reftime, system is insane
 Broadcast delay: 0.003906 (sec)
 Auth delay:      0.000122 (sec)
 System flags:    pll monitor filegen
 System uptime:   28 (sec)
 Clock stability: 0.000000 (sec)
 Clock frequency: 0.000000 (sec)
 Peer: 10.1.2.100
      flags: (configured)(preferred)
      stratum:  3, version: 3
      our mode: client, his mode: server
Subsystem         Group            PID          Status
 xntpd            tcpip            51839392     active

Please do it on both nodes.

Leave a Reply

Your email address will not be published.