登录  
 加关注
查看详情
   显示下一条  |  关闭
温馨提示!由于新浪微博认证机制调整,您的新浪微博帐号绑定已过期,请重新绑定!立即重新绑定新浪微博》  |  关闭

飞哥的技术博客

世上无难事,只怕有心人!

 
 
 

日志

 
 
 
 

oracle database storage administrator's guide 11gR2-11  

2009-10-18 17:00:05|  分类: Oracle |  标签: |举报 |字号 订阅

  下载LOFTER 我的照片书  |

11 Oracle ASM Configuration Assistant

Oracle ASM Configuration Assistant (ASMCA) supports installing and configuring ASM instances, disk groups, volumes, and Oracle Automatic Storage Management Cluster File System (Oracle ACFS). In addition, you can use the ASMCA command-line interface as a non-GUI utility.

This chapter discusses the following topics:

Oracle ASM Configuration Assistant GUI Tool

This section contains the following topics:

Starting Oracle ASM Configuration Assistant

To start ASMCA, enter DE<asmcaDE< at a command prompt inside the Oracle grid infrastructure home. For example:

DE<$DE< DE<asmcaDE<

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

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

  • If ASMCA detects an Oracle ASM instance from a previous release, ASMCA prompts whether you want to upgrade the instance. Oracle recommends that you respond DE<NoDE< 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. See "Upgrading an Oracle ASM Instance With Oracle Universal Installer".

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

To start the command-line ASMCA, see "Oracle ASM Configuration Assistant Command-Line Interface".

Managing Oracle ASM Instances With Oracle ASM Configuration Assistant

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 11-1.

On the Create ASM page, you enter the SYS password for the administrator of the Oracle ASM instance and the password for the user that can monitor this Oracle ASM instance. You can select the listener with which you want to register this Oracle ASM instance. Click ASM Parameters to update the initialization parameters for the Oracle ASM instance.

Figure 11-1 Oracle ASM Configuration Assistant Create ASM Page

Description of Figure 11-1 followsDesc="img_text/asmca_create_asm.htm" height=515<
Description of "Figure 11-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 11-2.

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

Figure 11-2 Oracle ASM Configuration Assistant Create ASM Page

Description of Figure 11-2 followsDesc="img_text/asmca_config_asm.htm" height=515<
Description of "Figure 11-2 Oracle ASM Configuration Assistant Create ASM Page"

Upgrading an Oracle ASM Instance with Oracle ASM Configuration Assistant

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. See "Upgrading an Oracle ASM Instance With Oracle Universal Installer".

