Top Banner
How To Make Databases on SUSE® Linux Enterprise Server Highly Available Mike Friesenegger SUSE Sales Engineer [email protected]
31

How To Make Databases on SUSE Linux Enterprise Server ... · SUSE ® Linux Enterprise Server Highly Available ... •IBM DB2 High Availability and Disaster Recovery ... CAS1417 A

Apr 03, 2018

Download

Documents

phungdiep
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: How To Make Databases on SUSE Linux Enterprise Server ... · SUSE ® Linux Enterprise Server Highly Available ... •IBM DB2 High Availability and Disaster Recovery ... CAS1417 A

How To Make Databases on SUSE® Linux Enterprise Server Highly Available

Mike FrieseneggerSUSE Sales Engineer

[email protected]

Page 2: How To Make Databases on SUSE Linux Enterprise Server ... · SUSE ® Linux Enterprise Server Highly Available ... •IBM DB2 High Availability and Disaster Recovery ... CAS1417 A

2

Agenda

• Clarify the term "Availability"

• What is High Availability

• Minimize a Database Startup Time after a Failure

• Making an IBM DB2 Database Highly Available

• Making an Oracle Database Highly Available

• Demo

Page 3: How To Make Databases on SUSE Linux Enterprise Server ... · SUSE ® Linux Enterprise Server Highly Available ... •IBM DB2 High Availability and Disaster Recovery ... CAS1417 A

3

Questions to Ask About the Importance of a Database

• How much uptime does the business expect?‒ 24 x 7 x 365

‒ Occasional downtime acceptable

‒ Not important

• How quickly does the database need to recover from a failure?

‒ Recovery time is unacceptable

‒ Some recovery time is acceptable

‒ Not important

Page 4: How To Make Databases on SUSE Linux Enterprise Server ... · SUSE ® Linux Enterprise Server Highly Available ... •IBM DB2 High Availability and Disaster Recovery ... CAS1417 A

4

Determine the Level of “Availability”

• Maximum1 or Continuous2 Availability‒ 24 x 7 x 365

‒ Recovery time is unacceptable

• High Availability

‒ Occasional downtime acceptable

‒ Some recovery time is acceptable

• No Availability‒ Not important

1 “High Availability Overview”, http://www.oracle.com/pls/db112/portal.portal_db?selected=14&frame=2 “High Availability and Disaster Recovery Options for DB2 for Linux, UNIX, and Windows”, http://www.redbooks.ibm.com/abstracts/sg247363.html

Page 5: How To Make Databases on SUSE Linux Enterprise Server ... · SUSE ® Linux Enterprise Server Highly Available ... •IBM DB2 High Availability and Disaster Recovery ... CAS1417 A

5

The Cost of “Availability”

• Maximum or Continuous Availability‒ Additional hardware/software costs

‒ Most complex configuration

‒ Largest amount of time to plan and implement

• High Availability‒ Additional hardware/software costs

‒ Complex configuration

‒ Time required to plan and implement

• No Availability

‒ Normal cost of running a single instance database

Page 6: How To Make Databases on SUSE Linux Enterprise Server ... · SUSE ® Linux Enterprise Server Highly Available ... •IBM DB2 High Availability and Disaster Recovery ... CAS1417 A

6

The Products That Assist With “Availability”

• Maximum or Continuous Availability‒ Oracle Real Application Cluster (RAC)

‒ IBM DB2 pureScale®

• High Availability‒ An OS based HA Clustering solution

‒ IBM PowerHA for AIX

‒ Microsoft Cluster Server for Windows

‒ Veritas Cluster Server

‒ SUSE Linux Enterprise High Availability Extension

‒ Optional components

‒ Database replication

‒ Fast Failover capability

Page 7: How To Make Databases on SUSE Linux Enterprise Server ... · SUSE ® Linux Enterprise Server Highly Available ... •IBM DB2 High Availability and Disaster Recovery ... CAS1417 A

7

A Note About the“Availability” Products

• Maximum or Continuous Availability‒ Availability is only one aspect of these products

‒ Flexibility to scale processing capacity is the biggest goal of these products

‒ Automatically load balance application connections as a benefit of scaling

‒ May address disaster recovery

• High Availability‒ Primary focus on increasing availability

‒ May address disaster recovery

Page 8: How To Make Databases on SUSE Linux Enterprise Server ... · SUSE ® Linux Enterprise Server Highly Available ... •IBM DB2 High Availability and Disaster Recovery ... CAS1417 A

8

Clarify the Term “Availability”

• Depends on your business requirements‒ Maybe you do not need any availability

• If you do‒ Maximum or Continuous Availability provides the most options

and features with the most complexity and cost

‒ High Availability may be all you need!

• The remainder of this session will focus on providing High Availability

‒ Focusing on Oracle and DB2 databases

‒ Using the SUSE Linux Enterprise High Availability Extension

Page 9: How To Make Databases on SUSE Linux Enterprise Server ... · SUSE ® Linux Enterprise Server Highly Available ... •IBM DB2 High Availability and Disaster Recovery ... CAS1417 A

