免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 5586 | 回复: 5
打印 上一主题 下一主题

ASM磁盘组添加DISK的疑问 [复制链接]

论坛徽章:
1
CU十二周年纪念徽章
日期:2013-10-24 15:41:34
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2008-10-12 16:10 |只看该作者 |倒序浏览
偶的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命令是什么意思?

   第一次用,有点疑问请教。

论坛徽章:
0
2 [报告]
发表于 2008-10-12 22:43 |只看该作者
可以在线添加,不过添加时候IO负担比较重,可以调到一个参数,叫什么power
第一个面临即可,不知道第二个命令是什么意思

论坛徽章:
0
3 [报告]
发表于 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.

论坛徽章:
0
4 [报告]
发表于 2008-10-12 22:51 |只看该作者
二楼说的power是add disk之后进行reblanace的操作

ALTER DISKGROUP dgroup_01   REBALANCE POWER 11;


power表示启动的rebalance的进程RBAL的个数,从1到11,默认是1个。power越大,越快。

论坛徽章:
1
CU十二周年纪念徽章
日期:2013-10-24 15:41:34
5 [报告]
发表于 2008-10-13 08:55 |只看该作者
谢谢几位的回复,偶现在算是明白了。

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

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

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

   请 ricky.zhu  赐教,谢谢!!!

论坛徽章:
1
CU十二周年纪念徽章
日期:2013-10-24 15:41:34
6 [报告]
发表于 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;

   看样子是手工一次性的,用完了需要还原。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP