quorum failgroup disk (2)

需求:
希望将votedisk直接放到含有两个failgroup的diskgroup上

结论:

失败,normal redundancy的diskgroup,要存放votedisk,必须至少有3个failgroup。

SQL> create diskgroup normaldg normal redundancy
  2  regular failgroup nofg1 disk '/dev/asm_normal1'
  3  regular failgroup nofg2 disk '/dev/asm_normal2'
  4  ;

Diskgroup created.

SQL> alter diskgroup normaldg attribute 'compatible.asm'='11.2.0.0.0';
alter diskgroup normaldg attribute 'compatible.asm'='11.2.0.0.0'
                         *
ERROR at line 1:
ORA-00905: missing keyword


SQL> alter diskgroup normaldg set attribute 'compatible.asm'='11.2.0.0.0';

Diskgroup altered.

SQL> 
SQL> 
SQL> select name,type from v$asm_diskgroup;

NAME                           TYPE
------------------------------ ------
DATA                           EXTERN
SYS                            NORMAL
NORMALDG                       NORMAL

SQL>exit
[root@node1 ~]# crsctl replace votedisk +normaldg
Failed to create voting files on disk group normaldg.
Change to configuration failed, but was successfully rolled back.
CRS-4000: Command Replace failed, or completed with errors.
[root@node1 ~]# crsctl query css votedisk
##  STATE    File Universal Id                File Name Disk group
--  -----    -----------------                --------- ---------
 1. ONLINE   a76c9cca4f884ffebf07adecbbaae129 (/dev/asm_high1) [SYS]
 2. ONLINE   8f58d3b4b2774f3ebfc37dca90ce1a69 (/dev/asm_high2) [SYS]
 3. ONLINE   924e7dfb80274febbf76789783bccff9 (/dev/asm_high3) [SYS]
Located 3 voting disk(s).
[root@node1 ~]# 

SQL> drop diskgroup sys including contents;

Diskgroup dropped.

SQL> select name,path from v$asm_disk;

NAME                           PATH
------------------------------ ------------------------------
                               /dev/asm_high3
                               /dev/asm_high2
                               /dev/asm_high1
NORMALDG_0001                  /dev/asm_normal2
NORMALDG_0000                  /dev/asm_normal1
DATA_0001                      /dev/asm2
DATA_0000                      /dev/asm1

7 rows selected.

SQL> select name,type from v$asm_diskgroup;

NAME                           TYPE
------------------------------ ------
DATA                           EXTERN
NORMALDG                       NORMAL

SQL> alter diskgroup normaldg add quorum fialgroup disk '/dev/asm_high1';
alter diskgroup normaldg add quorum fialgroup disk '/dev/asm_high1'
                                    *
ERROR at line 1:
ORA-00905: missing keyword


SQL> alter diskgroup normaldg add quorum failgroup nofg3 disk '/dev/asm_high1';

Diskgroup altered.



[root@node1 ~]# crsctl replace votedisk +normaldg
Successful addition of voting disk 1a226d6058154f5fbf69227fc4a56aa6.
Successful addition of voting disk 09c9e0323e2c4f52bf4adde2125c09d3.
Successful addition of voting disk 0bf7a738fdc84fcebf322609f41dca6c.
Successful deletion of voting disk 413f1a9f80014fb3bf34edeea0db1827.
Successfully replaced voting disk group with +normaldg.
CRS-4266: Voting file(s) successfully replaced
[root@node1 ~]# crsctl query css votedisk
##  STATE    File Universal Id                File Name Disk group
--  -----    -----------------                --------- ---------
 1. ONLINE   1a226d6058154f5fbf69227fc4a56aa6 (/dev/asm_normal1) [NORMALDG]
 2. ONLINE   09c9e0323e2c4f52bf4adde2125c09d3 (/dev/asm_normal2) [NORMALDG]
 3. ONLINE   0bf7a738fdc84fcebf322609f41dca6c (/dev/asm_high1) [NORMALDG]
Located 3 voting disk(s).
[root@node1 ~]# 


SQL> l
  1* drop diskgroup normaldg
SQL> /

Diskgroup dropped.

SQL> select name,path from v$asm_disk;

NAME                           PATH
------------------------------ ------------------------------
                               /dev/asm_high3
                               /dev/asm_high2
                               /dev/asm_high1
                               /dev/asm_normal2
                               /dev/asm_normal1
DATA_0001                      /dev/asm2
DATA_0000                      /dev/asm1

7 rows selected.

SQL> 
SQL> create diskgroup sys normal redundancy
  2  regular failgroup sysfg1 disk '/dev/asm_high1','/dev/asm_high2'
  3  regular failgroup sysfg2 disk '/dev/asm_normal1','/dev/asm_normal2'
  4  attribute 'compatible.asm'='11.2.0.0.0'
  5  ;

Diskgroup created.

SQL> select name,failgroup,path from v$asm_disk;

NAME                           FAILGROUP                      PATH
------------------------------ ------------------------------ ------------------------------
                                                              /dev/asm_high3
SYS_0001                       SYSFG1                         /dev/asm_high2
SYS_0000                       SYSFG1                         /dev/asm_high1
SYS_0003                       SYSFG2                         /dev/asm_normal2
SYS_0002                       SYSFG2                         /dev/asm_normal1
DATA_0001                      DATA_0001                      /dev/asm2
DATA_0000                      DATA_0000                      /dev/asm1

7 rows selected.

SQL> 


你可能感兴趣的:(RAC,disk,Quorum,failgroup)