2.更改存储设备文件的属性
chown grid:oinstall /dev/mxxxxx
3.确保ASM实例的磁盘发现路径包括新增加的存储设备
ASM_DISKSTRING
4.创建磁盘组
CREATE DISKGROUP data NORMAL REDUNDANCY
FAILGROUP 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';
说明:可以指定ASMLIB LABLE过的磁盘来指定磁盘,ORCL:DISKB1
5.添加磁盘
ALTER DISKGROUP data1 ADD DISK
'/devices/disk*4' REBALANCE POWER 10;
说明:
1.该操作需用SYSASM角色来执行,否则会报ORA-15260
2.该操作会引起ASM的REBALANCE操作,下面的语句监控REBLANCE的操作进度SELECT * FROM V$ASM_OPERATION;
1.添加clusterware节点
在已有的节点上
cluvfy stage -pre nodeadd -n node3 [-fixup [-fixupdir fixup_dir]] [-verbose]
--11.2.0.2的安装有BUG,共享磁盘检测总是不成功,所以在确认只有磁盘检测错误,并且在新节点上确定能够访问共磁盘的情况下忽略CHECKS
export IGNORE_PREADDNODE_CHECKS=Y
Grid_home/oui/bin/./addNode.sh -silent "CLUSTER_NEW_NODES={node3}" "CLUSTER_NEW_VIRTUAL_HOSTNAMES={node3-vip}"
cluvfy stage -post nodeadd -n node3 [-verbose]
2.添加INSTANCE
在已有的节点上
Oracle_home/oui/bin/addNode.sh -silent "CLUSTER_NEW_NODES={devdb03}"
Oracle_home/bin/dbca -silent -addInstance -nodeList devdb03 -gdbName devdb -instanceName devdb3 -sysDBAUserName sys -sysDBAPassword oracle