Chinaunix

标题: ASM磁盘组添加DISK的疑问 [打印本页]

作者: flutter    时间: 2008-10-12 16:10
标题: ASM磁盘组添加DISK的疑问
偶的ORACLE 10G RAC,使用的ASM磁盘组,建设初,考虑到以后的扩容,预留了几个空白的DISK备用。

   现在,其他的DG 磁盘组空间充足,就是归档日志的磁盘组分配了120G,最近归档日志增长很快,有点不足,想增加DISK。

   问题1:使用命令 alter diskgroup DG add disk '/dsk/c1t0d0s0'; 可以直接在线添加DISK吗?

   问题2:使用上个命令,可以直接扩容吗,那 alter diskgroup DG RESIZE DISK diska1 SIZE 100G. 这个resize命令是什么意思?

   第一次用,有点疑问请教。
作者: xwf0311    时间: 2008-10-12 22:43
可以在线添加,不过添加时候IO负担比较重,可以调到一个参数,叫什么power
第一个面临即可,不知道第二个命令是什么意思
作者: ricky.zhu    时间: 2008-10-12 22:49
alter diskgroup add disk 'xxxx' can be used to add disk.

for the resize, here is the document about resize.


resize_disk_clauses

Use these clauses to specify a new size for one or more disks in the disk group. These clauses let you override the size being returned by the operating system or the size you specified previously for the disks.

RESIZE ALL Specify this clause to perform a resize operation on every disk in the disk group.

RESIZE DISK Specify this clause to resize only the specified disk.

RESIZE DISKS IN FAILGROUP Specify this clause to resize every disk in the specified failure group.

SIZE Specify the size of the disk in kilobytes, megabytes, gigabytes, or terabytes. You cannot specify a size greater than the capacity of the disk. If you specify a size smaller than the disk capacity, then you limit the amount of disk space Automatic Storage Management will use. If you omit this clause, then Automatic Storage Management uses the size being returned by the operating system.
作者: ricky.zhu    时间: 2008-10-12 22:51
二楼说的power是add disk之后进行reblanace的操作

ALTER DISKGROUP dgroup_01   REBALANCE POWER 11;


power表示启动的rebalance的进程RBAL的个数,从1到11,默认是1个。power越大,越快。
作者: flutter    时间: 2008-10-13 08:55
谢谢几位的回复,偶现在算是明白了。

   还有个小疑问,ALTER DISKGROUP dgroup_01   REBALANCE POWER 11;

这个命令是一次性的,还是以后永久性的?

如果是永久性的,对其他的DG没有什么影响吧?需要调整回来吗?

   请 ricky.zhu  赐教,谢谢!!!
作者: flutter    时间: 2008-10-13 11:38
Rebalancing a Disk Group: Example

To manually rebalance a disk group, dgroup_01, and permit Automatic Storage Management to execute the rebalance as fast as possible, issue the following statement:

ALTER DISKGROUP dgroup_01
  REBALANCE POWER 11;

   看样子是手工一次性的,用完了需要还原。




欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2