Assume we have a wrong ASM SPFILE entry in our current profile.xml [grid@grac41 peer]$ cd /u01/app/11204/grid/gpnp/grac41/profiles/peer/ Current status: profile.xml ProfileSequence="10" SPFile="$GRID_HOME/dbs/spfileCopyASM_nogo" <--- wrong Copy the profile to profile.bak and remove the oracle signature [grid@grac41 peer]$ cp profile.xml profile.bak [grid@grac41 peer]$ gpnptool unsign -p=profile.bak Warning: some command line parameters were defaulted. Resulting command line: /u01/app/11204/grid/bin/gpnptool.bin unsign -p=profile.bak -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="10" ClusterUId="09a8e930abf56f66bfbdb0b7c915cfa8" ClusterName="grac4" PALocation=""><gpnp:Network-Profile> <gpnp:HostNetwork id="gen" HostName="*"><gpnp:Network id="net1" IP="192.168.1.0" Adapter="eth1" Use="public"/> <gpnp:Network id="net2" IP="192.168.2.0" Adapter="eth2" 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*,/dev/oracleasm/disks/*" SPFile="$GRID_HOME/dbs/spfileCopyASM_nogo"/></gpnp:GPnP-Profile> Success. --> Current ProfileSequence="10" Update SPFILE in profile.bak and increase ProfileSequence to 11 [grid@grac41 peer]$ gpnptool edit -asm:asm_spf='+OCR/grac4/asmparameterfile/spfileCopyASM.ora' -p=profile.bak -o=profile.bak -ovr -prf_sq=11 Resulting profile written to "profile.bak". Success. Verify profile.bak and check whether ASM SPFILE location is valid ProfileSequence="11" SPFile="+OCR/grac4/asmparameterfile/spfileCopyASM.ora" [grid@grac41 peer]$ asmcmd ls -l +OCR/grac4/asmparameterfile/spfileCopyASM.ora Type Redund Striped Time Sys Name N spfileCopyASM.ora => +OCR/grac4/asmparameterfile/REGISTRY.253.842605053 Sign profile $ gpnptool sign -p=profile.bak -w=file:/u01/app/11204/grid/gpnp/grac41/wallets/peer -o=profile.new Resulting profile written to "profile.new". Success. Redistribute profile.xml [grid@grac41 peer]$ gpnptool put -p=$GRID_HOME/gpnp/grac41/profiles/peer/profile.new Success. Verfy GPND profile on all Nodes ( check for ProfileSequence and SPFile ) $ gpnptool rget Warning: some command line parameters were defaulted. Resulting command line: /u01/app/11204/grid/bin/gpnptool.bin rget -o- Found 3 gpnp service instance(s) to rget profile from. RGET from tcp://grac41:47588 (mdns:service:gpnp._tcp.local.://grac41:47588/agent=gpnpd,cname=grac4,host=grac41,pid=27693/gpnpd h:grac41 c:grac4): <?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="11" ClusterUId="09a8e930abf56f66bfbdb0b7c915cfa8" ClusterName="grac4" PALocation=""> <gpnp:Network-Profile><gpnp:HostNetwork id="gen" HostName="*"><gpnp:Network id="net1" IP="192.168.1.0" Adapter="eth1" Use="public"/> <gpnp:Network id="net2" IP="192.168.2.0" Adapter="eth2" 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*,/dev/oracleasm/disks/*" SPFile="+OCR/grac4/asmparameterfile/spfileCopyASM.ora"/><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>ALIJdwPKQGRB8BKcoiUsxzXw1xw=</ds:DigestValue></ds:Reference></ds:SignedInfo><ds:SignatureValue>aV1ueSkHquo2P0MN1HnOLKRXTyQljz8MMlAo+WhRVMlrDQev2DketkJ+H00aTFUXyX9A05VVyNWD9ZsglDQqk/13joh1Qz5LjtvQ3Ei5V9FhGnUUofY4MKduT89Cbic5kql0xvUlvsapez7utaq+5ecYJDLBCrH15c/WBnsOtm8=</ds:SignatureValue></ds:Signature></gpnp:GPnP-Profile> Success. RGET from tcp://grac43:55100 (mdns:service:gpnp._tcp.local.://grac43:55100/agent=gpnpd,cname=grac4,host=grac43,pid=5193/gpnpd h:grac43 c:grac4): <?xml version="1.0" encoding="UTF-8"?><gpnp:GPnP-Profile Version="1.0" ... ProfileSequence="11" .. SPFile="+OCR/grac4/asmparameterfile/spfileCopyASM.ora"/> ... RGET from tcp://grac42:37261 (mdns:service:gpnp._tcp.local.://grac42:37261/agent=gpnpd,cname=grac4,host=grac42,pid=4974/gpnpd h:grac42 c:grac4): <?xml version="1.0" encoding="UTF-8"?><gpnp:GPnP-Profile Version="1.0" ... ProfileSequence="11" .. SPFile="+OCR/grac4/asmparameterfile/spfileCopyASM.ora"/> ...
Thanks… helped me so much. 🙂
Thanks .. Was timely Help