• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer navigation

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • Solaris
    • Oracle Linux
    • VCS
  • Interview Questions
  • Database
    • oracle
    • oracle 12c
    • ASM
    • mysql
    • MariaDB
  • DevOps
    • Docker
    • Shell Scripting
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

How To Create An ASM Diskgroup Using XML code in ASMCMD

by admin

The post provides you an example about how to create an ASM diskgroup using XML code through the asmcmd command.

1. Create a XML file (e.g. diskgroup.xml) with the next code:

<dg name="datadg" redundancy="normal">
<fg name="SAN1">
<dsk string="ORCL:ASMDISK1"/>
<dsk string="ORCL:ASMDISK2"/> </fg>
<fg name="SAN2">
<dsk string="ORCL:ASMDISK3"/>
<dsk string="ORCL:ASMDISK4"/> </fg>
<a name="compatible.asm" value="11.2"/>
<a name="compatible.rdbms" value="11.2"/>
<a name="compatible.advm" value="11.2"/>
</dg>

2. Then execute the XML script thru ASMCMD as follow:

$ asmcmd mkdg diskgroup.xml

3. Validate the diskgroup was created:

SQL*Plus: Release 11.2.0.1.0 Production on Tue Feb 1 17:59:37 2011

Copyright (c) 1982, 2009, Oracle.  All rights reserved.


Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
With the Automatic Storage Management option

SQL> select name, state, type from v$asm_diskgroup;

NAME                           STATE       TYPE
------------------------------ ----------- ------
ACFSDG                         MOUNTED     EXTERN
DATA                           MOUNTED     NORMAL
DATADG                         MOUNTED     NORMAL
RECO                           MOUNTED     NORMAL
How to recreate an ASM disk group

Filed Under: ASM, oracle

Some more articles you might also be interested in …

  1. ORA-14652: reference partitioning foreign key is not supported
  2. How to Use Udev Rules to Create oracleasm Disks in CentOS/RHEL 8
  3. How to Enable or Disable Veritas ODM for Oracle database 11g
  4. How to load SELinux Module For Oracleasm
  5. Oracle Automatic Storage Management (ASM) concepts
  6. How to Convert RAC One Node Database to RAC (and Oracle RAC One Node to RAC database)
  7. Oracle Tablespace Transport for a Single Partition
  8. Oracle Database 12c New Feature: Transaction Guard and Application Continuity
  9. Simple Steps to use LogMiner for finding high redo log generation
  10. Basic SELECT Statement in PL/SQL

You May Also Like

Primary Sidebar

Recent Posts

  • powertop Command Examples in Linux
  • powertop: command not found
  • powerstat: command not found
  • powerstat Command Examples in Linux

© 2023 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright