SlideShare ist ein Scribd-Unternehmen logo
1
Oracle DB erfolgreich betreiben
auf SPARC/LDoms/Solaris/ZFS
Marcel Hofstetter
hofstetter@jomasoft.ch
https://jomasoftmarcel.blogspot.ch
CEO / Enterprise Consultant
JomaSoft GmbH
Oracle ACE „Solaris“
V1.0 / 20.11.2018
2
Agenda
Wer ist JomaSoft?
SPARC und LDoms Technologie
ZFS
Oracle DB Cloning mit ZFS
INMEMORY / DAX
3
Wer ist JomaSoft?
Software Unternehmen gegründet im Juli 2000
Spezialisiert im Bereich Solaris,
Software Entwicklung & Services/Beratung
Produkt VDCF (Virtual Datacenter Cloud Framework):
Installation, Management, Betrieb, Monitoring, Security
und DR von Solaris 10/11, sowie Virtualisierung
mittels LDoms und Solaris Zonen
VDCF wird seit 2006 produktiv in Europa genutzt
4
Marcel Hofstetter
Informatiker seit 25+ Jahren
Solaris seit 20 Jahren
CEO bei der JomaSoft GmbH seit 18 Jahren
Internationaler Speaker:
Oracle OpenWorld, DOAG, UKOUG, SOUG, AOUG
Oracle ACE „Solaris“
https://twitter.com/marcel_jomasoft
SOUG (Swiss Oracle User Group) – Speaker of the Year 2016
Hobby: Familie, Reisen, Wine & Dine, Kino
https://jomasoftmarcel.blogspot.ch
https://www.linkedin.com/in/marcelhofstetter
5
Oracle SPARC CPUs
SPARC M8
(2017)
SPARC S7
(2016)
SPARC M7
(2015)
SPARC T5
(2013)
Processor Cores 32 (5th Gen) 8 (4th Gen) 32 (4th Gen) 16 (3rd Gen)
Cache per Core 2 MB 2 MB 2 MB 0.5 MB
Memory Bandwidth per Core 5.6 GB/sec 6.0 GB/sec 5.3 GB/sec 5.0 GB/sec
Memory Access 127ns 97ns 131ns 163ns
I/O Bandwidth 145 GB/sec 32 GB/sec 145 GB/sec 32 GB/sec
CPU Frequency 5.0 GHz 4.27 GHz 4.13 GHz 3.6 GHz
6
Oracle VM Server for SPARC (LDoms)
SPARC Hypervisor
Jede Logical Domain
läuft mit dediziertem
Memory und CPU
Threads
→ Zero Overhead
Firmware basierter
Hypervisor
Isoliertes
Betriebssystem und
Applikationen in jeder
Logical Domain
7
Logical Domains (LDoms)
Oracle/Fujitsu SPARC Server
Systeme: T5xx0, T3-x, T4-x, T5-x
M5, M6, M10, T7-x, S7-2, M12, T8-x
Mehrere, separate Solaris
Instanzen auf einer Hardware
Kombinierbar mit Zonen
Live Migration
(auf andere
Hardware
ohne Unterbruch)
LDoms & Zonen sind Hard Partitions für Oracle DB Lizenzierung
8
Solaris ZFS
ZPOOL
Disk1 Disk2
/export
/oradata
/u01
ZFS Filesysteme
● Einfache Bedienung
● Flexibel
● Filesystem Grösse optional
● Snapshots & Clones
● COW / Kein fscheck
● Stripe, Mirror, RAID
● Disk hinzu → Grösser
● Export & Import
● Seit Solaris 11.4 auch
Disk entfernen NEW
9
Storage System C
Vorteile von ZFS Host-Based Mirroring
+ Performance-Vorteil (Read)
+ ZFS kann inkonsistente Daten
korrigieren (Checksums)
+ Migration auf neuen Storage
während Betrieb
- Benötigt zusätzlichen Diskplatz
Storage System A
SAN LUN
4
Storage System B
SAN LUN
1
SAN LUN
2
SAN LUN
3
10
ZFS - Fragmentation
Leerer ZPOOL
Wird gefüllt
Hier bei 60%
11
ZFS - Fragmentation
Nach ein
paar delete
76% voll
Später
90% voll
fragmentiert
12
ZFS - Fragmentation
Bei sehr grossen ZPOOLS mit hohem Füllgrad wird write sehr
langsam, weil freie Blocks gesucht werden müssen
Wie entschärfen?
- Aktuelle Solaris Versionen einsetzen mit besseren Algorithmen
- ZPOOL Log Disk anhängen und logbias=latency
- Wenn möglich Datenbank export
- Daten replizieren auf neuen ZPOOL (nicht spiegeln!)
- (ZPOOL Füllgrad unter 80% halten)
13
VDCF - ZPOOL Online Replication
ZPOOL
Disk1 Disk2
/test
/db
/data
ZFS Filesystems
/test
/db
/data
ZFS Filesystems
ZPOOL
Disk1
Replication auf neuen zpool
mit optimaler Anzahl Disk
Reduziert Fragmentation
Replication auf neuen zpool
mit zfs send/receive
14
VDCF - ZPOOL Online Replication
/test
/db
/data
ZFS Filesystems
ZPOOL
Disk1
Daten online repliziert
Wiederholung für Delta/Änderungen
Kurze Downtime für Remount
Resultat nach der Online Replication
15
ZFS - Performance Empfehlungen
Mehrere Disk/LUN verwenden um vom Striping zu
profitieren
Genügend Memory für Applikationen und ZFS Cache (Read)
Bei ZFS auf SAN mit vielen physischen Disks:
zfs_vdev_max_pending (Default 10) erhöhen
Separate, schnelle ZPOOL Log Disk (Write)
Genügend CPUs in der Global Zone für I/O
16
Oracle DB Cloning mit ZFS
Ziel: Einsparen von Disk Space
Speziell natürlich bei sehr grossen Datenbanken: X TB
Clone DB erstellen soll schneller gehen
- Kurze Downtime der Quell DB
- In ein paar Minuten automatisiert erledigt
Konkrete Einsparungen bei einem JomaSoft Kunden
10 Test-Datenbanken: Anstatt 10 x 3 TB nur ca 4 TB.
Memory und CPU wird trotzdem pro Clone DB benötigt
17
Oracle DB Cloning mit ZFS
Ablauf
Vorbereitung
Control File Statements der Source DB in Trace speichern
& Anpassen für Clone DB
Shutdown der App & Source DB
ZFS Filesystem Cloning mit VDCF
1. ZFS Snapshot (ReadOnly)
2. Read/Write ZFS Clone basierend auf ZFS Snapshot
3. ZFS Clone mounten
DBA Tasks
Solaris Admin
Task
Start der Source DB & App
Erstellen Control File für Clone DB und Start
Allenfalls noch Anpassungen an den Daten ...
18
Oracle DB Cloning mit ZFS
Anpassungen im Control File SQL
Set #2. RESETLOGS case
STARTUP NOMOUNT
CREATE CONTROLFILE SET DATABASE "SLOB" RESETLOGS NOARCHIVELOG
MAXLOGFILES 16
MAXLOGMEMBERS 2
MAXDATAFILES 1024
MAXINSTANCES 1
MAXLOGHISTORY 292
LOGFILE
GROUP 1 '/data/SLOB/onlinelog/o1_mf_1_fxzwszfw_.log' SIZE 4096M BLOCKSIZE 512,
GROUP 2 '/data/SLOB/onlinelog/o1_mf_2_fxzwtg7k_.log' SIZE 4096M BLOCKSIZE 512,
GROUP 3 '/data/SLOB/onlinelog/o1_mf_3_fxzwtx72_.log' SIZE 4096M BLOCKSIZE 512
-- STANDBY LOGFILE
DATAFILE
'/data/SLOB/datafile/o1_mf_system_fxzwvdct_.dbf',
'/data/SLOB/datafile/o1_mf_sysaux_fxzwvg5p_.dbf',
'/data/SLOB/datafile/o1_mf_sys_undo_fxzwvgsj_.dbf',
'/data/SLOB/datafile/o1_mf_iops_fxzxyzxt_.dbf'
CHARACTER SET US7ASCII
RECOVER DATABASE USING BACKUP CONTROLFILE
19
Oracle DB Cloning mit ZFS
Automatisiertes Cloning mit VDCF (1/2)
-bash-4.4$ ./clone_db
Executing on vServer v0133 (Oracle 18c Demo) on Node g0059
Oracle Corporation SunOS 5.11 11.4 September 2018
Executing command as oracle: /oracle/prepare_clone_cntl_file SLOB SLOB3
Trace File with controlfile found
/u01/app/oracle/diag/rdbms/slob/SLOB/trace/SLOB_ora_24904.trc
ControlFile: REUSE -> SET
ControlFile: Ignore RECOVER DATABASE
ControlFile Script created for SLOB3: /data/SLOB/SLOB3_newctl.sql
Executing on vServer v0133 (Oracle 18c Demo) on Node g0059
Executing command as oracle: /oracle/shutdown_source SLOB
Cloning filesystem /data/SLOB on vServer v0133
ZFS snapshot created for vServer v0133
Filesystem </data/SLOB3> mounted on vServer v0133
/data/SLOB of vServer v0133 successfully cloned and mounted as /data/SLOB3 on vServer v0133
20
Oracle DB Cloning mit ZFS
Automatisiertes Cloning mit VDCF (2/2)
Executing on vServer v0133 (Oracle 18c Demo) on Node g0059
Executing command as oracle: /oracle/start_source SLOB
Executing command as oracle: /oracle/start_clone SLOB3
Copyright (c) 1982, 2018, Oracle. All rights reserved.
Connected to an idle instance.
ORACLE instance started.
Total System Global Area 3254772544 bytes
Fixed Size 8643392 bytes
Variable Size 1090519040 bytes
Database Buffers 2147483648 bytes
Redo Buffers 8126464 bytes
Control file created.
Database altered.
Disconnected from Oracle Database 18c Enterprise Edition Release
18.0.0.0.0 - Production
Version 18.3.0.0.0
Source DB was down 35 seconds
Cloning Duration was 136 seconds
21
Oracle DB Cloning mit ZFS
Platzbedarf
Auf dem System
-bash-4.4$ df -h | egrep "Filesys|SLOB"
Filesystem Size Used Available Capacity Mounted on
/data/SLOB 41G 23G 18G 57% /data/SLOB
/data/SLOB3 41G 23G 18G 57% /data/SLOB3
Effektiv
# zfs list -t all | egrep "NAME|SLOB"
NAME USED AVAIL REFER MOUNTPOINT
SLOB 31.2G 17.6G 31K legacy
SLOB/data 31.2G 17.6G 31K legacy
SLOB/data/data_SLOB 23.2G 17.6G 23.2G legacy
SLOB/data/data_SLOB@20181106-170922 14.3M - 23.2G -
SLOB/data/data_SLOB3 8.06G 17.6G 23.2G legacy
22
INMEMORY / DAX
Oracle SPARC S7,M7 und M8
DAX → Oracle Data Analytics Accelerator
23
INMEMORY / DAX
Test Setup mit SLOB
SQL> show parameter inmemory_size
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
inmemory_size big integer 1G
SQL> ALTER TABLE USER1.CF1 INMEMORY;
Table altered.
SQL> select count(*) from USER1.CF1;
COUNT(*)
----------
10000
24
INMEMORY / DAX
Resultat / 8 Reader / 1 x SPARC S7-core
awr_0w_8r.20181107_165153.txt
DB Name DB Id Unique Name DB Role Edition Release RAC CDB
------------ ----------- ----------- ---------------- ------- ---------- --- ---
SLOB 3718155087 SLOB PRIMARY EE 18.0.0.0.0 NO NO
Host Name Platform CPUs Cores Sockets Memory(GB)
---------------- -------------------------------- ---- ----- ------- ----------
v0133 Solaris[tm] OE (64-bit) 8 1 1 16.00
Snap Id Snap Time Sessions Curs/Sess
--------- ------------------- -------- ---------
Begin Snap: 105 07-Nov-18 16:46:32 44 1.3
End Snap: 106 07-Nov-18 16:51:51 44 1.3
Elapsed: 5.31 (mins)
DB Time: 42.12 (mins)
Load Profile Per Second Per Transaction Per Exec Per Call
~~~~~~~~~~~~~~~ --------------- --------------- --------- ---------
DB Time(s): 7.9 126.4 0.00 8.15
DB CPU(s): 7.9 125.4 0.00 8.09
Background CPU(s): 0.0 0.5 0.00 0.00
Redo size (bytes): 8,690.5 138,454.2
Logical read (blocks): 125,562,125.4 2,000,411,835.5
Block changes: 42.8 681.1
Physical read (blocks): 0.6 10.1
Physical write (blocks): 3.2 51.2
Read IO requests: 0.3 5.2
Write IO requests: 1.4 22.8
Read IO (MB): 0.0 0.1
Write IO (MB): 0.0 0.4
IM scan rows: 125,536,275.3 2,000,000,000.0
Session Logical Read IM: 125,536,275.3 2,000,000,000.0
User calls: 1.0 15.5
-bash-4.4$ grep offload awr_0w_8r.20181107_165153.txt
Statistic Total per Second per Trans
IM simd compare HW offload calls 4,000,000 12,553.6 200,000.0
IM simd decode unpack HW offload 4,000,000 12,553.6 200,000.0
25
INMEMORY / DAX
Spannend, dass die 1 core LDOM alle 4 DAX Units des
SPARC S7 Socket verwenden kann
Host Name Platform CPUs Cores Sockets Memory(GB)
---------------- -------------------------------- ---- ----- ------- ----------
v0133 Solaris[tm] OE (64-bit) 8 1 1 16.00
-bash-4.4$ daxstat 10
DAX commands fallbacks input output %busy
4 63809 0 106.1M 5.4M 0
5 63810 0 106.1M 5.5M 0
6 63810 0 106.1M 5.4M 0
7 63803 0 106.1M 5.5M 0
26
SLOB Performance auf SPARC M8
27
SPARC M8 vs Intel Price/Performance
Quelle: Twitter / @Phil_Dunn1
28
Links
Solaris 11.4 Download
https://www.oracle.com/technetwork/server-storage/solaris11/downloads/index.html
zfs_msviz: A Tool to Visualise ZFS Metaslab allocations
MOS Doc ID 1624945.1
Hard Partitioning with LDoms
https://www.oracle.com/technetwork/server-storage/vm/ovm-sparc-hard-partitioning-1403135.pdf
Hard Partitioning with Oracle Solaris Zones
https://www.oracle.com/technetwork/server-storage/solaris11/technologies/os-zones-hard-partitioning-2347187.pdf
JomaSoft VDCF - Virtual Datacenter Cloud Framework
https://www.jomasoft.ch/vdcf/
29
Marcel Hofstetter
hofstetter@jomasoft.ch
https://jomasoftmarcel.blogspot.ch
CEO / Enterprise Consultant
JomaSoft GmbH
Oracle ACE „Solaris“
Fragen?
Oracle DB erfolgreich betreiben
auf SPARC/LDoms/Solaris/ZFS
https://twitter.com/marcel_jomasoft
https://jomasoftmarcel.blogspot.ch
https://www.linkedin.com/in/marcelhofstetter
30
Weitere interessante Vorträge an der #DOAG2018
Di, 20.11. 16:00 Raum Prag „Praktische Erfahrungen mit SPARC S7-2 Server“
Marcel Hofstetter
Mi, 21.11. 10:00 Raum Prag „EU-DSGVO und Infrastruktur – ein Fazit nach 6 Monaten“
Jan Brosowski & Ralf Zenses
Do, 22.11. 09:00 Raum Hongkong „Live Long And Prosper. Solaris 11.4 Vorteile in der Praxis“
Thomas Nau
Do, 22.11. 10:00 Raum Hongkong „Oracle Solaris 11.4 and Beyond“
Joost Pronk& Jan Brosowski
Do, 22.11. 12:00 Raum Hongkong „System Monitoring mit Solaris 11.4 DTrace und Analytics“
Thomas Nau
Do, 22.11. 13:00 Raum Hongkong „SAP und Solaris 11.4 Erste Erfahrungen“
Andris Perkons & Jan Brosowski
Do, 22.11. 14:00 Raum Hongkong „Was bringt Solaris 11.4“
Marcel Hofstetter

