客户背景

inet 10.132.125.137  netmask 255.255.255.192     -- 心跳网络IP (主机私有网络IP)

# oifcfg getif
ens192  10.132.122.0  global  public
ens224  10.132.125.128  global  cluster_interconnect

oifcfg setif -global ens224/10.132.125.128:cluster_interconnect  >>>>>对的  
                         
oifcfg setif -global ens224/10.132.125.129:cluster_interconnect  >>>>错误的

oifcfg delif -global ens224/10.132.125.137 >>>>>>这个估计是老的
oifcfg delif -global ens224/10.132.125.128  >>>>对的被删除了

oifcfg setif -global ens224/10.132.125.129:cluster_interconnect  保存了错误的

gpnp profile.xml 中 心跳网络 ens224/10.132.125.128 正确的,被保存错了ens224/10.132.125.129,和 ocr 中私有网络无法匹配,导致 crs 服务无法启动。后来客户还对ocr还做了还原操作。(最近8小时的备份,修改心跳网络之前的ocr备份)

解决方案

[root@host01 ~]# cd /u01/app/11.2.0/grid/gpnp/host01/profiles/peer/
[root@host01 peer]# cp profile.xml profile.bak

– remove the oracle signature from the file –
[root@host01 peer]# gpnptool unsign -p=profile.bak
Warning: some command line parameters were defaulted. Resulting command line:
         /u01/app/11.2.0/grid/bin/gpnptool.bin unsign -p=profile.bak -o-

– change the DiscoveryString itself –
unnamed1!
Resulting profile written to “profile.bak”.
Success.

-- 修改 net2 私有网络 和 profllesequence 序列号(改大)
vi profile.bak

/ * gpnptool edit xxx -p=profile.bak -o=profile.bak -ovr

-prf_sq=<序列号> 

* /


–  sign the profile xml file with the wallet (Notice: the path is only the directory to the wallet, NOT the wallet file itself) –
[root@host01 peer]# gpnptool sign -p=profile.bak -w=file:/u01/app/11.2.0/grid/gpnp/host01/wallets/peer/ -o=profile.new
Resulting profile written to “profile.new”.
Success.

–  move the original profile.xml out of the way 
[root@host01 peer]# mv profile.new profile.xml

– check that discovery string has been modified
[root@host01 peer]# cat profile.xml

 修改后又遇到启动无法扫描的asm盘的问题

crsctl start crs -excl -nocrs 独占模式

sqlplus / as sysasm

create pfile='/home/oracle/xxx.pfile' from spfile = 'xxx' 保存一份pfile文件

alter system set asm_diskstring='/dev/mapper/*';  会更新到gpnp里面