The following procedure describes how to upgrade an Oracle ASM instance from 11g Release 1 (11.1) to 11g Release 2 (11.2). In this scenario:

  • The Oracle ASM and Oracle Database instances 11g Release 1 (11.1) exist in separate homes.

  • The Oracle grid infrastructure software 11g Release 2 (11.2) is installed in a separate home.

  • The Oracle ASM instance 11g Release 2 (11.2) is set up as an Oracle Restart (single-instance) configuration.

  1. Shut down the Oracle Enterprise Manager agent, Oracle Database instance, and the listener the in the older database home.

    • Run DE<emctlDE< DE<stopDE< DE<dbconsoleDE< to stop the Oracle Enterprise Manager agent.

    • Connect to the database instance with SQL*Plus as a privileged user and issue the DE<SHUTDOWNDE< command.

    • Run DE<lsnrctlDE< and enter the DE<STOPDE< command to stop the listener.

    See Also:

  2. Run the Oracle Universal Installer (OUI) and select the Install Oracle grid infrastructure Software Only option.

  3. Complete the screens in the OUI installer and run the scripts as prompted by the OUI installer.

    For example, on Linux you must run the DE<root.shDE< script as the DE<rootDE< user.

    # GRID_HOME/grid/perl/bin/root.sh  

    When you run the DE<root.shDE< script on Linux, note the instructions in the output of that script. You must run different scripts as DE<rootDE< to configure either a standalone (single-instance) or cluster configuration after OUI has completed.

    See Also:

    Oracle Grid Infrastructure Installation Guide for information about installing Oracle grid infrastructure
  4. After the OUI has completed, perform the procedures that are described in the output of the DE<root.shDE< script that you ran during the installation.

    For example, for a standalone (single-instance) configuration on Linux, run the following script as DE<rootDE< to upgrade the necessary services, including Oracle Cluster Synchronization Services (CSS).

    # GRID_HOME/grid/perl/bin/perl -I/GRID_HOME/perl/lib -I/GRID_HOME/crs/install    GRID_HOME/crs/install/roothas.pl  

    For an upgrade, you must update the node list by running OUI as the installation user in the Oracle grid infrastructure home.

    $ GRID_HOME/oui/bin/runInstaller -updateNodeList -silent -local CRS=false    ORACLE_HOME=ASM_11G_R1_HOME    $ GRID_HOME/oui/bin/runInstaller -updateNodeList -silent -local CRS=true    ORACLE_HOME=GRID_HOME  
  5. Ensure that the current Oracle Cluster Synchronization Services (CSS) are running in the home where the Oracle ASM instance is located. For example:

    On Linux run the DE<crsctlDE< DE<checkDE< DE<cssDE< command. If the CSS daemon is not running, run DE<localconfigDE< DE<addDE< as the root user.

    On Windows, you can use the DE<crsctlDE< and DE<localconfigDE< commands or the Windows Services GUI tool. To use Windows Services GUI tool, double-click the Services icon in the Windows Control Panel and locate the DE<OracleCSServiceDE< service. The status of DE<OracleCSServiceDE< should be DE<StartedDE< and its startup type should be DE<AutomaticDE<.

  6. Run the Network Configuration Assistant (NETCA) to configure the listener.

    Start Network Configuration Assistant (NETCA) in the Oracle grid infrastructure home with DE<netcaDE<. Follow the prompts in the wizard to add and configure the listener in the Oracle grid infrastructure home.

  7. Run ASMCA from the Oracle grid infrastructure home to complete the upgrade.

    For information about starting ASMCA, see "Starting Oracle ASM Configuration Assistant". If the Oracle ASM instance has been shut down during the Oracle grid infrastructure configuration, start that instance when ASMCA prompts you to start that instance.

    When ASMCA detects an earlier version of Oracle ASM, the assistant automatically determines the location of that instance and the location of the Oracle grid infrastructure home, as shown in Figure 11-3.

    Enter a password for the DE<ASMSNMPDE< user, then select Upgrade ASM to complete the upgrade. When the process has completed, you can exit from ASMCA.

    When upgrading an Oracle ASM instance to the current software level, ASMCA moves an Oracle ASM instance prior to 11g Release 2 (11.2) to the Oracle grid infrastructure home and updates the appropriate environmental variables.

  8. Ensure that the Oracle Database instance and Oracle Enterprise Manager agent are running in the database home 11g Release 1 (11.1).

    Start the following services if necessary.

    • Connect to the Oracle Database instance with SQL*Plus as a privileged user and issue the DE<STARTUPDE< command.

    • Restart the Oracle Enterprise Manager agent with DE<emctlDE< DE<startDE< DE<dbconsoleDE<.

Note:

The procedure described in this section upgrades the Oracle ASM instance only. Oracle Database, and Oracle Enterprise Manager, will not have the latest features. To upgrade Oracle Database, see Oracle Database Upgrade Guide.

Figure 11-3 Oracle ASM Configuration Assistant Upgrade ASM Page

Description of Figure 11-3 followsDesc="img_text/asmca_upgrade_asm.htm" height=517<
Description of "Figure 11-3 Oracle ASM Configuration Assistant Upgrade ASM Page"

After upgrading an Oracle ASM instance, you can copy or move an Oracle ASM. 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 Oracle ASM Configuration Assistant

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 11-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 DE<V$ASM_DISKGROUPDE< view

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

  • Add disks to 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 a database home

  • Dismount and mount the disk group

  • Drop the disk group

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

Description of Figure 11-4 followsDesc="img_text/asmca_config_diskgroup.htm" height=520<
Description of "Figure 11-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 11-5.

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

