3 Administering Oracle ASM on Exadata
- Overview of Oracle Exadata Storage
Storage in Oracle Exadata consists of servers, cell disks, grid disks, Oracle ASM disk groups, and Oracle ASM failure groups. - Administering Oracle ASM Disk Groups Using Oracle Exadata Storage Servers
There are basic Oracle ASM tasks needed to use Oracle Exadata Storage Servers. - Administering Oracle Exadata Storage Server Grid Disks with Oracle ASM
Use the following procedures for managing grid disks used with Oracle ASM.
Related Topics
3.1 Overview of Oracle Exadata Storage
Storage in Oracle Exadata consists of servers, cell disks, grid disks, Oracle ASM disk groups, and Oracle ASM failure groups.
The following image shows Oracle ASM disk groups created from Oracle Exadata Storage Server grid disks. It represents a typical, but simplified configuration, that can be used as a model for building larger storage grids with additional storage servers and disks.
Figure 3-1 Sample Oracle Exadata Storage Server Grid

Description of "Figure 3-1 Sample Oracle Exadata Storage Server Grid"
This example storage grid illustrates the following:
- The storage servers in the grid use an RDMA Network Fabric network to connect to the database servers that have a single-instance database or Oracle Real Application Clusters (Oracle RAC) database installation.
- Each storage server contains multiple physical disks.
- Each cell disk represents a physical disk and a LUN.
- Each cell disk is partitioned into grid disks.
- Oracle ASM disk groups are created using the grid disks.
Oracle ASM failure groups are created to ensure that files are not mirrored on the same storage server, enabling the system to tolerate the failure of a storage server. The number of failure groups equals the number of storage servers. Each failure group is composed of a subset of grid disks in the Oracle ASM disk group that belong to a single storage server.
Parent topic: Administering Oracle ASM on Exadata
3.2 Administering Oracle ASM Disk Groups Using Oracle Exadata Storage Servers
There are basic Oracle ASM tasks needed to use Oracle Exadata Storage Servers.
- Understanding Oracle ASM Disk Groups for Oracle Exadata Storage Servers
This topic explains Oracle Automatic Storage Management (Oracle ASM) disk groups, and how to create an Oracle ASM disk group for Oracle Exadata System Software using theCREATE DISKGROUP
SQL command. - Creating Oracle ASM Disk Groups
You can create Oracle ASM disk groups on Oracle Exadata Storage Server grid disks. - Adding a Disk to an Oracle ASM Disk Group
You can add a disk to an Oracle ASM disk group. - Mounting or Dismounting an Oracle ASM Disk Group
A disk group must be mounted by Oracle ASM before a database can access the files in the disk group. - Changing a Disk to Offline or Online
You can change an Oracle ASM disk toINACTIVE
orACTIVE
. - Dropping a Disk from an Oracle ASM Disk Group
You can drop a grid disk from a disk group. - Dropping an Oracle ASM Disk Group
You can drop an Oracle ASM disk group. - Enabling the Oracle ASM appliance.mode Attribute
The Oracle ASMappliance.mode
attribute improves disk rebalance completion time when dropping one or more Oracle ASM disks. - Checking Disk Group Balance
- Setting the Oracle ASM Disk Repair Timer
Parent topic: Administering Oracle ASM on Exadata
3.2.1 Understanding Oracle ASM Disk Groups for Oracle Exadata Storage Servers
This topic explains Oracle Automatic Storage Management (Oracle ASM) disk groups, and how to create an Oracle ASM disk group for Oracle Exadata System Software using the CREATE DISKGROUP
SQL command.
Before creating an Oracle ASM disk group, determine which grid disks belong to the Oracle ASM disk group. It is recommended that you choose similar names for the Oracle ASM disk group and its grid disks whenever possible.
The Oracle Exadata Storage Server grid disks are specified with the following pattern:
o/cell_IPaddress/griddisk_name
In the preceding syntax, cell_IPaddress is the IP address of Oracle Exadata Storage Server, and griddisk_name is the name of the grid disk.
The cell discovery strings begin with the o/
prefix.
When specifying the grid disks to be added to the disk group, consider the following:
- The default Oracle ASM disk name is the grid disk name. Oracle recommends using the default name.
- The default failure group name is the cell name. Oracle recommends using the default name.
- Wildcards in the form of '*' may be used in the cell_IPaddress or griddisk_name to add multiple disks with one command. For example:
CREATE DISKGROUP reco HIGH REDUNDANCYDISK 'o/*/DATA*'
When a failure group is not specified, Oracle ASM adds each disk within its own failure group. However, when the disks are stored on Oracle Exadata Storage Servers and a failure group is not specified, Oracle ASM adds a disk to the failure group for that cell. The failure group name is the cell name.
Note:
If a cell is renamed, and a disk from that cell is added to an existing disk group that has disks from that cell, then Oracle ASM adds the new disk to a failure group using the new cell name. To ensure all the disks from the cell are in one failure group, add the disk to the disk group and specify the original failure group name.To enable Smart Scan predicate offload processing, all disks in a disk group must be Oracle Exadata Storage Server grid disks. You cannot include conventional disks with Oracle Exadata Storage Server grid disks.
- About Fast Disk Scan Rates
- Setting the Oracle ASM Content Type
Setting thecontent.type
disk group attribute enhances fault tolerance, especially for normal redundancy disk groups.
Related Topics
3.2.1.1 About Fast Disk Scan Rates
To achieve fast disk scan rates, it is important to lay out segments with at least 4 MB of contiguous space. This allows disk scans to read 4 MB of data before performing another seek at a different location on disk. To ensure segments are laid out with 4 MB of contiguous space, set the Oracle ASM allocation unit size to 4 MB, and ensure data file extents are also at least 4 MB. The allocation unit can be set with the disk group attribute AU_SIZE
when creating the disk group.
The following SQL command creates a disk group with the allocation unit set to 4 MB. The compatible.rdbms
attribute is set to 11.2.0.2 in order to support both release 11.2.0.2 and release 11.2.0.3 databases in a consolidated environment.
SQL> CREATE DISKGROUP data NORMAL REDUNDANCY
DISK 'o/*/data_CD*'
ATTRIBUTE 'compatible.rdbms' = '11.2.0.2',
'compatible.asm' = '11.2.0.3',
'content.type' = 'data',
'cell.smart_scan_capable' = 'TRUE',
'au_size' = '4M';
Related Topics
3.2.1.2 Setting the Oracle ASM Content Type
Setting the content.type
disk group attribute enhances
fault tolerance, especially for normal redundancy disk groups.
Commencing with Oracle Grid Infrastructure release
11.2.0.3, Oracle ASM provides administrators with
the option to specify the content type associated with each disk group. This
capability is provided by the content.type
disk group
attribute. Three possible settings are allowed: data
,
recovery
, or system
. Each content type
setting modifies the adjacency measure used by the secondary extent placement
algorithm.
The result is that the contents of disk groups with different content type settings are distributed differently across the available disks. This decreases the likelihood that a double failure will result in data loss across multiple normal redundancy disk groups with different content type settings. Likewise, a triple failure is less likely to result in data loss on multiple high redundancy disk groups with different content type settings.
The value of content.type
attribute should be set as follows:
-
DATA and SPARSE disk groups —
data
-
RECO disk group —
recovery
-
DBFS_DG disk group (if present) —
system
Following this recommendation enhances fault-tolerance. For example, even if the DATA and RECO disk groups use normal redundancy, at least one of the disk groups will remain if two disks fail simultaneously. Therefore, even if DATA is dismounted, databases can typically be recovered from backup objects in RECO.
Note:
-
Do not use the
content.type
attribute to distinguish the availability characteristics of disk groups that are used for a different purpose, such as those created to support a particular service. -
The Oracle Database and Oracle Grid Infrastructure software must be release 12.1.0.2.0 BP5 or later when using sparse grid disks.
Example 3-1 Specifying content.type
While
Creating a Disk Group
In this example, the compatible.rdbms
attribute is set to 11.2.0.2 in order to support both Oracle Database release 11.2.0.2 and release 11.2.0.3 databases in a consolidated environment.
CREATE DISKGROUP data NORMAL REDUNDANCY
DISK 'o/*/DATA*'
ATTRIBUTE 'content.type' = 'DATA',
'AU_SIZE' = '4M',
'cell.smart_scan_capable'='TRUE',
'compatible.rdbms'='11.2.0.2',
'compatible.asm'='11.2.0.3';
3.2.2 Creating Oracle ASM Disk Groups
You can create Oracle ASM disk groups on Oracle Exadata Storage Server grid disks.
To create an Oracle ASM disk group to use Oracle Exadata Storage Server grid disks, perform the following procedure:
3.2.3 Adding a Disk to an Oracle ASM Disk Group
You can add a disk to an Oracle ASM disk group.
You might need to do this if you are adding a new Oracle Exadata Storage Server or managing a custom disk group.
Do not add Oracle Exadata Storage Server grid disks to an Oracle ASM disk group that is not on an Oracle Exadata Storage Server unless you are planning to migrate the disk group to an Oracle Exadata Storage Server disk group.
After the disk is added, Oracle ASM rebalances the disk group. Oracle ASM monitors the rebalance operation, and Oracle Exadata System Software sends an e-mail message when the operation is complete.
You can query the V$ASM_OPERATION
view for the status of the rebalance operation.
3.2.4 Mounting or Dismounting an Oracle ASM Disk Group
A disk group must be mounted by Oracle ASM before a database can access the files in the disk group.
Mounting a disk group requires discovering all of the disks and locating the files
in the disk group. When an Oracle ASM starts, the disk
groups mentioned in the ASM_DISKGROUPS
instance parameter are
automatically mounted.
Additionally:
3.2.5 Changing a Disk to Offline or Online
You can change an Oracle ASM disk to INACTIVE
or ACTIVE
.
Oracle ASM monitors the rebalance operation, and Oracle Exadata System Software sends an e-mail message when the operation is complete.
You can query the V$ASM_OPERATION
view for the status of the rebalance operation.
3.2.6 Dropping a Disk from an Oracle ASM Disk Group
You can drop a grid disk from a disk group.
When the disk is dropped from the Oracle ASM disk group, Oracle ASM rebalances the disk group. Oracle ASM monitors the rebalance operation, and Oracle Exadata System Software sends an e-mail message when the operation is complete.
You can query the V$ASM_OPERATION
view for the status of the rebalance operation.
After an Oracle Exadata Storage Server grid disk is dropped from the Oracle ASM disk group, you can drop the grid disk from the cell.
Related Topics
3.2.7 Dropping an Oracle ASM Disk Group
You can drop an Oracle ASM disk group.
If you cannot mount a disk group but must drop it, then use the FORCE
option with the DROP DISKGROUP
command.
3.2.8 Enabling the Oracle ASM appliance.mode Attribute
The Oracle ASM appliance.mode
attribute improves disk rebalance completion time when dropping one or more Oracle ASM disks.
Setting the appliance.mode
attribute helps restore redundancy faster after a failure. The attribute can only be enabled on disk groups that meet the following requirements:
-
The Oracle ASM disk group attribute
compatible.asm
is set to release 11.2.0.4, or 12.1.0.2 or later. -
The
cell.smart_scan_capable
attribute is set toTRUE
. -
All disks in the disk group are the same type; for example, all disks are hard disks or all disks are flash disks.
-
All disks in the disk group are the same size.
-
All failure groups in the disk group have an equal number of disks:
-
For eighth rack configurations, all failure groups have 4 disks, or all failure groups have 6 disks.
-
For all other rack configurations, all failure groups have 10 disks, or all failure groups have 12 disks.
-
-
There are at least 3 failure groups in the disk group.
-
No disk in the disk group is offline.
Note:
Enabling the appliance.mode
attribute for existing disk groups may cause an increase of data movement during the next rebalance operation.
The appliance.mode
attribute is automatically enabled when creating a new disk group. Existing disk groups must explicitly set the attribute using the ALTER DISKGROUP
command.
SQL> ALTER DISKGROUP disk_group SET ATTRIBUTE 'appliance.mode'='TRUE';
Note:
Theappliance.mode
attribute should normally be set to TRUE
. In rare cases it may be necessary to disable appliance.mode
as a workaround when adding disks to a disk group. After the disk group is ALTERed enable appliance.mode
, and perform a REBALANCE operation.
To disable the appliance.mode
attribute during disk group creation, set the attribute to FALSE
.
SQL> CREATE DISKGROUP data NORMAL REDUNDANCY
DISK
'o/*/DATA*'
ATTRIBUTE 'content.type' = 'data',
'au_size' = '4M',
'cell.smart_scan_capable'='TRUE',
'compatible.rdbms'='11.2.0.3',
'compatible.asm'='11.2.0.4',
'appliance.mode'='FALSE';
3.2.9 Checking Disk Group Balance
Files should be equally balanced across all disks. The following queries and script can be used to check disk group balance:
-
To check I/O balance, query the
V$ASM_DISK_IOSTAT
view before and after running a large SQL statement. For example, if a large query has a lot of reads, then the values in theread
column and theread_bytes
column should be approximately the same for all disks in the disk group. -
To check all mounted disk groups, run the script available in My Oracle Support document 367445.1.
3.2.10 Setting the Oracle ASM Disk Repair Timer
The Oracle ASM disk repair timer represents the amount of time a disk can remain
offline before it is dropped by Oracle ASM. While the disk is offline, Oracle ASM tracks
the changed extents so the disk can be resynchronized when it comes back online. The
default disk repair time is 3.6 hours. If the default is inadequate, then the attribute
value can be changed to the maximum amount of time it might take to detect and repair a
temporary disk failure. The following command is an example of changing the disk repair
timer value to 8.5 hours for the DATA
disk group:
SQL> ALTER DISKGROUP data SET ATTRIBUTE 'disk_repair_time' = '8.5h'
The disk_repair_time
attribute does not change the repair timer for disks currently offline. The repair timer for those offline disks is either the default repair timer or the repair timer specified on the command line when the disks were manually set to offline. To change the repair timer for currently offline disks, use the OFFLINE
command and specify a repair timer value. The following command is an example of changing the disk repair timer value for disks that are offline:
SQL> ALTER DISKGROUP data OFFLINE DISK data_CD_06_cell11 DROP AFTER 20h;
Note:
Vulnerability to a double failure increases in line with increases to the disk repair time value.
3.3 Administering Oracle Exadata Storage Server Grid Disks with Oracle ASM
Use the following procedures for managing grid disks used with Oracle ASM.
- Naming Conventions for Oracle Exadata Storage Server Grid Disks
Using a consistent naming convention helps to identify Exadata components. - Changing an Oracle Exadata Storage Server Grid Disk That Belongs to an Oracle ASM Disk Group
Before you change a grid disk that belongs to an Oracle ASM disk group, you must consider how the change might affect the Oracle ASM disk group to which the grid disk belongs. - Resizing Grid Disks
You can resize grid disks and Oracle ASM disk groups to shrink one with excess free space and increase the size of another that is near capacity. - Determining Which Oracle ASM Disk Group Contains an Oracle Exadata Storage Server Grid Disk
If a grid disk name matches the Oracle ASM disk name, and the name contains the Oracle ASM disk group name, then you can determine the Oracle ASM disk group to which the grid disk belongs. - Determining Which Oracle Exadata Storage Server Grid Disks Belong to an Oracle ASM Disk Group
If a grid disk name contains the Oracle ASM disk group name, then you can use SQL commands on the Oracle ASM instance to list the Oracle ASM disk group names. - Handling Disk Replacement
If a disk has a problem, the physical disk status changes.
Parent topic: Administering Oracle ASM on Exadata
3.3.1 Naming Conventions for Oracle Exadata Storage Server Grid Disks
Using a consistent naming convention helps to identify Exadata components.
The name of the grid disk should contain the cell disk name to make it easier to determine which grid disks belong to a cell disk. To help determine which grid disks belong to an Oracle ASM disk group, a subset of the grid disk name should match all or part of the name of the Oracle ASM disk group to which the grid disk will belong.
For example, if a grid disk is created on the cell disk CD_03_cell01,
and that grid disk belongs to an Oracle ASM disk group named data0
, then the grid disk name should be data0_CD_03_cell01
.
When you use the ALL PREFIX
option with CREATE
GRIDDISK
, a unique grid disk name is automatically generated that includes
the prefix and cell name. If you do not use the default generated name when creating
grid disks, then you must ensure that the grid disk name is unique across all cells. You
cannot have multiple disks with the same name in an Oracle ASM disk group.
Related Topics
3.3.2 Changing an Oracle Exadata Storage Server Grid Disk That Belongs to an Oracle ASM Disk Group
Before you change a grid disk that belongs to an Oracle ASM disk group, you must consider how the change might affect the Oracle ASM disk group to which the grid disk belongs.
- Changing an Oracle Exadata Storage Server Grid Disk Name
Use the CellCLI interface to change the name of a grid disk. - Dropping an Oracle Exadata Storage Server Grid Disk
To drop an Oracle Exadata Storage Server grid disk, use the CellCLIDROP GRIDDISK
command.
3.3.2.1 Changing an Oracle Exadata Storage Server Grid Disk Name
Use the CellCLI interface to change the name of a grid disk.
Example 3-2 Changing an Oracle Exadata Storage Server Grid Disk Name
Use the ALTER GRIDDISK
command to rename a grid disk.
CellCLI> ALTER GRIDDISK data011 name='data0_CD_03_cell04'
3.3.2.2 Dropping an Oracle Exadata Storage Server Grid Disk
To drop an Oracle Exadata Storage Server grid disk, use the CellCLI DROP GRIDDISK
command.
Make the grid disk inactive before dropping the grid disk to ensure that the grid disk is not in use. The FORCE
option can be used to force the grid disk that is in use to be dropped.
Caution:
-
Before dropping a grid disk that belongs to an Oracle ASM disk group, ensure that the corresponding Oracle ASM disk was dropped from the disk group.
-
Before dropping a grid disk using the
FORCE
option, ensure that the Oracle ASM disk was dropped from the disk group. If you drop a grid disk that is still part of an ASM disk group, you may compromise data redundancy in the disk group or cause the disk group to dismount.
Example 3-3 Dropping a specific grid disk
After you have dropped the Oracle ASM disk from the disk group, you can drop the related grid disk.
CellCLI> ALTER GRIDDISK data0_CD_03_cell04 INACTIVE
CellCLI> DROP GRIDDISK data0_CD_03_cell04
Example 3-4 Dropping all grid disks
After you have dropped the Oracle ASM disks from the disk group, you can drop multiple grid disks using a single command.
CellCLI> ALTER GRIDDISK ALL INACTIVE
CellCLI> DROP GRIDDISK ALL PREFIX=data0
Example 3-5 Using the FORCE option when dropping a grid disk
The FORCE
option forces an active grid disk to be dropped. For
example, if you cannot make a grid disk INACTIVE
, but must drop the
grid disk, you can use the FORCE
option.
Use the FORCE
option cautiously. If you drop a grid disk that is
still part of an ASM disk group, you may compromise data redundancy in the disk
group or cause the disk group to dismount.
CellCLI> DROP GRIDDISK data02_CD_04_cell01 FORCE
Related Topics
3.3.3 Resizing Grid Disks
You can resize grid disks and Oracle ASM disk groups to shrink one with excess free space and increase the size of another that is near capacity.
-
For internal backups: allocation of available space is 40% for the DATA disk groups, and 60% for the RECO disk groups.
-
For external backups: allocation of available space is 80% for the DATA disk group, and 20% for the RECO disk group.
If your system has no free space available on the cell disks and one disk group, for example RECO, has plenty of free space, then you can resize the RECO disk group to a smaller size and reallocate the free space to the DATA disk group. The free space available after shrinking the RECO disk group is at a non-contiguous offset from the existing space allocations for the DATA disk group. Grid disks can use space anywhere on the cell disks and do not have to be contiguous.
If you are expanding the grid disks and the cell disks already have sufficient space to expand the existing grid disks, then you do not need to first resize an existing disk group. You would skip steps 2 and 3 below where the example shows the RECO disk group and grid disks are shrunk (you should still verify the cell disks have enough free space before growing the DATA grid disks). The amount of free space the administrator should reserve depends on the level of failure coverage.
If you are shrinking the size of the grid disks, you should understand how space is reserved for mirroring. Data is protected by Oracle ASM using normal or high redundancy to create one or two copies of data, which are stored as file extents. These copies are stored in separate failure groups. A failure in one failure group does not affect the mirror copies, so data is still accessible.
When a failure occurs, Oracle ASM re-mirrors, or rebalances, any extents that are not accessible so that redundancy is reestablished. For the re-mirroring process to succeed, sufficient free space must exist in the disk group to allow creation of the new file extent mirror copies. If there is not enough free space, then some extents will not be re-mirrored and the subsequent failure of the other data copies will require the disk group to be restored from backup. Oracle ASM sends an error when a re-mirror process fails due to lack of space.
You must be using Oracle Exadata System Software release 12.1.2.1.0 or higher, or have the patch for bug 19695225 applied to your software.
This procedure for resizing grid disks applies to bare metal and virtual machine (VM) deployments.
- Determine the Amount of Available Space
To increase the size of the disks in a disk group you must either have unallocated disk space available, or you have to reallocate space currently used by a different disk group. - Shrink the Oracle ASM Disks in the Donor Disk Group
If there is no free space available on the cell disks, you can reduce the space used by one disk group to provide additional disk space for a different disk group. - Shrink the Grid Disks in the Donor Disk Group
After shrinking the disks in the Oracle ASM disk group, you then shrink the size of the grid disks on each cell. - Increase the Size of the Grid Disks Using Available Space
You can increase the size used by the grid disks if there is unallocated disk space either already available, or made available by shrinking the space used by a different Oracle ASM disk group. - Increase the Size of the Oracle ASM Disks
You can increase the size used by the Oracle ASM disks after increasing the space allocated to the associated grid disks.
Related Topics
- Understanding ASM Capacity and Reservation of Free Space in Exadata (My Oracle Support Doc ID 1551288.1)
- Bug 19695225 - Running Many Create or Alter Griddisk Commands Over Time Causes Cell Disk Metadata Corruption (ORA-600 [addNewSegmentsToGDisk_2]) and Loss of Cell Disk Content (My Oracle Support Doc ID 1991445.1)
3.3.3.1 Determine the Amount of Available Space
To increase the size of the disks in a disk group you must either have unallocated disk space available, or you have to reallocate space currently used by a different disk group.
You can also use a script available in "Script to Calculate New Grid Disk and Disk Group Sizes in Exadata (My Oracle Support Doc ID 1464809.1)" to assist in determining how much free space is available to shrink a disk group.
Parent topic: Resizing Grid Disks
3.3.3.2 Shrink the Oracle ASM Disks in the Donor Disk Group
If there is no free space available on the cell disks, you can reduce the space used by one disk group to provide additional disk space for a different disk group.
Parent topic: Resizing Grid Disks
3.3.3.3 Shrink the Grid Disks in the Donor Disk Group
After shrinking the disks in the Oracle ASM disk group, you then shrink the size of the grid disks on each cell.
Parent topic: Resizing Grid Disks
3.3.3.4 Increase the Size of the Grid Disks Using Available Space
You can increase the size used by the grid disks if there is unallocated disk space either already available, or made available by shrinking the space used by a different Oracle ASM disk group.
This task is a continuation of an example where space in the RECOC1 disk group is being reallocated to the DATAC1 disk group. If you already have sufficient space to expand an existing disk group, then you do not need to reallocate space from a different disk group.
Instead of increasing the size of the DATA disk group, you could instead create new disk groups with the new free space or keep it free for future use. In general, Oracle recommends using the smallest number of disk groups needed (typically DATA, RECO, and DBFS_DG) to give the greatest flexibility and ease of administration. However, there may be cases, perhaps when using virtual machines or consolidating many databases, where additional disk groups or available free space for future use may be desired.
If you decide to leave free space on the grid disks in reserve for future use, please see the My Oracle Support Note 1684112.1 for the steps on how to allocate free space to an existing disk group at a later time.
3.3.3.5 Increase the Size of the Oracle ASM Disks
You can increase the size used by the Oracle ASM disks after increasing the space allocated to the associated grid disks.
Related Topics
Parent topic: Resizing Grid Disks
3.3.4 Determining Which Oracle ASM Disk Group Contains an Oracle Exadata Storage Server Grid Disk
If a grid disk name matches the Oracle ASM disk name, and the name contains the Oracle ASM disk group name, then you can determine the Oracle ASM disk group to which the grid disk belongs.
You can also use SQL commands on the Oracle ASM instance to find the Oracle ASM disk group that matches part of the specific grid disk name. This can help you to determine which Oracle ASM disk group contains a specific grid disk.
Example 3-6 Determining Grid Disks in an Oracle ASM Disk Group
This example shows how to find the Oracle ASM disk group that contains grid disks that begin with DATA0
, for example DATA0_CD_03_CELL04
.
SQL> SELECT d.label AS asmdisk, dg.name AS diskgroup
FROM V$ASM_DISK d, V$ASM_DISKGROUP dg
WHERE dg.name LIKE 'DATA0%'
AND d.group_number = dg.group_number;
ASMDISK DISKGROUP
---------------------- -------------
DATA0_CD_00_CELL04 DATA0
DATA0_CD_01_CELL04 DATA0
DATA0_CD_02_CELL04 DATA0
DATA0_CD_03_CELL04 DATA0
3.3.5 Determining Which Oracle Exadata Storage Server Grid Disks Belong to an Oracle ASM Disk Group
If a grid disk name contains the Oracle ASM disk group name, then you can use SQL commands on the Oracle ASM instance to list the Oracle ASM disk group names.
You can use the CellCLI utility to search for specific grid disk names.
Example 3-7 Displaying Oracle ASM Disk Group Names
This example shows how to use a SQL command to display the Oracle ASM disk group names on the Oracle ASM instance.
SQL> SELECT name FROM V$ASM_DISKGROUP;
NAME
------------------------------
CONTROL
DATA0
DATA1
DATA2
LOG
STANDBY
Example 3-8 Searching for Grid Disks by Name
This example shows how to display similar grid disk group names on the cell using the dcli
utility.
$ ./dcli "cellcli -e list griddisk where -c cell04"
data0_CD_01_cell04
data0_CD_02_cell04
data0_CD_03_cell04
...
3.3.6 Handling Disk Replacement
If a disk has a problem, the physical disk status changes.
When a physical disk is removed, its status becomes not present
. Oracle ASM may take a grid disk offline when getting I/O errors while trying to access a grid disk on the physical disk. When the physical disk is replaced, Oracle Exadata System Software automatically puts the grid disks on the physical disk online in their respective Oracle ASM disk groups. If a grid disk remains offline longer than the time specified by the disk_repair_time
attribute, then Oracle ASM force drops that grid disk and starts a rebalance to restore data redundancy. Oracle ASM monitors the rebalance operation, and Oracle Exadata System Software sends an e-mail message when the operation is complete.
The following table summarizes the physical disk statuses, and how Oracle ASM handles grid disks when the physical disk has a problem.
Table 3-1 Physical Disk Status
Physical Disk Status | Oracle Exadata System Software Action |
---|---|
Disk is functioning normally |
No action. |
Disk has been removed |
Oracle Exadata System Software offlines disk, then uses the |
Disk is having problems, and may fail |
Oracle Exadata System Software drops the grid disks on the affected physical disk without the After all grid disks have been successfully removed from their respective Oracle ASM disk groups, administrators can proceed with disk replacement. |
Disk has failed |
Oracle Exadata System Software drops the grid disks using the Administrators can proceed with disk replacement immediately. This status is only available for releases 11.2.3.1.1 and earlier. |
Disk is performing poorly |
Oracle Exadata System Software attempts to drop the grid disks using the If the If the After all grid disks have been successfully removed from their respective Oracle ASM disk groups, administrators can proceed with disk replacement. |
After a physical disk is replaced, Oracle Exadata System Software automatically creates the grid disks on the replacement disk, and adds them to the respective Oracle ASM disk groups. An Oracle ASM rebalance operation relocates data to the newly-added grid disks. Oracle ASM monitors the rebalance operation, and Oracle Exadata System Software sends an e-mail message when the operation is complete.