One time I turned of the rebalance of ASM diskgroup when adding new disk and forgot about it until the developer told me that they run into error ORA-01653, unable to extend table in tablespace.
Usually this is caused by a few scenarios(no space on disk, data file reach to max, datafile is not auextensible etc), but this time it's caused by asm disk not balanced.
the datafile is 16GB, let me try to extend it to 20GB.
14:14:56 RMS8DEV> alter database datafile 26 resize 20000m;
alter database datafile 26 resize 20000m
*
ERROR at line 1:
ORA-01237: cannot extend datafile 26
ORA-01110: data file 26: '+DATA2/rms8dev/datafile/radiostage_data.282.819106481'
ORA-17505: ksfdrsz:1 Failed to resize file to size 2560000 blocks
ORA-15041: diskgroup "DATA2" space exhausted
it failed, but the disk /dev/rhdisk18 has 79GB free space! why cannot I use it?
ASMCMD [+] > lsdsk -k
Total_MB Free_MB OS_MB Name Failgroup Failgroup_Type Library Label UDID Product Redund Path
102400 88217 102400 FRA_0001 FRA_0001 REGULAR System UNKNOWN /dev/rhdisk15
102400 98882 102400 FRA2_0000 FRA2_0000 REGULAR System UNKNOWN /dev/rhdisk16
102400 79326 102400 DATA2_0006 DATA2_0006 REGULAR System UNKNOWN /dev/rhdisk18
102400 114 102400 DATA2_0000 DATA2_0000 REGULAR System UNKNOWN /dev/rhdisk2
102400 110 102400 DATA2_0001 DATA2_0001 REGULAR System UNKNOWN /dev/rhdisk3
102400 104 102400 DATA2_0002 DATA2_0002 REGULAR System UNKNOWN /dev/rhdisk4
102400 105 102400 DATA2_0003 DATA2_0003 REGULAR System UNKNOWN /dev/rhdisk5
102400 102 102400 DATA2_0004 DATA2_0004 REGULAR System UNKNOWN /dev/rhdisk6
102400 106 102400 DATA2_0005 DATA2_0005 REGULAR System UNKNOWN /dev/rhdisk7
Let me rebalance the diskgroup and retry the file extension.
SQL> alter diskgroup data2 rebalance power 11;
Diskgroup altered.
After the rebalance complete, it's balanced as shown below.
[agcoux136:grid:/home/grid]asmcmd lsdsk -k
Total_MB Free_MB OS_MB Name Failgroup Failgroup_Type Library Label UDID Product Redund Path
102400 88217 102400 FRA_0001 FRA_0001 REGULAR System UNKNOWN /dev/rhdisk15
102400 98882 102400 FRA2_0000 FRA2_0000 REGULAR System UNKNOWN /dev/rhdisk16
102400 11309 102400 DATA2_0006 DATA2_0006 REGULAR System UNKNOWN /dev/rhdisk18
102400 11311 102400 DATA2_0000 DATA2_0000 REGULAR System UNKNOWN /dev/rhdisk2
102400 11310 102400 DATA2_0001 DATA2_0001 REGULAR System UNKNOWN /dev/rhdisk3
102400 11309 102400 DATA2_0002 DATA2_0002 REGULAR System UNKNOWN /dev/rhdisk4
102400 11310 102400 DATA2_0003 DATA2_0003 REGULAR System UNKNOWN /dev/rhdisk5
102400 11308 102400 DATA2_0004 DATA2_0004 REGULAR System UNKNOWN /dev/rhdisk6
102400 11310 102400 DATA2_0005 DATA2_0005 REGULAR System UNKNOWN /dev/rhdisk7
Let me try to extend the datafile from 16GB to 20GB.
14:16:35 RMS8DEV> alter database datafile 26 resize 20000m;
Database altered.
Elapsed: 00:00:12.51
15:04:00 RMS8DEV>
it's working now!
Comments
Post a Comment