Follow the below steps to create the ASM Diskgroup.
1. Create ASM disk.
2. Check the ASM disks.
3. Create ASM diskgroup.
4. Check the newly added disk in ASM Diskgroup
1. Create ASM disk.
Get the Lun name from storage team.
Lun Name – /dev/sda1
Create the new ASM Disk,
$sudo oracleasm createdisk ORA_DATA_01 /dev/sda1
2. Check the ASM Disks,
Check the newly added disk,
$sudo oracleasm listdisks
3. Create the ASM Diskgroup
$sqlplus / as sysasm
SQL> CREATE DISKGROUP ORA_DATA EXTERNAL REDUNDANCY disk ‘/dev/oracleasm/disks/ORA_DATA_01’ NAME ORA_DATA_01;
4. Check the newly added disk in ASM Diskgroup
set lines 999;
col diskgroup for a15
col diskname for a15
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;