You are on page 1of 2

Step 1: Get the details of the existing tier 2 disks from ODS environment Querying V$ASM_DISK for header

status SQL> SELECT name, header_status, path FROM V$ASM_DISK WHERE path LIKE '/dev/vx/r dsk/odssqa2%'; Header status will be in candidate setp 2: Create the add disks script like this -- Add disks. ALTER DISKGROUP ALTER DISKGROUP ALTER DISKGROUP ALTER DISKGROUP ALTER DISKGROUP ALTER DISKGROUP ALTER DISKGROUP ALTER DISKGROUP ALTER DISKGROUP ALTER DISKGROUP ALTER DISKGROUP ALTER DISKGROUP ALTER DISKGROUP ALTER DISKGROUP ALTER DISKGROUP ALTER DISKGROUP DG1 DG1 DG1 DG1 DG1 DG1 DG1 DG1 DG1 DG1 DG1 DG1 DG1 DG1 DG1 DG1 ADD ADD ADD ADD ADD ADD ADD ADD ADD ADD ADD ADD ADD ADD ADD ADD DISK DISK DISK DISK DISK DISK DISK DISK DISK DISK DISK DISK DISK DISK DISK DISK '/devices/disk4' '/devices/disk4' '/devices/disk4' '/devices/disk4' '/devices/disk4' '/devices/disk4' '/devices/disk4' '/devices/disk4' '/devices/disk4' '/devices/disk4' '/devices/disk4' '/devices/disk4' '/devices/disk4' '/devices/disk4' '/devices/disk4' '/devices/disk4' rebalance rebalance rebalance rebalance rebalance rebalance rebalance rebalance rebalance rebalance rebalance rebalance rebalance rebalance rebalance rebalance power power power power power power power power power power power power power power power power 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0;

Changing the rebalance power on the fly ALTER DISKGROUP DG1 REBALANCE POWER 5; for drop disk asm_power_limit Step 3: Dropping Disks from Disk Groups To drop disks from a disk group, use the DROP DISK clause of the ALTER DISKGROUP statement. When a disk is dropped, the disk group is rebalanced by moving all of the file e xtents from the dropped disk to other disks in the disk group. A drop disk opera tion might fail if not enough space is available on the other disks. The best approach is to perform both the add and drop operation with the same AL TER DISKGROUP statement. This has the benefit of rebalancing data extents only o ne time and ensuring that there is enough space for the rebalance operation to s ucceed. The ALTER DISKGROUP...DROP DISK SQL statement returns to SQL prompt before the rop and rebalance operations are complete. Do not reuse, remove, or disconnect he dropped disk until the HEADER_STATUS column for this disk in the V$ASM_DISK iew changes to FORMER. You can query the V$ASM_OPERATION view to determine the mount of time remaining for the drop/rebalance operation to complete. d t v a

-- Drop a disk. ALTER DISKGROUP DG1 DROP DISK diska2;

ALTER DISKGROUP dgroup1 UNDROP DISKS; ALTER DISKGROUP data1 DROP DISK diska5;

You might also like