Storage Architectures For Oracle Rac: Matthew Zito, Chief Scientist Gridapp Systems
Storage Architectures For Oracle Rac: Matthew Zito, Chief Scientist Gridapp Systems
Storage Architectures For Oracle Rac: Matthew Zito, Chief Scientist Gridapp Systems
Agenda
Oracle RAC Introduction Storage Foundations Storage and RAC Raw Devices Clustered Filesystems Oracle ASM Network File Systems Recommended Configuration Conclusions/Q&A
Storage Foundations
Traditional database model
One server, one set of disks
Active/passive model
N servers, one set of disks
Networked Storage
Centralized pool Storage admins allocate it out Designed for scale efficiencies Block- or file-based
6
Block Storage
Fundamentals
Traditional disk devices Operates at a low-level
Internals
Below the filesystem Basic IO primitives read, write, how big is the device Provides a generic way to access block storage, abstracts underlying tech Fibre Channel, SCSI, iSCSI
File-based Storage
Fundamentals
Higher up the stack at an OS level More intelligence resides in the OS
Internals
NFS and CIFS (CIFS not Oracle-supported!) Metadata lives within the protocol
Creation, access time File sizes, owners, permissions
Raw Devices
Fundamentals
A disk or partition where all I/O operations to that device bypass any OS-level caches or buffers and are delivered immediately to the driver subsystem Examples: /dev/raw/raw1, /dev/rdsk/c0t0d0s0, /dev/sda1 when opened with O_DIRECT
[root@rh44-ma-012 tmp]# raw /dev/raw/raw1 /dev/sda1 /dev/raw/raw1: bound to major 8, minor 1 [root@rh44-ma-012 tmp]# ls -l /dev/sda1 brw-rw---- 1 root disk 8, 1 Jul 7 08:38 /dev/sda1 [root@rh44-ma-012 tmp]# ls -l /dev/raw/raw1 crw-rw---- 1 root disk 162, 1 Sep 8 14:17 /dev/raw/raw1
Advantages:
Removes double-buffering problem Guaranteed writes Minimal OS overhead from performance perspective
10
11
Advantages:
Simplified day-to-day administration, all existing tools, scripts work as before Simplified storage configuration Can be used to store non-database files
Disadvantages:
Additional initial configuration complexity Adds another product/solution to the database stack Can add performance overhead
12
Except for Linux, all of the clustered filesystem options are provided by a third-party vendor On Linux, Oracle has written its own CFS, OCFS2 (Oracle Clustered Filesystem version 2)
Supports datafiles, ORACLE_HOME, and general purpose file storage Integrated into the mainline Linux kernel OCFS2 is lacking in online scalability compared to some third-party vendors
13
Oracle ASM
ASM is a stripped down Oracle instance or RAC database ASMs concept of volume management is very simplistic compared to traditional volume managers
Disks are grouped together as named disk groups Disks can be added to disk groups online No concept of plexes, snapshots, subdisks
Future releases of Oracle are expected to extend the ability of ASM to hold non-database files 10g and 11g Standard Edition *require* ASM
16
NFS
Network File System (NFS)
Started by Sun Microsystems as a generic fileserver solution Originally UNIX-only, some windows support available today In the database world, generally dismissed as slow and unreliable
In NFS environments, the NFS server or array acts as a CFS, arbitrating access, locks, and metadata updates
Think of it like a CFS with the cluster and intelligence running on the storage array Frees the server to focus on driving IO to the storage NFS servers sometimes have additional functional capabilities over traditional block storage arrays
17
NFS Continued
NFS & RAC
Looks like a clustered filesystems All database components can live on NFS, but only certain OS and NAS array configurations are supported check Metalink Specific mount options are required
Disadvantages:
Per MB, NFS storage is often more expensive than Fibre Channel or iSCSI Certain workloads may not scale well on NFS platforms, though most will.
18
Recommended Configuration
Certainly, no one size fits all However, GridApp has seen one configuration consistently offer a blend of manageability, scalability, and performance Three core components in use:
Local disks of the servers Clustered Filesystem (OCFS2) ASM
19
Recommended Configuration
Local disks:
ORACLE_HOME separate per-node, and per database
OCFS2:
OCR Voting (optionally) archive_log_dest
ASM:
Local disks of the servers Clustered Filesystem ASM
20
Recommended Configuration
Advantages:
Minimum of disk devices required Allows scripts, etc. to be centrally shared ASM provides storage and capacity growth
Disadvantages:
Multiple moving parts Additional complexity
21
Conclusions
Oracle RAC dramatically increases the infrastructure complexity surrounding its configuration With storage, there is a particular concern due to the breadth of options available Raw devices, NFS, CFS, and ASM all have particular advantages and disadvantages A recommended storage infrastructure uses all of these technologies
22
Q&A
23