• No results found

Oracle Storage Options

N/A
N/A
Protected

Academic year: 2021

Share "Oracle Storage Options"

Copied!
27
0
0

Loading.... (view fulltext now)

Full text

(1)

Oracle Storage Options

RAW, ASM, CFS, NFS for

Real Application Cluster

Unterföhring, 11.2005 M. Kühn

(2)

Be spoilt for choice ?RAC Review

Introduction Storage Options RAW

In shortASM

Automatic Storage Management CFS Options

OCFS[2], QFS, GxFS, .. NFS

Certified NAS Storage

Konfiguration

(3)

Inst1 Inst3

Disk Mirror

Be spoilt for Choice: RAC Review

Physical Structure:Two or more nodesInterconnect

DB Files on shared storage Public network (VIP)

Software:

clusterware

Vendor and/or CRSdatabase

shared storage management:RAID

VM (Volume Manager)

Inst2

FC Switch

Inst1 Inst2

(4)

Be spoilt for choice: Introduction

Abbrev.

Storage option

Raw

Raw devices, no file system

ASM

Automatic Storage Management

CFS

Vendor Cluster file system

OCFS

Oracle Cluster file system

(5)

Be spoilt for choice: Introduction

Types of database files

Database SW Dump files

FS, CFS, NFS

Data files SPFILE Control files RedoLog files

RAW, NFS, CFS, ASM

Recovery Area RMAN

Archived Logs

FS, CFS, NFS, ASM

CRS files Voting Disk

OCR

RAW, CFS, NFS

(6)

Be spoilt for Choice: Introduction

Not all files have to be on a shared storage subsystem

Each node can have its own ORACLE_HOME

All data files and CRS files must be on shared storage

Flash Recovery Area must be shared by all instances

(7)

Storage

option

Platforms

Raw

All platforms

ASM

All platforms

Certified

CFS

AIX GPFS, True64 CFS, RedHat GFS, Solaris QFS

OCFS

Linux, Windows

OCFS2

Linux

Be spoilt for choice: Introduction

Platforms and file types support

NOT supported

file types

SW, Dump,

Recovery

CRS, SW, Dump

None

SW, Dump

None

Supported

file types

Data files, CRS

Data files

Recovery

All

Data files, CRS,

Recovery

All

(8)

Be spoilt for choice ?RAC Review

Introduction Storage Options RAW devices

In short ASM

Automatic Storage Management CFS Options

OCFS[2], QFS, GxFS, .. NFS

Certified NAS Storage

Konfiguration

(9)

Raw devices: in short

Advantage:

Fast Performance

All platforms

Disadvantage:

Mangeability

Resize tablespaces

full recovery

Flash Recovery Area

(10)

Be spoilt for choice ?RAC Review

Introduction Storage OptionsRAW devices

ASM

Automatic Storage Management CFS Options

OCFS[2], QFS, GxFS, .. NFS

Certified NAS Storage Konfiguration

(11)

ASM: Automatic Storage Mangement ASM Concept Node1 +ASM metadata RAC11 CSS Node2 +ASM metadata RAC12 CSS Data files Recovery Metadata 1 Data files Recovery Metadata Metadata Data files Recovery Metadata Metadata 2 3

(12)

ASM: Automatic Storage Mangement

ASM „like“ logical volume manager Configured via SQL

ASM instance has no data files Reads metadata config from disks

oracle@zone1> export ORACLE_SID=+ASM oracle@zone1> sqlplus /nolog

SQL> connect / as sysdba SQL> connected.

SQL> create diskgroup myDG normal redundancy 2 failgroup myGRP1 disk

3 '/dev/rdsk/c3t0d0s0', 4 '/dev/rdsk/c3t0d1s0', 5 '/dev/rdsk/c3t0d2s0' 6 failgroup myGRP2 disk 7 '/dev/rdsk/c4t0d0s0', 8 '/dev/rdsk/c4t0d1s0',

(13)

ASM: Automatic Storage Mangement

Command line utility in Oracle 10g R2

oracle@zone1> export ORACLE_SID=+ASM oracle@zone1> asmcmd

ASMCMD> ?

commands: cd

du find help ls lsct lsdg mkalias mkdir pwd rm

(14)

ASM: Automatic Storage Mangement

ASMCMD> lsct

DB_Name Status Software_Version Compatible_version Instance_Name +ASM CONNECTED 10.2.0.1.0 10.2.0.0.0 +ASM

peter CONNECTED 10.2.0.1.0 10.2.0.1.0 peter

ASMCMD> cd /MyDG/PETER/

ASMCMD> ls

CONTROLFILE/ DATAFILE/ ONLINELOG/ PARAMETERFILE/ TEMPFILE/ spfilepeter.ora

ASMCMD> cd DATAFILE

SMCMD> ls -l

Type Redund Striped Time Sys Name

DATAFILE MIRROR COARSE NOV 17 12:00:00 Y EXAMPLE.269.574531725 DATAFILE MIRROR COARSE NOV 17 12:00:00 Y SYSAUX.257.574531325 DATAFILE MIRROR COARSE NOV 17 12:00:00 Y SYSTEM.256.574531323 DATAFILE MIRROR COARSE NOV 17 12:00:00 Y UNDOTBS1.258.574531327 DATAFILE MIRROR COARSE NOV 17 12:00:00 Y USERS.259.574531327

ASMCMD> du

(15)

ASM: Automatic Storage Mangement

Advantage:

Benefits of LVM

Ease of management of raw devices

Automatic I/O tuning for all type of workloadsRAW disk I/O performance

Online storage migration

Disadvantage

ASM files only be managed through oracle sqlNo use of unix file system tools (cp, ls, ..)No use of third-party backup softwareNo CRS files

(16)

Be spoilt for choice ?RAC Review

Introduction Storage OptionsRAW devices

ASM

Automatic Storage ManagementCFS Options

OCFS[2], QFS, GxFS, .. NFS

Certified NAS Storage Konfiguration

(17)

CFS: OCFS, QFS, GPFS, GFS

OCFS – Oracle Cluster File System

(OCFS2 beta, not certified)

QFS – Sun Quick File System

GPFS – IBM Global Public File System

(18)

CFS: OCFS, QFS, GPFS, GFS

Instance

RAC11

Instance

RAC12

OCFS or CFS

RAID5 or 1+0

One location

OCFS – File Types

Data Files CRS

Recovery

CFS – File Types

(19)

CFS: OCFS, QFS, GPFS, GFS

Sun Cluster

Instance

RAC11

Sun Cluster

Instance

RAC12

QFS All file types

RAID or JBOD

Location 1

Location 2

QFS All file types

(20)

Be spoilt for choice ?RAC Review

Introduction Storage OptionsRAW devices

ASM

Automatic Storage Management CFS Options

OCFS[2], QFS, GxFS, .. NFS

Certified NAS Storage Konfiguration

(21)

NFS: Certified NAS Storage

Instance

RAC11

Instance

RAC12

All file types NFS

NAS

Cluster

NAS

Cluster

All file types NFS

(22)

NFS: Certified NAS Storage

Advantage:

Ease of use

all file types

Relatively low cost (if no NAS cluster)

Disadvantage:

Performance

Need more CPU Resource ca. +20%

OLTP workload ca. 20-30% slower

Only for Linux and Solaris

Solaris 10 new TCP/IP Stack and NFSv4

FS NFS 0 10 20 30 40 50 60 70 80 90 100 70 92 System consumption FS NFS 0 10 20 30 40 50 60 70 80 90 100 100 79.66 OLTP Performance

(23)

NFS: Certified NAS Storage

Vendor List:

RAC certified:EMC: CelerraNetapp: FilerSun: NAS 5x10Non RAC

Auspex: NS3000XR

BlueArc: Titan Silicon ServerHP: ProLiant Storage ServerNEC: Storage NV Series

Pillar Data Systems: Axiom 500Procom Technology: NetFORCEVeritas: ServPoint

(24)

Be spoilt for choice ?RAC Review

Introduction Storage OptionsRAW devices

ASM

Automatic Storage Management CFS Options

OCFS[2], QFS, GxFS, .. NFS

Certified NAS StorageKonfiguration

(25)

Best practice: Overview

QFS Sun Cluster

HA

Perf.

certified NFS Cluster

certified NFS

OCFS CFS

ASM

(26)

Best practice: Flash Recovery Area with SAM-QFS

Automatic storage archiving of Oracle Flash Recovery Area

Instance

RAC11

Instance

RAC12

SAM-QFS Recovery Area

RAID5 or 1+0

Tape Library Tape Library

archiving data

(27)

References

Related documents

Although the flexible nature of loop structures makes modeling backbone angular distributions for protein loops much more difficult than that for regular secondary

The purpose of this dissertation is to develop and implement a seminar to improve some of the major problems that alter or disrupt immigrant family relationships between spouses

And how do the research ideas relate to the candidate’s own educational and professional background, to one of the academic disciplines of the graduate schools of Leiden

District labor market conditions remained generally healthy in the second quarter. Employment growth was steady at 1.5 percent compared to a year earlier — matching the

V tretjem poglavju bomo spoznali programski jezik TypeScript in njegove najpomembnejše lastnosti ter naredili nekaj primerjav s programskim jezikom JavaScript.. Na koncu bomo

Three types of reports are available: the Rx Settings Report lists the pump's current program; the Event Log Report includes Rx settings and the event log through the last 500 events

MBPTA, by deploying EVT (see Figure 1), is able to derive the probability that bad behavior of several of the soj (whose impact has been cap- tured in the analysis-time runs)