sudo fdisk -l 2>/dev/null | egrep '^Disk' | egrep -v 'dm-|type|identifier'
bosp13344 ORA_DATA01 = SSD 200GB LUN ID= 00:01:D3 /dev/sdf1
bosp123 ORA_FRA01 = SSD 100GB LUN ID= 00:01:C7 /dev/sdg1
sudo oracleasm createdisk ORA_DATA_01 /dev/sdf1
alter diskgroup ORA_DATA add disk '/dev/oracleasm/disks/ORA_DATA_01' NAME ORA_DATA_01 rebalance power 100;
Select * from v$asm_operation;
alter diskgroup ORA_DATA drop disk 'ORA_DATA_0000' rebalance power 100;
Select * from v$asm_operation;
set lines 999;
col diskgroup for a15
col diskname for a20
col path for a35
select a.name DiskGroup,b.name DiskName, b.total_mb, (b.total_mb-b.free_mb) Used_MB, b.free_mb,b.path,
b.header_status
from v$asm_disk b, v$asm_diskgroup a
where a.group_number (+) =b.group_number
order by b.group_number,b.name;
sudo oracleasm deletedisk ORA_DATA_001
-------------------------------------------------------------
sudo oracleasm createdisk ORA_FRA_01 /dev/sdg1
alter diskgroup ORA_FRA add disk '/dev/oracleasm/disks/ORA_FRA_01' NAME ORA_FRA_01 rebalance power 100;
Select * from v$asm_operation;
alter diskgroup ORA_FRA drop disk 'ORA_FRA_001_0000' rebalance power 100;
/dev/oracleasm/disks/ORA_FRA_01
set lines 999;
col diskgroup for a15
col diskname for a20
col path for a35
select a.name DiskGroup,b.name DiskName, b.total_mb, (b.total_mb-b.free_mb) Used_MB, b.free_mb,b.path,
b.header_status
from v$asm_disk b, v$asm_diskgroup a
where a.group_number (+) =b.group_number
order by b.group_number,b.name;
sudo oracleasm deletedisk ORA_FRA_001