/dev/asm-diskb
/dev/asm-diske
NAME PATH
------------------------------ --------------------------------------------------
/dev/asm-diskl
12 rows selected.
SQL> select name,state from v$asm_diskgroup;
NAME STATE
------------------------------ -----------
DATADG DISMOUNTED
GIDG DISMOUNTED
TESTDG DISMOUNTED
SQL> alter diskgroup gidg mount;
Diskgroup altered.
SQL> select name,state from v$asm_diskgroup;
NAME STATE
------------------------------ -----------
DATADG DISMOUNTED
GIDG MOUNTED
TESTDG DISMOUNTED
SQL> exit
Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
With the Real Application Clusters and Automatic Storage Management options
[grid@rac-two ~]$ exit
logout
[root@rac-two bin]# ./ocrctl replace votedisk +GIDG
-bash: ./ocrctl: No such file or directory
[root@rac-two bin]# ./crsctl replace votedisk +GIDG
Successful addition of voting disk 4b55dbd068344fb6bfb89250b3586256.
Successful addition of voting disk 6b157dc173bd4f7ebf1846df01c23d5d.
Successful addition of voting disk 505d811a77d64f57bfa2797afba6a5f5.
Successfully replaced voting disk group with +GIDG.
CRS-4266: Voting file(s) successfully replaced
至此完成了ocr和votedisk的恢复。
重启crs,查看状况:
[root@rac-two bin]# ./crsctl stop crs
CRS-2791: Starting shutdown of Oracle High Availability Services-managed resources on 'rac-two'
CRS-2673: Attempting to stop 'ora.mdnsd' on 'rac-two'
CRS-2673: Attempting to stop 'ora.drivers.acfs' on 'rac-two'
CRS-2673: Attempting to stop 'ora.ctssd' on 'rac-two'
CRS-2673: Attempting to stop 'ora.asm' on 'rac-two'
CRS-2677: Stop of 'ora.mdnsd' on 'rac-two' succeeded
CRS-2677: Stop of 'ora.asm' on 'rac-two' succeeded
CRS-2673: Attempting to stop 'ora.cluster_interconnect.haip' on 'rac-two'
CRS-2677: Stop of 'ora.ctssd' on 'rac-two' succeeded
CRS-2677: Stop of 'ora.drivers.acfs' on 'rac-two' succeeded
CRS-2677: Stop of 'ora.cluster_interconnect.haip' on 'rac-two' succeeded
CRS-2673: Attempting to stop 'ora.cssd' on 'rac-two'
CRS-2677: Stop of 'ora.cssd' on 'rac-two' succeeded
CRS-2673: Attempting to stop 'ora.gipcd' on 'rac-two'
CRS-2677: Stop of 'ora.gipcd' on 'rac-two' succeeded
CRS-2673: Attempting to stop 'ora.gpnpd' on 'rac-two'
CRS-2677: Stop of 'ora.gpnpd' on 'rac-two' succeeded
CRS-2793: Shutdown of Oracle High Availability Services-managed resources on 'rac-two' has completed
CRS-4133: Oracle High Availability Services has been stopped.
[root@rac-two bin]# ./crsctl start crs
CRS-4123: Oracle High Availability Services has been started.
[grid@rac-two ~]$ crsctl stat res -t
--------------------------------------------------------------------------------
NAME TARGET STATE SERVER STATE_DETAILS
--------------------------------------------------------------------------------
Local Resources
--------------------------------------------------------------------------------
ora.DATADG.dg
ONLINE ONLINE rac-two
ora.GIDG.dg
ONLINE ONLINE rac-two
ora.LISTENER.lsnr
ONLINE ONLINE rac-two
ora.TESTDG.dg
ONLINE OFFLINE rac-two
ora.asm
ONLINE ONLINE rac-two Started
ora.gsd
OFFLINE OFFLINE rac-two
ora.net1.network
ONLINE ONLINE rac-two
ora.ons
ONLINE ONLINE rac-two
ora.registry.acfs
ONLINE ONLINE rac-two
--------------------------------------------------------------------------------
Cl