Skip Headers
Oracle® Automatic Storage Management Administrator's Guide
12c Release 1 (12.1)

E17612-20
Go to Documentation Home
Home
Go to Book List
Book List
Go to Table of Contents
Contents
Go to Index
Index
Go to Master Index
Master Index
Go to Feedback page
Contact Us

Go to previous page
Previous
Go to next page
Next
PDF · Mobi · ePub

9 Managing Oracle ASM With ASMCA

Oracle ASM Configuration Assistant (ASMCA) supports installing and configuring Oracle ASM instances, Oracle ASM disk groups, Oracle ASM Dynamic Volume Manager (Oracle ADVM) volumes, and Oracle Automatic Storage Management Cluster File System (Oracle ACFS) file systems. In addition, you can use the ASMCA command-line interface.

This chapter discusses the following topics:

For information about managing Oracle ACFS and Oracle ADVM with ASMCA, refer to Chapter 14, "Managing Oracle ACFS and Oracle ADVM With ASMCA". For information about using ASMCA to convert to Oracle Flex ASM, refer to "Converting to Oracle Flex ASM".

Getting Started With the ASMCA GUI Tool

To start ASMCA, enter asmca at a command prompt inside the Oracle Grid Infrastructure home. For example:

$ asmca

The GUI tool displays and attempts to connect to the Oracle ASM instance identified with the Oracle system identifier (SID) set to +ASM.

  • If ASMCA detects an Oracle ASM instance that is not running, then ASMCA prompts whether you want to start the instance.

  • If ASMCA detects an Oracle ASM instance from a previous release, then ASMCA prompts whether you want to upgrade the instance. Oracle recommends that you respond No this prompt.

    An Oracle ASM instance should be upgraded with Oracle Universal Installer (OUI). OUI automatically defaults to upgrade mode when it detects an Oracle ASM instance at a previous release level.

    To continue the upgrade process with ASMCA, see "Upgrading an Oracle ASM Instance with ASMCA". If you need help with upgrading an Oracle ASM instance, contact Oracle Support Services.

The Instances tab functionality and some menu options of ASMCA are only available in an Oracle RAC configuration.

To start the command-line ASMCA, see "ASMCA Command-Line Interface".

Managing Instances and Disk Groups With ASMCA

This section contains the following topics:

Creating Oracle ASM Instances with ASMCA

Oracle ASM Configuration Assistant enables you to create an Oracle ASM instance if an Oracle ASM instance is not found on the host, as shown in Figure 9-1.

On the Create ASM page, you enter the SYS password for the administrator of the Oracle ASM instance and the password for the ASMSNMP user that can monitor this Oracle ASM instance. ASMSNMP is a less privileged user that is primarily used to monitor Oracle ASM instances.

See Also:

You can select the listener with which to register this Oracle ASM instance. Click ASM Parameters to update the initialization parameters for the Oracle ASM instance.

Figure 9-1 Oracle ASM Configuration Assistant Create ASM Page

Description of Figure 9-1 follows
Description of "Figure 9-1 Oracle ASM Configuration Assistant Create ASM Page"

When you can click ASM Parameters in the Create ASM page, you can update initialization parameters for an Oracle ASM instance on the Oracle ASM Configuration Assistant page, as shown in Figure 9-2.

For information about Oracle ASM instance initialization parameters, see "Configuring Initialization Parameters for Oracle ASM Instances".

Figure 9-2 Oracle ASM Configuration Assistant Create ASM Page

Description of Figure 9-2 follows
Description of "Figure 9-2 Oracle ASM Configuration Assistant Create ASM Page"

Upgrading an Oracle ASM Instance with ASMCA

Oracle ASM Configuration Assistant also enables you to upgrade an existing Oracle ASM instance to the current software level. However, the recommended practice is to upgrade an Oracle ASM instance with Oracle Universal Installer (OUI). OUI automatically defaults to upgrade mode when it detects an Oracle ASM instance at a previous release level.

