Configure High Availability and Disaster Recovery Solutions with HP DMA Using PostgreSQL Database

Similar documents
Achieve Patch Currency for Microsoft SQL Server Clustered Environments Using HP DMA

HP D6000 Disk Enclosure Direct Connect Cabling Guide

Standardize Microsoft SQL Server Cluster Provisioning Using HP DMA

Data Replication in HP DMA

Enabling High Availability for SOA Manager

HP Data Protector A disaster recovery support for Microsoft Windows 7 and Windows Server 2008 R2

External Devices. User Guide

External Devices User Guide

Guidelines for using Internet Information Server with HP StorageWorks Storage Mirroring

HP StorageWorks. EVA Virtualization Adapter administrator guide

HP Storage Mirroring Application Manager 4.1 for Exchange white paper

External Devices User Guide

HP Integration with Incorta: Connection Guide. HP Vertica Analytic Database

HP Virtual Connect Enterprise Manager

Run Syncope in real environments

HP Service Health Reporter

External Devices User Guide

Configuring Embedded LDAP Authentication

Configuring LDAP Authentication for HPE OBR

HP 3PAR OS MU3 Patch 17

Disaster Recovery Guide for Windows 2008 and RHEL 5.x platforms with external disk support

HP Operations Orchestration Software

HP ALM Client MSI Generator

Designing high-availability solutions using HP Integrity Virtual Machines as HP Serviceguard packages

HP Data Protector A support for Microsoft Exchange Server 2010

Generating Unique System IDs (SIDs) after Disk Duplication using Altiris Deployment Solution

External Media Cards User Guide

External Media Cards. User Guide

Database and Middleware Automation. Ultimate Edition. Software Version: Troubleshooting Guide

HP Operations Orchestration Software

Management and Printing User Guide

External Media Cards User Guide

HP Operations Orchestration

HP Storage Manager User Guide. May 2005 (First Edition) Part Number

HP 3PAR OS MU1 Patch 11

System information update for system board replacement events

HP OpenView Storage Data Protector A.05.10

Configuring RAID with HP Z Turbo Drives

HP SM Service Catalog-PPM Center Project Proposal Integration Solution

ProLiant Cluster HA/F500 for Enterprise Virtual Array Introduction Software and Hardware Pre-Checks Gathering Information...

HP Point of Sale (POS) Peripherals Configuration Guide Barcode Scanner

UCMDB Zeus History. Copyright 2012 Hewlett-Packard Development Company, L.P.

HP Storage Provisioning Manager HP 3PAR StoreServ Peer Persistence

HP StorageWorks Enterprise Virtual Array 4400 to 6400/8400 upgrade assessment

Virtual Recovery Assistant user s guide

HP 3PAR Storage Replication Adapter 5.0 for VMware vcenter Site Recovery Manager

WLAN high availability

HP Mobile Remote Control (Select Models Only) User Guide

HP LeftHand P4500 and P GbE to 10GbE migration instructions

HP OpenVMS Operations Manager HTTPS Agents Version 8.6 Configuration Guide

Release Notes: ProCurve Network Immunity Manager Version 1.0, Update 3

HP 3PAR OS MU3 Patch 18 Release Notes

Register for this Exam You need an HPE Learner ID and a Pearson VUE login and password.

HP AutoPass License Server

HP Web Jetadmin 8.0 Credential Store Feature

HP ProLiant DL580 Generation 2 and HP ProLiant ML570 Generation 2 Server Hot-Add Memory. July 2003 (Second Edition) Part Number

Insight Control server provisioning How to Create an OS Build Plan for Installing Windows 2012 R2

HP IDOL Site Admin. Software Version: Installation Guide

HP Velocity User Guide for Thin Clients

Rev HP ap5000 VFD & MSR Frequently Asked Question and Troubleshooting Guide

HPE Knowledge Article

HP Intelligent Management Center v7.1

HPE IDOL Site Admin. Software Version: Installation Guide

QuickSpecs. HP Data Protector for Notebooks & Desktops software part numbers HP Data Protector for Notebooks & Desktops100 Pack

HPE Knowledge Article

HPE Security ArcSight Connectors

Achieving regulatory compliance with reports from ProCurve PCM, IDM, and NIM

Release Notes: ProCurve Mobility Manager Version 1.0, Update 1

IDE Connector Customizer Readme

The Quadro K620 is an excellent card for medium sized product development activities and media creation.

HP 3PAR StoreServ Storage VMware ESX Host Persona Migration Guide

HP Data Protector A Support for Windows Vista and Windows Server 2008 Clients Whitepaper

Drives. Document Part Number: This guide explains the computer hard drive and optical disc drive. October 2005

Hewlett Packard Enterprise. HPE OmniStack for vsphere Upgrade Guide

TouchPad and Keyboard

Replacing the Battery HP t5730 and t5735 Thin Clients