Weitere ähnliche Inhalte

PDF
DOAG 2018 / Praktische Erfahrungen mit SPARC S7-2 Server
PDF
Praktische Erfahrungen mit den kleinen SPARC S7-2 Servern
PDF
Klonen von Exadata-Datenbanken mit der Oracle ZFS Appliance - Ein Erfahrungsb...
PDF
DOAG 2018 / Was bringt Solaris 11.4
PDF
TechTalkThursday 27.10.2016: Ceph im NVME Cluster
PDF
Ldap sqlnet
PDF
Der oracle dba_und_seine_passwoerter
PDF
Erfahrungen und Stolpersteine mit Solaris 11.4
DOAG 2018 / Praktische Erfahrungen mit SPARC S7-2 Server
Praktische Erfahrungen mit den kleinen SPARC S7-2 Servern
Klonen von Exadata-Datenbanken mit der Oracle ZFS Appliance - Ein Erfahrungsb...
DOAG 2018 / Was bringt Solaris 11.4
TechTalkThursday 27.10.2016: Ceph im NVME Cluster
Ldap sqlnet
Der oracle dba_und_seine_passwoerter
Erfahrungen und Stolpersteine mit Solaris 11.4

Was ist angesagt? (19)

PDF
01 sqlplus
PDF
Introduction into Oracle Data Pump 11g/12c - Export and Import Data
PDF
Andreas Jordan – IT-Tage 2015 – Flashback – Warum Oracle Zeitreisen anbieten ...
PDF
WildFly als Plattform moderner Enterprise-Anwendungen
PDF
Wie gehts weiter mit Oracle Solaris?
PDF
Exadata with VM as Consolidation Plattform
PDF
Big Data Community Webinar vom 16. Mai 2019: Oracle NoSQL DB im Überblick
PDF
OSDC 2011 | GlusterFS by Thomas Halinka
PDF
Rapid Deploy von OS, Virtualsierung und Applikation
PDF
Effizienter Hardware LifeCycle auf Oracle SPARC M7 Server
PDF
Auswirkung und Ursachen schnell erfassen - Business-Service-Management
PPTX
Spezialitäten der Oracle Lizenzierung - DOAG Konferenz 2010 - OPITZ CONSULTI...
PPT
Dnug35 ak-dev.071111-beyond
PPTX
Neues zur Oracle Lizenzierung - DOAG Konferenz 2011 - OPITZ CONSULTING - Mic...
PPT
Compact, Compress, De-DUplicate
PDF
Systemmanagement mit Puppet und Foreman
PDF
Domino Statistiken (noch besser) verstehen und nutzen (Teil 2) - 41. DNUG 2014
PPTX
Sesam (APEX) Öffne Dich
PDF
SuperSUSE – die Lösung für dynamisch wachsenden Speicher
01 sqlplus
Introduction into Oracle Data Pump 11g/12c - Export and Import Data
Andreas Jordan – IT-Tage 2015 – Flashback – Warum Oracle Zeitreisen anbieten ...
WildFly als Plattform moderner Enterprise-Anwendungen
Wie gehts weiter mit Oracle Solaris?
Exadata with VM as Consolidation Plattform
Big Data Community Webinar vom 16. Mai 2019: Oracle NoSQL DB im Überblick
OSDC 2011 | GlusterFS by Thomas Halinka
Rapid Deploy von OS, Virtualsierung und Applikation
Effizienter Hardware LifeCycle auf Oracle SPARC M7 Server
Auswirkung und Ursachen schnell erfassen - Business-Service-Management
Spezialitäten der Oracle Lizenzierung - DOAG Konferenz 2010 - OPITZ CONSULTI...
Dnug35 ak-dev.071111-beyond
Neues zur Oracle Lizenzierung - DOAG Konferenz 2011 - OPITZ CONSULTING - Mic...
Compact, Compress, De-DUplicate
Systemmanagement mit Puppet und Foreman
Domino Statistiken (noch besser) verstehen und nutzen (Teil 2) - 41. DNUG 2014
Sesam (APEX) Öffne Dich
SuperSUSE – die Lösung für dynamisch wachsenden Speicher
Anzeige

