|
1、查看当前OCR磁盘信息
[grid@rac01 ~]$ ocrcheck
Status of Oracle Cluster Registry is as follows :
Version : 3
Total space (kbytes) : 262120
Used space (kbytes) : 3084
Available space (kbytes) : 259036
ID : 798935356
Device/File Name : +DATA
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 bypassed due to non-privileged user
[grid@rac01 ~]$
2、查看votedisk磁盘信息
[grid@rac01 ~]$ crsctl query css votedisk
## STATE File Universal Id File Name Disk group
-- ----- ----------------- --------- ---------
1. ONLINE 486e881d6d4b4f89bf2fc61d08b12381 (/dev/raw/raw1) [DATA]
Located 1 voting disk(s).
[grid@rac01 ~]$
从上述信息可以看出,OCR和VOTE还有数据文件都存放在DATA磁盘组。这里我新建一个磁盘组单独用来保存OCR文件。
3、创建磁盘组OCRDATA
SQL> create diskgroup OCRDATA External Redundancy disk '/dev/asm-disk1' attribute 'compatible.asm'='11.2', 'compatible.rdbms'='11.2';
create diskgroup OCRDATA External Redundancy disk '/dev/asm-disk1' attribute 'compatible.asm'='11.2', 'compatible.rdbms'='11.2'
*
ERROR at line 1:
ORA-15018: diskgroup cannot be created
ORA-15031: disk specification '/dev/asm-disk1' matches no disks
ORA-15014: path '/dev/asm-disk1' is not in the discovery set
SQL> alter system set asm_diskstring='/dev/as*','/dev/raw/raw*';
System altered.
SQL> create diskgroup OCRDATA External Redundancy disk '/dev/asm-disk1' attribute 'compatible.asm'='11.2', 'compatible.rdbms'='11.2';
Diskgroup created.
SQL>
|
|