23
SAP und Oracle RAC virtualisiert in Solaris Containern Dipl.-Ing. Michael Ahrens Principal Solution Architect & SAP Technology Consultant Montag, 1. November 2010

SAP und Oracle RAC virtualisiert in Solaris Containern · Solaris Container erstellen M5000 mit lokalem Storage Solaris 10 nach EIS installiert #zpool create oraclepool mirror c0t15d4

Embed Size (px)

Citation preview

SAP und Oracle RAC virtualisiert in Solaris ContainernDipl.-Ing. Michael AhrensPrincipal Solution Architect & SAP Technology Consultant

Montag, 1. November 2010

© 2010 Oracle and/or its affiliates

Montag, 1. November 2010

© 2010 Oracle and/or its affiliates

• Oracle Clusterware, Oracle Solaris Cluster .....

• Oracle Java

• Oracle RAC, Oracle DB

• Oracle Solaris

• Oracle VM, Oracle VM for SPARC

• Oracle’s Sun SPARC Enterprise Server

• Open Storage

Oracle + Sun für virtualisierte SAP Systeme:Complete, Open, Integrated Systems

Montag, 1. November 2010

© 2010 Oracle and/or its affiliates

Oracle Solaris Solution Software KomponentenAlle verfügbar für SPARC/X86 Solaris Server

• Oracle Solaris• Oracle Solaris Volumemanager• Oracle shared QFS• Oracle Enterprise Edition (Database)• Oracle Solaris Cluster - Oracle Clusterware• Oracle Real Application Clusters (RAC)• Oracle Enterprise Manager OPS Center• Oracle Enterprise Manager Grid Control

Montag, 1. November 2010

© 2010 Oracle and/or its affiliates

Warum Solaris Virtualisierung und SAP ?

• Verbesserte Verfügbarkeit• Mehr Kapazität• Konsolidierung• Erhöhte Ausnutzung

Höhere Ausnutzung der

Montag, 1. November 2010

© 2010 Oracle and/or its affiliates

Hard Partitions SPARC Hypervisors Solaris Containers

SPARC Solaris Virtualisierung und SAPKonsolidierung von SAP Systemen

Ein BetriebssystemMehrere Betriebssysteme

Alle Sun SystemeSolaris Container

(Zonen + SRM)Solaris Trusted ExtensionsSolaris 8 und 9 Container

T-SeriesOracle VM for SPARC

(Logical Domains)Granular

DynamischGeringer Overhead

M-SeriesDynamic Domains

Komplette Isolierung:RessourcenSicherheit

FehlerService

Systembestandteilohne weitere Kosten!

Systembestandteilohne weitere Kosten!

Systembestandteilohne weitere Kosten!

Systembestandteilohne weitere Kosten!

Montag, 1. November 2010

© 2010 Oracle and/or its affiliates

SPARC Enterprise Server Produkt Portfolio

• Optimiert für Oracle Datenbanken• Reliability, Availability, Serviceability: “RAS” und Security• Skalierbar bis 256 cores and 4TB RAM• Optimiert für Performanz per Watt

T5220T6320T6340

T5120 T5140

T5240

T5440

M9000M8000

M3000

M4000

M5000

T3-1B

T3-4

T3-1 T3-2

new!

new!new!new!

Montag, 1. November 2010

© 2010 Oracle and/or its affiliates

X86 Hypervisors Solaris Containers

X86 Solaris Virtualisierung und SAPKonsolidierung von SAP Systemen

Ein BetriebssystemMehrere Betriebssysteme

Alle Solaris SystemeSolaris Container

(Zonen + SRM)Solaris Trusted Extensions

X86-SystemeOracle VM (XEN)

Systembestandteilohne weitere Kosten!

Systembestandteilohne weitere Kosten!

Systembestandteilohne weitere Kosten!

Systembestandteilohne weitere Kosten!

Montag, 1. November 2010

© 2010 Oracle and/or its affiliates

X86 Enterprise Server Produkt Portfolio

Blade 6000

X6270

X4170 M2

X2270 M2

X4270 M2

X4470

X4800

• Intel Xeon 5600 & 7500 Prozessoren• Skalierbar bis zu 64 Cores• Performanzsteigerung durch Flash integration

Montag, 1. November 2010

© 2010 Oracle and/or its affiliates

8GB Dimm F20 PCIe 96GB Flash F51000 Flasharray 15K SAS Disk

Network (VLAN)

SAN

F51000 Flasharray

Tape

Open Storage

Highend Storage

• Oracle Sun Server unterstützen Flash Speicher• Speichersubsysteme, SSD’s**, und PCIe Karten

• Erweitert den Buffer Cache transparent• Nutzt Flash-Platten oder Karten im DB-Server• 10x größerer Cache• Eliminiert fast alle I/Os

• Vorteile• Weniger Platten • Einfachere Storagesysteme • Bessere Antwortszeit• Geringerer Stromverbrauch• Hoher ROI

** Nur T- und X-Serie

Oracle Database 11g Release 2 und Flash TechnologieDatabase Smart Flash Cache mit Sun Solid State Drives

Montag, 1. November 2010

© 2010 Oracle and/or its affiliates

Solaris Container erstellen

M5000 mit lokalem StorageSolaris 10 nach EIS installiert

#zpool create oraclepool mirror c0t15d4 c1t15d4

#zfs create oraclepool/oracle

#zfs set mountpoint=/opt/oracle oraclepool/oracle

DatenContainer (zonepath)Applikation

#zonecfg -z oradbcreate

set zonepath=/opt/oracleadd net

set physical=e1000g0set address=192.168.2.100/24

endverifycommitexit

#zoneadm -z oradb install

Zone oradb

Shared Storage

Montag, 1. November 2010

Zone “oradb2”

Zone “oradb1”

© 2010 Oracle and/or its affiliates

Solaris Container “resizen”

Garantierte KapazitätSolaris Resource Management

(CPU shares)

• Feste Obergrenzen> CPU Sets> IP Quality of Service (ipqos)> Memory resource capping deamon (rcapd)

Kapazitäten lassen sichdynamisch (online) denContainern zuordnen.

Zone “oradb1”

Zone “oradb2”

Montag, 1. November 2010

© 2010 Oracle and/or its affiliates

Solaris Container verschieben

13

M5000 mit lokalem StorageSolaris 10 nach EIS installiert

#zlogin oradb /usr/sbin/shutdown ...

DatenContainer (zonepath)Applikation

Zone oradb

M5000 mit lokalem StorageSolaris 10 nach EIS installiert

#zoneadm -z oradb detach#zpool export oraclepool

#zpool import oraclepool#zoneadm -z oradb attach -F#zoneadm -z oradb boot

Shared Storage

Montag, 1. November 2010

© 2010 Oracle and/or its affiliates

#zonecfg -z oradb2 set zonepath=/opt/oracle2

Solaris Container “clonen”

14

M5000 mit lokalem StorageSolaris 10 nach EIS installiert #zonecfg -z oradb1 export -f /tmp/oradb1.cfg

#zonecfg -z oradb2 -f /tmp/oradb1.cfg

Daten oradb1Container (zonepath)Applikation

#zonecfg -z oradb2 remove net address=192.168.2.100/24#zonecfg -z oradb2

add netset physical=e1000g0set address=192.168.2.200/24

endverifycommitexit -F

Zone oradb1

Shared Storage

Daten oradb2Container (zonepath)Applikation

Zone oradb2

#zoneadm -z oradb1 halt#zfs snapshot oraclepool1/oracle1@fororacle2#zoneadm -z oradb1 boot#zfs clone oraclepool1/oracle1@fororacle2

oraclepool2/oracle2#zfs set mountpoint=/opt/oracle2 oraclepool2/oracle2

#zoneadm -z oradb2 attach -F#zoneadm -z oradb2 boot

Remark: Edit /etc/hosts here

Montag, 1. November 2010

© 2010 Oracle and/or its affiliates

Aufbau der Cluster HardwareKomplettlösung von einem Hersteller

Storage

RedundanteSAN Switches

Redundante IB Switchesfür den Cluster Interconnect

SPARC Server

Redundante GigE Switches zum „public“ Netz

Montag, 1. November 2010

© 2010 Oracle and/or its affiliates

SPARC/X86/RAC/Cluster Optionen

• Cluster mit „fat“ Knoten• Wenige große Knoten• SPARC Server oder X4800• Oracle RAC• Oracle HA• Oracle Solaris

