hadr installation in a nutshell - part ii

Upload: marco-james-ponce

Post on 06-Jul-2018

224 views

Category:

Documents


0 download

TRANSCRIPT

  • 8/18/2019 HADR Installation in a Nutshell - Part II

    1/15

    HADR Installation in a Nutshell

    Part IIJoachim PfefferleOctober 2015 Internal

  • 8/18/2019 HADR Installation in a Nutshell - Part II

    2/15

    © 2015 SAP SE or an SAP affiliate company. All rights reserved. 2Public

    General Information

    This document describes how to install a disaster recovery solution in two

    data centers with an SAP system in each data center.

    This setup can only be used if a disaster recovery solution is desired, that is,

    the SAP system in the primary data center should not connect to the ASE

    database that is running in the standby data center after a failover has been

    initiated.

    Therefore, a seamless failover where the SAP application would automatically

    reconnect to the failover database is not possible and the following

    environment parameter cannot be set as described in SAP Note 1891560:

    dbs_syb_ha = 1dbs_syb_server = :

    dbs_syb_por t =: 

    http://service.sap.com/sap/support/notes/1891560http://service.sap.com/sap/support/notes/1891560

  • 8/18/2019 HADR Installation in a Nutshell - Part II

    3/15

    © 2015 SAP SE or an SAP affiliate company. All rights reserved. 3Public

    General Information

    Steps for a planned failover:

    Shut down the SAP system in the primary data center.

    Initiate a database failover using saphostctr l or the DR_agent.

    Start up the SAP system in the standby data center.

    Steps for an unplanned failover (ASE crashed in the primary data center and

    cannot be restarted):

    Shut down the SAP System in the primary data center.

    Initiate an unplanned database failover using saphostctr l or DR_agent.

    Start up the SAP system in the standby data center.

  • 8/18/2019 HADR Installation in a Nutshell - Part II

    4/15

    © 2015 SAP SE or an SAP affiliate company. All rights reserved. 4Public

    General Installation Information

    Follow the installation steps outlined in the general SAP Installation Guides

    for SAP ABAP and/or JAVA. The installation guides are available on the SAP

    Service Marketplace.

    The disaster recovery setup with SAP Replication Server and SAP ASE is fully

    integrated in SAP’s installation tool SAPinst. The installation tool SAPinst will

    install the replication software and create all required logins.

    A manual setup of the SAP Replication Server or RMA Agent is not supported.

    Any manual work will probably cause the SAPinst to fail in one of the setup

    steps or you will see unexpected problems later on during productive use of

    the system.

    The following description is based on SWPM 1.0 SP 9.

  • 8/18/2019 HADR Installation in a Nutshell - Part II

    5/15

    © 2015 SAP SE or an SAP affiliate company. All rights reserved. 5Public

    General Installation Information

    Start SAPinst on the respective host by selecting the correct action for each

    installation step:

    Standby System - ASCS Instance

    Standby System – Database Instance

    Standby System – Primary Application Server 

    Replication Server on the Primary Host

    Replication Server on the Standby Host

  • 8/18/2019 HADR Installation in a Nutshell - Part II

    6/15

    © 2015 SAP SE or an SAP affiliate company. All rights reserved. 6Public

    Replication Topology – Directory StructureSetup: co-located SAP PAS on a separate server in both data centers

     /sybase

     /

     /ASE-16_0

     /sapdata_ n

     /_REP

     /REP-15_5

     /RMA-15_5

     /SCC-3_2

     /sapmnt

     /

    ASE2

    DR Agent

    RS2

    StandbyHost 2 /sybase

     /

     /ASE-16_0

     /sapdata _n

     /_REP

     /REP-15_5

     /RMA-15_5

     /SCC-3_2

     /sapmnt

     /

    ASE1

    DR Agent

    RS1

    Active Host 1

     /sapmn t  

     / 

     /exe Global profile

    Host 3

    SAP-PAS

     /sapmn t  

     / 

     /exe Global profile

    Host 4

    SAP-PAS

    Standby SAP System

    Must be down during

    normal operation

    M o un t  f  r  om  S AP P A S     M

      o  u  n   t   f  r  o  m    S

       A   P   P   A

       S

    Primary SAP System

    Must be up during

    normal operation

    Primary Data Center  Standby Data Center 

  • 8/18/2019 HADR Installation in a Nutshell - Part II

    7/15© 2015 SAP SE or an SAP affiliate company. All rights reserved. 7Public

    Installation Steps for a co-located ASE / SRS installation

    SAP PAS installed in both data centers on different hosts

    HADR Installation StepsStandby System - ASCS Instance

    Prerequisite

    SAP System mount folder (/sapmnt/) of host 4 is mounted on host 2

    SAP ASCS Instance and SAP Application Server are fully installed on host 3

    Primary ASE is fully installed as a distributed database instance on host 1

    Install a second NW system on host 2 and host 4, as described in the Installation

    Guide:

    Host 4 

    SAP Netweaver 7.4 Suppo rt Release 2 -> SAP ASE -> SAP Systems -> Applic at ion Server ABAP

    -> Distr ibuted System -> ASCS Instance 

    Select Custom mode for the installation

    must be the same as on the primary system

    UID for user adm and sapadm must be the same as on the primary system.

    Group ID for sapsys must be the same as on the primary system

    Provide the virtual host name if using virtual names

  • 8/18/2019 HADR Installation in a Nutshell - Part II

    8/15© 2015 SAP SE or an SAP affiliate company. All rights reserved. 8Public

    Installation Steps for a co-located ASE / SRS Installation

    SAP PAS installed in both data centers on different hosts

    HADR Installation StepsStandby System – Database Instance

    Install a second NW system on host 2 and host 4, as described

    in the Installation Guide:

    Host 2 

    SAP Netweaver 7.4 Supp ort Release 2 -> SAP ASE -> SAP Systems -> App l icat ion Server ABAP-> Distr ibuted System -> Database Instanc e 

    Select Custom mode for the installation

    Checkmark Prof i les Avai lable under sapmnt//prof i les (must be mounted from host 4)

    UID for user adm , sapadm and syb must be the same as on the primary system.

    Group ID for sapsys must be the same as on the primary system

    Database devices must have the same size as on the primary database, otherwise materialization will fail

    Provide the virtual host name if using virtual names. The database ports can be the same as on the primary

    database

  • 8/18/2019 HADR Installation in a Nutshell - Part II

    9/15© 2015 SAP SE or an SAP affiliate company. All rights reserved. 9Public

    Installation Steps for a co-located ASE / SRS Installation

    SAP PAS installed in both data centers on different hosts

    HADR Installation StepsStandby System – Primary Application Server

    Install a second SAP NetWeaver system on host 2 and host 4, as

    described in the Installation Guide:

    Host 4 

    SAP Netweaver 7.4 Supp ort Release 2 -> SAP ASE -> SAP Systems -> App l icat ion Server ABAP-> Distr ibu ted System -> Primary App l icat ion Server Instanc e 

    Select Custom mode for the installation

    Provide the virtual hostname if using virtual names.

    Aft er the instal lat ion has finished, stop the SAP system on ho st 4.

    This SAP system should only be started after a database failover from the primary site to thestandby site.

    Check with DR_admin command sap_s tatus pa th that the standby site has the status

    Primary:Act ive 

  • 8/18/2019 HADR Installation in a Nutshell - Part II

    10/15© 2015 SAP SE or an SAP affiliate company. All rights reserved. 10Public

    Installation Steps for a co-located ASE / SRS Installation

    SAP PAS installed in both data centers on different hosts

    HADR Installation Steps for setting upReplication Server on the Primary Host

    Install the Replication Software on host 1, as described

    in the Installation Guide:

    Host 1 

    SAP Netweaver 7.4 Supp ort Release 2 -> SAP ASE ->Database Repl icat ion -> Setup of Repl ication Env ironment 

    Select Custom mode for the installation

    Select Ins ta ll t he rep l icat ion server so ftware as installation option

  • 8/18/2019 HADR Installation in a Nutshell - Part II

    11/15

  • 8/18/2019 HADR Installation in a Nutshell - Part II

    12/15© 2015 SAP SE or an SAP affiliate company. All rights reserved. 12Public

    Installation Steps for a co-located ASE / SRS Installation

    SAP PAS installed in both data centers on different hosts

    HADR Installation Steps for setting upReplication Server on the Standby Host

    Install the Replication Software on host 2, as described

    in the Installation Guide:

    Host 2 

    SAP Netweaver 7.4 Supp ort Release 2 -> SAP ASE ->Database Repl icat ion -> Setup of Repl ication Server Env ironm ent 

    Select Custom mode for the installation

    Select the following installation options:

    Install the repl icat ion server softw are

    Configu re the repl icat ion sys tem 

    Material ize the secondary database 

  • 8/18/2019 HADR Installation in a Nutshell - Part II

    13/15© 2015 SAP SE or an SAP affiliate company. All rights reserved. 13Public

    Installation Steps for a co-located ASE / SRS Installation

    SAP PAS installed in both data centers on different hosts

    HADR Installation Steps for setting upReplication Server on the Standby Host

    Host 2 

    1. Provide server information using virtual names when asked for:

    2. Provide amount of memory and CPUs the SRS should be conf igured wi th.

  • 8/18/2019 HADR Installation in a Nutshell - Part II

    14/15© 2015 SAP SE or an SAP affiliate company. All rights reserved. 14Public

    Installation Steps for a co-located ASE / SRS Installation

    SAP PAS installed in both data centers on different hosts

    HADR Installation Steps for setting upReplication Server on the Standby Host

    Host 2 

    3. Provide site information.

    4. Choose Material izat ion m ethod.

  • 8/18/2019 HADR Installation in a Nutshell - Part II

    15/15© 2015 SAP SE or an SAP affiliate company. All rights reserved.

     © 2015 SAP SE or an SAP affiliate company.

    All rights reserved.

    No part of this publication may be reproduced or transmitted in any form or for any purpose without the express permission of SAP SE or anSAP affiliate company.

    SAP and other SAP products and services mentioned herein as well as their respective logos are trademarks or registered trademarks of SAP SE

    (or an SAP affiliate company) in Germany and other countries. Please see http://global12.sap.com/corporate-en/legal/copyright/index.epx for additional

    trademark information and notices.

    Some software products marketed by SAP SE and its distributors contain proprietary software components of other software vendors.

    National product specifications may vary.

    These materials are provided by SAP SE or an SAP affiliate company for informational purposes only, without representation or warranty of any kind,and SAP SE or its affiliated companies shall not be liable for errors or omissions with respect to the materials. The only warranties for SAP SE or

    SAP affiliate company products and services are those that are set forth in the express warranty statements accompanying such products and

    services, if any. Nothing herein should be construed as constituting an additional warranty.

    In particular, SAP SE or its affiliated companies have no obligation to pursue any course of business outlined in this document or any related

    presentation, or to develop or release any functionality mentioned therein. This document, or any related presentation, and SAP SE’s or its affiliated

    companies’ strategy and possible future developments, products, and/or platform directions and functionality are all subject to change and may bechanged by SAP SE or its affiliated companies at any time for any reason without notice. The information in this document is not a commitment,

    promise, or legal obligation to deliver any material, code, or functionality. All forward-looking statements are subject to various risks and uncertaintiesthat could cause actual results to differ materially from expectations. Readers are cautioned not to place undue reliance on these forward-looking

    statements, which speak only as of their dates, and they should not be relied upon in making purchasing decisions.

    http://global12.sap.com/corporate-en/legal/copyright/index.epxhttp://global12.sap.com/corporate-en/legal/copyright/index.epxhttp://global12.sap.com/corporate-en/legal/copyright/index.epxhttp://global12.sap.com/corporate-en/legal/copyright/index.epx