Automatic Storage Management (ASM) was first released with Oracle Database 10g. For Oracle databases, ASM provided a significant simplification for file system and volume management. In addition to enhancing storage automation, ASM improved file system scalability, performance, and database availability. These benefits hold for both single-instance Oracle databases as well as for Oracle Real Application Clusters (Oracle RAC) database environments. Oracle Database 12c introduces several new capabilities in ASM. Automatic Storage Management (ASM) simplifies the administration of Oracle-related files by allowing the administrator to reference disk groups rather than individual disks and files, which are managed by ASM. The ASM functionality is an extension of the Oracle Managed Files (OMF) functionality that also includes striping and mirroring to provide balanced and secure storage. The new ASM functionality can be used in combination with existing raw and cooked file systems, along with OMF and manually managed files.
Automatic Storage Management (ASM) is Oracle’s logical volume manager, it uses OMF (Oracle Managed Files) to name and locate the database files. It can use raw disks, filesystems, or files which can be made to look like disks as long as the device is raw. ASM uses its own database instance to manage the disks, it has its own processes and pfile or spfile, and it uses ASM disk groups to manage disks as one logical unit. The ASM functionality is controlled by an ASM instance. This is not a full database instance, just the memory structures, and as such is very small and lightweight.
Figure 1-1 ASM Architecture
The benefits of ASM are:
- Provides automatic load balancing over all the available disks, thus reducing hot spots in the file system
- Prevents fragmentation of disks, so you don't need to manually relocate data to tune I/O performance
- Adding disks is straightforward - ASM automatically performs online disk reorganization when you add or remove storage
- Uses redundancy features available in intelligent storage arrays
- The storage system can store all types of database files
- Using disk group makes configuration easier, as files are placed into disk groups
- ASM provides stripping and mirroring (fine and coarse gain - see below)
- ASM and non-ASM Oracle files can coexist
- ASM is free!!!!!!
Key Concepts:
- ASM Instance: Oracle ASM operates as a separate instance from the Oracle Database instance. The ASM instance is responsible for managing storage resources, interacting with the underlying disks, and coordinating data distribution.
- ASM Disk: Physical disks are added to ASM and are referred to as ASM disks.ASM disks serve as the building blocks for creating logical storage structures.
- Disk Group: A Disk Group is a logical entity that consists of one or more ASM disks. Think of a disk group as a storage container where database files are stored.
- File Management: ASM manages database files, such as data files, control files, and log files. It abstracts the physical file names and manages file distribution across the disks.
- Mirroring and Striping: ASM automatically handles the mirroring and striping of data for redundancy and improved performance. Mirroring involves creating duplicate copies of files on separate disks. Striping involves distributing parts of a file across multiple disks.
- Redundancy Options: Disk groups support different redundancy options. "External Redundancy" relies on the storage subsystem for data protection. "Normal or High Redundancy" involves ASM mirroring files to provide fault tolerance.
- Online Operations: Many administrative operations, such as adding or removing disks, resizing, and rebalancing, can be performed online without impacting database availability.