• Cluster aus “thin” Knoten• Viele kleine Knoten• SPARC oder X86 Server• Oracle RAC• Oracle Solaris

T5440

M4000

M5000

M8000 M9000

T52X0T6320 BladeT6340 BladeX6270 Blade

T51X0

M3000

X4800

X4470

X4170

X2270X4270

Montag, 1. November 2010

© 2010 Oracle and/or its affiliates

Auswahl der Cluster Knoten

• “Fat” Knoten• Möglichst geringe Knotenanzahl z.B. auf Grund der Workload• Geringere Komplexität im Cluster• Erhöhung der Cluster Kapazität durch Upgrades der Knoten• Jeder Knoten ist hochverfügbar

• „Thin“ Knoten• Geringstmögliche Hardware-Kosten• Erhöhung der Cluster Kapazität durch Hinzufügen weiterer Knoten• Größtmögliche Redundanz im Cluster

Montag, 1. November 2010

© 2010 Oracle and/or its affiliates

Der traditionelle Ansatz für HochverfügbarkeitEin Cluster pro Anwendung

EntwicklungProduktion

Produktions System

Quality System

Entwicklungs SystemTest System

Montag, 1. November 2010

© 2010 Oracle and/or its affiliates

Partitionierte Cluster

• Erhöhung der Systemauslastung durch Virtualisierung• Erhöhen der Verfügbarkeit und Skalierung durch Oracle RAC• Resource Gruppierung

Database

Database Database

Database

Application Application

Application

M9000 M9000

Dynamic System Domains

Database

Application

Database

Application

Database

Application

Database

Application

T5440 T5440

Oracle VM SPARC

Montag, 1. November 2010

© 2010 Oracle and/or its affiliates

Konsolidierung von DB- und Anwendungs-Clustern Mit Oracle Solaris Cluster und Solaris Virtualisierung

• Zonecluster ist ein virtueller SunCluster

• Jeder virtueller Knoten ist eine non-global Zone auf einer physischen Maschine

• Unbegrenzte Anzahl von Zoneclustern je physischen Sun Cluster• Failover und scalable Applikationen laufen in einem virtuellen Sun Cluster

• Ein CRS mit RAC-Datenbanksystem läuft in einem virtuellen Sun Cluster

• Applikationen laufen, als wären sie auf einem dedizierten Sun Cluster

• Es werden eine oder mehrere Applikationen in jedem Zonecluster unterstützt

Montag, 1. November 2010

© 2010 Oracle and/or its affiliates

Wie passt alles zusammen ? Oracle Solaris Cluster, Solaris Virtualisierung und SAP

Local Zone for DBI

SVM/UFS

Loca

l Zon

es f

or S

ID =

MA

H

Oracle CRSOracle RAC

RENQ

ASCS

Cluster mahrenscl1 Oracle RACSCS/RENQ/ASCS/ARENQ

Local Zone for DBI

SVM/UFS

Loca

l Zon

es f

or S

ID =

MA

H

Oracle CRSOracle RAC

SCS

ARENQ

DI JAVA/ABAP DI JAVA/ABAP DI JAVA/ABAP DI JAVA/ABAP

Network Loadbalancer Network LoadbalancerHSRP

ABAP Logongroup ABAP Logongroup

TCP/IP Socket HTTP/HTTPS

Montag, 1. November 2010

© 2010 Oracle and/or its affiliates

Mehr Informationen.....

• ... zu Oracle Servern• http://www.oracle.com/us/products/servers-storage/servers/

• ... zu Oracle Datenbank Produkten• http://www.oracle.com/us/products/database/• http://www.oracle.com/us/products/database/options/real-application-clusters/

• ... zu Oracle Solaris Cluster• http://www.sun.com/software/solaris/cluster/

• ... zu Oracle Virtualisierungstechnologien• http://www.oracle.com/us/technologies/virtualization/

• ... zum Betriebssystem Oracle Solaris• http://www.oracle.com/us/products/servers-storage/solaris/

• ... zu SAP auf Oracle Technologien• http://www.oracle.com/sap

Montag, 1. November 2010

© 2010 Oracle and/or its affiliates 23

<Insert Picture Here>

<Insert Picture Here>Vielen Dank

Montag, 1. November 2010