Building Active/Passive Clusters with Oracle Fusion Middleware 11g



Similar documents
OBIEE 11g Scaleout & Clustering

Robert Honeyman Honeyman IT Consulting.

WebLogic on Oracle Database Appliance: Combining High Availability and Simplicity

Ultimate Guide to Oracle Storage

Deployment patterns for Fusion Middleware. a best practice session by Simon Haslam & Jacco H. Landlust

Learn Oracle WebLogic Server 12c Administration For Middleware Administrators

Automated Deployment of Oracle RAC Using Enterprise Manager Provisioning Pack

High Availability Infrastructure for Cloud Computing

Oracle 11g: RAC and Grid Infrastructure Administration Accelerated R2

Cisco Active Network Abstraction Gateway High Availability Solution

Veriton. Getting the Best out of Hardware Load Balancers in an Oracle Environment. What is a Load Balancer? Agenda. What s out there?

Oracle Cloud Platform

High Availability Infrastructure of Database Cloud: Architecture, Best Practices. Kai Yu Oracle Solutions Engineering, Dell Inc.

High Availability with Postgres Plus Advanced Server. An EnterpriseDB White Paper

ORACLE DATABASE HIGH AVAILABILITY STRATEGY, ARCHITECTURE AND SOLUTIONS

Maximum Availability Architecture

High Availability Implementation for JD Edwards EnterpriseOne

Oracle Application Server

Comparing TCO for Mission Critical Linux and NonStop

Architecting OSB for High Availability and Whole Server Migration Final Draft. By Jack Desai, Oracle A-Team. Published: October 2009.

Maximum Availability Architecture

Virtualized Oracle 11g/R2 RAC Database on Oracle VM: Methods/Tips Kai Yu Oracle Solutions Engineering Dell Inc

High Availability Databases based on Oracle 10g RAC on Linux

Implementing a Weblogic Architecture with High Availability

Qualogy M. Schildmeijer. Whitepaper Oracle Exalogic FMW Optimization

Building Oracle Grid with Oracle VM on Blade Servers and iscsi Storage. Kai Yu Dell Oracle Solutions Engineering

Parallels Virtuozzo Containers 4.7 for Linux

An Oracle White Paper June Enterprise Manager Cloud Control 12c Disaster Recovery with Storage Replication

Rob Zoeteweij CUSTOMER CASE CONFIGURATION MANAGEMENT PROVISIONING & AUTOMATED PATCHING

Top 10 Things You Always Wanted to Know About Automatic Storage Management But Were Afraid to Ask

An Oracle White Paper May, Deploying a Highly Available Enterprise Manager 12c Cloud Control

<Insert Picture Here> WebLogic High Availability Infrastructure WebLogic Server 11gR1 Labs

PVFS High Availability Clustering using Heartbeat 2.0