Ähnlich wie DOAG2018 / Oracle DB erfolgreich betreiben auf SPARC/LDoms/Solaris/ZFS (20)

PDF
20190604_DOAGDatabase2019_OracleNoSQLDB_for_DBAs
PPT
PDF
Oracle Database Appliance X4-2
PDF
Infracoders Graz, smartOS - vom Netzwerk in der Box - zum Software Cloud Stack
PDF
Rapid Deployment mit JomaSoft VDCF
PPTX
Schlaglichter Oracle DB 11gR2 - DOAG Regio-Treffen 2010 - OPITZ CONSULTING - ...
PPT
X$Tabellen und SgaScanner, DOAG 2009
PPS
Sql Server Grundlagen für Sharepoint Administratoren
PPS
Sql Server GrundlagenfüR Share Point Admins
PDF
Westermo Technologie Webinar WeOS4 und WeOS5
PPTX
Automatisiertes disaster recovery testing mit der oracle cloud
PPTX
Datenbank Migration - Oracle 11gR2 Erfahrungen 2011 - OPITZ CONSULTING - Chri...
PDF
Roadshow Oracle Database 12c: News & Features
PDF
200 verteilte Oracle- Server mit Ansible ausrollen
PDF
Überblick zu Oracle Database 12c Release 2
PDF
Oracle Database 12c Release 2
PDF
Private Cloud mit Solaris auf SPARC
PDF
Private Cloud mit Ceph und OpenStack
PPTX
SOA Suite 12c aus der Infrastruktur-Sicht
PDF
SSD vs HDD: Risiken und Nebenwirkungen der Flash-Technologie - Webinar
20190604_DOAGDatabase2019_OracleNoSQLDB_for_DBAs
Oracle Database Appliance X4-2
Infracoders Graz, smartOS - vom Netzwerk in der Box - zum Software Cloud Stack
Rapid Deployment mit JomaSoft VDCF
Schlaglichter Oracle DB 11gR2 - DOAG Regio-Treffen 2010 - OPITZ CONSULTING - ...
X$Tabellen und SgaScanner, DOAG 2009
Sql Server Grundlagen für Sharepoint Administratoren
Sql Server GrundlagenfüR Share Point Admins
Westermo Technologie Webinar WeOS4 und WeOS5
Automatisiertes disaster recovery testing mit der oracle cloud
Datenbank Migration - Oracle 11gR2 Erfahrungen 2011 - OPITZ CONSULTING - Chri...
Roadshow Oracle Database 12c: News & Features
200 verteilte Oracle- Server mit Ansible ausrollen
Überblick zu Oracle Database 12c Release 2
Oracle Database 12c Release 2
Private Cloud mit Solaris auf SPARC
Private Cloud mit Ceph und OpenStack
SOA Suite 12c aus der Infrastruktur-Sicht
SSD vs HDD: Risiken und Nebenwirkungen der Flash-Technologie - Webinar
Anzeige