If Oracle Clusterware has been upgraded, then there is no need to upgrade the Oracle ASM instance in that Oracle Grid Infrastructure home. Oracle ASM is usually upgraded as part of the Oracle Clusterware upgrade.

See Also:

Figure 9-3 Oracle ASM Configuration Assistant Upgrade ASM Page

Description of Figure 9-3 follows
Description of "Figure 9-3 Oracle ASM Configuration Assistant Upgrade ASM Page"

After upgrading an Oracle ASM instance, you can copy or move an Oracle ASM SPFILE. After copying or moving the SPFILE, you must restart the instance with the SPFILE in the new location to use that SPFILE. For information, see "Backing Up, Copying, and Moving an Oracle ASM Initialization Parameter File".

See Also:

Managing Disk Groups with ASMCA

Oracle ASM Configuration Assistant enables you to configure or create Oracle ASM disk groups with the Configure ASM Disk Groups tab, as shown in Figure 9-4. The disk group tab displays selected details about the disk group, such as name, size, free space, usable space, redundancy level, and state of the disk group.

See Also:

Oracle Database Reference for descriptions of disk group information displayed in the V$ASM_DISKGROUP view

You can right click a selected disk group in the screen to display the configuration options menu. The menu options enable you to:

  • Add disks to and drop disks from the disk group

  • Edit the disk group attributes

  • Manage templates for the disk group

  • Create an Oracle ACFS file system on the disk group for database use

  • Mount and dismount the disk group

  • Drop the disk group

Figure 9-4 Oracle ASM Configuration Assistant Configure Disk Groups Page

Description of Figure 9-4 follows
Description of "Figure 9-4 Oracle ASM Configuration Assistant Configure Disk Groups Page"

There are additional options for creating a disk group, mounting all disk groups, and dismounting all disk groups.

Oracle ASM Configuration Assistant enables you to create an Oracle ASM disk group by clicking Create on the Oracle ASM Configuration Assistant disk group page. The page for creating a disk group is shown in Figure 9-5.

Figure 9-5 Oracle ASM Configuration Assistant Create Disk Groups Page

Description of Figure 9-5 follows
Description of "Figure 9-5 Oracle ASM Configuration Assistant Create Disk Groups Page"

On this page, you can enter a name for the disk group, select the redundancy level, change the disk discovery path to locate disks in a different directory, identify the disks to be in the disk group, enter a name for a failure group, and specify if the failure group is a quorum type. A quorum failure group is a special type of failure group and disks in these failure groups do not contain user data and a quorum failure group is not considered when determining redundancy requirements with respect to user storage. However, a quorum failure group counts when mounting a disk group. For information about quorum failure groups, see "Storing Oracle Cluster Registry and Voting Files in Oracle ASM Disk Groups".

The default disk group compatibility settings are 11.2 for Oracle ASM compatibility, 10.1 for database compatibility, and no value for Oracle ADVM compatibility. For information about disk group compatibility attributes, see "Disk Group Compatibility". For information about disk discovery, see "Oracle ASM Disk Discovery" and "ASM_DISKSTRING".

You can choose to show advanced options when creating a disk group, as shown in Figure 9-6. The advanced options section enables you to set additional options, such as disk group compatibility settings and allocation unit (AU) size. When you are finished with the create disk group specifications, click OK.

Note:

The disk group compatibility settings can only be advanced. You cannot revert to a lower compatibility setting after you advance the disk group compatibility settings. See "Overview of Disk Group Compatibility"

Figure 9-6 Oracle ASM Configuration Assistant Create Disk Groups - Advanced Options

Description of Figure 9-6 follows
Description of "Figure 9-6 Oracle ASM Configuration Assistant Create Disk Groups - Advanced Options"

For more information about managing disk groups, see Chapter 4, "Administering Oracle ASM Disk Groups".

ASMCA Command-Line Interface

