创建磁盘组:
[root@rac-two bin]# su - grid [grid@rac-two ~]$ sqlplus / as sysasm SQL*Plus: Release 11.2.0.4.0 Production on Fri Mar 28 00:01:05 2014 Copyright (c) 1982, 2013, Oracle. All rights reserved. Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production With the Real Application Clusters and Automatic Storage Management options SQL> create diskgroup gidg normal redundancy 2 disk '/dev/asm-diske','/dev/asm-diskd','/dev/asm-diskc' attribute 'au_size'='1M','compatible.asm'='11.2','compatible.rdbms'='11.2','compatible.advm'='11.2'; Diskgroup created. SQL> select name,state from v$asm_diskgroup; NAME STATE ------------------------------ ----------- DATADG DISMOUNTED TESTDG DISMOUNTED GIDG MOUNTED 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
首先要恢复的是ocr
[root@rac-two bin]# ./ocrconfig -restore /u01/app/11.2.0/grid/cdata/rac-two-cluster/backup00.ocr
[root@rac-two bin]# ./ocrcheck
Status of Oracle Cluster Registry is as follows :
Version : 3
Total space (kbytes) : 262120
Used space (kbytes) : 3472
Available space (kbytes) : 258648
ID : 152256349
Device/File Name : +GIDG
Device/File integrity check succeeded
Device/File not configured
Device/File not configured
Device/File not configured
Device/File not configured
Cluster registry integrity check succeeded
Logical corruption check succeeded
恢复votedisk:
[root@rac-two bin]# ./crsctl query css votedisk Located 0 voting disk(s). [root@rac-two bin]# ./crsctl replace votedisk +GIDG CRS-4602: Failed 27 to add voting file 58c5df27b4884f70bfb38fc4c93b8f72. CRS-4602: Failed 27 to add voting file 51caa3f834964f5abf6efcfb90476d85. CRS-4602: Failed 27 to add voting file 92b70ca3ea5d4f80bf9df66a8e975ba9. Failed to replace voting disk group with +GIDG. CRS-4000: Command Replace failed, or completed with errors.
提示失败,需要重启crs资源。
[root@rac-two bin]# ./crsctl stop crs CRS-2791: Starting shutdown of Oracle High Availability Services-managed r