12C RAC for ASM添加磁盘具体步骤(2)

2、udev 确认99.rules文件在两边后,两个节点执行以下命令;
/sbin/udevadm control --reload
/sbin/udevadm trigger --type=devices --action=change
检查磁盘是否属组正确

3、ASM磁盘组加磁盘或创建新的磁盘组。
[grid@dwdb1 ~]$ sqlplus / as sysasm
sysasm$alter diskgroup DATA add disk '/dev/asm-data15','/dev/asm-data16' rebalance power 10; ###该参数可以动态调整,10太慢的话,可以改到中间值5.

--查看执行效率
select group_number,operation,state ,power,est_minutes from v$asm_operation;

--等到执行完成后,改回1,11值为最小性能,1为最大性能
alter diskgroup DATA rebalance power 1;

--至此扩容工作已经完成,下面是具体监控办法
--检查header_status状态,不应该有MEMBER以外的状态
select group_number,disk_number,name,state,path,header_status from v$asm_disk;

--监控alert日志输出结果
2018-08-17T16:43:33.399676+08:00
NOTE: Assigning number (3,14) to disk (/dev/asm-data15)
SUCCESS: completed reconfiguration of group 3 (DATA)
NOTE: Assigning number (3,15) to disk (/dev/asm-data16)
SUCCESS: completed reconfiguration of group 3 (DATA)

--监控查看rebalance进度,完成后查询为空,改回power 为1
select inst_id, operation, state, power, sofar, est_work, est_rate, est_minutes from gv$asm_operation;

Linux公社的RSS地址:https://www.linuxidc.com/rssFeed.aspx

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/694db366984f108d2261872b6dad8eb1.html