GPNP配置文件重要性

 GPnP profile文件

在Clusterware中,CSS、GPnP等服务的启动都需要依赖于GPnP profile文件。GPnP profile是一个XML文件,引导节点加入集群,GPnP profile提供了新节点的配置信息。GPnP profile还指定了整个集群的特性。如果该文件被破坏或丢失,Clusterware将无法正常启动。

在Clusterware启动期间,CSS守护进程使用GPnP profile发现表决文件(参数“DiscoveryString”)。一个不正确的Discovery字符串将阻止CSS守护进程启动,导致整个CRS无法启动。

注意   Oracle不支持手动修改profile.xml文件,直接对它的修改可能导致无法修复的问题,最终导致在所有节点重建Clusterware。

GPnP profile文件保存的是集群的配置信息。默认的保存位置是:

$GRID_HOME/gpnp/$HOSTNAME/profile/peer/profile.xml

$GRID_HOME/gpnp/profile/peer/profile.xml(全局备份)

下面是典型的GPnP profile内容(/u01/app/11.2.0/grid/gpnp/profiles/peer/profile.xml):


 
  1. <?xml version="1.0" encoding="UTF-8"?> 
  2. <gpnp:GPnP-Profile Version="1.0" xmlns="http://www.grid-pnp.org/2005/11/gpnp-  
  3. profile" xmlns:gpnp="http://www.grid-pnp.org/2005/11/  
  4. gpnp-profile" xmlns:orcl="http://www.oracle.com/gpnp/  
  5. 2005/11/gpnp-profile" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
  6. xsi:schemaLocation="http://www.grid-pnp.org/2005/11/gpnp-profile gpnp-  
  7. profile.xsd" ProfileSequence="4" ClusterUId="33b46b234583df41ff600bf1d9904cea" 
  8. ClusterName="rhel-cluster" PALocation=""> 
  9.     <gpnp:Network-Profile> 
  10.         <gpnp:HostNetwork id="gen" HostName="*"> 
  11.     <gpnp:Network id="net1" IP="10.168.4.0" Adapter="eth0" Use="public"/> 
  12.     <gpnp:Network id="net2" IP="192.168.1.0" Adapter="eth1" 
  13.     Use="cluster_interconnect"/> 
  14.     <gpnp:Network id="net3" IP="192.168.1.0" Adapter="eth2" 
  15.     Use="cluster_interconnect"/> 
  16.         </gpnp:HostNetwork> 
  17.     </gpnp:Network-Profile> 
  18.     <orcl:CSS-Profile id="css" DiscoveryString="+asm" LeaseDuration="400"/> 
  19.     <orcl:ASM-Profile id="asm" DiscoveryString="/dev/raw/*,ORCL:*" 
  20.     SPFile="+OCRVDISK/rhel-cluster/asmparameterfile/registry.253.684539075"/> 
  21.     <ds:Signature xmlns:ds="http://www.w3.org/2000/09/xmldsig#"> 
  22.         <ds:SignedInfo> 
  23.             <ds:CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-  
  24.         exc-c14n#"/> 
  25.             <ds:SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1"/> 
  26.             <ds:Reference URI=""> 
  27.                 <ds:Transforms> 
  28.                     <ds:Transform Algorithm="http://www.w3.org/2000/09/  
  29.                         xmldsig#enveloped-signature"/> 
  30.                     <ds:Transform Algorithm="http://www.w3.org/  
  31.                     2001/10/xml-exc-c14n#"> 
  32.                         <InclusiveNamespaces xmlns="  
  33.     http://www.w3.org/2001/10/xml-exc-c14n#" PrefixList="gpnp orcl xsi"/> 
  34.                     </ds:Transform> 
  35.                 </ds:Transforms> 
  36.                 <ds:DigestMethod Algorithm="http://www.  
  37.                 w3.org/2000/09/xmldsig#sha1"/> 
  38.                 <ds:DigestValue>tJwvbopVU0UhRT9K3M6+t9glsbk=</ds:DigestValue> 
  39.             </ds:Reference> 
  40.         </ds:SignedInfo> 
  41.         <ds:SignatureValue>XH4UsWRss5MLcgLnBPYXgf4LK/6/EinZL30y  
  42.         Lqe1oavr1tAQFi63XQjW7qpglukNaR3IZX2roOPnlocf3  
  43.         spcnAXUufDlGyUFN7Tf3zqa25P9Xfs2yvdFB24kN81eZNrlANC5own0LbpKL7  
  44.         yiBW6vMr/rz8OgbIzLkb/zkylBKfQ=</ds:SignatureValue> 
  45.     </ds:Signature> 
  46. </gpnp:GPnP-Profile> 


通过上面的例子可以看出,GPnP profile保存的是RAC的配置信息,包括集群名称、网络类型信息(public/private)、ASM和CSS的存储信息、安全的数字签名,以及ASM实例的SPFILE文件位置。当集群配置发生变化时,所有节点的该文件会被自动更新。在安装、系统引导或者当使用标准的集群工具更新期间,这些活动包括:oifcfg 改变网络信息、crsctl 改变css设备、ASM额外的存储等,会通过gpdpd进程复制GPnP profile到所有的其他节点。

如果GPnP出现问题,可以使用cluvfy comp gpnp组件验证命令检查在集群中所有节点网格即插即用的完整性。

 
  1. cluvfy comp gpnp [-n node_list] [-verbose] 


  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值