Sometimes it is required to add disks and drop disks sequentially in ASM environments. For example diskgroup migration between SAN , disk arrays etc .. , the disks are added and dropped . In this situation as default rebalance operation executes after every add & drop statements .
alter diskgroup DATA add disk
'ASMNEWDDISK_1',
'ASMNEWDDISK_2',
'ASMNEWDDISK_3' rebalance power 4;
alter diskgroup DATA drop disk
'ASMOLDDDISK_1,
'ASMOLDDDISK_2,
'ASMOLDDDISK_3' rebalance power 4;
With this above statements rebalance operation executes 2 times , and not necessary. In order to execute rebalance in one operation , following statement can be used.
alter diskgroup DATA add disk
'ASMNEWDDISK_1',
'ASMNEWDDISK_2',
'ASMNEWDDISK_3'
drop disk
'ASMOLDDDISK_1,
'ASMOLDDDISK_2,
'ASMOLDDDISK_3' rebalance power 4;
No comments:
Post a Comment