修改asm_diskstring错误造成crs启动失败

asm_diskstring从‘/dev/asm*’ 改成’/dev/*'后,crs启动失败

[grid@rac191 ~]$ crsctl status resource -t
CRS-4535: Cannot communicate with Cluster Ready Services
CRS-4000: Command Status failed, or completed with errors.
[grid@rac191 ~]$

在日志/ofsdata/app/grid/diag/crs/rac191/crs/trace/alert.log 里面有:

2020-09-29 10:02:18.621 :    CSSD:36488960: [     INFO] clssnmFindVF: Duplicate voting file found in the queue of previously discovered disks queued(/dev/sde1|[6fd48d2c-25df4f9f-bf7149d8-fd730cbc]), found(/dev/asm-disk3|[6fd48d2c-25df4f9f-bf7149d8-fd730cbc]), is not corrupted
2020-09-29 10:02:18.621 :    CLSF:36488960: Resolved (/dev/sde1,/dev/asm-disk3) to NONE
2020-09-29 10:02:18.621 :    CSSD:36488960: [     INFO] clssnmvDiskCreate: Found a duplicate voting file /dev/sde1 in the discovery queue which appears to be the same physical device as the newly discovered disk /dev/asm-disk3. Rejecting both these files

因为asm_diskstring错误造成同一个设备被发现了两次!

[root@rac191 grid]# cat gpnp/rac191/profiles/peer/profile.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="6" ClusterUId="84724d8500ea6f19ffe08eaf6c3e9f07" ClusterName="rac19" PALocation=""><gpnp:Network-Profile><gpnp:HostNetwork id="gen" HostName="*"><gpnp:Network id="net1" IP="192.168.87.0" Adapter="enp2s0f0" Use="public"/><gpnp:Network id="net2" IP="10.168.85.0" Adapter="enp2s0f1" Use="asm,cluster_interconnect"/></gpnp:HostNetwork></gpnp:Network-Profile><orcl:CSS-Profile id="css" DiscoveryString="+asm" LeaseDuration="400"/><orcl:ASM-Profile id="asm" DiscoveryString="/dev/*" SPFile="+DATA/rac19/ASMPARAMETERFILE/registry.253.1052007285" Mode="remote" Extended="false"/><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>Z48FVKgNG6aok0U6F80g/yUVYCc=</ds:DigestValue></ds:Reference></ds:SignedInfo><ds:SignatureValue>RwM4kAb94Vp83rq8D7yZDR1uiUvUBzhw5s+nMv4KXmqBBBZfrgJm6b7F8It5AFoRYi5h3zv6XssQoaEfQSg+mJaYBAxK5YRYt9D83u1l/DAPFbkAygIu+PWRNvxXW4oU/8pu25+t1q23Ydj2eCl9ZsNBjt/rHyMtA6hN7jLQGk8=</ds:SignatureValue></ds:Signature></gpnp:GPnP-Profile>[root@rac191 grid]# 

使用下面的命令修改,不能手工修改!

cat gpnp/rac191/profiles/peer/profile.xml

cp profile.xml ./profile.xml.2
gpnptool unsign -p=./profile.xml.2 -o=profile.xml.3
 gpnptool edit  -asm_dis='/dev/asm*' -p=./profile.xml.3 -ovr -o=./profile.xml.4
 gpnptool sign -p=./profile.xml.4 -w=file:/ofsdata/app/19.0.0/grid/gpnp/rac191/wallets/peer -o=./profile.xml.5
cp  ./profile.xml.5 ./profile.xml
 gpnptool get

修改完成后,再检查:

root@rac191 grid]# cat gpnp/profiles/peer/profile.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="5" ClusterUId="84724d8500ea6f19ffe08eaf6c3e9f07" ClusterName="rac19" PALocation=""><gpnp:Network-Profile><gpnp:HostNetwork id="gen" HostName="*"><gpnp:Network id="net1" IP="192.168.87.0" Adapter="enp2s0f0" Use="public"/><gpnp:Network id="net2" IP="10.168.85.0" Adapter="enp2s0f1" Use="asm,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="+DATA/rac19/ASMPARAMETERFILE/registry.253.1052007285" Mode="remote" Extended="false"/><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>83+AqgP37B8CfXOXjLlYSKG7xT8=</ds:DigestValue></ds:Reference></ds:SignedInfo><ds:SignatureValue>E/VIDvzvpg4gms3FBajTo8RZIDVrjGCUEI7UYS9wWF71SNFlaSB6whob4T7md6rr/arqu/PF/70Jv+4aui1XFg+k7JQ1X+PrhnT4tipmlknqAYj5xeXeM2JexBkWaC2FHVK9+qPVej33J6Iz292IQ2IFLq6d2VwqgdiEmNLnvkE=</ds:SignatureValue></ds:Signature></gpnp:GPnP-Profile>[root@rac191 grid]# 

此时asm_diskstring已经改过来了!

alert 日志"/ofsdata/app/grid/diag/asm/+asm/+ASM2/trace/alert_+ASM2.log"

姚远ACE CSDN认证博客专家 ACE 华为云 MVP
Oracle ACE,华为云 MVP,Oracle10g,12c OCM; MySQL 5.6,5.7,8.0 OCP;CCNA; EMC Certified; IBM P Certified; RHCE; SQLServer 764; DB2 Certified; TOEIC 890;获得过两次国家部级科技进步奖;发明过两项计算机专利。微信:yaoyuanace 邮箱:yaoyuanace(at)qq.com
已标记关键词 清除标记
相关推荐
©️2020 CSDN 皮肤主题: Age of Ai 设计师:meimeiellie 返回首页