ASM_POWER_LIMIT初始化参数指定的最大功率的自动存储管理磁盘重新平衡的实例。限制更高,更快的再平衡将完成
。ASM_POWER_LIMIT较低的值将需要更长的时间,但消耗更少的处理和I
/ O资源 。此参数的默认值是1,允许值的范围是0到11
(含)。如果此参数为0的值,然后平衡禁用。较高的数值,使平衡操作,更快速地完成,但它可能会导致更高的I
/ O开销。
I / O量,因此,将出现一个平衡操作过程中,取决于这个初始化参数的值。
注意:如果用户没有指定一个平衡操作的POWER子句,则默认的电源将ASM_POWER_LIMIT
价值。
ASM ( Automatic Storage Management ) 的一个重要特性是可以进行在线磁盘重配置及动态均衡。
当我们向已有磁盘组中增加磁盘后,Oracle会自动进行IO均衡,为了完成这个任务,Oracle引入了一个新的后台进程:
[oracle@danaly ~]$ ps -ef|grep ora_rbal*
oracle 3815 1 0 Jan23 ? 00:00:01 ora_rbal_danaly
oracle 31601 23407 0 14:33 pts/2 00:00:00 grep ora_rbal*
这个进程用来进行IO均衡。
IO调整是自动进行的,并且这个平衡速度是可以控制的。
Oracle通过一个新增的参数:asm_power_limit 来控制速度。
该参数取值范围为1~11,参数值越大平衡速度越快。
Oracle文档对该参数解释为:
ASM_POWER_LIMIT specifies the maximum power on an Automatic Storage
Management instance for disk rebalancing. The higher the limit, the
faster rebalancing will complete. Lower values will take longer,
but consume fewer processing and I/O resources.
If the POWER clause of a rebalance operation is not specified, then
the default power will be the value of ASM_POWER_LIMIT.
该参数缺省值为1:
SQL> show parameter power
NAME TYPE VALUE
------------------------------------ ---------------------- ----------------
asm_power_limit integer 1
该参数也可以在增加磁盘时指定:
SQL> alter diskgroup ORADG add disk 'ORCL:VOL6' rebalance power 11;
Diskgroup altered.
我们可以看一下,最初我的磁盘使用情况为:
SQL> select name,total_mb,free_mb from v$asm_disk;
NAME TOTAL_MB FREE_MB
-------------------- ---------- ----------
2870 0
VOL1 19077 6571
VOL2 19077 6497
VOL3 19077 6558
VOL4 12228 4321
VOL6 104187 97622
6 rows selected.
经过Oracle的自动调整均衡之后,磁盘空间使用情况变为:
SQL> select name,total_mb,free_mb from v$asm_disk;
NAME TOTAL_MB FREE_MB
-------------------- ---------- ----------
2870 0
VOL1 19077 13337
VOL2 19077 13381
VOL3 19077 13337
VOL4 12228 8548
VOL6 104187 72966
6 rows selected.
ASM在存储管理上实在是给我们带来了更多的便利之处。
参考文档:
历史上的今天...