according Oracle10gR1.Step.By.Step.by.Kamus
CSS(Cluster Synchronization Services)
# cd /etc/rc3.d[rc5.d]
# ln -s ../init.d/oracleasm S99oracleasm
# ln -s ../init.d/oracleasm K01oracleasm
#lsmod | grep oracleasm
oracleasm 14224 1
#dmesg | grep oracleasm
ASM: oracleasmfs mounted with options: <defaults>
+ASM instance:
1.CREATE DISKGROUP:
create diskgroup dgroup1 normal redundancy
failgroup fgroup1 disk 'ORCL:VOL1','ORCL:VOL2'
failgroup fgroup2 disk 'ORCL:VOL3','ORCL:VOL4';
SQL> col name for a10
SQL> select name,state from v$asm_diskgroup;
if state=dismounted
SQL> ALTER DISKGROUP dgroup1 MOUNT;
SQL> col name for a10
SQL> col type for a10
SQL> col value for a20
SQL> show parameter asm_diskgroups
2.ADD&DELETE DISK INTO DISKGROUP:
SQL> ALTER DISKGROUP DGROUP1 ADD FAILGROUP FGROUP1 DISK
'ORCL:VOL5' FGROUP2 DISK 'ORCL:VOL6';
check auto rebalance:
SQL> SELECT group_number, operation, state, est_work, sofar, est_rate,
est_minutes FROM v$asm_operation;
SQL> select name,allocation_unit_size,total_mb from v$asm_diskgroup;
SQL> alter diskgroup dgroup1 drop disk VOL4;
SQL> SELECT group_number, operation, state, est_work, sofar, est_rate,
est_minutes FROM v$asm_operation;
SQL> select label,failgroup from v$asm_disk;
DATABASE INSTANCE:
SQL> SELECT disk_number, label FROM V$asm_disk;