Oracle Automatic Storage Management Storage Configuration
Review the following sections for information on Oracle Automatic Storage Management (Oracle ASM) storage configuration:
- Managing Disk Groups for Older Database Versions
Use Oracle ASM Configuration Assistant (Oracle ASMCA) to create and modify disk groups when you install earlier versions of Oracle databases on Oracle Grid Infrastructure installations. - Oracle Automatic Storage Management Installation Considerations
In previous releases, Oracle Automatic Storage Management (Oracle ASM) was installed as part of the Oracle Database installation. Starting with Oracle Database 11g Release 2 (11.2), Oracle Automatic Storage Management is part of an Oracle Grid Infrastructure installation, either for a cluster, or for a standalone server. - Configuring Storage for Oracle Automatic Storage Management
Identify storage requirements and ASM disk group options.
Managing Disk Groups for Older Database Versions
Use Oracle ASM Configuration Assistant (Oracle ASMCA) to create and modify disk groups when you install earlier versions of Oracle databases on Oracle Grid Infrastructure installations.
Releases before Oracle Database 11g Release 2 used Database Configuration Assistant to perform administrative tasks on Oracle ASM. Starting with 11g Release 2 (11.2), Oracle ASM is installed with Oracle Restart. You can no longer use Oracle DBCA to perform administrative tasks on Oracle ASM.
Oracle Automatic Storage Management Installation Considerations
In previous releases, Oracle Automatic Storage Management (Oracle ASM) was installed as part of the Oracle Database installation. Starting with Oracle Database 11g Release 2 (11.2), Oracle Automatic Storage Management is part of an Oracle Grid Infrastructure installation, either for a cluster, or for a standalone server.
If you want to upgrade an existing Oracle Automatic Storage Management installation, then you must upgrade Oracle Automatic Storage Management by running an Oracle Grid Infrastructure upgrade (upgrades of existing Oracle Automatic Storage Management installations). If you do not have Oracle Automatic Storage Management installed and you want to use Oracle Automatic Storage Management as your storage option, then you must complete an Oracle Restart installation before you start your Oracle Database installation.
You must run Oracle Automatic Storage Management Configuration Assistant for installing and configuring Oracle 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.
Apply the following guidelines when you install Oracle Automatic Storage Management:
-
You must complete the steps listed under the Configuring Storage for Oracle Automatic Storage Management section to prepare a disk partition to use for the Oracle Automatic Storage Management disk groups.
-
Ensure that at least one disk is configured appropriately in an Oracle ASM disk group before beginning the installation.
-
When you install Oracle Automatic Storage Management, Oracle Automatic Storage Management Configuration Assistant creates a separate server parameter file (
SPFILE
) and password file for the Oracle Automatic Storage Management instance. As soon as Oracle Automatic Storage Management is installed,ASMSNMP
schema and user are created. -
The Oracle Automatic Storage Management instance that manages the existing disk group runs in the Oracle Grid Infrastructure home directory.
Related Topics
See Also:
Configuring Storage for Oracle Automatic Storage Management
Identify storage requirements and ASM disk group options.
- Identifying Storage Requirements for Oracle Automatic Storage Management
To identify the storage requirements for using Oracle Automatic Storage Management, you must determine the number of devices and the amount of free disk space that you require. - ASM Disk Group Options for Interactive and Noninteractive Installation
You can select new disk groups during interactive installations, but you must use existing disk groups for noninteractive installations. - Configuring Disks Manually for Oracle Automatic Storage Management
To use Oracle Automatic Storage Management with direct attached storage (DAS) or storage area network (SAN), the disks must be stamped with a header.
Related Topics
ASM Disk Group Options for Interactive and Noninteractive Installation
You can select new disk groups during interactive installations, but you must use existing disk groups for noninteractive installations.
Select from the following choices to store either database or recovery files in an existing Oracle ASM disk group, depending on installation method:
-
Installation method that runs Database Configuration Assistant in an interactive mode (either during installation or after installation)
-
Select new Disk Group
-
Select existing Disk Group
-
-
Installation method that runs Database Configuration Assistant in a noninteractive mode (either during installation or after installation)
Select an existing Disk Group only. You cannot create a disk group during noninteractive installations. You can add disk devices to an existing disk group if it has insufficient free space.
Note:
The Oracle ASM instance that manages the existing disk group can be running in a different Oracle home directory.
Step 1: Enabling Disk Automounting
Before you can configure partitions or logical drives on Windows, you must enable disk automounting. Enable disk automounting when using:
-
Disk partitions on both single-instance and Oracle RAC installations
-
Cluster file system for Oracle RAC
-
Oracle Clusterware
-
Raw partitions for a single-node database installation
-
Primary or logical partitions for Oracle Automatic Storage Management
To enable automounting:
-
Enter the following commands at a command prompt:
DRIVE_LETTER:\> diskpart DISKPART> automount enable DISKPART> exit
-
Restart your computer.
Step 2: Creating the Disk Partitions
To create disk partitions, use the disk administration tools provided by the operating system or third party vendors. The following administration tools are provided by the operating system:
-
The graphical user interface Disk Management snap-in to manage disks.
To access this tool, type
diskmgmt.msc
at the command prompt. (Optional) From the Start menu, select All Programs, then Administrative Tools, then Computer Management. Then select the Disk Management node in the Storage tree.Create primary partitions and logical drives in the extended partitions by selecting the New Simple Volume option. To create a raw device, assign a drive letter and remove the letter after the partition is created. You must select Do not format this partition to specify a raw partition. Do not use spanned volumes or striped volumes. These options convert the volume to a dynamic disk. Oracle Automatic Storage Management does not support dynamic disks.
For other Windows, create primary partitions by selecting the New Partition option. Create the logical drives by selecting the New Logical Drive option.
-
The command-line tool
diskpart.exe
, which lets you create primary partitions, extended partitions, and logical drives.To access this tool, enter
diskpart.exe
at the command prompt. The syntax for usingdiskpart.exe
for the procedures in this section is as follows:DRIVE_LETTER:\> diskpart DISKPART> select disk diskn DISKPART> create partition primary | extended | logical size=sizen DISKPART>
where:
-
diskpart.exe
is the command-line tool for managing disks. -
diskn
is the disk number where the partitions are created. -
sizen
is the size of the partition, for example 500 represents 500 MB.
-
See Also:
The online help or documentation for the administration tool that you are using
You can enter the diskpart.exe
commands directly at the command line. Alternatively, you can enter the commands in a text file, and then run diskpart /s
using this file as a script.
You cannot create more than four primary disk partitions per disk. If you need more, you can get around this limitation by creating three primary partitions and then the fourth as an extended partition with as many logical partitions.
For example, to create the disk partitions on Disk 5 and assign them each a size:
DISKPART> select disk 5 DISKPART> create partition primary size=500 DISKPART> ... DISKPART> create partition extended DISKPART> create partition logical size=800 DISKPART> ... DISKPART> create partition logical size=500
Configuring Disks Manually for Oracle Automatic Storage Management
To use Oracle Automatic Storage Management with direct attached storage (DAS) or storage area network (SAN), the disks must be stamped with a header.
If you install Oracle Restart in an interactive mode, Oracle Universal Installer configures the headers of the disk during the installation process. However, if you intend to install Oracle Restart in a response file mode, then you must manually configure the disks before installation by using either asmtoolg
(GUI version) or asmtool
(command-line version). You can also use these tools to reconfigure the disks after installation. The asmtoolg
and asmtool
utilities work only on partitioned disks: you cannot use Oracle Automatic Storage Management on unpartitioned disks.
The asmtoolg
and asmtool
tools associate meaningful, persistent names with disks to facilitate using those disks with Oracle Automatic Storage Management. Oracle Automatic Storage Management uses disk strings to more easily operate on groups of disks at once, so the names that asmtoolg
or asmtool
creates make this easier than using Windows drive letters.
All disk names created by asmtoolg
or asmtool
begin with the prefix ORCLDISK
followed by a user-defined prefix (the default is DATA
) and a disk number for identification purposes.
Using the asmtoolg Tool (Graphical User Interface)
The asmtoolg
tool is a graphical interface for creating device names. Use asmtoolg
to add, change, delete, and examine the devices available for use in Oracle Automatic Storage Management.
To add or change disk stamps:
-
In the installation media labeled Oracle Grid Infrastructure 12c Release 2 (12.2), from the media root, go to
asmtool
directory and double-clickasmtoolg.exe
.If Oracle Database is installed, go to
ORACLE_HOME
\
bin
and double-clickasmtoolg.exe
.If User Account Control is enabled, then create a shortcut for the command prompt window on your desktop. An icon for that shortcut appears on the desktop. Right click the icon for the newly created shortcut, and specify "Run as administrator." When the command window opens, go to
ORACLE_HOME
\bin
, and then typeasmtoolg
. -
Select the Add or change label option, then click Next.
The
asmtoolg
tool shows the devices available on the system. Unrecognized disks are labeled as "Candidate device", stamped Oracle Automatic Storage Management disks as "Stamped ASM disk", and unstamped Oracle Automatic Storage Management disks as "Unstamped ASM disks." The tool also shows disks that are recognized by Windows as a file system (such as NTFS). These are not available for use as disks and cannot be selected. In addition, Microsoft Dynamic disks are not available for use as Oracle Automatic Storage Management disks. -
In the Stamp Disks window, select the disks to stamp.
Oracle Automatic Storage Management can generate unique stamps for all of the devices selected for a given prefix. The stamps are generated by concatenating a number with the prefix specified. For example, if the prefix is
DATA
, then the first Oracle Automatic Storage Management link name isORCLDISKDATA0
.You can also specify the stamps of individual devices.
-
(Optional) Select a disk to edit the individual stamp (Oracle Automatic Storage Management link name).
-
Click Next.
-
Click Finish.
To delete disk stamps:
Example 5-1 Using the asmtool Utility (Command Line)
The asmtool
utility is a command-line interface for stamping disks. If User Account Control is enabled, then you can create a shortcut for the command prompt window on your desktop. An icon for that shortcut appears on the desktop. Right-click the icon for the newly created shortcut, and select "Run as administrator." Then start asmtool
.
It has the following options:
Option | Description |
---|---|
|
Adds or changes stamps. You must specify the hard disk, partition, and new stamp name. If the disk is a raw device or has an existing Oracle Automatic Storage Management stamp, then you must specify the Example: asmtool -add [-force] \Device\Harddisk1\Partition1 ORCLDISKASM0 \Device\Harddisk2\Partition1 ORCLDISKASM2... |
|
Adds or changes stamps using a common prefix to generate stamps automatically. The stamps are generated by adding a number with the prefix specified. If the disk is a raw device or has an existing Oracle Automatic Storage Management stamp, then you must specify the Example: asmtool -addprefix ORCLDISKASM [-force] \Device\Harddisk1\Partition1 \Device\Harddisk2\Partition1... |
|
Lists available disks. The stamp, windows device name, and disk size in megabytes are shown. Some disks may be file systems, and cannot be stamped. If the disk is a raw device or has an existing Oracle Automatic Storage Management stamp, then you must specify the Example: asmtool -list [-force] |
|
Removes existing stamps from disks. Also sets Oracle Automatic Storage Management instances to rescan the available disks. Example: asmtool -delete ORCLDISKASM0 ORCLDISKASM1... |