cluvfy falha com erro PRVF-7590 no Oracle Linux 7

Em uma instalação de Oracle Grid Infrastructure 12.1.0.2 em Oracle Linux 7, o cluvfy retorna a seguinte advertência ao validar o serviço de sincronização de tempo:

$ cluvfy comp clocksync -n rac01,rac02
Verifying Clock Synchronization across the cluster nodes
Oracle Clusterware is installed on all nodes.
CTSS resource check passed
Query of CTSS for time offset passed
CTSS is in Observer state. Switching over to clock synchronization checks using NTP
Starting Clock synchronization checks using Network Time Protocol(NTP)…
NTP configuration file "/etc/ntp.conf" existence check passed
PRVF-7590 : "ntpd" is not running on node "rac02"
PRVF-7590 : "ntpd" is not running on node "rac01"
PRVG-1024 : The NTP Daemon or Service was not running on any of the cluster nodes.
PRVF-5415 : Check to see if NTP daemon or service is running failed
Clock synchronization check using Network Time Protocol(NTP) failed

Mas o serviço ntpd está executando normalmente:

$ systemctl status ntpd
ntpd.service - Network Time ServiceLoaded: loaded (/usr/lib/systemd/system/ntpd.service; enabled; vendor preset: disabled)
Active: active (running) since Thu 2020-10-15 21:00:10 -03; 49min ago
Main PID: 17968 (ntpd)
CGroup: /system.slice/ntpd.service
└─17968 /usr/sbin/ntpd -u ntp:ntp -g
$ ntpd -p

Causa

O cluvfy não verifica o status do serviço via “systemctl status”, o utilitário verifica a existência do arquivo /var/run/ntpd.pid, se este arquivo não existir, ele interpreta que o serviço não está executando.

$ cat /var/run/ntpd.pid
cat: /var/run/ntpd.pid: No such file or directory

Por padrão, este arquivo não é criado automaticamente no Oracle Linux 7.

Solução

Por padrão, o arquivo /etc/sysconfig/ntpd tem esse conteúdo:

OPTIONS="-g"

Altere para ficar desta forma:

OPTIONS="-g -p /var/run/ntpd.pid"

Reinicie o serviço ntpd:

# systemctl restart ntpd

Verifique o status do serviço e note que ele iniciou com o novo parâmetro.

$ systemctl status ntpd

Execute o cluvfy novamente:

cluvfy comp clocksync -n rac01,rac02
Verifying Clock Synchronization across the cluster nodes
Oracle Clusterware is installed on all nodes.
CTSS resource check passedQuery of CTSS for time offset passed
CTSS is in Observer state. Switching over to clock synchronization checks using NTP
Starting Clock synchronization checks using Network Time Protocol(NTP)…
NTP configuration file "/etc/ntp.conf" existence check passed
Liveness check passed for "ntpd"
Check for NTP daemon or service alive passed on all nodes
Check of common NTP Time Server passed
Clock time offset check passed
Clock synchronization check using Network Time Protocol(NTP) passed
Oracle Cluster Time Synchronization Services check passed
Verification of Clock Synchronization across the cluster nodes was successful.

Leave a Reply

Scroll to Top

Discover more from Blog do Dibiei

Subscribe now to keep reading and get access to the full archive.

Continue reading