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

简介: asm_diskstring从‘/dev/asm*’ 改成’/dev/*'后,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"

相关文章
ASM CRS 实例启动和关闭
11gR2 + ASM 实例启动和关闭,需要采用如下命令:  crs_stop  -all crs_start -all [Hywdatadg]/home/grid$>crs_stat...
853 0
|
文字识别 Oracle 关系型数据库
How to restore ASM based OCR after complete loss of the CRS diskgroup on Linux/Unix systems [ID 1062
  How to restore ASM based OCR after complete loss of the CRS diskgroup on Linux/Unix systems [ID 1062983.
792 0
|
6月前
|
Oracle 关系型数据库
oracle asm 磁盘显示offline
oracle asm 磁盘显示offline
323 2
|
24天前
|
存储 Oracle 关系型数据库
数据库数据恢复—Oracle ASM磁盘组故障数据恢复案例
Oracle数据库数据恢复环境&故障: Oracle ASM磁盘组由4块磁盘组成。Oracle ASM磁盘组掉线 ,ASM实例不能mount。 Oracle数据库故障分析&恢复方案: 数据库数据恢复工程师对组成ASM磁盘组的磁盘进行分析。对ASM元数据进行分析发现ASM存储元数据损坏,导致磁盘组无法挂载。
|
6月前
|
存储 Oracle 关系型数据库
【数据库数据恢复】Oracle数据库ASM磁盘组掉线的数据恢复案例
oracle数据库ASM磁盘组掉线,ASM实例不能挂载。数据库管理员尝试修复数据库,但是没有成功。
【数据库数据恢复】Oracle数据库ASM磁盘组掉线的数据恢复案例
|
SQL Oracle 关系型数据库
Oracle ASM磁盘和磁盘组的常用SQL语句
Oracle ASM磁盘和磁盘组的常用SQL语句
282 0
|
文字识别 Oracle NoSQL
oracle 11g 单机asm配置
oracle 11g 单机asm配置
654 0
|
Oracle 关系型数据库
❤️Oracle ASM加磁盘及剔盘操作❤️
❤️Oracle ASM加磁盘及剔盘操作❤️
326 0
|
存储 机器学习/深度学习 Oracle
Oracle 11gR2 ASM存储日常管理手册
Oracle 11gR2 ASM存储日常管理手册 目 录1 文档简介 31.1 编写目的 31.2 适用范围 31.3 名词解释 31.4 格式约定 42 配置多链路和LUN 42.
1137 0
|
Oracle 关系型数据库
oracle Grid 是如何找到voteidks和asm spfile.
oracle Grid 是如何找到voteidks和asm spfile.
1541 0