11g R2 RAC: LET’S LOSE GPNP PROFILE

In an earlier post GPNP PROFILE DEMYSTIFIED , I had explained what is GPnP profile, what does it contain and how is it used by clusterware.
In this post, I will demonstrate what happens if we lose GPnP profile.

Current scenario:
2 Node cluster
Cluster name : cluster01.example.com
Host names : host01, host02

Overview:
- Rename GPnP profile on a node (host02)
- Stop and restart crs
- File pending.xml is created in GRID_HOME/gpnp//profiles/peer
- Change ASM_DISKSTRING parameter which causes GPnP profile to be updated
- As soon as the parameter is changed, pending.xml is renamed to profile.xml and Discoverystring for ASM is updated in it.

 Let’s start …
– Rename GPnP profile on host02

   [root@host02 cdata]# mv /u01/app/11.2.0/grid/gpnp/host02/profiles/peer/profile.xml /u01/app/11.2.0/grid/gpnp/host02/profiles/peer/profile.bak
- Stop and restart crs on host02
     [root@host02 cdata]#crsctl stop crs
     [root@host02 cdata]#crsctl start crs
-- Check the alert log simultaneously and note that just prior to the start of CSSD daemon, GPnP daemon on node2 copies the GPnP profile from host01 and file pending.xml is created in GRID_HOME/gpnp//profiles/peer

[ohasd(24187)]CRS-2772:Server ‘host02′ has been assigned to pool ‘Free’.
2013-01-17 01:35:14.635
[cssd(24416)]CRS-1713:CSSD daemon is started in clustered mode
 [root@host02 cdata]# ls /u01/app/11.2.0/grid/gpnp/host02/profiles/peer/pending*
/u01/app/11.2.0/grid/gpnp/host02/profiles/peer/pending.xml

—- Open the file pending.xml and note that DiscoveryString for ASM is “”
DiscoveryString=””SPFile=”+DATA/cluster01/asmparameterfile/registry.253.804837235″/>

– Change ASM_DISKSTRING parameter which causes GPnP profile to be updated
   SQL>alter system set ASM_DISKSTRING='ORCL:*';
- As soon as the parameter is changed, pending.xml is renamed to profile.xml and Discoverystring for ASM is updated in it.
[root@host02 cdata]# ls /u01/app/11.2.0/grid/gpnp/host02/profiles/peer/profile.xml
/u01/app/11.2.0/grid/gpnp/host02/profiles/peer/profile.xml

 —- Open the file profile.xml and note that DiscoveryString for ASM has been updated
DiscoveryString=”ORCL:*” SPFile=”+DATA/cluster01/asmparameterfile/registry.253.804837235″/>

Conclusion:
Whenever GPnP profile is not present, it is automatically copied from existing nodes by GPnPd as pending.xml . Whenever, profile is updated, it is automatically renamed to profile.xml.
———————————————————————————-

Related links:

 

7 thoughts on “11g R2 RAC: LET’S LOSE GPNP PROFILE

  1. Hi ma’am
    First of all congratulations on becoming Oracle Ace Associate.
    The profile.xml file is created automatically even if other nodes are down. My understanding is that profile.xml is generated from OLR when CRS starts.

    If we do “ocrdump -local “, we can see fields [SYSTEM.GPnP.profiles.peer.best] BYTESTREAM (16) : and [SYSTEM.GPnP.profiles.peer.pending] BYTESTREAM (16) : and on converting these hex value we get the content of the profile.xml. Please correct me if am wrong.

    Thanks for all your blogs

    1. Hi Charles,

      Thanks.
      You are absolutely correct. The profile.xml file is created automatically even if other nodes are down. I also had the impression that it must be getting generated from OLR.
      Now that you have verified that by converting hex values in OLR content, it is confirmed. Can you please share how did you converted the hex values?

      Thanks for your time.

      regards
      Anju Garg

Your comments and suggestions are welcome!