RAC删除ASM组件

因安装错误,需要删除ASM组件
引用
[oracle@racsvr1 crsd]$ crs_stat -t
Name           Type           Target    State     Host       
------------------------------------------------------------
ora....SM1.asm application    ONLINE    UNKNOWN   racsvr1    
ora....R1.lsnr application    ONLINE    UNKNOWN   racsvr1    
ora....vr1.gsd application    ONLINE    UNKNOWN   racsvr1    
ora....vr1.ons application    ONLINE    UNKNOWN   racsvr1    
ora....vr1.vip application    ONLINE    ONLINE    racsvr1    
ora....SM2.asm application    ONLINE    OFFLINE              
ora....R2.lsnr application    ONLINE    OFFLINE              
ora....vr2.gsd application    ONLINE    UNKNOWN   racsvr2    
ora....vr2.ons application    ONLINE    UNKNOWN   racsvr2    
ora....vr2.vip application    ONLINE    UNKNOWN   racsvr1


在一节点执行,报如下错误
引用
[oracle@racsvr1 crsd]$ srvctl remove asm -n racsvr1 -f
PRKS-1033 : Failed to remove configuration for ASM instance "+ASM1" on node "racsvr1" from cluster registry, [

PRKS-1023 : Failed to remove CRS resource for ASM instance "+ASM1" on node "racsvr1", [CRS-0214: Could not unregister resource 'ora.racsvr1.ASM1.asm'.]]
  [
PRKS-1023 : Failed to remove CRS resource for ASM instance "+ASM1" on node "racsvr1", [CRS-0214: Could not unregister resource 'ora.racsvr1.ASM1.asm'.]]
[oracle@racsvr1 crsd]$ srvctl remove asm -n racsvr1 -f
PRKS-1033 : Failed to remove configuration for ASM instance "ASM1" on node "racsvr1" from cluster registry, [

PRKS-1023 : Failed to remove CRS resource for ASM instance "ASM1" on node "racsvr1", [CRS-0214: Could not unregister resource 'ora.racsvr1.ASM1.asm'.]]
  [
PRKS-1023 : Failed to remove CRS resource for ASM instance "ASM1" on node "racsvr1", [CRS-0214: Could not unregister resource 'ora.


解决办法为:
在二节点执行
引用
[oracle@racsvr2 crsd]$ srvctl remove asm -n racsvr2 -f
[oracle@racsvr2 crsd]$ crs_stat -t
Name           Type           Target    State     Host       
------------------------------------------------------------
ora....SM1.asm application    ONLINE    UNKNOWN   racsvr1    
ora....R1.lsnr application    ONLINE    UNKNOWN   racsvr1    
ora....vr1.gsd application    ONLINE    UNKNOWN   racsvr1    
ora....vr1.ons application    ONLINE    UNKNOWN   racsvr1    
ora....vr1.vip application    ONLINE    ONLINE    racsvr1    
ora....R2.lsnr application    ONLINE    OFFLINE              
ora....vr2.gsd application    ONLINE    UNKNOWN   racsvr2    
ora....vr2.ons application    ONLINE    UNKNOWN   racsvr2    
ora....vr2.vip application    ONLINE    UNKNOWN   racsvr1    
[oracle@racsvr2 crsd]$ srvctl remove asm -n racsvr1 -f
PRKS-1033 : Failed to remove configuration for ASM instance "ASM1" on node "racsvr1" from cluster registry, [

PRKS-1023 : Failed to remove CRS resource for ASM instance "ASM1" on node "racsvr1", [CRS-0214: Could not unregister resource 'ora.racsvr1.ASM1.asm'.]]
  [
PRKS-1023 : Failed to remove CRS resource for ASM instance "ASM1" on node "racsvr1", [CRS-0214: Could not unregister resource 'ora.racsvr1.ASM1.asm'.]]
[oracle@racsvr2 crsd]$ crs_stat -t
Name           Type           Target    State     Host       
------------------------------------------------------------
ora....SM1.asm application    ONLINE    OFFLINE              
ora....R1.lsnr application    ONLINE    OFFLINE              
ora....vr1.gsd application    ONLINE    UNKNOWN   racsvr1    
ora....vr1.ons application    ONLINE    UNKNOWN   racsvr1    
ora....vr1.vip application    ONLINE    OFFLINE              
ora....R2.lsnr application    ONLINE    OFFLINE              
ora....vr2.gsd application    ONLINE    UNKNOWN   racsvr2    
ora....vr2.ons application    ONLINE    UNKNOWN   racsvr2    
ora....vr2.vip application    ONLINE    UNKNOWN   racsvr1
  
将一节点关闭
引用
[root@racsvr1 init.d]# ./init.crs stop
Shutting down Oracle Cluster Ready Services (CRS):
Stopping resources.
Successfully stopped CRS resources
Stopping CSSD.
Shutting down CSS daemon.
Shutdown request successfully issued.
Shutdown has begun. The daemons should exit soon.

在二节点中删除
引用
[oracle@racsvr2 crsd]$ srvctl remove asm -n racsvr1 -f

你可能感兴趣的:(oracle,css,F#)