Mehr von JomaSoft (11)

PDF
SOUG - Experiences with Oracle Solaris 11.4
PDF
JomaSoft VDCF - Solaris Private Cloud
PDF
UKOUG - What is Delivered with Solaris 11.4
PDF
Experiences with Oracle SPARC S7-2 Server
PDF
Increase Efficiency of Solaris Operations & SPARC Life Cycle
PDF
Sicherheit, Compliance, Höchsteistung mit SPARC/Solaris
PDF
UKOUG Tech17 - Stay Secure With Oracle Solaris
PDF
Increase Efficiency of Solaris Operations & Hardware Life Cycle
PDF
JomaSoft & VDCF Overview
PDF
Wie setzt Swisscom Solaris 11 ein
PDF
VDCF Overview
SOUG - Experiences with Oracle Solaris 11.4
JomaSoft VDCF - Solaris Private Cloud
UKOUG - What is Delivered with Solaris 11.4
Experiences with Oracle SPARC S7-2 Server
Increase Efficiency of Solaris Operations & SPARC Life Cycle
Sicherheit, Compliance, Höchsteistung mit SPARC/Solaris
UKOUG Tech17 - Stay Secure With Oracle Solaris
Increase Efficiency of Solaris Operations & Hardware Life Cycle
JomaSoft & VDCF Overview
Wie setzt Swisscom Solaris 11 ein
VDCF Overview