9

FeaturesSUSE® Linux Enterprise High Availability Extension

• Service availability 24/7‒ Policy driven clustering

• Shared and Scaled data-access‒ Cluster file system

‒ Clustered Samba

• Scale Network Services‒ IP load-balancing

• Virtualization Agnostic‒ Platform independent

setup

• Disaster tolerance‒ Data replication via IP

‒ Node recovery

• User friendly tools‒ Graphical user interface

‒ Unified command line

• Free Resource Agents

• Geo Clustering‒ Cluster across unlimited

distance

Page 10: How To Make Databases on SUSE Linux Enterprise Server ... · SUSE ® Linux Enterprise Server Highly Available ... •IBM DB2 High Availability and Disaster Recovery ... CAS1417 A

What is High Availability?

Page 11: How To Make Databases on SUSE Linux Enterprise Server ... · SUSE ® Linux Enterprise Server Highly Available ... •IBM DB2 High Availability and Disaster Recovery ... CAS1417 A

11

A Simple HA Cluster

Heartbeat

Node 1 Node 3

SAN

MASTERNode 2

Page 12: How To Make Databases on SUSE Linux Enterprise Server ... · SUSE ® Linux Enterprise Server Highly Available ... •IBM DB2 High Availability and Disaster Recovery ... CAS1417 A

12

An Active/Passive Database Cluster

Node 1 Node 3

MASTERNode 2

Heartbeat

SAN

Page 13: How To Make Databases on SUSE Linux Enterprise Server ... · SUSE ® Linux Enterprise Server Highly Available ... •IBM DB2 High Availability and Disaster Recovery ... CAS1417 A

13

Migrating a Databaseto a New Node

Node 1 Node 3

MASTERNode 2

Heartbeat

SAN

Page 14: How To Make Databases on SUSE Linux Enterprise Server ... · SUSE ® Linux Enterprise Server Highly Available ... •IBM DB2 High Availability and Disaster Recovery ... CAS1417 A

14

Migrated Databaseon a New Node

Node 1 Node 3

MASTERNode 2

Heartbeat

SAN

Page 15: How To Make Databases on SUSE Linux Enterprise Server ... · SUSE ® Linux Enterprise Server Highly Available ... •IBM DB2 High Availability and Disaster Recovery ... CAS1417 A

15

Node Failure in the Cluster

Node 1 Node 3

MASTERNode 2

Heartbeat

SAN

Page 16: How To Make Databases on SUSE Linux Enterprise Server ... · SUSE ® Linux Enterprise Server Highly Available ... •IBM DB2 High Availability and Disaster Recovery ... CAS1417 A

16

Kick the Failed NodeOut of the Cluster

Node 1 Node 3

MASTERNode 2

Heartbeat

SAN

Page 17: How To Make Databases on SUSE Linux Enterprise Server ... · SUSE ® Linux Enterprise Server Highly Available ... •IBM DB2 High Availability and Disaster Recovery ... CAS1417 A

17

Database AutomaticallyRestarted On Another Node

Node 1 Node 3

MASTERNode 2

Heartbeat

SAN

Page 18: How To Make Databases on SUSE Linux Enterprise Server ... · SUSE ® Linux Enterprise Server Highly Available ... •IBM DB2 High Availability and Disaster Recovery ... CAS1417 A

Minimize Startup Time of a Database

Page 19: How To Make Databases on SUSE Linux Enterprise Server ... · SUSE ® Linux Enterprise Server Highly Available ... •IBM DB2 High Availability and Disaster Recovery ... CAS1417 A

19

Migration and Failover Can Be Time Consuming

Steps in migration‒ Clean database shutdown

‒ Release shared storage from current node

‒ Attach shared storage to new node

‒ Start database and listener

Steps for failover‒ Detection of failed node

‒ Kick the failed node out of cluster

‒ Issue node eviction

‒ Wait for node eviction

‒ Guarantee that node is kicked out

‒ Attach shared storage to new node

‒ Start database and listener

‒ Verify no database corruption

Page 20: How To Make Databases on SUSE Linux Enterprise Server ... · SUSE ® Linux Enterprise Server Highly Available ... •IBM DB2 High Availability and Disaster Recovery ... CAS1417 A

20

Node 1 Node 3

MASTERNode 2

Heartbeat

SAN

Replication to Standby DatabaseVia Log Shipping

Page 21: How To Make Databases on SUSE Linux Enterprise Server ... · SUSE ® Linux Enterprise Server Highly Available ... •IBM DB2 High Availability and Disaster Recovery ... CAS1417 A

21

Node Failure in the Cluster

Node 1 Node 3

MASTERNode 2

Heartbeat

SAN

Page 22: How To Make Databases on SUSE Linux Enterprise Server ... · SUSE ® Linux Enterprise Server Highly Available ... •IBM DB2 High Availability and Disaster Recovery ... CAS1417 A

22