Description of Figure 11-5 followsDesc="img_text/asmca_create_diskgroup.htm" height=552<
Description of "Figure 11-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 you want 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 are not considered when determining redundancy requirements. For information about quorum failure groups, see "Oracle Cluster Registry and Voting Files in Oracle ASM Disk Groups".

The default disk group compatibility settings are DE<11.2DE< for Oracle ASM compatibility, DE<10.1DE< 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 11-6. The advanced options page 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, you cannot change the values back to the previous settings. See "Overview of Disk Group Compatibility"

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

Description of Figure 11-6 followsDesc="img_text/asmca_create_diskgroup_adv.htm" height=701<
Description of "Figure 11-6 Oracle ASM Configuration Assistant Create Disk Groups Page - Advanced Options"

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

Managing Oracle ADVM Volumes With Oracle ASM Configuration Assistant

Oracle ASM Configuration Assistant enables you to create or configure an Oracle ADVM volume, as shown in Figure 11-7.

Right click a selected volume in the Oracle ASM Configuration Assistant screen to display the configuration options menu. The menu options include:

  • Enable a disabled volume

  • Disable an enabled volume

  • Resize the volume

  • Delete the volume

There are options for creating a volume, enabling all volumes, and disabling all volumes.

Figure 11-7 Oracle ASM Configuration Assistant Configure ASM Volumes Page

Description of Figure 11-7 followsDesc="img_text/asmca_config_volume.htm" height=515<
Description of "Figure 11-7 Oracle ASM Configuration Assistant Configure ASM Volumes Page"

Oracle ASM Configuration Assistant enables you to create Oracle ADVM volumes, as shown in Figure 11-7.

Click Create to create a volume. You must provide a unique volume name for the existing Oracle ASM disk group that you select from the list. The volume name can be a maximum of 11 alphanumeric characters; dashes are not allowed. The first character must be alphabetic.

Specify the size for the volume. You can optionally choose to display advanced options for creating a volume which enables you to specify the redundancy level and striping characteristics.

The compatibility parameters DE<COMPATIBLE.ASMDE< and DE<COMPATIBLE.ADVMDE< must be set to 11.2 or higher for the disk group. See "Disk Group Compatibility Attributes".

Figure 11-8 Oracle ASM Configuration Assistant Create an ASM Volume Page

Description of Figure 11-8 followsDesc="img_text/asmca_create_volume.htm" height=522<
Description of "Figure 11-8 Oracle ASM Configuration Assistant Create an ASM Volume Page"

For information about Oracle ACFS, see Chapter 5, "Introduction to Oracle ACFS".

Managing Oracle ACFS File Systems With Oracle ASM Configuration Assistant

Oracle ASM Configuration Assistant enables you to create or configure an Oracle ACFS file system, as shown in Figure 11-9.

To configure an existing file system, right click a selected file system in the Oracle ASM Configuration Assistant screen to display the configuration options menu.

The menu options include:

  • Show mount command for the file system

  • Show dismount command for the file system

  • Register mount point for the file system

  • Deregister mount point for the file system

  • Resize the file system

  • Delete the file system

Some commands require root privileges, such as mounting a file system. Oracle ASM Configuration Assistant generates the command for you to run manually as root or as a privileged user.

There are buttons for Create, Show Mount All, and Show Dismount All commands.

Figure 11-9 Oracle ASM Configuration Assistant Configure Oracle ACFS Page

Description of Figure 11-9 followsDesc="img_text/asmca_config_acfs.htm" height=518<
Description of "Figure 11-9 Oracle ASM Configuration Assistant Configure Oracle ACFS Page"

Oracle ASM Configuration Assistant enables you to create an Oracle ACFS file system, as shown in Figure 11-9.

Select Create, then select an existing an existing Oracle ADVM volume from the list and determine the mount point, show in Figure 11-10. The mount point must be an existing directory. The file system must be mounted to make it available. The mount command must be manually executed as root or the Windows DE<AdministratorDE< at an operating system prompt. For information about mounting an Oracle ACFS file system, see "mount" for Linux or "acfsmountvol" for Windows.

You can also choose to create an Oracle ACFS file system for an Oracle Database. For more information about creating a file system for a database home, see "Creating an Oracle ACFS File System for a Database Home".

Figure 11-10 Oracle ASM Configuration Assistant Create Oracle ACFS Page

