Oracle ASM的AU(Allocation Units)
2013-07-01 15:30
369 查看
Allocation Units
Every Oracle ASM disk is divided into allocation units (AU). An allocation unit is the fundamental unit of allocation within a disk group. A file extent consists of one or more allocation units. An Oracle ASM file consists of one or more file extents.
When you create a disk group, you can set the Oracle ASM allocation unit size with the
group attribute. The values can be 1, 2, 4, 8, 16, 32, or 64 MB, depending on the specific disk group compatibility level. Larger AU sizes typically provide performance advantages for data warehouse applications that use large sequential reads.
For information about specifying the allocation unit size for a disk group, see "Specifying the Allocation Unit Size". For information about disk group compatibility attributes, see "Disk
Group Compatibility".
Oracle recommends that the allocation unit (AU) size for a disk group be set to 4 megabytes (MB). In addition to this AU size recommendation, the operating system (OS) I/O size should
be set to the largest possible size.
Some benefits of a 4 MB allocation unit are:
Increased I/O through the I/O subsystem if the I/O size is increased to the AU size.
Reduced SGA size to manage the extent maps in the database instance.
Faster datafile initialization if the I/O size is increased to the AU size.
Increased file size limits.
Reduced database open time.
The allocation unit size is specified with the disk group attribute
4-1 shows how the
{
Example Creating the DATA disk group
{
CREATE DISKGROUP data NORMAL REDUNDANCY
FAILGROUP controller1 DISK
'/devices/diska1' NAME diska1,
'/devices/diska2' NAME diska2,
'/devices/diska3' NAME diska3,
'/devices/diska4' NAME diska4
FAILGROUP controller2 DISK
'/devices/diskb1' NAME diskb1,
'/devices/diskb2' NAME diskb2,
'/devices/diskb3' NAME diskb3,
'/devices/diskb4' NAME diskb4
ATTRIBUTE 'au_size'='4M',
'compatible.asm' = '11.2',
'compatible.rdbms' = '11.2',
'compatible.advm' = '11.2';
}
This section describes disk group compatibility under the following topics:
Overview of Disk Group Compatibility
Disk Group Compatibility Attributes
Setting Disk Group Compatibility Attributes
Considerations When Setting Disk Group Compatibility
in Replicated Environments
Advancing the disk group compatibility settings enables you to use the new Oracle ASM features that are available in a later release. For example, a disk
group with the disk group compatibility attributes set to 11.2 can take advantage of new Oracle 11g release 2 (11.2) features, such as Oracle ASM volumes in disk groups and Oracle ASM File Access Control.
See Table 4-3 for the features enabled for combinations of compatibility attribute settings.
The disk group compatibility feature also enables environments to interoperate when they use disk groups from both Oracle Database 10g and Oracle Database 11g.
For example, disk group compatibility settings that are set to Oracle Database 10g enable an Oracle 10g client to access a disk group created with Oracle
ASM 11g.
The disk group attributes that determine compatibility are
The
ASM and the database instance types respectively. For example, if the Oracle ASM compatibility setting is
and the Oracle Database client software version must be at least
feature can create an volume in a disk group.
When you create a disk group, you can specify the disk group compatibility attribute settings in the
The
statement,
Oracle ASM in Oracle Database 11g. The
4-2 for examples of valid combinations of compatible attribute settings.
You can set and update disk group attributes with the ASMCMD
see"setattr".
Notes:
The disk group compatibility settings determine whether your environment can use the latest Oracle ASM features.
The disk group compatibility settings can only be advanced; you cannot revert to a lower compatibility setting. See "Reverting
Disk Group Compatibility".
The
compatibility attributes.
Sets the attributes for an Oracle ASM disk group.
Syntax and Description
Table 12-46 lists the syntax options for the
Table 12-46 Options for the setattr command
The
compatibility attributes.
For information about disk group attributes, see "Disk Group Attributes".
Example
The following are examples of the
the
group.
Example 12-50 Using the ASMCMD setattr command
Dismounts a disk group.
Syntax and Description
Table 12-47 lists the syntax options for the
Table 12-47 Options for the umount command
Example
The following are examples of the
group.
Example 12-51 Using the ASMCMD umount command
OCP 题库考核
Q128. What is the default AU size of an ASM diskgroup? What is the maximum AU size in an ASM disk group?
A. 100KB default, 10TB maximum
B. 256KB default, 1024MB maximum
C. 10MB default, 126PB maximum
D. 64KB default, 1EB maximum
E. 1MB default, 64MB maximum
Answer: E
Every Oracle ASM disk is divided into allocation units (AU). An allocation unit is the fundamental unit of allocation within a disk group. A file extent consists of one or more allocation units. An Oracle ASM file consists of one or more file extents.
When you create a disk group, you can set the Oracle ASM allocation unit size with the
AU_SIZEdisk
group attribute. The values can be 1, 2, 4, 8, 16, 32, or 64 MB, depending on the specific disk group compatibility level. Larger AU sizes typically provide performance advantages for data warehouse applications that use large sequential reads.
For information about specifying the allocation unit size for a disk group, see "Specifying the Allocation Unit Size". For information about disk group compatibility attributes, see "Disk
Group Compatibility".
Specifying the Allocation Unit Size
Oracle recommends that the allocation unit (AU) size for a disk group be set to 4 megabytes (MB). In addition to this AU size recommendation, the operating system (OS) I/O size shouldbe set to the largest possible size.
Some benefits of a 4 MB allocation unit are:
Increased I/O through the I/O subsystem if the I/O size is increased to the AU size.
Reduced SGA size to manage the extent maps in the database instance.
Faster datafile initialization if the I/O size is increased to the AU size.
Increased file size limits.
Reduced database open time.
The allocation unit size is specified with the disk group attribute
AU_SIZE. The AU size cannot be altered after a disk group is created. Example
4-1 shows how the
AU_SIZEis specified with the
CREATE
DISKGROUPSQL statement.
{
Example Creating the DATA disk group
{
CREATE DISKGROUP data NORMAL REDUNDANCY
FAILGROUP controller1 DISK
'/devices/diska1' NAME diska1,
'/devices/diska2' NAME diska2,
'/devices/diska3' NAME diska3,
'/devices/diska4' NAME diska4
FAILGROUP controller2 DISK
'/devices/diskb1' NAME diskb1,
'/devices/diskb2' NAME diskb2,
'/devices/diskb3' NAME diskb3,
'/devices/diskb4' NAME diskb4
ATTRIBUTE 'au_size'='4M',
'compatible.asm' = '11.2',
'compatible.rdbms' = '11.2',
'compatible.advm' = '11.2';
}
Disk Group Compatibility
This section describes disk group compatibility under the following topics:Overview of Disk Group Compatibility
Disk Group Compatibility Attributes
Setting Disk Group Compatibility Attributes
Considerations When Setting Disk Group Compatibility
in Replicated Environments
Overview of Disk Group Compatibility
Advancing the disk group compatibility settings enables you to use the new Oracle ASM features that are available in a later release. For example, a diskgroup with the disk group compatibility attributes set to 11.2 can take advantage of new Oracle 11g release 2 (11.2) features, such as Oracle ASM volumes in disk groups and Oracle ASM File Access Control.
See Table 4-3 for the features enabled for combinations of compatibility attribute settings.
The disk group compatibility feature also enables environments to interoperate when they use disk groups from both Oracle Database 10g and Oracle Database 11g.
For example, disk group compatibility settings that are set to Oracle Database 10g enable an Oracle 10g client to access a disk group created with Oracle
ASM 11g.
The disk group attributes that determine compatibility are
COMPATIBLE.ASM,
COMPATIBLE.RDBMS. and
COMPATIBLE.ADVM.
The
COMPATIBLE.ASMand
COMPATIBLE.RDBMSattribute settings determine the minimum Oracle Database software version numbers that a system can use for Oracle
ASM and the database instance types respectively. For example, if the Oracle ASM compatibility setting is
11.2, and RDBMS compatibility is set to 11.1, then the Oracle ASM software version must be at least
11.2,
and the Oracle Database client software version must be at least
11.1. The
COMPATIBLE.ADVMattribute determines whether the Oracle ASM Dynamic Volume Manager
feature can create an volume in a disk group.
When you create a disk group, you can specify the disk group compatibility attribute settings in the
CREATE
DISKGROUPSQL statement.
The
ALTER
DISKGROUPSQL statement can update the compatible attribute settings for existing disk groups. If not specified when using the
CREATE
DISKGROUPSQL
statement,
10.1is the default setting for both the
COMPATIBLE.ASMand
COMPATIBLE.RDBMSattributes for
Oracle ASM in Oracle Database 11g. The
COMPATIBLE.ADVMattribute is empty if it is not set. See Table
4-2 for examples of valid combinations of compatible attribute settings.
You can set and update disk group attributes with the ASMCMD
setattrcommand. For information about the ASMCMD
setattrcommand,
see"setattr".
Notes:
The disk group compatibility settings determine whether your environment can use the latest Oracle ASM features.
The disk group compatibility settings can only be advanced; you cannot revert to a lower compatibility setting. See "Reverting
Disk Group Compatibility".
The
COMPATIBLE.ASMattribute must be advanced before advancing other disk group compatibility attributes and its value must be greater than or equal to the value of other disk group
compatibility attributes.
setattr
PurposeSets the attributes for an Oracle ASM disk group.
Syntax and Description
setattr
-G
diskgroup
attribute_name
attribute_value
Table 12-46 lists the syntax options for the
setattrcommand.
Table 12-46 Options for the setattr command
Option | Description |
---|---|
-G diskgroup | Disk group name. |
attribute_name | Name of the attribute. |
attribute_value | Value of the attribute. |
COMPATIBLE.ASMattribute must be advanced before advancing other disk group compatibility attributes and its value must be greater than or equal to the value of other disk group
compatibility attributes.
For information about disk group attributes, see "Disk Group Attributes".
Example
The following are examples of the
setattrcommand. The first example sets the disk group attribute
COMPATIBLE.ASMto
11.2for
the
datadisk group. The second example sets the disk group attribute
COMPATIBLE.RDBMSto
11.2for the
datadisk
group.
Example 12-50 Using the ASMCMD setattr command
ASMCMD [+] > setattr -G data compatible.asm 11.2.0.0.0 ASMCMD [+] > setattr -G data compatible.rdbms 11.2.0.0.0
umount
PurposeDismounts a disk group.
Syntax and Description
umount{
-a| [
-f]
diskgroup}
Table 12-47 lists the syntax options for the
umountcommand.
Table 12-47 Options for the umount command
Option | Description |
---|---|
diskgroup | Name of the disk group. |
-a | Dismounts all mounted disk groups. These disk groups are listed in the output of the V$ASM_DISKGROUPview. |
-f | Forces the dismount operation. |
The following are examples of the
umountcommand. The first example dismounts all disk groups mounted on the Oracle ASM instance. The second example forces the dismount of the
datadisk
group.
Example 12-51 Using the ASMCMD umount command
ASMCMD [+] > umount -a ASMCMD [+] > umount -f data
OCP 题库考核
Q128. What is the default AU size of an ASM diskgroup? What is the maximum AU size in an ASM disk group?
A. 100KB default, 10TB maximum
B. 256KB default, 1024MB maximum
C. 10MB default, 126PB maximum
D. 64KB default, 1EB maximum
E. 1MB default, 64MB maximum
Answer: E
相关文章推荐
- Oracle ASM - 概念之AU,分区,条带,模板
- Oracle ASM的AU(Allocation units)分配
- Oracle ASM的AU(Allocation units)分配
- Oracle ASM的AU(Allocation units)分配
- [置顶] Oracle 11g asm中不同au size下datafile的au分布初探
- Oracle 11g asm中不同au size下datafile的au分布初探
- 深入了解Oracle ASM(一):基础概念
- Oracle ASM数据库故障数据恢复解决方案
- VMWARE上suse linux 10环境: Oracle 10g cluster+asm+rac安装流程
- Oracle工具(Oracle Tools) – ASMCMD
- ORACLE ASM 管理
- Oracle asm中 Usable_FILE_MB 和 REQUIRED_MIRROR_FREE_MB的含义
- 探索ORACLE之ASM概念
- sun cluster 3.3 +oracle 10g R2 RAC with ASM on solaris 10 U9
- Oracle asm介绍和安装linux5.2+oracle10g+asm过程
- Oracle 11g在ASM磁盘组上添加控制文件
- Oracle ASM 详解(其四)
- Linux 5.4 + oracle 10g RAC +ASM 环境增加ASM磁盘
- 单用户安装Oracle 11g 单机ASM
- ORACLE 10g中ASMCMD使用及ASM文件