Kick the Failed NodeOut of the Cluster

Node 1 Node 3

MASTERNode 2

Heartbeat

SAN

Page 23: How To Make Databases on SUSE Linux Enterprise Server ... · SUSE ® Linux Enterprise Server Highly Available ... •IBM DB2 High Availability and Disaster Recovery ... CAS1417 A

23

Standby Database Automatically Started on Another Node

Node 1 Node 3

MASTERNode 2

Heartbeat

SAN

Page 24: How To Make Databases on SUSE Linux Enterprise Server ... · SUSE ® Linux Enterprise Server Highly Available ... •IBM DB2 High Availability and Disaster Recovery ... CAS1417 A

Making an IBM DatabaseHighly Available

Page 25: How To Make Databases on SUSE Linux Enterprise Server ... · SUSE ® Linux Enterprise Server Highly Available ... •IBM DB2 High Availability and Disaster Recovery ... CAS1417 A

25

Components in a Highly AvailableIBM DB2 Database

• IBM DB2 10.1 for Linux

• IBM DB2 High Availability and Disaster Recovery (HADR)‒ Provides log shipping feature

‒ Recommended to use a third-party clustering solution

• SUSE Linux Enterprise High Availability Extension 11 SP3‒ Manages start/stop/failover of resources

‒ Shared storage

‒ Service IP Address

‒ IBM DB2 Database and HADR

‒ Provides node monitoring

‒ IP address failover

Page 26: How To Make Databases on SUSE Linux Enterprise Server ... · SUSE ® Linux Enterprise Server Highly Available ... •IBM DB2 High Availability and Disaster Recovery ... CAS1417 A

Making an Oracle DatabaseHighly Available

Page 27: How To Make Databases on SUSE Linux Enterprise Server ... · SUSE ® Linux Enterprise Server Highly Available ... •IBM DB2 High Availability and Disaster Recovery ... CAS1417 A

27

Components in a Highly AvailableOracle Database

• Oracle Enterprise 11gR2 for Linux

• Oracle Data Guard‒ Provides log shipping feature

‒ Oracle recommends using Oracle Clusterware

‒ Other third-party HA clustering solutions will work

• SUSE Linux Enterprise High Availability Extension 11 SP3‒ Manages start/stop/failover of resources

‒ Shared storage

‒ Service IP Address

‒ Oracle Database and Data Guard

‒ Provides node monitoring

‒ IP address failover

Page 28: How To Make Databases on SUSE Linux Enterprise Server ... · SUSE ® Linux Enterprise Server Highly Available ... •IBM DB2 High Availability and Disaster Recovery ... CAS1417 A

Demo

Page 29: How To Make Databases on SUSE Linux Enterprise Server ... · SUSE ® Linux Enterprise Server Highly Available ... •IBM DB2 High Availability and Disaster Recovery ... CAS1417 A

Thank you.

29

More About High Availability with SUSE Linux Enterprise

CAS1417 A Xen cluster success story using the SLES HA Extension

CAS1589 A carrier grade cloud phone system based on SUSE Linux Enterprise Server

TT1395 How to Build an HA environment with Linux on IBM System z

TT1422 Linux Clusters Made Easy with SLES HA Extension

Page 30: How To Make Databases on SUSE Linux Enterprise Server ... · SUSE ® Linux Enterprise Server Highly Available ... •IBM DB2 High Availability and Disaster Recovery ... CAS1417 A

Corporate HeadquartersMaxfeldstrasse 590409 NurembergGermany

+49 911 740 53 0 (Worldwide)www.suse.com

Join us on:www.opensuse.org

30

Page 31: How To Make Databases on SUSE Linux Enterprise Server ... · SUSE ® Linux Enterprise Server Highly Available ... •IBM DB2 High Availability and Disaster Recovery ... CAS1417 A

Unpublished Work of SUSE. All Rights Reserved.This work is an unpublished work and contains confidential, proprietary and trade secret information of SUSE. Access to this work is restricted to SUSE employees who have a need to know to perform tasks within the scope of their assignments. No part of this work may be practiced, performed, copied, distributed, revised, modified, translated, abridged, condensed, expanded, collected, or adapted without the prior written consent of SUSE. Any use or exploitation of this work without authorization could subject the perpetrator to criminal and civil liability.

General DisclaimerThis document is not to be construed as a promise by any participating company to develop, deliver, or market a product. It is not a commitment to deliver any material, code, or functionality, and should not be relied upon in making purchasing decisions. SUSE makes no representations or warranties with respect to the contents of this document, and specifically disclaims any express or implied warranties of merchantability or fitness for any particular purpose. The development, release, and timing of features or functionality described for SUSE products remains at the sole discretion of SUSE. Further, SUSE reserves the right to revise this document and to make changes to its content, at any time, without obligation to notify any person or entity of such revisions or changes. All SUSE marks referenced in this presentation are trademarks or registered trademarks of Novell, Inc. in the United States and other countries. All third-party trademarks are the property of their respective owners.