The ASMCA command-line interface provides non-GUI support for configuring Oracle ASM instances, Oracle ASM disk groups, volumes, and Oracle ACFS.

Running ASMCA Command-Line

The syntax for running the ASMCA command-line tool is:


asmca -silent command_name [options]

Table 9-1 contains the options available with the asmca command-line tool.

Table 9-1 Options for the ASMCA command-line tool

Option Description

-silent

Specifies to run asmca in command-line mode.

command_name

Specifies the command to run. The command can be any of the following:

-convertToFlexASM
-configureASM
-upgradeASM
-configureParameter
-deleteASM
-createDiskGroup
-addDisk
-createVolume
-createACFS

See "ASMCA Commands for Instances and Disk Groups".

options

Specifies the options to run for a command. The options vary by command. See the individual commands described in "ASMCA Commands for Instances and Disk Groups" for the available options.

The following list describes the options that are common for multiple commands.

  • -help

    Displays help for running ASMCA in silent mode.

  • -asmsnmpPassword asmsnmp_password

    The Oracle ASM monitor user (ASMSNMP) password. This is optional and only required when creating and migrating an Oracle ASM instance.

  • -sysAsmPassword sysasm_password

    The SYSASM password for Oracle ASM instance. This option is required.


The following is an example of the -help option.

$ asmca -help
asmca [-silent] [-sysAsmPassword <SYS user password>] [-asmsnmpPassword <ASMSNMP password>] {<command> <options>}
Please refer to the manual for details.
You can enter one of the following commands:
...

ASMCA Commands for Instances and Disk Groups

This section describes the commands that can be run with ASMCA command-line.

Convert to Oracle Flex ASM

-convertToFlexASM converts Oracle ASM to Oracle Flex ASM

Syntax


asmca -silent
     -convertToFlexASM
       -asmNetworks interface_name/subnet, interface_name/subnet...
       -asmListenerPort ASM_listener_port_number

Table 9-2 contains the options available with the -convertToFlexASM command.

Table 9-2 Options for the -convertToFlexASM command

Option Description

-asmNetworks

Specifies a comma-delimited list of Oracle ASM networks. Each network is of the form interface_name/subnet. Specify the subnet, not the IP address for this option

-asmListenerPort

Specifies the Oracle ASM listener port number.


This functionality is only available in an Oracle Grid Infrastructure configuration, not an Oracle Restart configuration.

For additional options that are common to multiple commands, see Table 9-1.

Examples

To convert Oracle ASM to Oracle Flex ASM:

Example 9-1 Using asmca -silent -convertToFlexASM

asmca -silent
        -convertToFlexASM
          -asmNetworks eth1/10.10.10.0
          -asmListenerPort 1521

Configure an Oracle ASM Instance

-configureASM configures or creates an Oracle ASM instance.

Syntax


asmca -silent
     -configureASM
       [-sysAsmPassword sysasm_password ]
       [ -asmsnmpPassword asm_monitor_password ]
       [ { -param paramname=paramvalue , ... } ]
       [ { -diskString discovery_path
        { -diskGroupName diskgroup
         { -disk disk_path [-diskName disk] |
          -diskList disk_list
             [-diskSize disk_size_MB]
             [-failuregroup failure_group]
             [-force|-noforce]
             [-quorum|-noquorum] }
       [ -redundancy { HIGH | NORMAL | EXTERNAL } ] } ]
       [-au_size value]
       [-compatible.asm value ]
       [-compatible.rdbms value ]
       [-compatible.advm value ] }

Table 9-3 contains the options available with the -configureASM command.

Table 9-3 Options for the -configureASM command

Option Description

-param paramname=paramvalue, ...

Specifies a list of initialization parameters with values for the Oracle ASM instance.

-diskString discovery_path

Specifies the Oracle ASM discovery string for locating disks.

-diskGroupName diskgroup

Specifies the name of the Oracle ASM disk group to create.

