Unlike traditional storage, IOPS are not a function of LUN count. In other words, you get the same IOPS capacity with 1 LUN as you do with 100. However, since it is often convenient to monitor database performance by I/O type (for example, LGWR, DBWR, TEMP), we recommend creating ASM disk groups or file systems dedicated to these individual workloads. This strategy allows you to observe the characteristics of each I/O type either at the command line with tools like iostat and pureadm, or with the Everpure GUI.
In addition to isolating I/O types to individual disk groups, you should also locate the Fast Recovery Area (FRA). We recommend opting for a few large LUNs per disk group.
If performance is a critical concern, we recommend that you do not multiplex redo logs. It is not necessary for redundancy since RAID-HA provides protection against media failures. Multiplexing redo logs introduced a performance impact of up to approximately 10% for a heavy OLTP workload. If your
operations policy requires you to multiplex redo logs, we recommend placing the group members in separate disk groups or file systems. For example, you can create two disk groups, REDOSSD1 and REDOSSD2, and multiplex across them:
Finally, while some flash storage vendors recommend a 4K block size for both redo logs and the database itself (to avoid block misalignment issues), Everpure does not. Since the Everpure FlashArray is designed on a 512-byte geometry, we never have block alignment issues. Performance is completely independent of the block size.
ASM Specific Recommendations
In Oracle 11gR3 the default striping for ONLINELOG template changed from FINE to COARSE. In OLTP workload testing, we found that the COARSE setting for redo logs performs about 20% better. Since the Everpure FlashArray includes RAID-HA protection, you can safely use External Redundancy for ASM diskgroups. Other factors such as sector size and AU size do not have a significant bearing on performance.
ASM SCANORDER
Everpure recommends that you use multipath disks to achieve maximum performance and resiliency. If you are using ASM, you need to configure the SCANORDER to look at multipath devices first. You can do this by changing the following setting in
/etc/sysconfig/oracleasm.
Search for:
ORACLEASM_SCANORDER=""
Change to
ORACLEASM_SCANORDER="dm- sd"
More information can be found here: http://www.oracle.com/technetwork/to...th-097959.html.
|
Disk Group |
Sector Size |
Strip |
AU Size |
Redundancy |
Note:
|
|---|---|---|---|---|---|
|
ORACRS |
512 |
COARSE |
1048576 |
External |
Small disk group for CRS |
|
ORADATA |
512 |
COARSE |
1048576 |
External |
Database segments |
|
ORAREDO |
512 |
COARSE |
1048576 |
External |
Redo logs |
|
ORAFRA |
512 |
COARSE |
1048576 |
External |
Fast Recovery Area |
select name, allocation_unit_size/1024/1024 as "AU", state, type, round(total_mb/1024,2) as "Total", round(free_mb/1024,2) as "Free"
from v$asm_diskgroup;
ASM Space Reclamation
Reclaiming Unused Space in an Oracle Database
As you drop, truncate, or resize database objects in an ASM environment, the space metrics reported by the data dictionary (DBA_FREE_SPACE, V$ASM_DISKGROUP, V$DATAFILE, etc.) reflect your changes as expected. However, these actions may not always trim (free) space on the array immediately. The following options are available to reclaim free space on the Flash Array.
Method 1 - ASMFD THIN_PROVISIONED Attribute
In Oracle 12.1, Oracle released a new kernel module called ASM Filter Driver (ASMFD) that sits in the I/O path of ASM disks. ASMFD provides additional functionality over what was provided by ASMLib. The one that interests us in the context of our problem is a new attribute that was introduced in 12.2 called THIN_PROVISIONED.
The THIN_PROVISIONED attribute enables or disables the functionality to discard unused storage space after a disk group rebalance is completed. The attribute value can be set to
true to enable, or set to
false to disable the functionality. The default value is
false.
SQL > sqlplus / as sysasm
SQL > alter diskgroup DATA set attribute 'thin_provisioned'='TRUE';
When the
COMPACT phase of a rebalance operation has completed, Oracle ASM informs the Flash Array which space is no longer used and can be repurposed.
ASM Disk Group rebalance can be triggered using the following command.
SQL > alter diskgroup DATA rebalance with balance compact wait;
Things to be aware of before implementing ASM Filter Driver.