概述:在rac中心跳网络承载着重要的作用,当心跳网络的ip配置不正确亦或网卡名字不对都将使得rac启动等异常;运气不好时,心跳网卡都坏了,更换了一个网卡后是不是只能重装解决呢?
实验内容:
1、心跳网络IP网段配置错误;
2、心跳网络网卡更改或者是修改不正确;
实验一:
[root@rac1 ~]# /u01/app/11.2.0/grid/bin/crsctl stat res -t
--------------------------------------------------------------------------------
NAME TARGET STATE SERVER STATE_DETAILS
--------------------------------------------------------------------------------
Local Resources
--------------------------------------------------------------------------------
ora.DATA.dg
ONLINE ONLINE rac1
ONLINE ONLINE rac2
ora.LISTENER.lsnr
ONLINE ONLINE rac1
ONLINE ONLINE rac2
ora.OCR.dg
ONLINE ONLINE rac1
ONLINE ONLINE rac2
ora.asm
ONLINE ONLINE rac1 Started
ONLINE ONLINE rac2 Started
ora.gsd
OFFLINE OFFLINE rac1
OFFLINE OFFLINE rac2
ora.net1.network
ONLINE ONLINE rac1
ONLINE ONLINE rac2
ora.ons
ONLINE ONLINE rac1
ONLINE ONLINE rac2
ora.registry.acfs
ONLINE ONLINE rac1
ONLINE ONLINE rac2
--------------------------------------------------------------------------------
Cluster Resources
--------------------------------------------------------------------------------
ora.LISTENER_SCAN1.lsnr
1 ONLINE ONLINE rac1
ora.cube.db
1 ONLINE ONLINE rac1 Open
2 ONLINE ONLINE rac2 Open
ora.cvu
1 ONLINE ONLINE rac1
ora.oc4j
1 ONLINE ONLINE rac1
ora.rac1.vip
1 ONLINE ONLINE rac1
ora.rac2.vip
1 ONLINE ONLINE rac2
ora.scan1.vip
1 ONLINE ONLINE rac1
[root@rac1 ~]# /u01/app/11.2.0/grid/bin/oifcfg getif
eth1 100.100.100.0 global cluster_interconnect
bond0 192.168.100.0 global public
[root@rac1 ~]# ifconfig eth1
eth1 Link encap:Ethernet HWaddr 08:00:27:F7:67:C6
inet addr:100.100.100.100 Bcast:100.100.100.255 Mask:255.255.255.0
inet6 addr: fe80::a00:27ff:fef7:67c6/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:15346 errors:0 dropped:0 overruns:0 frame:0
TX packets:39482 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:7218263 (6.8 MiB) TX bytes:40006495 (38.1 MiB)
[root@rac1 ~]# /u01/app/11.2.0/grid/bin/oifcfg setif -global eth1/100.100.200.0:cluster_interconnect
[root@rac1 ~]# /u01/app/11.2.0/grid/bin/oifcfg getif
eth1 100.100.100.0 global cluster_interconnect
bond0 192.168.100.0 global public
eth1 100.100.200.0 global cluster_interconnect
[root@rac1 ~]# /u01/app/11.2.0/grid/bin/oifcfg delif -global eth1/100.100.100.0:cluster_interconnect
[root@rac1 ~]# /u01/app/11.2.0/grid/bin/oifcfg getif
bond0 192.168.100.0 global public
eth1 100.100.200.0 global cluster_interconnect
重新启动群集
[root@rac1 ~]# /u01/app/11.2.0/grid/bin/crsctl stop has
CRS-2791: Starting shutdown of Oracle High Availability Services-managed resources on 'rac1'
CRS-2673: Attempting to stop 'ora.crsd' on 'rac1'
CRS-2790: Starting shutdown of Cluster Ready Services-managed resources on 'rac1'
CRS-2673: Attempting to stop 'ora.LISTENER_SCAN1.lsnr' on 'rac1'
CRS-2673: Attempting to stop 'ora.LISTENER.lsnr' on 'rac1'
CRS-2673: Attempting to stop 'ora.oc4j' on 'rac1'
CRS-2673: Attempting to stop 'ora.OCR.dg' on 'rac1'
CRS-2673: Attempting to stop 'ora.registry.acfs' on 'rac1'
CRS-2673: Attempting to stop 'ora.cube.db' on 'rac1'
CRS-2673: Attempting to stop 'ora.cvu' on 'rac1'
CRS-2677: Stop of 'ora.cvu' on 'rac1' succeeded
CRS-2672: Attempting to start 'ora.cvu' on 'rac2'
CRS-2677: Stop of 'ora.LISTENER_SCAN1.lsnr' on 'rac1' succeeded
CRS-2673: Attempting to stop 'ora.scan1.vip' on 'rac1'
CRS-2677: Stop of 'ora.LISTENER.lsnr' on 'rac1' succeeded
CRS-2673: Attempting to stop 'ora.rac1.vip' on 'rac1'
CRS-2677: Stop of 'ora.scan1.vip' on 'rac1' succeeded
CRS-2672: Attempting to start 'ora.scan1.vip' on 'rac2'
CRS-2674: Start of 'ora.cvu' on 'rac2' failed
CRS-2674: Start of 'ora.scan1.vip' on 'rac2' failed
CRS-2677: Stop of 'ora.cube.db' on 'rac1' succeeded
CRS-2673: Attempting to stop 'ora.DATA.dg' on 'rac1'
CRS-2677: Stop of 'ora.rac1.vip' on 'rac1' succeeded
CRS-2677: Stop of 'ora.DATA.dg' on 'rac1' succeeded
CRS-2677: Stop of 'ora.registry.acfs' on 'rac1' succeeded
CRS-2677: Stop of 'ora.OCR.dg' on 'rac1' succeeded
CRS-2673: Attempting to stop 'ora.asm' on 'rac1'
CRS-2677: Stop of 'ora.asm' on 'rac1' succeeded
CRS-2677: Stop of 'ora.oc4j' on 'rac1' succeeded
CRS-2673: Attempting to stop 'ora.ons' on 'rac1'
CRS-2677: Stop of 'ora.ons' on 'rac1' succeeded
CRS-2673: Attempting to stop 'ora.net1.network' on 'rac1'
CRS-2677: Stop of 'ora.net1.network' on 'rac1' succeeded
CRS-2792: Shutdown of Cluster Ready Services-managed resources on 'rac1' has completed
CRS-2677: Stop of 'ora.crsd' on 'rac1' succeeded
CRS-2673: Attempting to stop 'ora.mdnsd' on 'rac1'
CRS-2673: Attempting to stop 'ora.drivers.acfs' on 'rac1'
CRS-2673: Attempting to stop 'ora.ctssd' on 'rac1'
CRS-2673: Attempting to stop 'ora.evmd' on 'rac1'
CRS-2673: Attempting to stop 'ora.asm' on 'rac1'
CRS-2677: Stop of 'ora.mdnsd' on 'rac1' succeeded
CRS-2677: Stop of 'ora.evmd' on 'rac1' succeeded
CRS-2677: Stop of 'ora.ctssd' on 'rac1' succeeded
CRS-2677: Stop of 'ora.asm' on 'rac1' succeeded
CRS-2673: Attempting to stop 'ora.cluster_interconnect.haip' on 'rac1'
CRS-2677: Stop of 'ora.cluster_interconnect.haip' on 'rac1' succeeded
CRS-2673: Attempting to stop 'ora.cssd' on 'rac1'
CRS-2677: Stop of 'ora.cssd' on 'rac1' succeeded
CRS-2673: Attempting to stop 'ora.gipcd' on 'rac1'
CRS-2677: Stop of 'ora.drivers.acfs' on 'rac1' succeeded
CRS-2677: Stop of 'ora.gipcd' on 'rac1' succeeded
CRS-2673: Attempting to stop 'ora.gpnpd' on 'rac1'
CRS-2677: Stop of 'ora.gpnpd' on 'rac1' succeeded
CRS-2793: Shutdown of Oracle High Availability Services-managed resources on 'rac1' has completed
CRS-4133: Oracle High Availability Services has been stopped.
[root@rac1 ~]# /u01/app/11.2.0/grid/bin/crsctl start has
CRS-4123: Oracle High Availability Services has been started.
[root@rac1 ~]# /u01/app/11.2.0/grid/bin/crsctl stat res -t
CRS-4535: Cannot communicate with Cluster Ready Services
CRS-4000: Command Status failed, or completed with errors.
查看集群启动日志:
[/u01/app/11.2.0/grid/bin/orarootagent.bin(6592)]CRS-5818:Aborted command 'start' for resource 'ora.cluster_interconnect.haip'. Details at (:CRSAGF00113:) {0:0:2} in /u01/app/11.2.0/grid/log/rac1/agent/ohasd/orarootagent_root/orarootagent_root.log.
2018-01-26 09:16:47.206:
[ohasd(6215)]CRS-2757:Command 'Start' timed out waiting for response from the resource 'ora.cluster_interconnect.haip'. Details at (:CRSPE00111:) {0:0:2} in /u01/app/11.2.0/grid/log/rac1/ohasd/ohasd.log
vi /u01/app/11.2.0/grid/log/rac1/ohasd/ohasd.log
85ed0 [0000000000000010] { gipchaContext : host 'rac1', name 'CLSFRAME_cluster', luid '31303692-00000000', numNode 0, numInf 0, usrFlags 0x0, flags 0x63 } to gipcd
2018-01-26 09:17:58.681: [GIPCHDEM][3556767488]gipchaDaemonInfRequest: sent local interfaceRequest, hctx 0x1e85ed0 [0000000000000010] { gipchaContext : host 'rac1', name 'CLSFRAME_cluster', luid '31303692-00000000', numNode 0, numInf 0, usrFlags 0x0, flags 0x63 } to gipcd
2018-01-26 09:18:04.689: [GIPCHDEM][3556767488]gipchaDaemonInfRequest: sent local interfaceRequest, hctx 0x1e85ed0 [0000000000000010] { gipchaContext : host 'rac1', name 'CLSFRAME_cluster', luid '31303692-00000000', numNode 0, numInf 0, usrFlags 0x0, flags 0x63 } to gipcd
2018-01-26 09:18:09.698: [GIPCHDEM][3556767488]gipchaDaemonInfRequest: sent local interfaceRequest, hctx 0x1e85ed0 [0000000000000010] { gipchaContext : host 'rac1', name 'CLSFRAME_cluster', luid '31303692-00000000', numNode 0, numInf 0, usrFlags 0x0, flags 0x63 } to gipcd
2018-01-26 09:18:14.714: [GIPCHDEM][3556767488]gipchaDaemonInfRequest: sent local interfaceRequest, hctx 0x1e85ed0 [0000000000000010] { gipchaContext : host 'rac1', name 'CLSFRAME_cluster', luid '31303692-00000000', numNode 0, numInf 0, usrFlags 0x0, flags 0x63 } to gipcd
种种日志表明,rac的心跳网络出现异常,此时我们可以借助gpnptool 工具进行修改心跳网络的配置:
查看心跳网络配置信息:
[root@rac1 ~]# ifconfig eth1
eth1 Link encap:Ethernet HWaddr 08:00:27:F7:67:C6
inet addr:100.100.100.100 Bcast:100.100.100.255 Mask:255.255.255.0
inet6 addr: fe80::a00:27ff:fef7:67c6/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:39324 errors:0 dropped:0 overruns:0 frame:0
TX packets:63992 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:21550499 (20.5 MiB) TX bytes:54030781 (51.5 MiB
查看gpnp profile的配置信息:
[grid@rac1 gpnp]$ gpnptool get
Warning: some command line parameters were defaulted. Resulting command line:
/u01/app/11.2.0/grid/bin/gpnptool.bin get -o-
<?xml version="1.0" encoding="UTF-8"?><gpnp:GPnP-Profile Version="1.0" xmlns="http://www.grid-pnp.org/2005/11/gpnp-profile" xmlns:gpnp="http://www.grid-pnp.org/2005/11/gpnp-profile" xmlns:orcl="http://www.oracle.com/gpnp/2005/11/gpnp-profile" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.grid-pnp.org/2005/11/gpnp-profile gpnp-profile.xsd" ProfileSequence="20" ClusterUId="afd4fb8a969e6ff0ff47999b3fa206d6" ClusterName="cluster" PALocation=""><gpnp:Network-Profile><gpnp:HostNetwork id="gen" HostName="*"><gpnp:Network id="net1" Adapter="bond0" IP="192.168.100.0" Use="public"/><gpnp:Network id="net2" Adapter="eth1" IP="100.100.200.0" Use="cluster_interconnect"/></gpnp:HostNetwork></gpnp:Network-Profile><orcl:CSS-Profile id="css" DiscoveryString="+asm" LeaseDuration="400"/><orcl:ASM-Profile id="asm" DiscoveryString="/dev/asm*" SPFile="+OCR/cluster/asmparameterfile/registry.253.963054397"/><ds:Signature xmlns:ds="http://www.w3.org/2000/09/xmldsig#"><ds:SignedInfo><ds:CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/><ds:SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1"/><ds:Reference URI=""><ds:Transforms><ds:Transform Algorithm="http://www.w3.org/2000/09/xmldsig#enveloped-signature"/><ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"> <InclusiveNamespaces xmlns="http://www.w3.org/2001/10/xml-exc-c14n#" PrefixList="gpnp orcl xsi"/></ds:Transform></ds:Transforms><ds:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"/><ds:DigestValue>/+xj6ziNHXD2LxYcgnH83yVYWns=</ds:DigestValue></ds:Reference></ds:SignedInfo><ds:SignatureValue>mh8+ulXRy6AgsgBB3AwJ6zdfmZzPTuvHbehpK97FMerHluIoQpmZmsKR0kwkrU03Bx8myEjwRfgz1XMJCZoNwAlvRfihxvQnV8kPAHRdrVOcz+HcYw/yvfkCS7WQJUTXpZwHzqM04xtmP5BgadE5AOxyDuI+hNfcgDeR24V0UhY=</ds:SignatureValue></ds:Signature></gpnp:GPnP-Profile>
Success.
对比发现实际网卡的心跳网络ip是100.100.100.X而profile 文件中的记录是100.100.200.X。
以排他模式及不启动crsd进程启动crs
[root@rac1 ~]# /u01/app/11.2.0/grid/crs/install/rootcrs.pl -unlock
Using configuration parameter file: /u01/app/11.2.0/grid/crs/install/crsconfig_params
CRS-2791: Starting shutdown of Oracle High Availability Services-managed resources on 'rac1'
CRS-2673: Attempting to stop 'ora.ctssd' on 'rac1'
CRS-2673: Attempting to stop 'ora.evmd' on 'rac1'
CRS-2673: Attempting to stop 'ora.drivers.acfs' on 'rac1'
CRS-2673: Attempting to stop 'ora.mdnsd' on 'rac1'
CRS-2677: Stop of 'ora.drivers.acfs' on 'rac1' succeeded
CRS-2677: Stop of 'ora.evmd' on 'rac1' succeeded
CRS-2677: Stop of 'ora.mdnsd' on 'rac1' succeeded
CRS-2677: Stop of 'ora.ctssd' on 'rac1' succeeded
CRS-2673: Attempting to stop 'ora.cssd' on 'rac1'
CRS-2677: Stop of 'ora.cssd' on 'rac1' succeeded
CRS-2673: Attempting to stop 'ora.gipcd' on 'rac1'
CRS-2677: Stop of 'ora.gipcd' on 'rac1' succeeded
CRS-2673: Attempting to stop 'ora.gpnpd' on 'rac1'
CRS-2677: Stop of 'ora.gpnpd' on 'rac1' succeeded
CRS-2793: Shutdown of Oracle High Availability Services-managed resources on 'rac1' has completed
CRS-4133: Oracle High Availability Services has been stopped.
Successfully unlock /u01/app/11.2.0/grid
[root@rac1 ~]# /u01/app/11.2.0/grid/bin/crsctl start crs -excl -nocrs
CRS-4123: Oracle High Availability Services has been started.
CRS-2672: Attempting to start 'ora.mdnsd' on 'rac1'
CRS-2676: Start of 'ora.mdnsd' on 'rac1' succeeded
CRS-2672: Attempting to start 'ora.gpnpd' on 'rac1'
CRS-2676: Start of 'ora.gpnpd' on 'rac1' succeeded
CRS-2672: Attempting to start 'ora.cssdmonitor' on 'rac1'
CRS-2672: Attempting to start 'ora.gipcd' on 'rac1'
CRS-2676: Start of 'ora.cssdmonitor' on 'rac1' succeeded
CRS-2676: Start of 'ora.gipcd' on 'rac1' succeeded
CRS-2672: Attempting to start 'ora.cssd' on 'rac1'
CRS-2672: Attempting to start 'ora.diskmon' on 'rac1'
CRS-2676: Start of 'ora.diskmon' on 'rac1' succeeded
CRS-2676: Start of 'ora.diskmon' on 'rac1' succeeded
CRS-2676: Start of 'ora.cssd' on 'rac1' succeeded
CRS-2672: Attempting to start 'ora.drivers.acfs' on 'rac1'
CRS-2679: Attempting to clean 'ora.cluster_interconnect.haip' on 'rac1'
CRS-2672: Attempting to start 'ora.ctssd' on 'rac1'
CRS-2681: Clean of 'ora.cluster_interconnect.haip' on 'rac1' succeeded
CRS-2672: Attempting to start 'ora.cluster_interconnect.haip' on 'rac1'
CRS-2676: Start of 'ora.drivers.acfs' on 'rac1' succeeded
CRS-2676: Start of 'ora.ctssd' on 'rac1' succeeded
CRS-5017: The resource action "ora.cluster_interconnect.haip start" encountered the following error:
Start action for HAIP aborted. For details refer to "(:CLSN00107:)" in "/u01/app/11.2.0/grid/log/rac1/agent/ohasd/orarootagent_root/orarootagent_root.log".
CRS-2674: Start of 'ora.cluster_interconnect.haip' on 'rac1' failed
CRS-2679: Attempting to clean 'ora.cluster_interconnect.haip' on 'rac1'
CRS-2681: Clean of 'ora.cluster_interconnect.haip' on 'rac1' succeeded
CRS-2673: Attempting to stop 'ora.ctssd' on 'rac1'
CRS-2677: Stop of 'ora.ctssd' on 'rac1' succeeded
CRS-2673: Attempting to stop 'ora.drivers.acfs' on 'rac1'
CRS-2677: Stop of 'ora.drivers.acfs' on 'rac1' succeeded
CRS-4000: Command Start failed, or completed with errors.
[grid@rac1 ~]$ mkdir gpnp
[grid@rac1 ~]$ gpnptool get -o=/home/grid/gpnp/p.xml
Resulting profile written to "/home/grid/gpnp/p.xml".
Success.
[grid@rac1 ~]$ cd gpnp/
[grid@rac1 gpnp]$ cp p.xml profile.xml
[grid@rac1 gpnp]$ gpnptool getpval -p=/home/grid/gpnp/p.xml -prf_sq -o-
20
[grid@rac1 gpnp]$ gpnptool getpval -p=/home/grid/gpnp/p.xml -net -o-
net1 net2
[grid@rac1 gpnp]$ gpnptool edit -p=/home/grid/gpnp/p.xml -o=/home/grid/gpnp/p.xml -ovr -prf_sq=21 -net2:net_ip=100.100.100.0
Resulting profile written to "/home/grid/gpnp/p.xml".
Success.
查看修改成功没:
[grid@rac1 gpnp]$ cat p.xml
<?xml version="1.0" encoding="UTF-8"?><gpnp:GPnP-Profile Version="1.0" xmlns="http://www.grid-pnp.org/2005/11/gpnp-profile" xmlns:gpnp="http://www.grid-pnp.org/2005/11/gpnp-profile" xmlns:orcl="http://www.oracle.com/gpnp/2005/11/gpnp-profile" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.grid-pnp.org/2005/11/gpnp-profile gpnp-profile.xsd" ProfileSequence="21" ClusterUId="afd4fb8a969e6ff0ff47999b3fa206d6" ClusterName="cluster" PALocation=""><gpnp:Network-Profile><gpnp:HostNetwork id="gen" HostName="*"><gpnp:Network id="net1" Adapter="bond0" IP="192.168.100.0" Use="public"/><gpnp:Network id="net2" Adapter="eth1" IP="100.100.100.0" Use="cluster_interconnect"/></gpnp:HostNetwork></gpnp:Network-Profile><orcl:CSS-Profile id="css" DiscoveryString="+asm" LeaseDuration="400"/><orcl:ASM-Profile id="asm" DiscoveryString="/dev/asm*" SPFile="+OCR/cluster/asmparameterfile/registry.253.963054397"/><ds:Signature xmlns:ds="http://www.w3.org/2000/09/xmldsig#"><ds:SignedInfo><ds:CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/><ds:SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1"/><ds:Reference URI=""><ds:Transforms><ds:Transform Algorithm="http://www.w3.org/2000/09/xmldsig#enveloped-signature"/><ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"> <InclusiveNamespaces xmlns="http://www.w3.org/2001/10/xml-exc-c14n#" PrefixList="gpnp orcl xsi"/></ds:Transform></ds:Transforms><ds:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"/><ds:DigestValue>/+xj6ziNHXD2LxYcgnH83yVYWns=</ds:DigestValue></ds:Reference></ds:SignedInfo><ds:SignatureValue>mh8+ulXRy6AgsgBB3AwJ6zdfmZzPTuvHbehpK97FMerHluIoQpmZmsKR0kwkrU03Bx8myEjwRfgz1XMJCZoNwAlvRfihxvQnV8kPAHRdrVOcz+HcYw/yvfkCS7WQJUTXpZwHzqM04xtmP5BgadE5AOxyDuI+hNfcgDeR24V0UhY=</ds:SignatureValue></ds:Signature></gpnp:GPnP-Profile>
[grid@rac1 gpnp]$ gpnptool getpval -p=/home/grid/gpnp/p.xml -prf_sq -o-
21
[grid@rac1 gpnp]$ gpnptool sign -p=/home/grid/gpnp/p.xml -o=/home/grid/gpnp/p.xml -ovr -w=cw-fs:peer
Resulting profile written to "/home/grid/gpnp/p.xml".
Success.
[grid@rac1 gpnp]$ gpnptool put -p=/home/grid/gpnp/p.xml
Success.
[grid@rac1 gpnp]$ gpnptool find -c=cluster
Found 1 instances of service 'gpnp'.
mdns:service:gpnp._tcp.local.://rac1:37760/agent=gpnpd,cname=cluster,host=rac1,pid=8419/gpnpd h:rac1 c:cluster
[grid@rac1 gpnp]$ gpnptool rget -c=cluster
Warning: some command line parameters were defaulted. Resulting command line:
/u01/app/11.2.0/grid/bin/gpnptool.bin rget -c=cluster -o-
Found 1 gpnp service instance(s) to rget profile from.
RGET from tcp://rac1:37760 (mdns:service:gpnp._tcp.local.://rac1:37760/agent=gpnpd,cname=cluster,host=rac1,pid=8419/gpnpd h:rac1 c:cluster):
<?xml version="1.0" encoding="UTF-8"?><gpnp:GPnP-Profile Version="1.0" xmlns="http://www.grid-pnp.org/2005/11/gpnp-profile" xmlns:gpnp="http://www.grid-pnp.org/2005/11/gpnp-profile" xmlns:orcl="http://www.oracle.com/gpnp/2005/11/gpnp-profile" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.grid-pnp.org/2005/11/gpnp-profile gpnp-profile.xsd" ProfileSequence="21" ClusterUId="afd4fb8a969e6ff0ff47999b3fa206d6" ClusterName="cluster" PALocation=""><gpnp:Network-Profile><gpnp:HostNetwork id="gen" HostName="*"><gpnp:Network id="net1" Adapter="bond0" IP="192.168.100.0" Use="public"/><gpnp:Network id="net2" Adapter="eth1" IP="100.100.100.0" Use="cluster_interconnect"/></gpnp:HostNetwork></gpnp:Network-Profile><orcl:CSS-Profile id="css" DiscoveryString="+asm" LeaseDuration="400"/><orcl:ASM-Profile id="asm" DiscoveryString="/dev/asm*" SPFile="+OCR/cluster/asmparameterfile/registry.253.963054397"/><ds:Signature xmlns:ds="http://www.w3.org/2000/09/xmldsig#"><ds:SignedInfo><ds:CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/><ds:SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1"/><ds:Reference URI=""><ds:Transforms><ds:Transform Algorithm="http://www.w3.org/2000/09/xmldsig#enveloped-signature"/><ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"> <InclusiveNamespaces xmlns="http://www.w3.org/2001/10/xml-exc-c14n#" PrefixList="gpnp orcl xsi"/></ds:Transform></ds:Transforms><ds:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"/><ds:DigestValue>fF43VW1hAMTBFOZ+tuw3qbQSQDo=</ds:DigestValue></ds:Reference></ds:SignedInfo><ds:SignatureValue>pYENVeL1XgZ2/fYmDY7xxMw+qY4AOYu+RApbJtVfIUA2muPuDmKVLYDddQOrX0XfwRdS3fFdO77cJuv1ApFUEQIDVjQdxVnzQWK+QhJUOvfsl1oE1g+rMNuJq3S6VWoRXLt4pr4wzY7CBkKdnoCdqsRu6u3yECWFiECUr6guk2Y=</ds:SignatureValue></ds:Signature></gpnp:GPnP-Profile>
Success.
重新启动群集
[root@rac1 ~]# /u01/app/11.2.0/grid/bin/crsctl stop has
CRS-2791: Starting shutdown of Oracle High Availability Services-managed resources on 'rac1'
CRS-2673: Attempting to stop 'ora.mdnsd' on 'rac1'
CRS-2673: Attempting to stop 'ora.cssd' on 'rac1'
CRS-2677: Stop of 'ora.cssd' on 'rac1' succeeded
CRS-2673: Attempting to stop 'ora.gipcd' on 'rac1'
CRS-2677: Stop of 'ora.mdnsd' on 'rac1' succeeded
CRS-2677: Stop of 'ora.gipcd' on 'rac1' succeeded
CRS-2673: Attempting to stop 'ora.gpnpd' on 'rac1'
CRS-2677: Stop of 'ora.gpnpd' on 'rac1' succeeded
CRS-2793: Shutdown of Oracle High Availability Services-managed resources on 'rac1' has completed
CRS-4133: Oracle High Availability Services has been stopped.
[root@rac1 ~]# /u01/app/11.2.0/grid/bin/crsctl start has
CRS-4123: Oracle High Availability Services has been started.
[root@rac1 ~]# /u01/app/11.2.0/grid/bin/crsctl stat res -t
--------------------------------------------------------------------------------
NAME TARGET STATE SERVER STATE_DETAILS
--------------------------------------------------------------------------------
Local Resources
--------------------------------------------------------------------------------
ora.DATA.dg
ONLINE ONLINE rac1
ONLINE ONLINE rac2
ora.LISTENER.lsnr
ONLINE ONLINE rac1
ONLINE ONLINE rac2
ora.OCR.dg
ONLINE ONLINE rac1
ONLINE ONLINE rac2
ora.asm
ONLINE ONLINE rac1 Started
ONLINE ONLINE rac2 Started
ora.gsd
OFFLINE OFFLINE rac1
OFFLINE OFFLINE rac2
ora.net1.network
ONLINE ONLINE rac1
ONLINE ONLINE rac2
ora.ons
ONLINE ONLINE rac1
ONLINE ONLINE rac2
ora.registry.acfs
ONLINE ONLINE rac1
ONLINE ONLINE rac2
--------------------------------------------------------------------------------
Cluster Resources
--------------------------------------------------------------------------------
ora.LISTENER_SCAN1.lsnr
1 ONLINE ONLINE rac1
ora.cube.db
1 ONLINE ONLINE rac1 Open
2 ONLINE ONLINE rac2 Open
ora.cvu
1 ONLINE ONLINE rac1
ora.oc4j
1 ONLINE ONLINE rac1
ora.rac1.vip
1 ONLINE ONLINE rac1
ora.rac2.vip
1 ONLINE ONLINE rac2
ora.scan1.vip
1 ONLINE ONLINE rac1
总结:这篇文章针对修改心跳ip修改错误后导致群集启动不了,进而通过gpnptool 工具来实现。如果是网卡修改的改进,套路一样自行测试吧。