Description of Figure 11-10 followsDesc="img_text/asmca_create_acfs.htm" height=541<
Description of "Figure 11-10 Oracle ASM Configuration Assistant Create Oracle ACFS Page"

For information about Oracle ACFS, see Chapter 5, "Introduction to Oracle ACFS". For a summary of the basic steps for creating an Oracle ACFS file system, see "Basic Steps to Manage an Oracle ACFS".

Creating an Oracle ACFS File System for a Database Home

To create an Oracle ACFS file system for a database home, you can select the Create ACFS for Database Home from the disk group configuration options menu, as shown in Figure 11-4. The Create ACFS Hosted Database Home dialog displays as shown in Figure 11-11.

In this dialog, you must enter:

  • Database Home Volume Name

    This is the name of the Oracle ADVM volume you want to create. For information about Oracle ADVM volumes, see "About Oracle ACFS".

  • Database Home Mount Point

    This the mount point for the file system where you want to install the database home. The file system that contains the database home should not be located under the Oracle grid infrastructure base (DE<ORACLE_BASEDE< for grid) directory. For information about mount points and database homes, see "About Oracle ACFS and Oracle Database Homes".

  • Database Home Size in gigabytes (GB)

    The default is 6 GB and the minimum size allowed.

  • Database Home Owner Name

    This is the operating system name of the user that installs the database and owns the software in the database home.

  • Database Home Owner Group

    This is the operating system group of the owner of the database home.

The mount point must be an existing directory. The file system must be mounted to make it available. The mount command must be manually executed as DE<rootDE< or the Windows DE<AdministratorDE< at an operating system prompt. For information about mounting an Oracle ACFS file system, see "mount" for Linux or "acfsmountvol" for Windows.

For information on the mount registry, see "About the Oracle ACFS Mount Registry".

Figure 11-11 Oracle ASM Configuration Assistant Create Oracle ACFS Hosted Database Home Page

Description of Figure 11-11 followsDesc="img_text/asmca_create_acfs_dbhome.htm" height=522<
Description of "Figure 11-11 Oracle ASM Configuration Assistant Create Oracle ACFS Hosted Database Home Page"

Oracle ASM Configuration Assistant Command-Line Interface

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

Running ASMCA Command-Line

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


DE<asmcaDE< DE<-silentDE< DE<command_nameDE< [DE<optionsDE<]

Table 11-1 contains the options available with the DE<asmcaDE< command-line tool.

Table 11-1 Options for the asmca command-line tool

Option Description

DE<-silentDE<

Specifies to run DE<asmcaDE< in command-line mode.

DE<command_nameDE<

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

DE<-configureASMDE<
DE<-upgradeASMDE<
DE<-configureParameterDE<
DE<-deleteASMDE<
DE<-createDiskGroupDE<
DE<-addDiskDE<
DE<-createVolumeDE<
DE<-createACFSDE<

See "ASMCA Commands".

DE<optionsDE<

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

The following list describes the options common for multiple commands.

  • DE<-helpDE<

    Displays help for running ASMCA in silent mode.

  • DE<-asmsnmpPasswordDE< DE<asmsnmp_passwordDE<

    The Oracle ASM monitor user (DE<ASMSNMPDE<) password. This is optional and only required when creating and migrating Oracle ASM instance.

  • DE<-sysAsmPasswordDE< DE<sysasm_passwordDE<

    The DE<SYSASMDE< password for Oracle ASM instance. This option is required.


The following is an example of the DE<-helpDE< 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

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

Configure an Oracle ASM Instance

-DE<configureASMDE< configures or creates an Oracle ASM instance.

Syntax


DE<asmcaDE< DE<-silentDE<
DE<    DE< DE<-configureASMDE<
DE<      DE< [DE<-sysAsmPasswordDE< DE<sysasm_passwordDE< ]
DE<      DE< [ DE<-asmsnmpPasswordDE< DE<asm_monitor_passwordDE< ]
DE<      DE< [ { DE<-paramDE< DE<paramnameDE<DE<=DE<DE<paramvalueDE< , ... } ]
DE<      DE< [ { DE<-diskStringDE< DE<discovery_pathDE<
DE<          DE< DE<-diskGroupNameDE< DE<diskgroupDE<
DE<          DE< DE<-diskListDE< DE<disk_listDE<
DE<          DE< [ DE<-redundancyDE< { DE<HIGHDE< | DE<NORMALDE< | DE<EXTERNALDE< } ] } ]

