Creating Automatic Storage Management (ASM) disk groups using various types methods. “ASMCMD”, “ASMCA”, “ASM Instance” & “Enterprise Manager (EM)”.
Method-1 : Creating ASM Disk Groups – ASMCMD Command Line Interface
Step-1: Login to ASM command line interface and input asmcmd and check available disk groups.
Step-2: Create mkdg.xml with Disk Group Name and Disk Group properties and execute through “mkdg” command passing mkdg.xml file in ASMCMD command line interface. mkdg creates a new disk group with an XML configuration file that specifies the name of the disk group, redundancy, attributes, and paths of the disks that form the disk group. Redundancy is an optional parameter; the default is normal redundancy
Step-3: Contents of “mkdg.xml” file. The following is XML configuration file for mkdg. The configuration creates a disk group named data with normal redundancy. Two failure groups, fg1 and fg2 are created, each with two disks identified by associated disk strings. The disk group compatibility attributes are all set to 11.2
Method-2 : Creating ASM Disk Groups – ASMCA (ASM Configuration Assistant)
Step-1 : Execute “asmca” from Grid Infrastructure BIN directory.
Step-2 : Pass Disk Group Name, select required redundancy, select required no. of disks and set compatibilityby clicking on “show advanced options”button
Step-3: Check created disk group information through “ASMCMD” Command line interface.
Method-3: Creating ASM Disk Groups – ASM Instance as ‘SYSASM’ user.
Step-1: Login as ‘sysasm’ in ASM instance and check disk groups information.
Step-2: Create disk group with required redundancy, failgroup, compatibility properties.
Method-4: Creating ASM Disk Groups – Enterprise Manager (EM)
Step-1: Login as ‘sys’ user and click on “+ASM_dbnode” property
Step-2: Click on Disk Groups Tab.
Step-3: Login as ‘sys’ user as ‘sysasm’ privileges in ASM instance.
Step-4: Click on “Create” for creating disk group.
Step-5: Create disk group with required redundancy, failgroup, compatibility properties
Step-6: Creating disk group
Step-7: Login as ‘sysasm’ in ASM instance and check disk groups information.
Conclusion: We can create ASM disk groups through ‘ASMCMD’ Command line interface, ‘ASMCA’ GUI based configuration assistant, ‘ASM’ Instance login as ‘sys’ user with ‘sysasm’ privileges and Enterprise Manager (EM) login as ‘sys’ user with ‘sysasm’ privileges.
Good article Ravi!
Thanks Deiby Gomez for your comment.