HPE Security ArcSight Connectors

HPE Operations Bridge Reporter

HPE Security ArcSight Connectors

Advanced HP Application Lifecycle Management 12.x.Software

LASERJET ENTERPRISE M4555 MFP SERIES. Quick Reference Guide

External Media Cards. Document Part Number: This guide explains how to use external media cards. May 2006

Configuring the MSA1000 for Linux or NetWare Environments

HP Operations Orchestration

Computer Setup (F10) Utility Guide HP Elite 7000 MT Series PCs

Rolling Database Update in an SAP ASE and SAP Replication Server Environment

HPE Security ArcSight Connectors

HP Data Protector Integration with Autonomy IDOL Server

HP Notebook Stands Overview. HP Adjustable Display Stand. HP Display and Notebook Stand HP Dual Hinge Notebook Stand. HP LCD Monitor Stand

WIDS Technology White Paper

HP Fortify Scanning Plugin for Xcode

HP-UX Software and Patching Management Using HP Server Automation

HPE 1/8 G2 Tape Autoloader and MSL Tape Libraries Encryption Kit User Guide

HP Database and Middleware Automation

Pointing Devices and Keyboard User Guide

HP Video Over Ethernet. User Guide

HP BLc Intel 4X QDR InfiniBand Switch Release Notes. Firmware Version

HP ArcSight Express. Software Version: AE 4.0. Technical Note: ArcSight Express Backup and Recovery

HPE StoreEver MSL6480 Tape Library CLI Utility Version 1.0 User Guide

HPE ALM Client MSI Generator

Transcription:

Technical white paper Configure High Availability and Disaster Recovery Solutions with HP DMA Using PostgreSQL Database HP Database and Middleware Automation version 10.30 Table of Contents Overview 2 HP DMA HA and DR Architecture Solution (Active-Passive) 4 How to Setup the HP DMA Server on the Passive Standby Environment 4 How to Handle Failover for an Active Standby Environment 4 HP DMA HA and DR Architecture Solution (Active-Active Tomcat and Active-Passive Database) 6 How to Setup the HP DMA Server on the Active Standby Environment 6 How to Configure Failover when the Primary Database is Lost 6 HP DMA Documentation 7 PostgreSQL Documentation 7

Overview This paper provides examples of how to configure HP DMA in a high availability and disaster recovery solution using PostgreSQL 9.3 database in active-active and active-passive setup to achieve high availability, failover, and recovery in catastrophic failures. The high availability and disaster recovery solution for HP DMA is implemented using PostgreSQL database. The streaming replication feature of the PostgreSQL database provides the capability to continuously ship and apply the Write-Ahead Logging (WAL) XLOG records to standby servers in order to keep them current. This paper includes the following solutions: HP DMA HA Standard Architecture Solution HP DMA HA and DR Architecture Solution (Active-Passive) HP DMA HA and DR Architecture Solution (Active-Active Tomcat and Active-Passive Database)

HP DMA HA Standard Architecture Solution This example is for HA architecture without DR: How to Run the Baseline Command on PostgreSQL To set up the primary active environment, use these examples to modify the HP DMA installation baseline command. How to use the baseline command is described in Install the HP DMA Server section in the HP DMA Installation Guide available at http://h20230.www2.hp.com/selfsolve/manuals. To see the full list of baseline options, see HP DMA Baseline Options. 1. Change your directory: cd /opt/hp/dma/server/tomcat/webapps/dma/web-inf 2. Run the baseline command on the primary node of PostGRESQL: sh dmabaselinedata.sh --create-tables --database-type postgres --database-username postgres -- database-password postgres --jdbc-connection-string jdbc:postgresql://<ipaddress>:5432/dma -- dma-hostname <ipaddress> The standby nodes are automatically synced as streaming replication continuously ships and applies Write-Ahead Logging (WAL) XLOG records.

HP DMA HA and DR Architecture Solution (Active-Passive) This example is for HA architecture with DR (active-passive). How to Setup the HP DMA Server on the Passive Standby Environment After you have set up your primary active environment, perform these steps in the passive standby environment (right side of the diagram) to set up the active-passive architecture: Note: Perform this after you run baseline commands to set up your primary active environment. You only need to modify the dma.xml files for the standby environment. For more information on the dma.xml file, see HP DMA Installation Guide available at http://h20230.www2.hp.com/selfsolve/manuals. 1. Copy the dma.xml file from primary node from primary environment to the standby nodes. The file is located at: /opt/hp/dma/server/tomcat/conf/catalina/localhost/dma.xml 2. On each node, edit the webserviceurl parameter and the JDBC/DMA resource in the dma.xml file to match the Standby environment, for example, as highlighted in bold: <Parameter name="com.hp.dma.core.webserviceurl" value="https://dmaserver(3/4):8443/dma"/> <Resource name="jdbc/dma" auth="container" type="javax.sql.datasource" maxactive="20" maxidle="20" maxwait="20000" username= dma" password="{aes} 80c54c58279cb66cb879d432cd33be4fc53bc95a30d510dffdb55fd121be4d44" driverclassname="postgres.jdbc.postgresqldriver"url="jdbc:postgresql:thin:@standbyvip.company.com:1522/drdmadb.servicename" factory="com.hp.dma.util.dmatomcatcontexthandler"/> How to Handle Failover for an Active Standby Environment In the event of a failover, perform the following: 1. Cancel the workflows that were running when the failure occurred by running the following script on any of the Standby HP DMA servers: /opt/hp/dma/server/tomcat/webapps/dma/web-inf/cancelworkflow.sh 2. Clean up any targets that may have had workflows running against them.