Table 11-2 contains the options available with the -DE<configureASMDE< command.

Table 11-2 Options for the -configureASM command

Option Description

DE<-paramDE< DE<paramnameDE<DE<=DE<DE<paramvalueDE< , ...

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

DE<-diskStringDE< DE<discovery_pathDE<

Specifies the Oracle ASM discovery string for locating disks.

DE<-diskGroupNameDE< DE<diskgroupDE<

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

DE<-diskListDE< DE<disk_listDE<

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

DE<-redundancyDE< { DE<HIGHDE< | DE<NORMALDE< | DE<EXTERNALDE< }

Specifies the redundancy setting for the disk group.


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

Examples

To configure an Oracle ASM instance:

Example 11-1 Using asmca -silent -configureASM

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

Upgrade an Oracle ASM Instance

-DE<upgradeASMDE< 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 the Oracle Custerware or 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. See "Upgrading an Oracle ASM Instance With Oracle Universal Installer".

Syntax


DE<asmcaDE< DE<-silentDE<
DE<    DE< DE<-upgradeASMInstanceDE<
DE<      DE< [ DE<-asmsnmpPasswordDE< DE<asmsnmp_passwordDE< ]

The options available with the -DE<upgradeASMInstanceDE< command are common to multiple commands. For a description of those options, see Table 11-1.

Examples

To upgrade an Oracle ASM instance:

Example 11-2 Using asmca -silent -upgradeASM

asmca -silent          -upgradeASM            -asmsnmpPassword my_asmsnmp_passwd  

Configure Parameters for an Oracle ASM Instance

DE<-configureParameterDE< modifies the parameters of an Oracle ASM instance.

Syntax


DE<asmcaDE< DE<-silentDE<
DE<      DE< DE<-configureParameterDE<
DE<        DE< [ { DE<-paramDE< DE<paramnameDE<DE<=DE<DE<paramvalueDE< , ... } ]
DE<        DE< [DE<-sysAsmPasswordDE< DE<sysasm_passwordDE< ]

Table 11-3 contains the options available with the -DE<configureParmeterDE< command.

Table 11-3 Options for the -configureParameter command

Option Description

DE<-paramDE< DE<paramnameDE<DE<=DE<DE<paramvalueDE< , ...

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


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

Examples

To configure parameters for an Oracle ASM instance:

Example 11-3 Using asmca -silent -configureParameter

asmca -silent          -configureParameter              (–param               asm_power_limit=3,              asm_disk_string='/devices/disk*')          –sysAsmPassword my_sysasm_password  

Delete an Oracle ASM Instance

DE<-deleteASMDE< deletes an Oracle ASM instance. The operation stops and an error is raised if there is a database using the Oracle ASM instance.

Syntax


DE<asmcaDE< DE<-silentDE<
DE<    DE< DE<-deleteASMDE<
DE<      DE< [DE<-sysAsmPasswordDE< DE<sysasm_passwordDE< ]
DE<      DE< [ DE<-forceDE< ]
DE<      DE< [ DE<-dropDiskGroupsDE< ]

Table 11-4 contains the options available with the -DE<deleteASMDE< command.

Table 11-4 Options for the -deleteASM command

Option Description

DE<-forceDE<

Forces the deletion of an Oracle ASM instance.

DE<-dropDiskGroupsDE<

Drops the disk groups on this instance.


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

Examples

To delete an Oracle ASM instance:

Example 11-4 Using asmca -silent -deleteASM

asmca -silent          -deleteASM            –sysAsmPassword my_sysasm_password            -force  

Create a Disk Group

-DE<createDiskGroupDE< creates disk groups in an Oracle ASM instance.

Syntax


DE<asmcaDE< DE<-silentDE<
DE<    DE< DE<-createDiskGroupDE<
DE<      DE< [ DE<-diskStringDE< DE<discovery_pathDE< ]
DE<      DE< { DE<-diskGroupNameDE< DE<diskgroupDE<
DE<         DE<{ DE<-diskDE< DE<disk_pathDE< [DE<-diskNameDE< DE<diskDE<] |
DE<         DE< DE<-diskListDE< DE<disk_listDE<
DE<            DE< [DE<-diskSizeDE< DE<disk_size_MBDE<]
DE<            DE< [DE<-failuregroupDE< DE<failure_groupDE<]
DE<            DE< [DE<-forceDE<|DE<-noforceDE<]
DE<            DE< [DE<-quorumDE<|DE<-noquorumDE<] }
DE<      DE< [ DE<-redundancyDE< { DE<HIGHDE< | DE<NORMALDE< | DE<EXTERNALDE< } ] } ]
DE<      DE< [DE<-au_sizeDE< DE<valueDE<]
DE<      DE< [DE<-compatible.asmDE< DE<valueDE< ]
DE<      DE< [DE<-compatible.rdbmsDE< DE<valueDE< ]
DE<      DE< [DE<-compatible.advmDE< DE<valueDE< ] }
DE<      DE< [DE<-sysAsmPasswordDE< DE<sysasm_passwordDE< ]

Table 11-5 contains the options available with the -DE<createDiskGroupDE< command.

Table 11-5 Options for the -createDiskGroup command

Option Description

DE<-diskStringDE< DE<discovery_pathDE<

Specifies the Oracle ASM discovery string for locating disks.

DE<-diskGroupNameDE< DE<diskgroupDE<

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

DE<-diskDE< DE<disk_pathDE<

Specifies the full path of the disk device.

DE<-diskNameDE< DE<diskDE<

Specifies a user-supplied disk name.

DE<-diskListDE< DE<disk_listDE<

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

DE<-diskSizeDE< DE<disk_size_MBDE<

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

DE<-failuregroupDE< DE<failure_groupDE<

Specifies the failure group name.

DE<-forceDE< | DE<-noforceDE<

Specifies where to force the use of the disk.

DE<-quorumDE< | DE<-noquorumDE<

Specifies a quorum or standard failure group.

DE<-redundancyDE< { DE<HIGHDE< | DE<NORMALDE< | DE<EXTERNALDE< }

Specifies the redundancy setting for the Oracle ASM disk group.

DE<-au_sizeDE<

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

DE<-compatible.asmDE<

Specifies the attribute setting (10.1 to 11.2)

DE<-compatible.rdbmsDE<

Specifies the attribute setting (10.1 to 11.2)

DE<-compatible.advmDE<

Specifies the attribute setting (empty or 11.2)


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

The default disk group compatibility settings are DE<11.2DE< for Oracle ASM compatibility, DE<10.1DE< 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 11-5 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

-DE<addDiskDE< add disks to an existing disk group in an Oracle ASM instance.

Syntax