Basic TCP/IP networking knowledge of client/server concepts Basic Linux commands and desktop navigation (if don't know we will cover it )

Oracle Cloud Storage and File system

Installation Guide. Step-by-Step Guide for clustering Hyper-V virtual machines with Sanbolic s Kayo FS. Table of Contents

EMC MIGRATION OF AN ORACLE DATA WAREHOUSE

Oracle WebLogic Foundation of Oracle Fusion Middleware. Lawrence Manickam Toyork Systems Inc

Oracle WebLogic Server 11g: Administration Essentials

Centrata IT Management Suite 3.0

INUVIKA TECHNICAL GUIDE

An Oracle White Paper November Oracle Real Application Clusters One Node: The Always On Single-Instance Database

What s New with VMware Virtual Infrastructure

How To Manage An Orgs Server 10G (Operating System)

A SURVEY OF POPULAR CLUSTERING TECHNOLOGIES

Oracle Exam 1z0-102 Oracle Weblogic Server 11g: System Administration I Version: 9.0 [ Total Questions: 111 ]

Active-Active and High Availability

Storage Virtualization from clusters to grid

About the Author About the Technical Contributors About the Technical Reviewers Acknowledgments. How to Use This Book

CHAPTER 2 BACKGROUND AND OBJECTIVE OF PRESENT WORK

Oracle Database 11g: RAC Administration Release 2

Oracle EXAM - 1Z Oracle Weblogic Server 11g: System Administration I. Buy Full Product.

Maximum Availability Architecture

Automating Management for Weblogic Server on JRockit-VE. Marius Sandu-Popa

Agenda. Enterprise Application Performance Factors. Current form of Enterprise Applications. Factors to Application Performance.

WebLogic Server Administration

OVERVIEW. CEP Cluster Server is Ideal For: First-time users who want to make applications highly available

Integrated Application and Data Protection. NEC ExpressCluster White Paper

SAN TECHNICAL - DETAILS/ SPECIFICATIONS

<Insert Picture Here> Oracle VM and Cloud Computing

Scalable NAS for Oracle: Gateway to the (NFS) future


Building your Server for High Availability and Disaster Recovery. Witt Mathot Danny Krouk

Oracle Failover Database Cluster with Grid Infrastructure 12c Release 1

Five Reasons to Upgrade to WebLogic Server 11g Strategies and Best Practices for Oracle WebLogic Server and Oracle Application Server Customers

Robert Honeyman

DAS to SAN Migration Using a Storage Concentrator

Veritas Storage Foundation High Availability for Windows by Symantec

VMware vsphere 5.1 Advanced Administration

Eliminate SQL Server Downtime Even for maintenance

Tips for Building Oracle Fusion Middleware on an Oracle Exalogic Elastic Cloud By Michel Schildmeijer, 30 September 2014

High Availability of the Polarion Server

Oracle Fusion Middleware

Contingency Planning and Disaster Recovery

PoINT Jukebox Manager Deployment in a Windows Cluster Configuration

Oracle Fusion Middleware 11gR2: Forms, and Reports ( ) Certification with SUSE Linux Enterprise Server 11 SP2 (GM) x86_64

Ultra-Scalable Storage Provides Low Cost Virtualization Solutions

Oracle Networking and High Availability Options (with Linux on System z) & Red Hat/SUSE Oracle Update

Consolidate Your Middleware to the #1 Application Server: Oracle WebLogic Suite Chuk Munn Lee Oracle

VERITAS NetBackup 6.0 High Availability

A Beginners Guide to Fusion Middleware

HIGH AVAILABILITY STRATEGIES

Architectures Haute-Dispo Joffrey MICHAÏE Consultant MySQL

Advanced Oracle DBA Course Details

<Insert Picture Here> Enabling Cloud Deployments with Oracle Virtualization

Windows Host Utilities Installation and Setup Guide

INTRODUCTION TO CLOUD MANAGEMENT

<Insert Picture Here> Infrastructure as a Service (IaaS) Cloud Computing for Enterprises

Configuring and Managing a Private Cloud with Enterprise Manager 12c

Evolution from the Traditional Data Center to Exalogic: An Operational Perspective

Top Weblogic Tasks You can Automate Now

HDS UCP for Oracle key differentiators and why it should be considered. Computacenter insight following intensive benchmarking test

KonyOne Server Installer - Linux Release Notes

Oracle Exam 1z0-599 Oracle WebLogic Server 12c Essentials Version: 6.4 [ Total Questions: 91 ]

Symantec NetBackup Clustered Master Server Administrator's Guide

Transcription:

Building Active/Passive Clusters with Oracle Fusion Middleware 11g Simon Haslam Veriton Limited 1 (2.1h)

Simon Haslam / Veriton Specialised consultant & Oracle Partner, established for 14 years Demanding web & call-centre applications Architecture & development strategy; health-checks; disaster recovery; tuning Oracle Fusion Middleware (clusters, J(2)EE, ADF, SSO, OID, Reports, etc) ADF Application (esp. strategy & admin) Database & related technologies (OS, load balancers, firewalls, ) 2 (2.1h)

Agenda ❶ CFC & High Availability Concepts ❷ Setting up Fusion Middleware 11g for CFC ❸ Installation Approach for ASCRS 3 (2.1h)

❶ Why Cluster? Higher Availability Active Active Active Passive Scalability Active Active Active Active 4 (2.1h)

❶ Active - Active clients load balancers Node 1 Node 2 web/app tier databases etc infrastructure tier 5 (2.1h) Note: no firewalls etc shown!

❶ Active Passive Node 1 Node 2 databases etc 6 (2.1h)

❶ Active-Passive Pros/Cons Licensing OFM is only running on one node at once no licence req. on standby if <10 days usage pa Hardware/skills: no load balancer required Provides protection from node failure Can standardise across all sorts of systems Unused standby server (test etc though) Failover time & loss of sessions Needs shared storage 7 (2.1h)

❶ Oracle s Software Investment Guide Failover In this type of recovery, nodes are arranged in a cluster and share one disk array... When the primary node fails, one of the surviving nodes in the cluster acts as the primary node. Solutions like Oracle Failsafe ( ), or third party vendor solutions (e.g. Veritas, HP Service Guard, HACMP, Linux HA - Heartbeat) are used to manage Failover environments. In this type of environment, Oracle permits licensed Oracle customers to run some Technology Programs on an unlicensed spare computer for up to a total of ten separate days in any given calendar year. Once the primary node is repaired, you must switch back to the primary node. Once the failover period has exceeded ten days, the failover node must be licensed Downtime for maintenance purposes counts towards the ten separate days limitation. 8 (2.1h) November 2009, http://www.oracle.com/us/corporate/pricing/sig-070616.pdf

❶ A/P plus P/A Better use of hardware, but maybe not licences. Various permutations but often end up going A/A Both nodes need to be licenced Node 1 Web-tier (A) AS (P) Node 2 Web-tier (P) AS (A) databases etc 9 (2.1h)

❶ Why use Cluster Software? A cluster needs: communication between nodes to know what nodes are available coordinated start-up and shutdown There are several popular commercial and open-source cluster managers. You could write your own or just manually do it!? 10 (2.1h)

❶ Cluster Software Requirements VIP Management Filesystem Management Application Startup/Shutdown AS App Server depends on VIP & Filesystem VIP FS 11 (2.1h)

❶ What is a VIP? a floating IP address which can exist on any node in cluster only active on one node at once is only moved in case of failure/shutdown of the node it s currently running on each Virtual IP (VIP) has a corresponding Virtual Hostname (Vhost), e.g. Node 1: pwls1.lon.example.com Node 2: pwls2.lon.example.com Virtual host: store.example.com public view 12 (2.1h)

❶ Architecture & Processing public network (ethernet) VIP Node 1 Node 2 AS Interconnect (typ. ethernet) VIP AS? Cluster Software Cluster Software FS Fibre, Ethernet, Infiniband FS Oracle Software & Configuration Shared storage (e.g. SAN or NAS) 13 (2.1h)

❶ By the way There are other ways to do active/passive failover: (WLS itself) Whole Server Migration Virtual Machines 14 (2.1h)

❷ Overall Process Install cluster management software Configure cluster resources for: virtual hostname and virtual IP address filesystem for Oracle Home Install Oracle Fusion Middleware 10g ias: specify the Vhost/VIP 11g OFM: reconfiguration Set up cluster resource for running OFM 15 (2.1h)

❷ 3 rd Party Clusterware Install & set-up (typically done by sys. admin) 16 (2.1h)

❷ History: 10g App Server ias 10.1.2 Set in installer HA screen or ORACLE_HOMENAME env variable OUI_HOSTNAME command line option OAS 10.13 VIRTUAL_HOST_NAME env variable OUI_HOSTNAME command line option 17 (2.1h)

❷ 11gR1 OFM 11gR1 High Availability Guide says to create a CFC: Transform the Administration Server or Enterprise Manager instance Transform all managed servers in the deployment Transform the Oracle instances (non-java EE deployments) 18 (2.1h)

❷ Why do I have to Transform the Admin Server Singleton service runs in only one place at once Rest of env is usually A-A and often have dedicated management server including AS 19 (2.1h)

12.2.2.3 Transforming the Administration ❷ Server for Cold Failover Cluster Create a Machine in the first domain called <Vhost> Associate admin (and any managed servers) with the new Machine Change the Listen Address of the Admin Server to <Vhost> & restart it 20 (2.1h)

12.2.2.3 Transforming the Administration ❷ Server for Cold Failover Cluster (contd.) Change any existing Oracle Instances to point to admin server on <Vhost> - change the OPMN instance.properties for each Change any EM agents to refer to EM FMC running on <Vhost> (two params) & restart 21 (2.1h)

❷ 12.2.2.4 Transforming Oracle WebLogic Managed Servers If managed servers on CFC host then on each change Listen Address to <Vhost> & restart 22 (2.1h)

❷ 12.2.2.5 Transforming Node Manager Decide whether you want to fail over the node manager, or have one running all the time on each node If using ASCRS then NM config must be under WL_HOME will move NM must failover Change the node manager properties file to set ListenAddress to <Vhost>. Restart NM 23 (2.1h)

❷ 12.2.2.6 Transforming Oracle Process Management and Notification Server If OPMN already registered with Admin Server (likely if you wanted to test your installation) then update to <Vhost> topology.xml opmn.xml instance.properties 24 (2.1h)

❷ 12.2.2.7 Transforming Oracle Enterprise Manager for an Oracle Instance You probably have Oracle instances, e.g. Web-Tier, OID etc, update: emd.properties targets.xml Restart agent Change the targets.xml in the domain/sysman/state directory of the Admin Server 25 (2.1h)

❷ 12.2.2.8 Transforming Web Tier Components and Clients Change Listen to <Vhost> in httpd.conf & restart 26 (2.1h)

❷ 12.2.3 Transforming Oracle Fusion Middleware Components 27 (2.1h)

❷ Pros & Cons Tedious work for something that, at least at installation time, should be easy At least it s in main documentation You can convert to CFC at a future point transform WebLogic to CFC as soon as possible make AdminServer listen on VIP from start (e.g. during domain creation), i.e. before installing EM, Web-tier, etc transform other installs as you go along 28 (2.1h)

❷ Now you can choose your clusterware 29 (2.1h)

❸ ASCRS Wrapper around Oracle Clusterware (aka CRS) Perl/java calling WLST etc New in 11gR1 Manages resources: VIP Shared Disk Application Server/Middleware (Database & Listener ) Most suitable if you don t have 3 rd party clusterware but have RAC experience 30 (2.1h)

❸ Oracle Clusterware Key Components Network Public network Interconnect (private) Shared storage Oracle Cluster Registry (OCR) Voting Disk 31 (2.1h)

❸ Base Oracle Clusterware public network (ethernet) CRS_HOME on local disk Node 1 Node 2 Interconnect (typ. ethernet) Clusterware Clusterware CRS_HOME on local disk Fibre, Ethernet, Infiniband OCR Voting Disk Shared storage (e.g. SAN or NAS) 32 (2.1h)

❸ Install Oracle Clusterware 11gR1 Copy <ascrs> directory from OFM 11g Companion DVD into the CRS_HOME 33 (2.1h)

❸ Oracle Clusterware plus ASCRS public network (ethernet) CRS_HOME on local disk Node 1 Node 2 ASCRS Interconnect (typ. ethernet) ASCRS Clusterware Clusterware CRS_HOME on local disk Fibre, Ethernet, Infiniband Oracle Software & Configuration OCR Voting Disk Shared storage (e.g. SAN or NAS) 34 (2.1h)

❸ Example Create VIP ascrsctl create -name cluster4 -type vip \ -ipaddr cluster4-vip -netmask 255.255.255.0 -interface eth0 Prompted as root to run: /opt/grid/crs1110/crs/public/ora.cluster4.cfcvip.cre.root 35 (2.1h)

❸ Example Create Shared Disk touch /opt/oracle/.ascrssf umount /opt/oracle ascrsctl create -n cluster4 -type disk -path /opt/oracle \ -mc <your script*> start /opt/oracle /dev/sdc1 \ -umc <your script*> /opt/oracle /dev/sdc1 Prompted to run as root: /opt/grid/crs1110/crs/public/ora.cluster4.cfcdisk.cre.root * Don t just use mount / umount write a script to check usage, fsck etc and install under CRS_HOME! e.g. /opt/grid/crs1110/crs/public/veriton_cfc_orahome.sh 36 (2.1h)

❸ Example Create AS Resource ascrsctl create -n adminserver -type as \ -ch /opt/oracle/user_projects/domains/cfc \ -disk cluster4 -vip cluster4 37 (2.1h)

❸ Status & Management $ ascrsctl status egrep "cfc Name ---" Name Type Target State ----------------------------------------------------------------------------------- ora.adminserver.cfcas WebLogic Domain ONLINE ONLINE on westfield37 ora.cluster4.cfcdisk Shared Disk ONLINE ONLINE on westfield37 ora.cluster4.cfcvip Virtual IP ONLINE ONLINE on westfield37 ascrsctl start n ora.adminserver.cfcas ascrsctl stop n ora.adminserver.cfcas ascrsctl switch n ora.adminserver.cfcas 38 (2.1h)

❸ ASCRS notes Unix only Docn now says ASCRS supports Oracle Clusterware 10.2.0.4 or 11.1.0.7+ Big clusterware packaging changes in Database 11gR2 next? ASCRS is supported only on Unix platforms The ASCRS installation user account should be the same as the owner of the CRS home Decide on naming strategy along with database products with db 11.2 "grid" is becoming common practice 39 (2.1h)

Summary Cold-failover cluster provides fair resilience for unattended recovery from failures Additional costs = minimal: no extra Oracle licences/support extra server (maybe with HBA or iscsi) time/effort to install You will need shared storage (e.g. SAN/NAS) cost-sensitive projects where availability is important but load doesn t justify multiple active servers Standardised HA across broad IT environments 40 (2.1h)

References Oracle Fusion Middleware High Availability Guide 11g Release 1 (11.1.1) http://download.oracle.com/docs/cd/e12839_01/core.11 11/e10106/ap_crs.htm#CHDHGHBD 41 (2.1h)

Shameless Plug! UKOUG App Server & Middleware SIG Wed 2nd March 2011 Theme: Fusion Middleware 11g Upgrade Dual venue speakers at both plus broadcast Oracle City Office, London Fujitsu Office, Warrington 1 FREE place for most UKOUG membership packages 42 (2.1h)

Any questions? Thank you for listening! Blog: simonhaslam.co.uk 43 (2.1h)