Saturday, March 26, 2016

CLSGPNP_NO_PROFILE. GPnP profile 'profile.xml' does not exist

LOSS OF GPnP Profile "profile.xml"
CLSGPNP_NO_PROFILE. GPnP profile 'profile.xml' does not exist

From gpnp.log

CLSGPNP_NO_PROFILE. GPnP profile 'profile.xml' does not exist in '/grid/app/11.2.0.3/grid/gpnp/rac122/profiles/peer/'

Grid Home : alertrac122.log

CRS-2302:Cannot get GPnP profile. Error CLSGPNP_NO_DAEMON (GPNPD daemon is not running).

gpnp.log

2016-03-26 22:52:32.562: [  clsdmt][1569007360]Writing PID [11790] to the file [/grid/app/11.2.0.3/grid/gpnp/init/rac122.pid]
2016-03-26 22:52:32.566: [    GPNP][1580644128]clsgpnpcf_readf: [at clsgpnpcf.c:523] Result: (26) CLSGPNP_NO_PROFILE. GPnP profile 'profile.xml' does not exist in '/grid/app/11.2.0.3/grid/gpnp/rac122/profiles/peer/'
2016-03-26 22:52:32.566: [    GPNP][1580644128]clsgpnpcf_readf: [at clsgpnpcf.c:525] SlfLengthn profile
Internal Error Information:
  Category: SLF_NOENT(-5)
  Operation: stat failed
  Location: SlfStat1
  Other:
  Dep: 2
  Dep Message: No such file or directory

2016-03-26 22:52:32.566: [    GPNP][1580644128]clsgpnpd_openLocalProfile: [at clsgpnpd.c:3440] Result: (26) CLSGPNP_NO_PROFILE. Got no local best profile from file cache provider (LCP-FS).

alertrac122.log

2016-03-26 22:13:29.492
[client(6080)]CRS-2302:Cannot get GPnP profile. Error CLSGPNP_NO_DAEMON (GPNPD daemon is not running).
2016-03-26 22:13:29.493
[client(6080)]CRS-1013:The OCR location in an ASM disk group is inaccessible. Details in /grid/app/11.2.0.3/grid/log/rac122/client/crsctl_oracle.log.
2016-03-26 22:13:34.001
[client(6154)]CRS-2302:Cannot get GPnP profile. Error CLSGPNP_NO_DAEMON (GPNPD daemon is not running).
2016-03-26 22:13:34.002
[client(6154)]CRS-1013:The OCR location in an ASM disk group is inaccessible. Details in /grid/app/11.2.0.3/grid/log/rac122/client/crsctl_oracle.log.
2016-03-26 22:13:37.383
[client(6174)]CRS-2302:Cannot get GPnP profile. Error CLSGPNP_NO_DAEMON (GPNPD daemon is not running).
2016-03-26 22:13:37.384
[client(6174)]CRS-1013:The OCR location in an ASM disk group is inaccessible. Details in /grid/app/11.2.0.3/grid/log/rac122/client/crsctl_oracle.log.
2016-03-26 22:13:47.942
[ohasd(6210)]CRS-2112:The OLR service started on node rac122.
2016-03-26 22:13:47.948
[ohasd(6210)]CRS-1301:Oracle High Availability Service started on node rac122.
2016-03-26 22:13:47.951
[ohasd(6210)]CRS-8017:location: /etc/oracle/lastgasp has 2 reboot advisory log files, 0 were announced and 0 errors occurred


CAUSE :

From the alert log file cluster services prior to the start of CSSD daemon, GPnP daemon on rac121/123 copies the GPnP profile from rac122 and file pending.xml is created in /grid/app/11.2.0.3/grid/gpnp/rac122/profiles/peer

[oracle@rac122 peer]$ ls -l
total 8
-rw-r--r-- 1 oracle oinstall 1970 Mar 26 22:52 pending.xml
-rw-r--r-- 1 oracle oinstall 1970 Mar 26 22:52 profile.xml

Below are logs details from gpnp.log files under /grid/app/11.2.0.3/grid/log/rac122/gpnpd/gpnpd.log

2016-03-26 22:52:33.542: [    GPNP][1580644128]clsgpnpdRCB: [at clsgpnpd.c:3933] GPnPD endpoint url "mdns:gpnp._tcp://rac122:59049/agent=gpnpd,cname=rac-cluster,host=rac122,pid=11790/gpnpd h:rac122 c:rac-cluster" successfully advertised with RD
2016-03-26 22:52:38.735: [    GPNP][1560835840]clsgpnp_profileCallUrlInt: [at clsgpnp.c:2104] put-profile call to url "tcp://rac123:11367" disco "mdns:service:gpnp._tcp.local.://rac123:11367/agent=gpnpd,cname=rac-cluster,host=rac123,pid=21853/gpnpd h:rac123 c:rac-cluster" [f=0 claimed- host:rac122 cname:rac-cluster seq:7 auth:CN=GPnP_peer]
2016-03-26 22:52:38.743: [    GPNP][1560835840]clsgpnp_profileCallUrlInt: [at clsgpnp.c:2234] Result: (25) CLSGPNP_DUPLICATE. Successful put-profile CALL to remote "tcp://rac123:11367" disco "mdns:service:gpnp._tcp.local.://rac123:11367/agent=gpnpd,cname=rac-cluster,host=rac123,pid=21853/gpnpd h:rac123 c:rac-cluster"
2016-03-26 22:52:38.744: [    GPNP][1560835840]clsgpnp_profileCallUrlInt: [at clsgpnp.c:2104] put-profile call to url "tcp://rac121:15322" disco "mdns:service:gpnp._tcp.local.://rac121:15322/agent=gpnpd,cname=rac-cluster,host=rac121,pid=25251/gpnpd h:rac121 c:rac-cluster" [f=0 claimed- host:rac122 cname:rac-cluster seq:7 auth:CN=GPnP_peer]
2016-03-26 22:52:38.792: [    GPNP][1560835840]clsgpnp_profileCallUrlInt: [at clsgpnp.c:2234] Result: (25) CLSGPNP_DUPLICATE. Successful put-profile CALL to remote "tcp://rac121:15322" disco "mdns:service:gpnp._tcp.local.://rac121:15322/agent=gpnpd,cname=rac-cluster,host=rac121,pid=25251/gpnpd h:rac121 c:rac-cluster"




[oracle@rac122 peer]$ ls -l pending*
total 8
-rw-r--r-- 1 oracle oinstall 1970 Mar 26 22:52 pending.xml



SOLUTION

Whenever GPnP profile is not present on surviving node, it will automatically copied from existing nodes by GPnPd as pending.xml . Whenever, profile is updated, it is automatically renamed to profile.xml.

Get the ASM_DISKSTRING parameter value  and try to change with the existing value in order to update the  GPnP profile on surviving node.

[oracle@rac122 gpnpd]$ sqlplus / as sysasm

SQL*Plus: Release 11.2.0.3.0 Production on Sat Mar 26 23:03:37 2016

Copyright (c) 1982, 2011, Oracle.  All rights reserved.


Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
With the Real Application Clusters and Automatic Storage Management options

SQL> show parameter disk

NAME                                 TYPE        VALUE
------------------------------------ ----------- ------------------------------
asm_diskgroups                       string      DG_DATA, DG_FLASH
asm_diskstring                       string      ORCL:*


SQL> alter system set asm_diskstring='ORCL:*';

System altered.


Now verify the existence of pending.xml files.  It's gone now.

-rw-r--r-- 1 oracle oinstall 1970 Mar 26 22:52 profile.xml

oracle@rac122 peer]$



Hope this help :)

No comments:

Post a Comment