当前位置:网站首页>Oracle 11g RAC disk group has space and cannot add data files?

Oracle 11g RAC disk group has space and cannot add data files?

2022-06-11 09:42:00 cqszpx

Today, a colleague was adding data files to the table space , There is not enough space for the newspaper :
SQL> alter tablespace BKJ_COM_IDX add datafile '+
DGYJZYYS/ysdb/datafile/bkj_com_idx_008.dbf' size 31g;
alter tablespace BKJ_COM_IDX add datafile '+
DGYJZYYS/ysdb/datafile/bkj_com_idx_008.dbf' size 31g
*
ERROR at line 1:
ORA-01119: error in creating database file '+
DGYJZYYS/ysdb/datafile/bkj_com_idx_008.dbf'
ORA-17502: ksfdcre:4 Failed to create file +
DGYJZYYS/ysdb/datafile/bkj_com_idx_008.dbf
ORA-15041: diskgroup "DGYJZYYS" space exhausted
Check disk group , I found that there is space :
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 Y 512 4096 1048576 29360128 2039311 0 2039311 0 N DGYJZYYS/
Check the disk :
SQL> select path,total_mb,free_mb from v$asm_disk_stat where group_number=2 order by 1;
PATH TOTAL_MB FREE_MB

------------------------------ ---------- ----------
/dev/asm-yjzyys-disk10 2097152 988
/dev/asm-yjzyys-disk11 2097152 1010
/dev/asm-yjzyys-disk12 2097152 987
/dev/asm-yjzyys-disk17 2097152 1035
/dev/asm-yjzyys-disk18 2097152 1032
/dev/asm-yjzyys-disk19 2097152 2026135
/dev/asm-yjzyys-disk2 2097152 1018
/dev/asm-yjzyys-disk3 2097152 1026
...
14 rows selected.
Find out 19 Disk space is different from others
Check disk group , Found this disk group ,rebal by Y , Explain waiting for the counterbalance .
ASMCMD> lsdg -g DGYJZYYS
Inst_ID State Type Rebal Sector Block AU Total_MB Free_MB Req_mir_free_MB Usable_file_MB Offline_disks Voting_files Name
1 MOUNTED EXTERN Y 512 4096 1048576 29360128 2039311 0 2039311 0 N DGYJZYYS/
2 MOUNTED EXTERN Y 512 4096 1048576 29360128 2039311 0 2039311 0 N DGYJZYYS/
SQL> r
1* select GROUP_NUMBER,OPERATION,STATe,POWER,SOFAR,EST_MINUTES,EST_WORK,EST_RATE from v$asm_operation
GROUP_NUMBER OPERA STAT POWER SOFAR EST_MINUTES EST_WORK EST_RATE
------------ ----- ---- ---------- ---------- ----------- ---------- ----------
2 REBAL WAIT 0
That means we added this 19 Disc No , No rebalancing .
SQL> show parameter power
NAME TYPE VALUE

------------------------------------ ----------- ------------------------------
asm_power_limit integer 0
Explain that the problem has been found , The parameter is zero , This leads to the addition of new disks , No rebalancing by default .
Manual balancing is enough .
SQL> alter diskgroup DGYJZYYS rebalance power 1;
Diskgroup altered.
Due to the fear that the weight balance will affect the use of the system , Chose the slowest way 1.
After synchronization , You can add data files .

 

原网站

版权声明
本文为[cqszpx]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/162/202206110916462378.html