-disk disk_path

Specifies the full path of the disk device.

-diskName disk

Specifies a user-supplied disk name.

-diskList disk_list

Specifies a comma-delimited list of disk names to be added to the disk group.

-diskSize disk_size_MB

Specifies the size of the disk to use for Oracle ASM storage.

-failuregroup failure_group

Specifies the failure group name.

-force | -noforce

Specifies where to force the use of the disk.

-quorum | -noquorum

Specifies a quorum or standard failure group.

-redundancy { HIGH | NORMAL | EXTERNAL}

Specifies the redundancy setting for the Oracle ASM disk group.

-au_size

Specifies the allocation unit size (1,2,4,8,16,32,64)

-compatible.asm

Specifies the attribute setting.

-compatible.rdbms

Specifies the attribute setting.

-compatible.advm

Specifies the attribute setting.


For additional options that are common to multiple commands, see Table 9-1.

Examples

To configure an Oracle ASM instance:

Example 9-2 Using asmca -silent -configureASM

asmca -silent
        -configureASM
          -diskString '/devices/disk*'
          –sysAsmPassword my_sysasm_password
          -asmsnmpPassword my_asmsnmp_passwd

Upgrade an Oracle ASM Instance

-upgradeASM upgrades an Oracle ASM instance from a previous release to the current software release.

Upgrading an Oracle ASM instance with ASMCA only updates the Oracle ASM instance software and does not configure Oracle Clusterware or the listener.

An Oracle ASM instance should be upgraded with Oracle Universal Installer (OUI). OUI automatically defaults to upgrade mode when it detects an Oracle ASM instance at a previous release level.

Syntax


asmca -silent
     -upgradeASM
       [ -asmsnmpPassword asmsnmp_password ]

The options available with the -upgradeASM command are common to multiple commands. For a description of those options, see Table 9-1.

Examples

To upgrade an Oracle ASM instance:

Example 9-3 Using asmca -silent -upgradeASM

asmca -silent
        -upgradeASM
          -asmsnmpPassword my_asmsnmp_passwd

Configure Parameters for an Oracle ASM Instance

-configureParameter modifies the parameters of an Oracle ASM instance.

Syntax


asmca -silent
       -configureParameter
         [ { -param paramname=paramvalue , ... } ]
         [-sysAsmPassword sysasm_password ]

Table 9-4 contains the options available with the -configureParameter command.

Table 9-4 Options for the -configureParameter command

Option Description

-param paramname=paramvalue, ...

Specifies a list of initialization parameters with values for the Oracle ASM instance.


For additional options that are common to multiple commands, see Table 9-1.

Examples

To configure parameters for an Oracle ASM instance:

Example 9-4 Using asmca -silent -configureParameter

asmca -silent
        -configureParameter 
           (–param 
            asm_power_limit=3)
        –sysAsmPassword my_sysasm_password

Delete Oracle ASM Instances

-deleteASM deletes all the Oracle ASM instances that are present. The operation stops and an error is raised if there is a database using the Oracle ASM instance.

Syntax


asmca -silent
     -deleteASM
       [-sysAsmPassword sysasm_password ]
       [ -force ]
       [ -dropDiskGroups ]

Table 9-5 contains the options available with the -deleteASM command.

Table 9-5 Options for the -deleteASM command

Option Description

-force

Forces the deletion of an Oracle ASM instance.

-dropDiskGroups

Drops the disk groups on this instance.


For additional options that are common to multiple commands, see Table 9-1.

Examples

To delete an Oracle ASM instance:

Example 9-5 Using asmca -silent -deleteASM

asmca -silent
        -deleteASM
          –sysAsmPassword my_sysasm_password
          -force

Create a Disk Group

-createDiskGroup creates disk groups in an Oracle ASM instance.

Syntax