DOAG2018 / Oracle DB erfolgreich betreiben auf SPARC/LDoms/Solaris/ZFS

  • 1. 1 Oracle DB erfolgreich betreiben auf SPARC/LDoms/Solaris/ZFS Marcel Hofstetter hofstetter@jomasoft.ch https://jomasoftmarcel.blogspot.ch CEO / Enterprise Consultant JomaSoft GmbH Oracle ACE „Solaris“ V1.0 / 20.11.2018
  • 2. 2 Agenda Wer ist JomaSoft? SPARC und LDoms Technologie ZFS Oracle DB Cloning mit ZFS INMEMORY / DAX
  • 3. 3 Wer ist JomaSoft? Software Unternehmen gegründet im Juli 2000 Spezialisiert im Bereich Solaris, Software Entwicklung & Services/Beratung Produkt VDCF (Virtual Datacenter Cloud Framework): Installation, Management, Betrieb, Monitoring, Security und DR von Solaris 10/11, sowie Virtualisierung mittels LDoms und Solaris Zonen VDCF wird seit 2006 produktiv in Europa genutzt
  • 4. 4 Marcel Hofstetter Informatiker seit 25+ Jahren Solaris seit 20 Jahren CEO bei der JomaSoft GmbH seit 18 Jahren Internationaler Speaker: Oracle OpenWorld, DOAG, UKOUG, SOUG, AOUG Oracle ACE „Solaris“ https://twitter.com/marcel_jomasoft SOUG (Swiss Oracle User Group) – Speaker of the Year 2016 Hobby: Familie, Reisen, Wine & Dine, Kino https://jomasoftmarcel.blogspot.ch https://www.linkedin.com/in/marcelhofstetter
  • 5. 5 Oracle SPARC CPUs SPARC M8 (2017) SPARC S7 (2016) SPARC M7 (2015) SPARC T5 (2013) Processor Cores 32 (5th Gen) 8 (4th Gen) 32 (4th Gen) 16 (3rd Gen) Cache per Core 2 MB 2 MB 2 MB 0.5 MB Memory Bandwidth per Core 5.6 GB/sec 6.0 GB/sec 5.3 GB/sec 5.0 GB/sec Memory Access 127ns 97ns 131ns 163ns I/O Bandwidth 145 GB/sec 32 GB/sec 145 GB/sec 32 GB/sec CPU Frequency 5.0 GHz 4.27 GHz 4.13 GHz 3.6 GHz
  • 6. 6 Oracle VM Server for SPARC (LDoms) SPARC Hypervisor Jede Logical Domain läuft mit dediziertem Memory und CPU Threads → Zero Overhead Firmware basierter Hypervisor Isoliertes Betriebssystem und Applikationen in jeder Logical Domain
  • 7. 7 Logical Domains (LDoms) Oracle/Fujitsu SPARC Server Systeme: T5xx0, T3-x, T4-x, T5-x M5, M6, M10, T7-x, S7-2, M12, T8-x Mehrere, separate Solaris Instanzen auf einer Hardware Kombinierbar mit Zonen Live Migration (auf andere Hardware ohne Unterbruch) LDoms & Zonen sind Hard Partitions für Oracle DB Lizenzierung
  • 8. 8 Solaris ZFS ZPOOL Disk1 Disk2 /export /oradata /u01 ZFS Filesysteme ● Einfache Bedienung ● Flexibel ● Filesystem Grösse optional ● Snapshots & Clones ● COW / Kein fscheck ● Stripe, Mirror, RAID ● Disk hinzu → Grösser ● Export & Import ● Seit Solaris 11.4 auch Disk entfernen NEW
  • 9. 9 Storage System C Vorteile von ZFS Host-Based Mirroring + Performance-Vorteil (Read) + ZFS kann inkonsistente Daten korrigieren (Checksums) + Migration auf neuen Storage während Betrieb - Benötigt zusätzlichen Diskplatz Storage System A SAN LUN 4 Storage System B SAN LUN 1 SAN LUN 2 SAN LUN 3
  • 10. 10 ZFS - Fragmentation Leerer ZPOOL Wird gefüllt Hier bei 60%
  • 11. 11 ZFS - Fragmentation Nach ein paar delete 76% voll Später 90% voll fragmentiert
  • 12. 12 ZFS - Fragmentation Bei sehr grossen ZPOOLS mit hohem Füllgrad wird write sehr langsam, weil freie Blocks gesucht werden müssen Wie entschärfen? - Aktuelle Solaris Versionen einsetzen mit besseren Algorithmen - ZPOOL Log Disk anhängen und logbias=latency - Wenn möglich Datenbank export - Daten replizieren auf neuen ZPOOL (nicht spiegeln!) - (ZPOOL Füllgrad unter 80% halten)
  • 13. 13 VDCF - ZPOOL Online Replication ZPOOL Disk1 Disk2 /test /db /data ZFS Filesystems /test /db /data ZFS Filesystems ZPOOL Disk1 Replication auf neuen zpool mit optimaler Anzahl Disk Reduziert Fragmentation Replication auf neuen zpool mit zfs send/receive
  • 14. 14 VDCF - ZPOOL Online Replication /test /db /data ZFS Filesystems ZPOOL Disk1 Daten online repliziert Wiederholung für Delta/Änderungen Kurze Downtime für Remount Resultat nach der Online Replication
  • 15. 15 ZFS - Performance Empfehlungen Mehrere Disk/LUN verwenden um vom Striping zu profitieren Genügend Memory für Applikationen und ZFS Cache (Read) Bei ZFS auf SAN mit vielen physischen Disks: zfs_vdev_max_pending (Default 10) erhöhen Separate, schnelle ZPOOL Log Disk (Write) Genügend CPUs in der Global Zone für I/O
  • 16. 16 Oracle DB Cloning mit ZFS Ziel: Einsparen von Disk Space Speziell natürlich bei sehr grossen Datenbanken: X TB Clone DB erstellen soll schneller gehen - Kurze Downtime der Quell DB - In ein paar Minuten automatisiert erledigt Konkrete Einsparungen bei einem JomaSoft Kunden 10 Test-Datenbanken: Anstatt 10 x 3 TB nur ca 4 TB. Memory und CPU wird trotzdem pro Clone DB benötigt
  • 17. 17 Oracle DB Cloning mit ZFS Ablauf Vorbereitung Control File Statements der Source DB in Trace speichern & Anpassen für Clone DB Shutdown der App & Source DB ZFS Filesystem Cloning mit VDCF 1. ZFS Snapshot (ReadOnly) 2. Read/Write ZFS Clone basierend auf ZFS Snapshot 3. ZFS Clone mounten DBA Tasks Solaris Admin Task Start der Source DB & App Erstellen Control File für Clone DB und Start Allenfalls noch Anpassungen an den Daten ...
  • 18. 18 Oracle DB Cloning mit ZFS Anpassungen im Control File SQL Set #2. RESETLOGS case STARTUP NOMOUNT CREATE CONTROLFILE SET DATABASE "SLOB" RESETLOGS NOARCHIVELOG MAXLOGFILES 16 MAXLOGMEMBERS 2 MAXDATAFILES 1024 MAXINSTANCES 1 MAXLOGHISTORY 292 LOGFILE GROUP 1 '/data/SLOB/onlinelog/o1_mf_1_fxzwszfw_.log' SIZE 4096M BLOCKSIZE 512, GROUP 2 '/data/SLOB/onlinelog/o1_mf_2_fxzwtg7k_.log' SIZE 4096M BLOCKSIZE 512, GROUP 3 '/data/SLOB/onlinelog/o1_mf_3_fxzwtx72_.log' SIZE 4096M BLOCKSIZE 512 -- STANDBY LOGFILE DATAFILE '/data/SLOB/datafile/o1_mf_system_fxzwvdct_.dbf', '/data/SLOB/datafile/o1_mf_sysaux_fxzwvg5p_.dbf', '/data/SLOB/datafile/o1_mf_sys_undo_fxzwvgsj_.dbf', '/data/SLOB/datafile/o1_mf_iops_fxzxyzxt_.dbf' CHARACTER SET US7ASCII RECOVER DATABASE USING BACKUP CONTROLFILE
  • 19. 19 Oracle DB Cloning mit ZFS Automatisiertes Cloning mit VDCF (1/2) -bash-4.4$ ./clone_db Executing on vServer v0133 (Oracle 18c Demo) on Node g0059 Oracle Corporation SunOS 5.11 11.4 September 2018 Executing command as oracle: /oracle/prepare_clone_cntl_file SLOB SLOB3 Trace File with controlfile found /u01/app/oracle/diag/rdbms/slob/SLOB/trace/SLOB_ora_24904.trc ControlFile: REUSE -> SET ControlFile: Ignore RECOVER DATABASE ControlFile Script created for SLOB3: /data/SLOB/SLOB3_newctl.sql Executing on vServer v0133 (Oracle 18c Demo) on Node g0059 Executing command as oracle: /oracle/shutdown_source SLOB Cloning filesystem /data/SLOB on vServer v0133 ZFS snapshot created for vServer v0133 Filesystem </data/SLOB3> mounted on vServer v0133 /data/SLOB of vServer v0133 successfully cloned and mounted as /data/SLOB3 on vServer v0133
  • 20. 20 Oracle DB Cloning mit ZFS Automatisiertes Cloning mit VDCF (2/2) Executing on vServer v0133 (Oracle 18c Demo) on Node g0059 Executing command as oracle: /oracle/start_source SLOB Executing command as oracle: /oracle/start_clone SLOB3 Copyright (c) 1982, 2018, Oracle. All rights reserved. Connected to an idle instance. ORACLE instance started. Total System Global Area 3254772544 bytes Fixed Size 8643392 bytes Variable Size 1090519040 bytes Database Buffers 2147483648 bytes Redo Buffers 8126464 bytes Control file created. Database altered. Disconnected from Oracle Database 18c Enterprise Edition Release 18.0.0.0.0 - Production Version 18.3.0.0.0 Source DB was down 35 seconds Cloning Duration was 136 seconds
  • 21. 21 Oracle DB Cloning mit ZFS Platzbedarf Auf dem System -bash-4.4$ df -h | egrep "Filesys|SLOB" Filesystem Size Used Available Capacity Mounted on /data/SLOB 41G 23G 18G 57% /data/SLOB /data/SLOB3 41G 23G 18G 57% /data/SLOB3 Effektiv # zfs list -t all | egrep "NAME|SLOB" NAME USED AVAIL REFER MOUNTPOINT SLOB 31.2G 17.6G 31K legacy SLOB/data 31.2G 17.6G 31K legacy SLOB/data/data_SLOB 23.2G 17.6G 23.2G legacy SLOB/data/data_SLOB@20181106-170922 14.3M - 23.2G - SLOB/data/data_SLOB3 8.06G 17.6G 23.2G legacy
  • 22. 22 INMEMORY / DAX Oracle SPARC S7,M7 und M8 DAX → Oracle Data Analytics Accelerator
  • 23. 23 INMEMORY / DAX Test Setup mit SLOB SQL> show parameter inmemory_size NAME TYPE VALUE ------------------------------------ ----------- ------------------------------ inmemory_size big integer 1G SQL> ALTER TABLE USER1.CF1 INMEMORY; Table altered. SQL> select count(*) from USER1.CF1; COUNT(*) ---------- 10000
  • 24. 24 INMEMORY / DAX Resultat / 8 Reader / 1 x SPARC S7-core awr_0w_8r.20181107_165153.txt DB Name DB Id Unique Name DB Role Edition Release RAC CDB ------------ ----------- ----------- ---------------- ------- ---------- --- --- SLOB 3718155087 SLOB PRIMARY EE 18.0.0.0.0 NO NO Host Name Platform CPUs Cores Sockets Memory(GB) ---------------- -------------------------------- ---- ----- ------- ---------- v0133 Solaris[tm] OE (64-bit) 8 1 1 16.00 Snap Id Snap Time Sessions Curs/Sess --------- ------------------- -------- --------- Begin Snap: 105 07-Nov-18 16:46:32 44 1.3 End Snap: 106 07-Nov-18 16:51:51 44 1.3 Elapsed: 5.31 (mins) DB Time: 42.12 (mins) Load Profile Per Second Per Transaction Per Exec Per Call ~~~~~~~~~~~~~~~ --------------- --------------- --------- --------- DB Time(s): 7.9 126.4 0.00 8.15 DB CPU(s): 7.9 125.4 0.00 8.09 Background CPU(s): 0.0 0.5 0.00 0.00 Redo size (bytes): 8,690.5 138,454.2 Logical read (blocks): 125,562,125.4 2,000,411,835.5 Block changes: 42.8 681.1 Physical read (blocks): 0.6 10.1 Physical write (blocks): 3.2 51.2 Read IO requests: 0.3 5.2 Write IO requests: 1.4 22.8 Read IO (MB): 0.0 0.1 Write IO (MB): 0.0 0.4 IM scan rows: 125,536,275.3 2,000,000,000.0 Session Logical Read IM: 125,536,275.3 2,000,000,000.0 User calls: 1.0 15.5 -bash-4.4$ grep offload awr_0w_8r.20181107_165153.txt Statistic Total per Second per Trans IM simd compare HW offload calls 4,000,000 12,553.6 200,000.0 IM simd decode unpack HW offload 4,000,000 12,553.6 200,000.0
  • 25. 25 INMEMORY / DAX Spannend, dass die 1 core LDOM alle 4 DAX Units des SPARC S7 Socket verwenden kann Host Name Platform CPUs Cores Sockets Memory(GB) ---------------- -------------------------------- ---- ----- ------- ---------- v0133 Solaris[tm] OE (64-bit) 8 1 1 16.00 -bash-4.4$ daxstat 10 DAX commands fallbacks input output %busy 4 63809 0 106.1M 5.4M 0 5 63810 0 106.1M 5.5M 0 6 63810 0 106.1M 5.4M 0 7 63803 0 106.1M 5.5M 0
  • 27. 27 SPARC M8 vs Intel Price/Performance Quelle: Twitter / @Phil_Dunn1
  • 28. 28 Links Solaris 11.4 Download https://www.oracle.com/technetwork/server-storage/solaris11/downloads/index.html zfs_msviz: A Tool to Visualise ZFS Metaslab allocations MOS Doc ID 1624945.1 Hard Partitioning with LDoms https://www.oracle.com/technetwork/server-storage/vm/ovm-sparc-hard-partitioning-1403135.pdf Hard Partitioning with Oracle Solaris Zones https://www.oracle.com/technetwork/server-storage/solaris11/technologies/os-zones-hard-partitioning-2347187.pdf JomaSoft VDCF - Virtual Datacenter Cloud Framework https://www.jomasoft.ch/vdcf/
  • 29. 29 Marcel Hofstetter hofstetter@jomasoft.ch https://jomasoftmarcel.blogspot.ch CEO / Enterprise Consultant JomaSoft GmbH Oracle ACE „Solaris“ Fragen? Oracle DB erfolgreich betreiben auf SPARC/LDoms/Solaris/ZFS https://twitter.com/marcel_jomasoft https://jomasoftmarcel.blogspot.ch https://www.linkedin.com/in/marcelhofstetter
  • 30. 30 Weitere interessante Vorträge an der #DOAG2018 Di, 20.11. 16:00 Raum Prag „Praktische Erfahrungen mit SPARC S7-2 Server“ Marcel Hofstetter Mi, 21.11. 10:00 Raum Prag „EU-DSGVO und Infrastruktur – ein Fazit nach 6 Monaten“ Jan Brosowski & Ralf Zenses Do, 22.11. 09:00 Raum Hongkong „Live Long And Prosper. Solaris 11.4 Vorteile in der Praxis“ Thomas Nau Do, 22.11. 10:00 Raum Hongkong „Oracle Solaris 11.4 and Beyond“ Joost Pronk& Jan Brosowski Do, 22.11. 12:00 Raum Hongkong „System Monitoring mit Solaris 11.4 DTrace und Analytics“ Thomas Nau Do, 22.11. 13:00 Raum Hongkong „SAP und Solaris 11.4 Erste Erfahrungen“ Andris Perkons & Jan Brosowski Do, 22.11. 14:00 Raum Hongkong „Was bringt Solaris 11.4“ Marcel Hofstetter