Deploying Powerha Solution with AIX Hyperswap
Total Page:16
File Type:pdf, Size:1020Kb
Front cover Deploying PowerHA Solution with AIX HyperSwap Uses in-band storage replication management with PowerHA Describes AIX and storage configuration for HyperSwap Shows Active-Active and Active-Standby clusters Octavian Lascu Yuying Feng Bing He Peter YH Lee Bao Jun Qin Theeraphong Thitayanun Marian Tomescu Xu Dong Zhang ibm.com/redbooks Redpaper International Technical Support Organization Deploying PowerHA Solution with AIX HyperSwap September 2014 REDP-4954-00 Note: Before using this information and the product it supports, read the information in “Notices” on page vii. First Edition (September 2014) This edition applies to Version 7, Release 1, Modification 2 of IBM PowerHA Enterprise Edition (product number 5765-H24). © Copyright International Business Machines Corporation 2014. All rights reserved. Note to U.S. Government Users Restricted Rights -- Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp. Contents Notices . vii Trademarks . viii Preface . ix Authors. ix Now you can become a published author, too! . .x Comments welcome. xi Stay connected to IBM Redbooks . xi Chapter 1. Introduction to PowerHA HyperSwap with the IBM DS8800. 1 1.1 Overview and short history . 2 1.2 Concepts and objectives . 3 1.2.1 Basic configuration using PowerHA with HyperSwap. 3 1.2.2 Basic workflow of PowerHA with HyperSwap . 4 1.2.3 Typical solution for PowerHA with HyperSwap. 4 1.2.4 The HyperSwap concept. 5 1.3 Terminology and considerations . 7 1.3.1 Planned/unplanned HyperSwap . 7 1.3.2 Out-of-band versus in-band . 8 1.3.3 Consistency Groups . 9 1.3.4 PowerHA cross-site cluster. 9 1.3.5 WAN considerations . 9 1.3.6 Distance considerations . 10 Chapter 2. PowerHA HyperSwap cluster planning. 11 2.1 Introduction . 12 2.2 HyperSwap architecture . 13 2.3 Prerequisites . 15 2.3.1 Hardware . 15 2.3.2 Software requirements . 15 2.4 HyperSwap for database applications. 16 2.5 Testing environment description . 17 2.6 Typical HyperSwap scenarios . 18 2.6.1 Planned HyperSwap behavior details . 19 2.6.2 Unplanned HyperSwap: Primary storage failure. 20 2.6.3 Unplanned HyperSwap: All links to primary storage fail . 21 2.6.4 Unplanned HyperSwap: Site down . 22 2.6.5 Unplanned HyperSwap: Site partition . 22 Chapter 3. PowerHA cluster with AIX HyperSwap Active-Standby for applications using a shared file system . 25 3.1 Cluster description and diagrams . 26 3.2 Installing a new configuration . 28 3.2.1 Identifying the storage. 28 3.2.2 Identifying the systems’ HBA configurations. 30 3.2.3 Zoning configuration . 31 3.2.4 Configuring the storage. 36 3.2.5 Enabling HyperSwap: Storage level . 42 3.2.6 AIX configuration. 43 © Copyright IBM Corp. 2014. All rights reserved. iii 3.2.7 PowerHA cluster configuration . 50 3.2.8 Planned tests: Storage maintenance . 64 3.2.9 Planned tests: Site maintenance . 72 3.3 Migrating PowerHA cluster to HyperSwap enabled storage . 74 3.3.1 Planning the cluster . 75 3.3.2 Identifying the nodes and sites . 75 3.3.3 Identifying and configuring the storage . 75 3.3.4 Enabling HyperSwap in AIX . 75 3.3.5 Reconfiguring the cluster for HyperSwap . 76 3.4 Two-node cluster to four-node cluster with HyperSwap . 83 Chapter 4. PowerHA HyperSwap cluster, Oracle stand-alone database, and ASM . 103 4.1 Cluster description and diagrams . 104 4.2 Storage configuration . 105 4.2.1 LUN and mapping configuration . 106 4.2.2 Zoning configuration . 109 4.2.3 AIX disks information . 110 4.3 Node configuration . 113 4.3.1 AIX disk device driver and HBA attributes . 113 4.3.2 Disk configuration . 115 4.3.3 Time synchronization . 117 4.4 Oracle installation and configuration on cluster nodes . 119 4.4.1 Environment checking and configuration . 119 4.4.2 Installing grid (Oracle Cluster Ready Services) and database software. 123 4.4.3 Create a database instance on PS5n01base . 124 4.4.4 Register the database instance on other nodes . 125 4.4.5 Change the ASM disk group to the spfile . 127 4.4.6 Test the database start-up and shutdown scripts . 128 4.5 PowerHA configuration . 130 4.5.1 Cluster topology . 130 4.5.2 Cluster resources . 133 4.5.3 Resource group configuration. 135 4.6 Test scenarios. 136 4.6.1 Node.