Wednesday 4 March 2015

LOSE GPNP PROFILE 11G R2 RAC

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.


No comments: