ALTER DISKGROUP dg_name ADD DISK的疑问

[复制链接]
查看11 | 回复2 | 2010-11-11 18:03:08 | 显示全部楼层 |阅读模式
本帖最后由 jayli426 于 2015-2-7 20:25 编辑
参考这个文档
http://docs.oracle.com/cd/E11882_01/server.112/e18951/asmdiskgrps.htm#CHDBIFGA

The following statement successfully adds disks /devices/diska5 through /devices/diska8 to data1. Because no FAILGROUP clauses are included in the ALTER DISKGROUP statement, each disk is assigned to its own failure group. The NAME clauses assign names to the disks, otherwise they would have been assigned system-generated names.
ALTER DISKGROUP data1 ADD DISK
'/devices/diska5' NAME diska5,
'/devices/diska6' NAME diska6,
'/devices/diska7' NAME diska7,
'/devices/diska8' NAME diska8;

我不是太理解“Because no FAILGROUP clauses are included in the ALTER DISKGROUP statement, each disk is assigned to its own failure group”这个话的意思
如果按照文档中之前的创建DG的例子
CREATE DISKGROUP data NORMAL REDUNDANCYFAILGROUP
controller1 DISK'/devices/diska1','/devices/diska2','/devices/diska3','/devices/diska4'FAILGROUP
controller2 DISK'/devices/diskb1','/devices/diskb2','/devices/diskb3','/devices/diskb4'ATTRIBUTE
'compatible.asm' = '11.2', 'compatible.rdbms' = '11.2',
'sector_size'='4096';
我的问题现在data有两个FAILGROUP controller1 和controller2
如果我执行ALTER DISKGROUP dataADD DISK '/devices/diska5' NAME diska5,
这个'/devices/diska5'会加入到哪个 FAILGROUP 中呢?
感觉“each disk is assigned to its own failure group”根本给不出答案啊?


回复

使用道具 举报

千问 | 2010-11-11 18:03:08 | 显示全部楼层
本帖最后由 Yong Huang 于 2015-2-9 11:19 编辑
If you don't specify failgroup when you add a disk, it will create a new failgroup for itself. The end result will be 4 disks in controller1, 4 disks in controller2, and 1 disk in the new failgroup, named the same as the disk, diska5.
回复

使用道具 举报

千问 | 2010-11-11 18:03:08 | 显示全部楼层
Yong Huang 发表于 2015-2-10 01:18
If you don't specify failgroup when you add a disk, it will create a new failgroup for itself. The e ...

如果按照你说的这个逻辑,那oracle文档举的例子可太不友好,根本看不出这个逻辑啊
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行