asmca -silent
     -createDiskGroup
       [ -diskString discovery_path ]
       { -diskGroupName diskgroup
         { -disk disk_path [-diskName disk] |
          -diskList disk_list
             [-diskSize disk_size_MB]
             [-failuregroup failure_group]
             [-force|-noforce]
             [-quorum|-noquorum] }
       [ -redundancy { HIGH | NORMAL | EXTERNAL } ] } ]
       [-au_size value]
       [-compatible.asm value ]
       [-compatible.rdbms value ]
       [-compatible.advm value ] }
       [-sysAsmPassword sysasm_password ]

Table 9-6 contains the options available with the -createDiskGroup command.

Table 9-6 Options for the -createDiskGroup command

Option Description

-diskString discovery_path

Specifies the Oracle ASM discovery string for locating disks.

-diskGroupName diskgroup

Specifies the name of the Oracle ASM disk group to create.

-disk disk_path

Specifies the full path of the disk device.

-diskName disk

Specifies a user-supplied disk name.

-diskList disk_list

Specifies a comma-delimited list of disk names to be added to the disk group.

-diskSize disk_size_MB

Specifies the size of the disk to use for Oracle ASM storage.

-failuregroup failure_group

Specifies the failure group name.

-force | -noforce

Specifies where to force the use of the disk.

-quorum | -noquorum

Specifies a quorum or standard failure group.

-redundancy { HIGH | NORMAL | EXTERNAL}

Specifies the redundancy setting for the Oracle ASM disk group.

-au_size

Specifies the allocation unit size (1,2,4,8,16,32,64)

-compatible.asm

Specifies the attribute setting.

-compatible.rdbms

Specifies the attribute setting.

-compatible.advm

Specifies the attribute setting.


For additional options that are common to multiple commands, see Table 9-1.

The default disk group compatibility settings are 11.2 for Oracle ASM compatibility, 10.1 for database compatibility, and no value for Oracle ADVM compatibility. For information about disk group compatibility attributes, see "Disk Group Compatibility".

Examples

To create disk groups in an Oracle ASM instance:

Example 9-6 Using asmca -silent -createDiskGroup

$ asmca -silent -createDiskGroup
       -diskGroupName mynewdg
           -disk '/devices/diske*'
           -disk '/devices/diskk*'
       -redundancy NORMAL
       -au_size 64
       -compatible.asm '11.2.0.0.0'
       -compatible.rdbms '11.2.0.0.0'
       -compatible.advm '11.2.0.0.0'

DiskGroup mynewdg created successfully.

Add a Disk to a Disk Group

-addDisk add disks to an existing disk group in an Oracle ASM instance.

Syntax


asmca -silent
       -addDisk
         [ -diskString discovery_path ]
           { -diskGroupName diskgroup
            { -disk disk_path [-diskName disk] |
             -diskList disk_list
               [-diskSize disk_size_MB]
               [-failuregroup failure_group]
               [-force|-noforce]
               [-quorum|-noquorum] }
         [-sysAsmPassword sysasm_password ]

Table 9-7 contains the options available with the -addDisk command.

Table 9-7 Options for the -addDisk command

Option Description

-diskString discovery_path

Specifies the Oracle ASM discovery string for locating disks.

-diskGroupName diskgroup

Specifies the name of the Oracle ASM disk group to update.

-diskList disk_list

Specifies a comma-delimited list of disk names to be added to the disk group.

-diskSize disk_size_MB

Specifies the size of the disk to use for Oracle ASM storage.

-failuregroup failure_group

Specifies the failure group name.

-force | -noforce

Specifies where to force the use of the disk.

-quorum | -noquorum

Specifies a quorum or standard failure group.


For additional options that are common to multiple commands, see Table 9-1.

Examples

To add disks to an existing disk group:

Example 9-7 Using asmca -silent -addDisk

asmca -silent
        -addDisk
          -diskGroupName mynewdg 
             -disk '/devices/diskl1'
             -disk '/devices/diskl2'

Disks added successfully to diskgroup mynewdg.