3. Change the values for the following parameters in the dma.xml file: testonborrow="true" removeabandoned="true" timebetweenevictionrunsmillis="5000" minevictableidletimemillis="5000" minidle="0" The application attempts to reconnect to the datasource after restart of the database.

HP DMA HA and DR Architecture Solution (Active-Active Tomcat and Active-Passive Database) This example is for HA architecture with DR (Active-Active Tomcat and Active-Passive database). How to Setup the HP DMA Server on the Active Standby Environment After you have set up your primary active environment, perform these steps in the active secondary environment with standby PostgreSQL to set up the Active-Active Tomcat and Active-Passive database architecture: Note: Perform this after you run baseline commands to set up your primary active environment. You only need to modify the dma.xml files for the standby environment. For more information on the dma.xml file, see HP DMA Installation Guide available at http://h20230.www2.hp.com/selfsolve/manuals. 1. Copy the dma.xml file from primary node from primary environment to the standby nodes. The file is located at: /opt/hp/dma/server/tomcat/conf/catalina/localhost/dma.xml 2. On each node, edit the webserviceurl parameter in the dma.xml file to match the standby environment: <Parameter name="com.hp.dma.core.webserviceurl" value="https://dmaserver(3/4):8443/dma" /> How to Configure Failover when the Primary Database is Lost If the primary database is lost, perform a failover operation: 1. Promote the Standby database as the Active database by triggering recovery.conf file: 2. Cancel the workflows that were running when the failure occurred by running the following script on the Standby HP DMA server: /opt/hp/dma/server/tomcat/webapps/dma/web-inf/cancelworkflow.sh 3. Change the values for the following parameters in the dma.xml file: testonborrow="true" removeabandoned="true" timebetweenevictionrunsmillis="5000"

minevictableidletimemillis="5000" minidle="0" The application attempts to reconnect to the datasource after restart of the database. Additional Resources HP DMA Documentation The HP DMA Installation Guide contains complete instructions for installing HP DMA and additional information about the baseline command and the dma.xml file. It is available on the HP Software Product Manuals website: http://h20230.www2.hp.com/selfsolve/manuals. PostgreSQL Documentation For more information about PostgreSQL database, refer to its documentation at http://www.postgresql.org/docs/.

HP DMA Baseline Options The following table gives a complete list of all the dmabaselinedata.sh options: Baseline Option Example Value Description -?,--help -c,--create-tables -cc,--create-context -context,--deployed-context-file <dma.xml> dma.xml Print this usage message. Create tables for database. Create a context file with the specified settings. Fully qualified path to the deployed context file to get database connection settings. -dbh,--database-hostname <arg> postgres.mycompany.com The database host name for the Java Database Connectivity (JDBC) connection. -dbp,--database-port <arg> 1521 The database port for the Java Database Connectivity (JDBC) connection. -dbpw,--database-password <dbpasswordvalue> dbpassword The password used to connect to the database. -dbs,--database-sid <arg> dma The database SID for the Java Database Connectivity (JDBC) connection. -dbts,--database-tablespace <arg> /u01/app/postgres/dma The base directory for the database tablespace creation. -dbtype,--database-type <arg> postgres (optional) The underlying database type. The default is postgres. -dbu,--database-username <dbusernamevalue> -dmah,--dma-hostname <dmahostnamevalue> dma.mycompany.com The username used to connect to the database. Set the fully qualified host name of the HP DMA server. If this value is not specified, the default is the server where the script is running. -e,--erase Erase existing data and add baseline data. Do not do this unless instructed to by HP Support.

To learn more about HP Database and Middleware Automation visit hp.com/go/dma Copyright 2014-2015 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice. The only warranties for HP products and services are set forth in the express warranty statements accompanying such products and services. Nothing herein should be construed as constituting an additional warranty. HP shall not be liable for technical or editorial errors or omissions contained herein. May 2015

Configure High Availability and Disaster Recovery Solutions with HP DMA Using PostgreSQL Database HP DMA HA and DR Architecture Solution (Active-Active Tomcat and Active-Passive Database) HP HP Database and Middleware Automation (10.30) Page 10 of 10