DE<asmcaDE< DE<-silentDE<
DE<      DE< DE<-addDiskDE<
DE<        DE< [ DE<-diskStringDE< DE<discovery_pathDE< ]
DE<          DE< { DE<-diskGroupNameDE< DE<diskgroupDE<
DE<            DE<{ DE<-diskDE< DE<disk_pathDE< [DE<-diskNameDE< DE<diskDE<] |
DE<            DE< DE<-diskListDE< DE<disk_listDE<
DE<              DE< [DE<-diskSizeDE< DE<disk_size_MBDE<]
DE<              DE< [DE<-failuregroupDE< DE<failure_groupDE<]
DE<              DE< [DE<-forceDE<|DE<-noforceDE<]
DE<              DE< [DE<-quorumDE<|DE<-noquorumDE<] }
DE<        DE< [DE<-sysAsmPasswordDE< DE<sysasm_passwordDE< ]

Table 11-6 contains the options available with the -DE<addDiskDE< command.

Table 11-6 Options for the -addDisk command

Option Description

DE<-diskStringDE< DE<discovery_pathDE<

Specifies the Oracle ASM discovery string for locating disks.

DE<-diskGroupNameDE< DE<diskgroupDE<

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

DE<-diskListDE< DE<disk_listDE<

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

DE<-diskSizeDE< DE<disk_size_MBDE<

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

DE<-failuregroupDE< DE<failure_groupDE<

Specifies the failure group name.

DE<-forceDE< | DE<-noforceDE<

Specifies where to force the use of the disk.

DE<-quorumDE< | DE<-noquorumDE<

Specifies a quorum or standard failure group.


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

Examples

To add disks to an existing disk group:

Example 11-6 Using asmca -silent -addDisk

asmca -silent          -addDisk            -diskGroupName mynewdg                -disk '/devices/diskl1'               -disk '/devices/diskl2'    Disks added successfully to diskgroup mynewdg.  

Create a Volume

DE<-createVolumeDE< creates Oracle ADVM volumes.

Syntax


DE<asmcaDE< DE<-silentDE<
DE<    DE< DE<-createVolumeDE<
DE<      DE< { DE<-volumeNameDE< DE<volume_nameDE<
DE<      DE< DE<-volumeDiskGroupNameDE< DE<diskgroupDE<
DE<      DE< DE<-volumeSizeGBDE< DE<size_GBDE<
DE<      DE< [ DE<-volumeRedundancyDE< { DE<INHERITDE< | DE<HIGHDE< | DE<NORMALDE< | DE<EXTERNALDE< } ] ... }
DE<      DE< [DE<-sysAsmPasswordDE< DE<sysasm_passwordDE< ]

Table 11-7 contains the options available with the -DE<createVolumeDE< command.

Table 11-7 Options for the -createVolume command

Option Description

DE<-volumeNameDE< DE<volume_nameDE<

Specifies the name of the volume to create.

DE<-volumeDiskGroupNameDE< DE<diskgroupDE<

Specifies the name of the disk group where you want to create the volume.

DE<-volumeSizeGBDE< DE<size_GBDE<

Specifies the size of the volume in Gigabytes..

DE<-volumeRedundancyDE< { DE<INHERITDE< | DE<HIGHDE< | DE<NORMALDE< | DE<EXTERNALDE< }

Specifies the redundancy setting for the volume..


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

Examples

To create an Oracle ADVM volume:

Example 11-7 Using asmca -silent -createVolume

$ asmca -silent          -createVolume             -volumeName volume1              -volumeDiskGroup mynewdg              -volumeSizeGB 1     Volume volume1 created successfully.  

Create an Oracle ACFS File System

-DE<createACFSDE< creates an Oracle Automatic Storage Management Cluster File System (Oracle ACFS).

This command does not mount the Oracle ACFS file system. For information about mounting an Oracle ACFS file system, see "mount" for Linux environments and "acfsmountvol" for Windows environments.

Syntax


DE<asmcaDE< DE<-silentDE<
DE<    DE< DE<-createACFSDE<
DE<      DE< { DE<-acfsVolumeDeviceDE< DE<volume_deviceDE< }
DE<      DE< [DE<-sysAsmPasswordDE< DE<sysasm_passwordDE< ]

Table 11-8 contains the options available with the -DE<createACFSDE< command.

Table 11-8 Options for the -createACFS command

Option Description

DE<-acfsVolumeDeviceDE< DE<volume_deviceDE<

Specifies the name of the Oracle ADVM volume device.


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

Examples

To create an Oracle ACFS file system:

Example 11-8 Using asmca -silent -createACFS

$ asmca -silent          -createACFS             -acfsVolumeDevice /dev/asm/volume1-457    ACFS creation on /dev/asm/volume1-457 completed successfully.   The ACFS should be mounted for use.  
  评论这张
 
阅读(1501)| 评论(0)

历史上的今天

评论

<#--最新日志,群博日志--> <#--推荐日志--> <#--引用记录--> <#--博主推荐--> <#--随机阅读--> <#--首页推荐--> <#--历史上的今天--> <#--被推荐日志--> <#--上一篇,下一篇--> <#-- 热度 --> <#-- 网易新闻广告 --> <#--右边模块结构--> <#--评论模块结构--> <#--引用模块结构--> <#--博主发起的投票-->
 
 
 
 
 
 
 
 
 
 
 
 
 
 

页脚

网易公司版权所有 ©1997-2018