I have noticed that my mistake FRA on DR site is set to wrong redundancy, it was suppose to be external but set to NORMAL.
Now task is change the redundancy to EXTERNAL for FRA.
The solution is simple.
1. Stop database on DR
2. Drop the diskgroup
3. Recreate diskgroup with correct redundancy.
4. Start the database
ASMCMD> lsdg
State Type Rebal Sector Block AU Total_MB Free_MB Req_mir_free_MB Usable_file_MB Offline_disks Voting_files Name
MOUNTED EXTERN N 512 4096 1048576 4094 3739 0 3739 0 Y CRS/
MOUNTED EXTERN N 512 4096 1048576 28645 25600 0 25600 0 N DATA/
MOUNTED NORMAL N 512 4096 1048576 13303 5753 0 2876 0 N FRA/
ASMCMD>
DISKGROUP TYPE V DISKNAME TOTAL_MB FREE_MB USABLE_FILE_MB
---------- ------ - ---------- ---------- ---------- --------------
CRS EXTERN Y SYSCONF1 2047 1855 3739
CRS EXTERN Y SYSCONF2 2047 1884 3739
DATA EXTERN N ASM1 5114 4568 25600
DATA EXTERN N ASM2 5114 4567 25600
DATA EXTERN N ASM3 5114 4570 25600
DATA EXTERN N ASM4 5114 4570 25600
DATA EXTERN N ASM7 8189 7325 25600
FRA NORMAL N ASM5 5114 1339 2876
FRA NORMAL N ASM8 8189 4414 2876
[oracle@racdr1 ~]$ srvctl stop database -d RAC_STBY
[oracle@racdr1 ~]$ sqlplus / as sysasm
SQL*Plus: Release 11.2.0.0 Production
Copyright (c) 1982, 2013, Oracle. All rights reserved.
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.0 - 64bit Production
With the Real Application Clusters and Automatic Storage Management options
SQL> drop diskgroup FRA including contents;
Diskgroup dropped.
SQL>
SQL> col diskgroup for a10
SQL> col DISKNAME for a30
SQL> select dg.NAME diskgroup, dg.TYPE, dg.VOTING_FILES,
2 ds.NAME diskname, ds.TOTAL_MB, ds.FREE_MB, dg.USABLE_FILE_MB
3 from V$ASM_DISKGROUP dg, V$asm_disk_stat ds
4 where dg.GROUP_NUMBER = ds.GROUP_NUMBER
5 order by diskgroup, diskname;
DISKGROUP TYPE V DISKNAME TOTAL_MB FREE_MB USABLE_FILE_MB
---------- ------ - ------------------------------ ---------- ---------- --------------
CRS EXTERN Y SYSCONF1 2047 1855 3739
CRS EXTERN Y SYSCONF2 2047 1884 3739
DATA EXTERN N ASM1 5114 4568 25600
DATA EXTERN N ASM2 5114 4567 25600
DATA EXTERN N ASM3 5114 4570 25600
DATA EXTERN N ASM4 5114 4570 25600
DATA EXTERN N ASM7 8189 7325 25600
7 rows selected.
SQL>
SQL> show parameter asm
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
asm_diskgroups string CRS
asm_diskstring string
asm_power_limit integer 1
asm_preferred_read_failure_groups string
SQL>
SQL> alter system set asm_diskstring='ORCL:*';
System altered.
SQL> create diskgroup FRA external redundancy disk 'ORCL:ASM5';
Diskgroup created.
SQL> set lines 270 pages 10000
SQL> col diskgroup for a10
SQL> col DISKNAME for a30
SQL> select dg.NAME diskgroup, dg.TYPE, dg.VOTING_FILES,
2 ds.NAME diskname, ds.TOTAL_MB, ds.FREE_MB, dg.USABLE_FILE_MB
3 from V$ASM_DISKGROUP dg, V$asm_disk_stat ds
4 where dg.GROUP_NUMBER = ds.GROUP_NUMBER
5 order by diskgroup, diskname;
DISKGROUP TYPE V DISKNAME TOTAL_MB FREE_MB USABLE_FILE_MB
---------- ------ - ------------------------------ ---------- ---------- --------------
CRS EXTERN Y SYSCONF1 2047 1855 3739
CRS EXTERN Y SYSCONF2 2047 1884 3739
DATA EXTERN N ASM1 5114 4568 25600
DATA EXTERN N ASM2 5114 4567 25600
DATA EXTERN N ASM3 5114 4570 25600
DATA EXTERN N ASM4 5114 4570 25600
DATA EXTERN N ASM7 8189 7325 25600
FRA EXTERN N ASM5 5114 5064 5064
8 rows selected.
SQL>
SQL> alter diskgroup FRA add disk 'ORCL:ASM8';
Diskgroup altered.
SQL> set lines 270 pages 10000
SQL> col diskgroup for a10
SQL> col DISKNAME for a30
SQL> select dg.NAME diskgroup, dg.TYPE, dg.VOTING_FILES,
2 ds.NAME diskname, ds.TOTAL_MB, ds.FREE_MB, dg.USABLE_FILE_MB
3 from V$ASM_DISKGROUP dg, V$asm_disk_stat ds
4 where dg.GROUP_NUMBER = ds.GROUP_NUMBER
5 order by diskgroup, diskname;
DISKGROUP TYPE V DISKNAME TOTAL_MB FREE_MB USABLE_FILE_MB
---------- ------ - ------------------------------ ---------- ---------- --------------
CRS EXTERN Y SYSCONF1 2047 1855 3739
CRS EXTERN Y SYSCONF2 2047 1884 3739
DATA EXTERN N ASM1 5114 4568 25600
DATA EXTERN N ASM2 5114 4567 25600
DATA EXTERN N ASM3 5114 4570 25600
DATA EXTERN N ASM4 5114 4570 25600
DATA EXTERN N ASM7 8189 7325 25600
FRA EXTERN N ASM5 5114 5065 13251
FRA EXTERN N ASM8 8189 8186 13251
9 rows selected.
SQL>
[oracle@racdr1 ~]$ srvctl start database -d RAC_STBY
Now task is change the redundancy to EXTERNAL for FRA.
The solution is simple.
1. Stop database on DR
2. Drop the diskgroup
3. Recreate diskgroup with correct redundancy.
4. Start the database
ASMCMD> lsdg
State Type Rebal Sector Block AU Total_MB Free_MB Req_mir_free_MB Usable_file_MB Offline_disks Voting_files Name
MOUNTED EXTERN N 512 4096 1048576 4094 3739 0 3739 0 Y CRS/
MOUNTED EXTERN N 512 4096 1048576 28645 25600 0 25600 0 N DATA/
MOUNTED NORMAL N 512 4096 1048576 13303 5753 0 2876 0 N FRA/
ASMCMD>
DISKGROUP TYPE V DISKNAME TOTAL_MB FREE_MB USABLE_FILE_MB
---------- ------ - ---------- ---------- ---------- --------------
CRS EXTERN Y SYSCONF1 2047 1855 3739
CRS EXTERN Y SYSCONF2 2047 1884 3739
DATA EXTERN N ASM1 5114 4568 25600
DATA EXTERN N ASM2 5114 4567 25600
DATA EXTERN N ASM3 5114 4570 25600
DATA EXTERN N ASM4 5114 4570 25600
DATA EXTERN N ASM7 8189 7325 25600
FRA NORMAL N ASM5 5114 1339 2876
FRA NORMAL N ASM8 8189 4414 2876
[oracle@racdr1 ~]$ srvctl stop database -d RAC_STBY
[oracle@racdr1 ~]$ sqlplus / as sysasm
SQL*Plus: Release 11.2.0.0 Production
Copyright (c) 1982, 2013, Oracle. All rights reserved.
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.0 - 64bit Production
With the Real Application Clusters and Automatic Storage Management options
SQL> drop diskgroup FRA including contents;
Diskgroup dropped.
SQL>
SQL> col diskgroup for a10
SQL> col DISKNAME for a30
SQL> select dg.NAME diskgroup, dg.TYPE, dg.VOTING_FILES,
2 ds.NAME diskname, ds.TOTAL_MB, ds.FREE_MB, dg.USABLE_FILE_MB
3 from V$ASM_DISKGROUP dg, V$asm_disk_stat ds
4 where dg.GROUP_NUMBER = ds.GROUP_NUMBER
5 order by diskgroup, diskname;
DISKGROUP TYPE V DISKNAME TOTAL_MB FREE_MB USABLE_FILE_MB
---------- ------ - ------------------------------ ---------- ---------- --------------
CRS EXTERN Y SYSCONF1 2047 1855 3739
CRS EXTERN Y SYSCONF2 2047 1884 3739
DATA EXTERN N ASM1 5114 4568 25600
DATA EXTERN N ASM2 5114 4567 25600
DATA EXTERN N ASM3 5114 4570 25600
DATA EXTERN N ASM4 5114 4570 25600
DATA EXTERN N ASM7 8189 7325 25600
7 rows selected.
SQL>
SQL> show parameter asm
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
asm_diskgroups string CRS
asm_diskstring string
asm_power_limit integer 1
asm_preferred_read_failure_groups string
SQL>
SQL> alter system set asm_diskstring='ORCL:*';
System altered.
SQL> create diskgroup FRA external redundancy disk 'ORCL:ASM5';
Diskgroup created.
SQL> set lines 270 pages 10000
SQL> col diskgroup for a10
SQL> col DISKNAME for a30
SQL> select dg.NAME diskgroup, dg.TYPE, dg.VOTING_FILES,
2 ds.NAME diskname, ds.TOTAL_MB, ds.FREE_MB, dg.USABLE_FILE_MB
3 from V$ASM_DISKGROUP dg, V$asm_disk_stat ds
4 where dg.GROUP_NUMBER = ds.GROUP_NUMBER
5 order by diskgroup, diskname;
DISKGROUP TYPE V DISKNAME TOTAL_MB FREE_MB USABLE_FILE_MB
---------- ------ - ------------------------------ ---------- ---------- --------------
CRS EXTERN Y SYSCONF1 2047 1855 3739
CRS EXTERN Y SYSCONF2 2047 1884 3739
DATA EXTERN N ASM1 5114 4568 25600
DATA EXTERN N ASM2 5114 4567 25600
DATA EXTERN N ASM3 5114 4570 25600
DATA EXTERN N ASM4 5114 4570 25600
DATA EXTERN N ASM7 8189 7325 25600
FRA EXTERN N ASM5 5114 5064 5064
8 rows selected.
SQL>
SQL> alter diskgroup FRA add disk 'ORCL:ASM8';
Diskgroup altered.
SQL> set lines 270 pages 10000
SQL> col diskgroup for a10
SQL> col DISKNAME for a30
SQL> select dg.NAME diskgroup, dg.TYPE, dg.VOTING_FILES,
2 ds.NAME diskname, ds.TOTAL_MB, ds.FREE_MB, dg.USABLE_FILE_MB
3 from V$ASM_DISKGROUP dg, V$asm_disk_stat ds
4 where dg.GROUP_NUMBER = ds.GROUP_NUMBER
5 order by diskgroup, diskname;
DISKGROUP TYPE V DISKNAME TOTAL_MB FREE_MB USABLE_FILE_MB
---------- ------ - ------------------------------ ---------- ---------- --------------
CRS EXTERN Y SYSCONF1 2047 1855 3739
CRS EXTERN Y SYSCONF2 2047 1884 3739
DATA EXTERN N ASM1 5114 4568 25600
DATA EXTERN N ASM2 5114 4567 25600
DATA EXTERN N ASM3 5114 4570 25600
DATA EXTERN N ASM4 5114 4570 25600
DATA EXTERN N ASM7 8189 7325 25600
FRA EXTERN N ASM5 5114 5065 13251
FRA EXTERN N ASM8 8189 8186 13251
9 rows selected.
SQL>
[oracle@racdr1 ~]$ srvctl start database -d RAC_STBY
No comments:
Post a Comment