22.01.2015 Views

EMC Intelligent Cloning for SAP Automated Replication for IBM DB2 ...

EMC Intelligent Cloning for SAP Automated Replication for IBM DB2 ...

EMC Intelligent Cloning for SAP Automated Replication for IBM DB2 ...

SHOW MORE
SHOW LESS
  • No tags were found...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong>EMC</strong> Confidential - Internal Use Only<br />

<strong>EMC</strong> <strong>Intelligent</strong> <strong>Cloning</strong> <strong>for</strong> <strong>SAP</strong><br />

<strong>Automated</strong> <strong>Replication</strong> <strong>for</strong> <strong>IBM</strong> <strong>DB2</strong> on <strong>IBM</strong> AIX<br />

Enabled by <strong>EMC</strong> Symmetrix DMX-3, <strong>EMC</strong> CLARiiON CX3,<br />

and <strong>EMC</strong> <strong>Replication</strong> Manager<br />

Integration Guide<br />

<strong>EMC</strong> Global Solutions<br />

42 South Street<br />

Hopkinton MA 01748-9103<br />

1.508.435.1000<br />

www.<strong>EMC</strong>.com


Copyright and Trademark In<strong>for</strong>mation<br />

Copyright © 2008 <strong>EMC</strong> Corporation. All rights reserved.<br />

Published October 2008<br />

<strong>EMC</strong> believes the in<strong>for</strong>mation in this publication is accurate as of its publication date. The in<strong>for</strong>mation is subject<br />

to change without notice.<br />

THE INFORMATION IN THIS PUBLICATION IS PROVIDED “AS IS.” <strong>EMC</strong> CORPORATION MAKES NO<br />

REPRESENTATIONS OR WARRANTIES OF ANY KIND WITH RESPECT TO THE INFORMATION IN<br />

THIS PUBLICATION, AND SPECIFICALLY DISCLAIMS IMPLIED WARRANTIES OF<br />

MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.<br />

Use, copying, and distribution of any <strong>EMC</strong> software described in this publication requires an applicable software<br />

license.<br />

For the most up-to-date listing of <strong>EMC</strong> product names, see <strong>EMC</strong> Corporation Trademarks on <strong>EMC</strong>.com.<br />

All other trademarks used herein are the property of their respective owners.<br />

<strong>EMC</strong> <strong>Intelligent</strong> <strong>Cloning</strong> <strong>for</strong> <strong>SAP</strong> <strong>Automated</strong> <strong>Replication</strong> <strong>for</strong> <strong>IBM</strong> <strong>DB2</strong> on <strong>IBM</strong> AIX Enabled by <strong>EMC</strong><br />

Symmetrix DMX-3, <strong>EMC</strong> CLARiiON CX3, and <strong>EMC</strong> <strong>Replication</strong> Manager Integration Guide<br />

P/N H5564<br />

2<br />

<strong>EMC</strong> <strong>Intelligent</strong> <strong>Cloning</strong> <strong>for</strong> <strong>SAP</strong> <strong>Automated</strong> <strong>Replication</strong> <strong>for</strong> <strong>IBM</strong> <strong>DB2</strong> on <strong>IBM</strong> AIX Enabled by <strong>EMC</strong> Symmetrix<br />

DMX-3, <strong>EMC</strong> CLARiiON CX3, and <strong>EMC</strong> <strong>Replication</strong> Manager Integration Guide


<strong>EMC</strong> Confidential - Internal Use Only<br />

Contents<br />

About this Document<br />

Purpose .................................................................................................. 5<br />

Audience................................................................................................ 6<br />

Scope ..................................................................................................... 6<br />

Related documents ................................................................................ 6<br />

Chapter 1<br />

Chapter 2<br />

Solution Overview<br />

The business challenge .......................................................................... 8<br />

The technology solution ........................................................................ 8<br />

Solution components ............................................................................. 8<br />

Validated environments ......................................................................... 9<br />

Physical architecture ............................................................................ 10<br />

Hardware and software resources ........................................................ 14<br />

Solution Design<br />

Introduction ......................................................................................... 18<br />

Standalone source to standalone target replication on <strong>EMC</strong> CLARiiON<br />

storage systems .................................................................................... 19<br />

Multi-partitioned local replication on <strong>EMC</strong> Symmetrix DMX storage<br />

systems ................................................................................................ 19<br />

Cluster source to cluster target replication on <strong>EMC</strong> Symmetrix DMX<br />

storage systems .................................................................................... 21<br />

Cluster source to standalone target replication on <strong>EMC</strong> Symmetrix<br />

DMX storage systems ......................................................................... 22<br />

<strong>EMC</strong> <strong>Intelligent</strong> <strong>Cloning</strong> <strong>for</strong> <strong>SAP</strong> <strong>Automated</strong> <strong>Replication</strong> <strong>for</strong> <strong>IBM</strong> <strong>DB2</strong> on <strong>IBM</strong> AIX Enabled by <strong>EMC</strong> Symmetrix<br />

DMX-3, <strong>EMC</strong> CLARiiON CX3, and <strong>EMC</strong> <strong>Replication</strong> Manager Integration Guide<br />

3


Contents<br />

<strong>EMC</strong> Confidential - Internal Use Only<br />

Chapter 3<br />

Chapter 4<br />

Appendix A<br />

Appendix B<br />

Appendix C<br />

Installation and Configuration<br />

Preparation ........................................................................................... 26<br />

<strong>EMC</strong> <strong>Replication</strong> Manager and Consistent Split technology....... 26<br />

Preparing to install <strong>EMC</strong> <strong>Replication</strong> Manager ........................... 26<br />

Software installation ............................................................................ 27<br />

Installing <strong>EMC</strong> Solutions Enabler................................................ 27<br />

Installing <strong>EMC</strong> PowerPath........................................................... 27<br />

Installing <strong>EMC</strong> Navisphere Agent and CLI ................................. 27<br />

Installing <strong>EMC</strong> Admsnap............................................................. 28<br />

Installing <strong>EMC</strong> <strong>Replication</strong> Manager........................................... 28<br />

Obtaining <strong>Replication</strong> Manager Client licenses........................... 28<br />

Assigning <strong>Replication</strong> Manager Client licenses to hosts ............. 28<br />

Component configuration ....................................................................29<br />

Configuring <strong>SAP</strong> <strong>DB2</strong> <strong>for</strong> <strong>Replication</strong> Manager ......................... 29<br />

Configuring <strong>DB2</strong> <strong>for</strong> mount and recover operations.................... 29<br />

Configuring RM <strong>for</strong> mount and recover operations..................... 30<br />

Configuring <strong>Replication</strong> Manager callout scripts......................... 35<br />

Conclusion<br />

Example Scripts<br />

<strong>Replication</strong> Manager callout scripts .................................................... 39<br />

Post-clone cleanup script ..................................................................... 39<br />

<strong>SAP</strong> post-clone cleanup script ............................................................. 42<br />

Unmount script .................................................................................... 43<br />

Relocation configuration file ............................................................... 43<br />

Cluster configuration scripts ................................................................ 44<br />

Troubleshooting<br />

Database Layout and Mount Points<br />

4<br />

<strong>EMC</strong> <strong>Intelligent</strong> <strong>Cloning</strong> <strong>for</strong> <strong>SAP</strong> <strong>Automated</strong> <strong>Replication</strong> <strong>for</strong> <strong>IBM</strong> <strong>DB2</strong> on <strong>IBM</strong> AIX Enabled by <strong>EMC</strong> Symmetrix<br />

DMX-3, <strong>EMC</strong> CLARiiON CX3, and <strong>EMC</strong> <strong>Replication</strong> Manager Integration Guide


<strong>EMC</strong> Confidential - Internal Use Only<br />

About this<br />

Document<br />

<strong>EMC</strong>'s commitment to consistently maintain and improve quality is led by<br />

the Total Customer Experience (TCE) program, which is driven by Six<br />

Sigma methodologies. As a result, <strong>EMC</strong>’s Global Solutions organization has<br />

built Customer Integration Labs in its Solutions Centers to reflect real-world<br />

deployments in which TCE solutions are developed and validated. These<br />

validation exercises provide <strong>EMC</strong> with an insight into the challenges<br />

currently facing its customers.<br />

This document was produced as part of the <strong>EMC</strong> TCE program by the GSC<br />

TCE Customer Integration Labs working in collaboration with the <strong>EMC</strong><br />

<strong>SAP</strong> Global Practice, <strong>EMC</strong> Engineering, and <strong>EMC</strong> technical field<br />

consultants.<br />

Purpose<br />

This integration guide describes the <strong>SAP</strong> <strong>Automated</strong> <strong>Replication</strong> <strong>for</strong> <strong>IBM</strong><br />

<strong>DB2</strong> and <strong>IBM</strong> AIX on Symmetrix DMX and CLARiiON CX3 UltraScale<br />

Series solution.<br />

In the solution, <strong>SAP</strong> ERP 2005 and NetWeaver BI are installed on <strong>IBM</strong>-AIX<br />

servers. An <strong>EMC</strong> Symmetrix DMX-3 1500 and an <strong>EMC</strong> CLARiiON<br />

CX3-40 are used <strong>for</strong> storage, and <strong>EMC</strong> <strong>Replication</strong> Manager (RM) is used<br />

<strong>for</strong> local CX/Symmetrix DMX replications. RM also enables the<br />

coordination of post-clone cleanup processes run with customized callout<br />

scripts.<br />

This document is intended to be used by <strong>EMC</strong> field personnel and account<br />

teams as a guide <strong>for</strong> designing and building a solution <strong>for</strong> cloning an <strong>SAP</strong><br />

production database locally, <strong>for</strong> repurposing such as testing and reporting, by<br />

leveraging <strong>EMC</strong> hardware and software in an enterprise <strong>SAP</strong> environment.<br />

<strong>EMC</strong> <strong>Intelligent</strong> <strong>Cloning</strong> <strong>for</strong> <strong>SAP</strong> <strong>Automated</strong> <strong>Replication</strong> <strong>for</strong> <strong>IBM</strong> <strong>DB2</strong> on <strong>IBM</strong> AIX Enabled by <strong>EMC</strong> Symmetrix<br />

DMX-3, <strong>EMC</strong> CLARiiON CX3, and <strong>EMC</strong> <strong>Replication</strong> Manager Integration Guide 5


About this Document<br />

<strong>EMC</strong> Confidential - Internal Use Only<br />

Audience<br />

Scope<br />

Related<br />

documents<br />

The <strong>EMC</strong> internal document is intended to be used by both pre- and post-sales<br />

technical consultants to assist with the design and configuration of a customer<br />

environment. It is assumed the reader is familiar with the following <strong>EMC</strong> and<br />

<strong>SAP</strong> products:<br />

• <strong>EMC</strong> Symmetrix DMX<br />

• <strong>EMC</strong> CLARiiON CX<br />

• <strong>EMC</strong> Navisphere<br />

• <strong>EMC</strong> PowerPath<br />

• <strong>EMC</strong> <strong>Replication</strong> Manager<br />

• <strong>EMC</strong> SnapView<br />

• <strong>EMC</strong> TimeFinder<br />

• <strong>SAP</strong> ERP 2005<br />

• <strong>SAP</strong> NetWeaver BI<br />

Be<strong>for</strong>e implementing a solution, consider the size and complexity of the<br />

environment.<br />

The in<strong>for</strong>mation contained in this document is not intended to replace existing,<br />

detailed product implementation guides or pre-sale site evaluations. The steps<br />

outlined during each stage are high level in nature and should be read in<br />

conjunction with the documentation referenced throughout this guide. The<br />

solution environment simulates an enterprise environment. The solution tests<br />

were done using standard <strong>SAP</strong> configurations and <strong>SAP</strong> best practices. It is<br />

important to note that actual customer configurations might be different.<br />

The following document provides additional, relevant in<strong>for</strong>mation.<br />

• <strong>EMC</strong> <strong>Replication</strong> Manager Version 5.1 Release Notes<br />

• <strong>EMC</strong> <strong>Replication</strong> Manager Version 5.1 Administrator's Guide<br />

• <strong>EMC</strong> <strong>Replication</strong> Manager Version 5.1 Product Guide<br />

• <strong>EMC</strong> <strong>Replication</strong> Manager Support Matrix<br />

6<br />

<strong>EMC</strong> <strong>Intelligent</strong> <strong>Cloning</strong> <strong>for</strong> <strong>SAP</strong> <strong>Automated</strong> <strong>Replication</strong> <strong>for</strong> <strong>IBM</strong> <strong>DB2</strong> on <strong>IBM</strong> AIX Enabled by <strong>EMC</strong> Symmetrix<br />

DMX-3, <strong>EMC</strong> CLARiiON CX3, and <strong>EMC</strong> <strong>Replication</strong> Manager Integration Guide


<strong>EMC</strong> Confidential - Internal Use Only<br />

1<br />

Solution<br />

Overview<br />

This chapter includes the following sections:<br />

• The business challenge ............................................................................ 8<br />

• The technology solution........................................................................... 8<br />

• Solution components................................................................................ 8<br />

• Validated environments............................................................................ 9<br />

• Physical architecture .............................................................................. 10<br />

• Hardware and software resources .......................................................... 14<br />

<strong>EMC</strong> <strong>Intelligent</strong> <strong>Cloning</strong> <strong>for</strong> <strong>SAP</strong> <strong>Automated</strong> <strong>Replication</strong> <strong>for</strong> <strong>IBM</strong> <strong>DB2</strong> on <strong>IBM</strong> AIX Enabled by <strong>EMC</strong> Symmetrix<br />

DMX-3, <strong>EMC</strong> CLARiiON CX3, and <strong>EMC</strong> <strong>Replication</strong> Manager Integration Guide 7


Solution Overview<br />

<strong>EMC</strong> Confidential - Internal Use Only<br />

The business challenge<br />

The technology solution<br />

Solution components<br />

Copying an <strong>SAP</strong> system is required under the following situations:<br />

• Copying a production system to produce a representative testing<br />

environment.<br />

• Copying a development system to support a trial upgrade to test the applying<br />

of <strong>SAP</strong> support packs.<br />

The challenges with <strong>SAP</strong> data replication include:<br />

• Taking a non-disruptive copy: Copy the database without shutting down the<br />

source system.<br />

• Copying a federated environment: Copy combined or collective systems,<br />

such as ECC and BI/CRM/APO. The databases must be kept synchronized in<br />

order to preserve data integrity.<br />

• Simplifying the process: Minimize the manual steps to avoid potential<br />

human errors.<br />

• Speeding up the process: Reduce the overall time required to copy the source<br />

database to the target location and have a usable <strong>SAP</strong> system.<br />

The overall objective is to move to an easily reproduceable, automated, and<br />

efficient process that will benefit the <strong>SAP</strong> application team, the data center, and<br />

storage administration teams.<br />

The <strong>EMC</strong> ® <strong>Intelligent</strong> <strong>Cloning</strong> <strong>for</strong> <strong>SAP</strong> <strong>Automated</strong> <strong>Replication</strong> <strong>for</strong> <strong>IBM</strong> <strong>DB2</strong><br />

and <strong>IBM</strong> AIX on Symmetrix DMX and CLARiiON ® CX3 UltraScale Series<br />

solution uses <strong>EMC</strong> <strong>Replication</strong> Manager (RM) in conjunction with <strong>EMC</strong> storage<br />

arrays to help an <strong>SAP</strong> project team duplicate an <strong>SAP</strong> database environment to<br />

per<strong>for</strong>m various test scenarios, such as applying patches, planning and testing the<br />

next phase of added functionality <strong>for</strong> <strong>SAP</strong>, and Unicode conversion, without<br />

affecting the production environment. It provides automated <strong>SAP</strong> storage<br />

replication processes to enable on-demand replicas to be executed within the<br />

<strong>SAP</strong> environment. For BASIS administrators and DBAs, this results in a<br />

streamlined, faster, and safer <strong>SAP</strong> database copy process.<br />

The <strong>EMC</strong> <strong>Intelligent</strong> <strong>Cloning</strong> <strong>for</strong> <strong>SAP</strong> <strong>Automated</strong> <strong>Replication</strong> <strong>for</strong> <strong>IBM</strong> AIX and<br />

<strong>IBM</strong> <strong>DB2</strong> on Symmetrix DMX-3 and CLARiiON CX3 UltraScale Series<br />

solution includes components from <strong>EMC</strong>, <strong>SAP</strong>, and <strong>IBM</strong>. This section only lists<br />

8<br />

<strong>EMC</strong> <strong>Intelligent</strong> <strong>Cloning</strong> <strong>for</strong> <strong>SAP</strong> <strong>Automated</strong> <strong>Replication</strong> <strong>for</strong> <strong>IBM</strong> <strong>DB2</strong> on <strong>IBM</strong> AIX Enabled by <strong>EMC</strong> Symmetrix<br />

DMX-3, <strong>EMC</strong> CLARiiON CX3, and <strong>EMC</strong> <strong>Replication</strong> Manager Integration Guide


<strong>EMC</strong> Confidential - Internal Use Only<br />

Validated environments<br />

Validated environments<br />

the <strong>EMC</strong> and <strong>SAP</strong> components. For details on all of the components that<br />

make up the solution, see “Hardware and software resources” on page 14.<br />

• <strong>EMC</strong> Symmetrix DMX-3 1500<br />

• <strong>EMC</strong> CLARiiON CX3-40<br />

• <strong>EMC</strong> Navisphere ®<br />

• <strong>EMC</strong> PowerPath ®<br />

• <strong>EMC</strong> <strong>Replication</strong> Manager<br />

• <strong>EMC</strong> SnapView <br />

• <strong>EMC</strong> TimeFinder ®<br />

• <strong>SAP</strong> ECC6<br />

• <strong>SAP</strong> NetWeaver<br />

The <strong>EMC</strong> <strong>Intelligent</strong> <strong>Cloning</strong> <strong>for</strong> <strong>SAP</strong> <strong>Automated</strong> <strong>Replication</strong> <strong>for</strong> <strong>IBM</strong> <strong>DB2</strong><br />

on <strong>IBM</strong> AIX solution encompasses four replication scenarios. With this<br />

document, one or more of these scenarios can be implemented in any<br />

combination:<br />

• Standalone (AKA: single instance) source to standalone target<br />

replication on <strong>EMC</strong> CLARiiON storage systems<br />

• Multi-partitioned source to multi-partitioned target replication on <strong>EMC</strong><br />

Symmetrix DMX storage systems<br />

• Cluster source to cluster target replication on <strong>EMC</strong> Symmetrix DMX<br />

storage systems<br />

• Cluster source to standalone target replication on <strong>EMC</strong> Symmetrix<br />

DMX storage systems<br />

Note: All scenarios are local to the storage system.<br />

<strong>EMC</strong> <strong>Intelligent</strong> <strong>Cloning</strong> <strong>for</strong> <strong>SAP</strong> <strong>Automated</strong> <strong>Replication</strong> <strong>for</strong> <strong>IBM</strong> <strong>DB2</strong> on <strong>IBM</strong> AIX Enabled by <strong>EMC</strong> Symmetrix<br />

DMX-3, <strong>EMC</strong> CLARiiON CX3, and <strong>EMC</strong> <strong>Replication</strong> Manager Integration Guide<br />

9


Solution Overview<br />

<strong>EMC</strong> Confidential - Internal Use Only<br />

Physical architecture<br />

Figure 1 illustrates the physical architecture of the standalone source to<br />

standalone target replication on <strong>EMC</strong> CLARiiON storage systems.<br />

Standalone clone<br />

<strong>SAP</strong> ECC6<br />

<strong>IBM</strong> AIX 5.3<br />

<strong>IBM</strong> <strong>DB2</strong> 9.1<br />

<strong>SAP</strong> ECC6<br />

<strong>IBM</strong> AIX 5.3<br />

<strong>IBM</strong> <strong>DB2</strong> 9.1<br />

<strong>Replication</strong> Manager<br />

Window Server 2003 SR2 SP2<br />

<strong>SAP</strong><br />

<strong>SAP</strong><br />

RM Server<br />

CX3<br />

Figure 1<br />

Standalone source to standalone target replication on <strong>EMC</strong> CLARiiON<br />

storage systems<br />

10<br />

<strong>EMC</strong> <strong>Intelligent</strong> <strong>Cloning</strong> <strong>for</strong> <strong>SAP</strong> <strong>Automated</strong> <strong>Replication</strong> <strong>for</strong> <strong>IBM</strong> <strong>DB2</strong> on <strong>IBM</strong> AIX Enabled by <strong>EMC</strong> Symmetrix<br />

DMX-3, <strong>EMC</strong> CLARiiON CX3, and <strong>EMC</strong> <strong>Replication</strong> Manager Integration Guide


<strong>EMC</strong> Confidential - Internal Use Only<br />

Physical architecture<br />

Figure 2 illustrates the physical architecture of the multi-partitioned source<br />

to multi-partitioned target replication on <strong>EMC</strong> Symmetrix DMX storage<br />

systems.<br />

Partition clone<br />

Partition<br />

Partition<br />

<strong>SAP</strong> BI 7<br />

<strong>IBM</strong> AIX 5.3<br />

<strong>IBM</strong> <strong>DB2</strong> 9.1<br />

<strong>SAP</strong> central system and database logical partition<br />

<strong>SAP</strong> BI 7<br />

<strong>IBM</strong> AIX 5.3<br />

<strong>IBM</strong> <strong>DB2</strong> 9.1<br />

Database logical partition<br />

<strong>SAP</strong> BI 7<br />

<strong>IBM</strong> AIX 5.3<br />

<strong>IBM</strong> <strong>DB2</strong> 9.1<br />

<strong>SAP</strong> central system and database logical partition<br />

<strong>SAP</strong> BI 7<br />

<strong>IBM</strong> AIX 5.3<br />

<strong>IBM</strong> <strong>DB2</strong> 9.1<br />

Database logical partition<br />

<strong>Replication</strong> Manager<br />

Window Server 2003 SR2 SP2<br />

<strong>SAP</strong> <strong>SAP</strong> <strong>SAP</strong><br />

<strong>SAP</strong><br />

RM Server<br />

DMX<br />

Figure 2<br />

Multi-partitioned source to multi-partitioned target replication on <strong>EMC</strong><br />

Symmetrix DMX storage systems<br />

<strong>EMC</strong> <strong>Intelligent</strong> <strong>Cloning</strong> <strong>for</strong> <strong>SAP</strong> <strong>Automated</strong> <strong>Replication</strong> <strong>for</strong> <strong>IBM</strong> <strong>DB2</strong> on <strong>IBM</strong> AIX Enabled by <strong>EMC</strong> Symmetrix<br />

DMX-3, <strong>EMC</strong> CLARiiON CX3, and <strong>EMC</strong> <strong>Replication</strong> Manager Integration Guide<br />

11


Solution Overview<br />

<strong>EMC</strong> Confidential - Internal Use Only<br />

Figure 3 illustrates the physical architecture of the cluster source to cluster target<br />

replication on <strong>EMC</strong> Symmetrix DMX storage systems.<br />

Cluster clone<br />

<strong>IBM</strong> HACMP<br />

<strong>IBM</strong> HACMP<br />

<strong>SAP</strong> ECC6<br />

<strong>IBM</strong> AIX 5.3<br />

<strong>IBM</strong> <strong>DB2</strong> 9.1<br />

<strong>SAP</strong> ECC6<br />

<strong>IBM</strong> AIX 5.3<br />

<strong>IBM</strong> <strong>DB2</strong> 9.1<br />

<strong>SAP</strong> ECC6<br />

<strong>IBM</strong> AIX 5.3<br />

<strong>IBM</strong> <strong>DB2</strong> 9.1<br />

<strong>SAP</strong> ECC6<br />

<strong>IBM</strong> AIX 5.3<br />

<strong>IBM</strong> <strong>DB2</strong> 9.1<br />

<strong>Replication</strong> Manager<br />

Window Server 2003 SR2 SP2<br />

Cluster<br />

Cluster<br />

<strong>SAP</strong> <strong>SAP</strong> <strong>SAP</strong> <strong>SAP</strong><br />

RM Server<br />

DMX<br />

Figure 3<br />

Cluster source to cluster target replication on <strong>EMC</strong> Symmetrix DMX storage<br />

systems<br />

12<br />

<strong>EMC</strong> <strong>Intelligent</strong> <strong>Cloning</strong> <strong>for</strong> <strong>SAP</strong> <strong>Automated</strong> <strong>Replication</strong> <strong>for</strong> <strong>IBM</strong> <strong>DB2</strong> on <strong>IBM</strong> AIX Enabled by <strong>EMC</strong> Symmetrix<br />

DMX-3, <strong>EMC</strong> CLARiiON CX3, and <strong>EMC</strong> <strong>Replication</strong> Manager Integration Guide


<strong>EMC</strong> Confidential - Internal Use Only<br />

Physical architecture<br />

Figure 4 illustrates the physical architecture of the cluster source to<br />

standalone target replication on <strong>EMC</strong> Symmetrix DMX storage systems.<br />

<strong>IBM</strong> HACMP<br />

<strong>SAP</strong> System 1<br />

<strong>SAP</strong> ECC6<br />

<strong>IBM</strong> AIX 5.3<br />

<strong>IBM</strong> <strong>DB2</strong> 9.1<br />

Clone<br />

Cluster<br />

<strong>SAP</strong> System 1<br />

<strong>SAP</strong> ECC6<br />

<strong>IBM</strong> AIX 5.3<br />

<strong>IBM</strong> <strong>DB2</strong> 9.1<br />

<strong>SAP</strong> System 2<br />

<strong>SAP</strong> ECC6<br />

<strong>IBM</strong> AIX 5.3<br />

<strong>IBM</strong> <strong>DB2</strong> 9.1<br />

<strong>Replication</strong> Manager<br />

Window Server 2003 SR2 SP2<br />

<strong>SAP</strong><br />

<strong>SAP</strong><br />

RM Server<br />

DMX<br />

Figure 4<br />

Cluster source to standalone target replication on <strong>EMC</strong> Symmetrix DMX<br />

storage systems<br />

<strong>EMC</strong> <strong>Intelligent</strong> <strong>Cloning</strong> <strong>for</strong> <strong>SAP</strong> <strong>Automated</strong> <strong>Replication</strong> <strong>for</strong> <strong>IBM</strong> <strong>DB2</strong> on <strong>IBM</strong> AIX Enabled by <strong>EMC</strong> Symmetrix<br />

DMX-3, <strong>EMC</strong> CLARiiON CX3, and <strong>EMC</strong> <strong>Replication</strong> Manager Integration Guide<br />

13


Solution Overview<br />

<strong>EMC</strong> Confidential - Internal Use Only<br />

Hardware and software resources<br />

Table 1 and Table 2 present the hardware and software resources used to validate<br />

the solution.<br />

Table 1<br />

Hardware resources<br />

Equipment Quantity Configuration<br />

Storage array 1 <strong>EMC</strong> Symmetrix DMX-3 24<br />

146 GB 15K drives<br />

ucode: 5771 (168B0000)<br />

Storage array 1 <strong>EMC</strong> CLARiiON CX3-40 UltraScale Series<br />

146 GB 15k drives<br />

FLARE ® : 03.24.040.5.016<br />

Fibre Channel switch 1 Cisco MDS 9509s<br />

64 ports<br />

Network switch 1 Cisco 3560G<br />

64 ports<br />

<strong>SAP</strong> server Standalone source to standalone target on CLARiiON: 2<br />

Multi-partition standalone source to multi-partition<br />

standalone target on Symmetrix DMX: 4<br />

Cluster source to cluster target on Symmetrix DMX: 4<br />

Cluster source to standalone target on Symmetrix DMX: 3<br />

<strong>IBM</strong> p570<br />

Four CPUs<br />

8 GB RAM<br />

<strong>IBM</strong> AIX 5.3.0.60 64-bit<br />

Two Emulex LP11002-E HBAs<br />

<strong>Replication</strong> Manager<br />

server<br />

1 Dell 1950<br />

Two dual-core 3.0 GHz Intel Pentium 4<br />

processors<br />

6 GB memory<br />

Two 73GB 10K internal SCSI disks<br />

Two on-board 10/100/1000 MB Ethernet NICs<br />

Table 2<br />

Software resources<br />

Software Version Configuration/comments<br />

<strong>IBM</strong> AIX 5.3 <strong>IBM</strong> AIX 5.3.0.60 (11.23/IA64) 64-bit Installed on <strong>SAP</strong> source and target<br />

<strong>IBM</strong> <strong>DB2</strong> 9.1 <strong>IBM</strong> <strong>DB2</strong> 9.1 Fix Pack 2 Installed on <strong>SAP</strong> source and target<br />

<strong>IBM</strong> HACMP <strong>IBM</strong> HACMP 5.4.x Installed on clustered servers<br />

14<br />

<strong>EMC</strong> <strong>Intelligent</strong> <strong>Cloning</strong> <strong>for</strong> <strong>SAP</strong> <strong>Automated</strong> <strong>Replication</strong> <strong>for</strong> <strong>IBM</strong> <strong>DB2</strong> on <strong>IBM</strong> AIX Enabled by <strong>EMC</strong> Symmetrix<br />

DMX-3, <strong>EMC</strong> CLARiiON CX3, and <strong>EMC</strong> <strong>Replication</strong> Manager Integration Guide


<strong>EMC</strong> Confidential - Internal Use Only<br />

Hardware and software resources<br />

Table 2<br />

Software resources (continued)<br />

Software Version Configuration/comments<br />

<strong>SAP</strong> Applications ECC6 (ERP 2005)<br />

Solution Manager 7.0<br />

NetWeaver 2004s<br />

NW BI 7.0<br />

Installed on <strong>SAP</strong> source and target<br />

Solution Manager generates <strong>SAP</strong><br />

installation keys<br />

<strong>EMC</strong> PowerPath 5.1.1 Installed on <strong>SAP</strong> source and target<br />

<strong>EMC</strong> Solutions Enabler 6.4.2.20 Installed on <strong>SAP</strong> source and target<br />

<strong>EMC</strong> <strong>Replication</strong> Manager 5.1 Storage management software<br />

<strong>EMC</strong> ADMSnap 2.24.0.0.0 33<br />

<strong>EMC</strong> Navisphere CLI 6.24.2.5 3<br />

<strong>EMC</strong> Navisphere Agent 6.24.2.5<br />

Java JDK 1.4.2 J9 Hybrid Special version; available only from <strong>SAP</strong><br />

website<br />

<strong>EMC</strong> <strong>Intelligent</strong> <strong>Cloning</strong> <strong>for</strong> <strong>SAP</strong> <strong>Automated</strong> <strong>Replication</strong> <strong>for</strong> <strong>IBM</strong> <strong>DB2</strong> on <strong>IBM</strong> AIX Enabled by <strong>EMC</strong> Symmetrix<br />

DMX-3, <strong>EMC</strong> CLARiiON CX3, and <strong>EMC</strong> <strong>Replication</strong> Manager Integration Guide<br />

15


Solution Overview<br />

<strong>EMC</strong> Confidential - Internal Use Only<br />

16<br />

<strong>EMC</strong> <strong>Intelligent</strong> <strong>Cloning</strong> <strong>for</strong> <strong>SAP</strong> <strong>Automated</strong> <strong>Replication</strong> <strong>for</strong> <strong>IBM</strong> <strong>DB2</strong> on <strong>IBM</strong> AIX Enabled by <strong>EMC</strong> Symmetrix<br />

DMX-3, <strong>EMC</strong> CLARiiON CX3, and <strong>EMC</strong> <strong>Replication</strong> Manager Integration Guide


<strong>EMC</strong> Confidential - Internal Use Only<br />

2<br />

Solution Design<br />

This chapter includes the following sections:<br />

• Introduction............................................................................................ 18<br />

• Standalone source to standalone target replication on <strong>EMC</strong> CLARiiON<br />

storage systems ...................................................................................... 19<br />

• Multi-partitioned local replication on <strong>EMC</strong> Symmetrix DMX storage<br />

systems................................................................................................... 19<br />

• Cluster source to cluster target replication on <strong>EMC</strong> Symmetrix DMX<br />

storage systems ...................................................................................... 21<br />

• Cluster source to standalone target replication on <strong>EMC</strong> Symmetrix DMX<br />

storage systems ...................................................................................... 22<br />

<strong>EMC</strong> <strong>Intelligent</strong> <strong>Cloning</strong> <strong>for</strong> <strong>SAP</strong> <strong>Automated</strong> <strong>Replication</strong> <strong>for</strong> <strong>IBM</strong> <strong>DB2</strong> on <strong>IBM</strong> AIX Enabled by <strong>EMC</strong> Symmetrix<br />

DMX-3, <strong>EMC</strong> CLARiiON CX3, and <strong>EMC</strong> <strong>Replication</strong> Manager Integration Guide 17


Solution Design<br />

<strong>EMC</strong> Confidential - Internal Use Only<br />

Introduction<br />

For all replication scenarios, <strong>SAP</strong> and <strong>DB2</strong> binaries can be installed on either<br />

<strong>IBM</strong> AIX local disks or <strong>EMC</strong> standard SAN storage disks on both source and<br />

target. <strong>SAP</strong> <strong>DB2</strong> data and log files reside on <strong>EMC</strong> standard SAN storage disks at<br />

the source and are replicated to the target.<br />

All scenarios have been validated using <strong>EMC</strong> Consistent Split replication<br />

technology, available with <strong>Replication</strong> Manager. This technology produces a<br />

restartable image, which is necessary <strong>for</strong> creating a mountable replica of a<br />

production <strong>SAP</strong> <strong>DB2</strong> database <strong>for</strong> repurposing activities such as testing and<br />

offline reporting.<br />

For all scenarios, the source and target systems are set up with the same operating<br />

system, database configuration, and patch levels.<br />

For all scenarios, the target system SID is different from the source system SID.<br />

The remainder of this chapter provides additional details about each of the<br />

validated scenarios.<br />

18<br />

<strong>EMC</strong> <strong>Intelligent</strong> <strong>Cloning</strong> <strong>for</strong> <strong>SAP</strong> <strong>Automated</strong> <strong>Replication</strong> <strong>for</strong> <strong>IBM</strong> <strong>DB2</strong> on <strong>IBM</strong> AIX Enabled by <strong>EMC</strong> Symmetrix<br />

DMX-3, <strong>EMC</strong> CLARiiON CX3, and <strong>EMC</strong> <strong>Replication</strong> Manager Integration Guide


<strong>EMC</strong> Confidential - Internal Use Only<br />

Standalone source to standalone target replication on <strong>EMC</strong><br />

Standalone source to standalone target replication on <strong>EMC</strong><br />

CLARiiON storage systems<br />

For standalone source to standalone target replication on <strong>EMC</strong> CLARiiON<br />

storage systems, the LUNs <strong>for</strong> <strong>SAP</strong> <strong>DB2</strong> logs, data files, and DB directory<br />

are configured.<br />

<strong>Replication</strong> Manager creates a replica of a production <strong>SAP</strong> <strong>DB2</strong> database,<br />

using the SnapView storage array replication along with <strong>EMC</strong> Consistent<br />

Split technology <strong>for</strong> <strong>EMC</strong> CLARiiON.<br />

Figure 5 illustrates standalone source to standalone target replication on<br />

<strong>EMC</strong> CLARiiON storage systems.<br />

Log , data files,<br />

temporary tablespace,<br />

DB directory<br />

Log, data files,<br />

temporary tablespace,<br />

DB directory<br />

<strong>SAP</strong><br />

<strong>Cloning</strong> controlled by<br />

<strong>Replication</strong> Manager<br />

<strong>SAP</strong><br />

<strong>SAP</strong> ECC6<br />

<strong>IBM</strong> AIX 5.3<br />

<strong>IBM</strong> <strong>DB2</strong> 9.1<br />

Source<br />

Target<br />

<strong>SAP</strong> ECC6<br />

<strong>IBM</strong> AIX 5.3<br />

<strong>IBM</strong> <strong>DB2</strong> 9.1<br />

CX<br />

Figure 5<br />

Standalone source to standalone target replication on <strong>EMC</strong> CLARiiON<br />

storage systems<br />

Multi-partitioned local replication on <strong>EMC</strong> Symmetrix DMX<br />

storage systems<br />

<strong>SAP</strong> uses the <strong>DB2</strong> feature of multi-partitioning to distribute the database<br />

across multiple partitions. This feature can mitigate the per<strong>for</strong>mance<br />

problems that can be associated with extremely large <strong>SAP</strong> data warehouse<br />

applications. Also, this feature provides the scalability <strong>for</strong> potential future<br />

expansions.<br />

For this scenario, <strong>SAP</strong> NetWeaver BI 7.0 is installed on two source <strong>IBM</strong><br />

AIX servers and two target <strong>IBM</strong> AIX servers. An <strong>SAP</strong> central system and a<br />

logical database partition reside on one pair of source and target servers,<br />

<strong>EMC</strong> <strong>Intelligent</strong> <strong>Cloning</strong> <strong>for</strong> <strong>SAP</strong> <strong>Automated</strong> <strong>Replication</strong> <strong>for</strong> <strong>IBM</strong> <strong>DB2</strong> on <strong>IBM</strong> AIX Enabled by <strong>EMC</strong> Symmetrix<br />

DMX-3, <strong>EMC</strong> CLARiiON CX3, and <strong>EMC</strong> <strong>Replication</strong> Manager Integration Guide<br />

19


Solution Design<br />

<strong>EMC</strong> Confidential - Internal Use Only<br />

while two logical database partitions reside on the other pair of source and target<br />

servers. Two logical partitions are created on each of the four servers.<br />

When cloning the multi-partitioned BI systems, <strong>Replication</strong> Manager uses <strong>EMC</strong><br />

Consistent Split technology to ensure application consistency. <strong>Replication</strong><br />

Manager currently requires the data source to be selected as the filesystem,<br />

because RM currently does not recognize UDB multi-partitioned databases. The<br />

filesystems that contain data, active logs, temporary tablespace, and DB directory<br />

of the database must be selected <strong>for</strong> the replication.<br />

RM eliminates the need to create and maintain complex scripts to maintain<br />

consistency groups or synchronize them manually. This helps to reduce errors<br />

and speed up the creation of clones.<br />

The callout scripts or post-mount scripts <strong>for</strong> federated replication run in parallel<br />

across all servers. To maintain consistency across the nodes, scripts are used to<br />

check the replication status of the primary node and wait to complete until other<br />

nodes are completed.<br />

Figure 6 illustrates a multi-partitioned standalone source to multi-partitioned<br />

standalone target replication on <strong>EMC</strong> Symmetrix storage systems scenario.<br />

Source<br />

Target<br />

Log, data files,<br />

temporary tablespace,<br />

DB directory<br />

Log, data files,<br />

temporary tablespace,<br />

DB directory<br />

Log, data files,<br />

temporary tablespace,<br />

DB directory<br />

Log, data files,<br />

temporary tablespace,<br />

DB directory<br />

Partition 0<br />

Partition 2<br />

Partition 0<br />

Partition 2<br />

Log, data files,<br />

temporary tablespace,<br />

DB directory<br />

Log, data files,<br />

temporary tablespace,<br />

DB directory<br />

<strong>Cloning</strong> controlled by<br />

<strong>Replication</strong> Manager<br />

Log, data files,<br />

temporary tablespace,<br />

DB directory<br />

Log, data files,<br />

temporary tablespace,<br />

DB directory<br />

Partition 1<br />

Partition 3<br />

Partition 1<br />

Partition 3<br />

<strong>SAP</strong> BI 7<br />

<strong>SAP</strong> <strong>IBM</strong> AIX 5.3<br />

<strong>IBM</strong> <strong>DB2</strong> 9.1<br />

<strong>SAP</strong> central system and<br />

database logical partition<br />

<strong>SAP</strong> BI 7<br />

<strong>SAP</strong><br />

<strong>IBM</strong> AIX 5.3<br />

<strong>IBM</strong> <strong>DB2</strong> 9.1<br />

Database logical partitions<br />

<strong>SAP</strong> BI 7<br />

<strong>SAP</strong> <strong>IBM</strong> AIX 5.3<br />

<strong>IBM</strong> <strong>DB2</strong> 9.1<br />

<strong>SAP</strong> central system and<br />

database logical partition<br />

<strong>SAP</strong> BI 7<br />

<strong>SAP</strong> <strong>IBM</strong> AIX 5.3<br />

<strong>IBM</strong> <strong>DB2</strong> 9.1<br />

Database logical partitions<br />

DMX<br />

Figure 6<br />

Multi-partitioned local replication on <strong>EMC</strong> Symmetrix DMX storage systems<br />

20<br />

<strong>EMC</strong> <strong>Intelligent</strong> <strong>Cloning</strong> <strong>for</strong> <strong>SAP</strong> <strong>Automated</strong> <strong>Replication</strong> <strong>for</strong> <strong>IBM</strong> <strong>DB2</strong> on <strong>IBM</strong> AIX Enabled by <strong>EMC</strong> Symmetrix<br />

DMX-3, <strong>EMC</strong> CLARiiON CX3, and <strong>EMC</strong> <strong>Replication</strong> Manager Integration Guide


<strong>EMC</strong> Confidential - Internal Use Only<br />

Cluster source to cluster target replication on <strong>EMC</strong> Symmetrix<br />

Cluster source to cluster target replication on <strong>EMC</strong> Symmetrix<br />

DMX storage systems<br />

For cluster source to cluster target replication on <strong>EMC</strong> Symmetrix DMX<br />

storage systems, the LUNs <strong>for</strong> <strong>SAP</strong> <strong>DB2</strong> data, active logs, temporary<br />

tablespace, and DB directory are configured in separate Volume Groups.<br />

<strong>Replication</strong> Manager creates a replica of a production <strong>SAP</strong> <strong>DB2</strong> database,<br />

using the TimeFinder storage array replication along with <strong>EMC</strong> Consistent<br />

Split technology. Note that the <strong>DB2</strong> Volume Group (VG) name created by<br />

the replica will be changed automatically, because the VG in target cluster is<br />

different from the one created by the replica. The target system environment<br />

must be reconfigured after a successful cloning.<br />

The replica is not under the control of the cluster even if it is mounted. To<br />

place the mounted replica under the control of the cluster, follow the<br />

following steps:<br />

1. Shut down the <strong>SAP</strong> system and database.<br />

2. Unmount corresponding filesystems.<br />

3. Deactivate (varyoffvg) the VGs created by the replica.<br />

4. Add relevant DB instance VGs created by the replica to the cluster<br />

environment.<br />

5. Synchronize the cluster environment.<br />

<strong>EMC</strong> provides two cluster configuration scripts, cladd.sh and<br />

clrem.sh, to run these steps automatically. For detailed in<strong>for</strong>mation about<br />

the two scripts, refer to “Cluster configuration scripts” on page 44.<br />

Please refer to Table 3 on page 47 <strong>for</strong> detailed in<strong>for</strong>mation about the <strong>SAP</strong><br />

<strong>DB2</strong> database layout and mount points configured <strong>for</strong> this solution.<br />

Please also refer to the <strong>Replication</strong> Manager user manuals <strong>for</strong> more detailed<br />

in<strong>for</strong>mation.<br />

<strong>EMC</strong> <strong>Intelligent</strong> <strong>Cloning</strong> <strong>for</strong> <strong>SAP</strong> <strong>Automated</strong> <strong>Replication</strong> <strong>for</strong> <strong>IBM</strong> <strong>DB2</strong> on <strong>IBM</strong> AIX Enabled by <strong>EMC</strong> Symmetrix<br />

DMX-3, <strong>EMC</strong> CLARiiON CX3, and <strong>EMC</strong> <strong>Replication</strong> Manager Integration Guide<br />

21


Solution Design<br />

<strong>EMC</strong> Confidential - Internal Use Only<br />

Figure 7 illustrates a cluster source to cluster target replication on <strong>EMC</strong><br />

Symmetrix DMX storage systems scenario.<br />

<strong>IBM</strong> HACMP<br />

<strong>IBM</strong> HACMP<br />

<strong>SAP</strong><br />

<strong>SAP</strong><br />

<strong>SAP</strong> ECC6<br />

<strong>IBM</strong> AIX 5.3<br />

<strong>IBM</strong> <strong>DB2</strong> 9.1<br />

Log, data files,<br />

temporary tablespace,<br />

DB directory<br />

<strong>Cloning</strong> controlled by<br />

<strong>Replication</strong> Manager<br />

Log, data files,<br />

temporary tablespace,<br />

DB directory<br />

<strong>SAP</strong> ECC6<br />

<strong>IBM</strong> AIX 5.3<br />

<strong>IBM</strong> <strong>DB2</strong> 9.1<br />

<strong>SAP</strong><br />

<strong>SAP</strong> ECC6<br />

<strong>IBM</strong> AIX 5.3<br />

<strong>IBM</strong> <strong>DB2</strong> 9.1<br />

Source<br />

Target<br />

<strong>SAP</strong><br />

<strong>SAP</strong> ECC6<br />

<strong>IBM</strong> AIX 5.3<br />

<strong>IBM</strong> <strong>DB2</strong> 9.1<br />

DMX<br />

Figure 7<br />

Cluster source to cluster target replication on <strong>EMC</strong> Symmetrix DMX storage<br />

systems<br />

Cluster source to standalone target replication on <strong>EMC</strong> Symmetrix<br />

DMX storage systems<br />

For cluster source to standalone target replication on <strong>EMC</strong> Symmetrix DMX<br />

storage systems, all the DB resources on the first server are clustered resources.<br />

The second server, however, contains both clustered and non-clustered resources.<br />

The DB resource group on the first server constitutes the replication source,<br />

while the non-clustered resources on the second server constitute the replication<br />

target. <strong>Replication</strong>, there<strong>for</strong>e, can be said to occur from a “cluster source” (the<br />

clustered resources on the first and second servers) to a “standalone target” (the<br />

non-clustered resources on the second server). It can be cost-effective to share<br />

the target server with both clustered and non-clustered resources.<br />

22<br />

<strong>EMC</strong> <strong>Intelligent</strong> <strong>Cloning</strong> <strong>for</strong> <strong>SAP</strong> <strong>Automated</strong> <strong>Replication</strong> <strong>for</strong> <strong>IBM</strong> <strong>DB2</strong> on <strong>IBM</strong> AIX Enabled by <strong>EMC</strong> Symmetrix<br />

DMX-3, <strong>EMC</strong> CLARiiON CX3, and <strong>EMC</strong> <strong>Replication</strong> Manager Integration Guide


<strong>EMC</strong> Confidential - Internal Use Only<br />

Cluster source to standalone target replication on <strong>EMC</strong><br />

For this scenario, devices <strong>for</strong> <strong>DB2</strong> data, logs, temporary tablespace, and DB<br />

directory are configured <strong>for</strong> replication. <strong>Replication</strong> Manager creates a<br />

replica of a production <strong>DB2</strong> database, using the TimeFinder storage array<br />

replication along with <strong>EMC</strong> Consistent Split technology <strong>for</strong> <strong>EMC</strong><br />

Symmetrix.<br />

Figure 8 illustrates a cluster source to standalone target replication on <strong>EMC</strong><br />

Symmetrix storage systems scenario.<br />

<strong>IBM</strong> HACMP<br />

<strong>SAP</strong> System 1<br />

<strong>SAP</strong> ECC6<br />

<strong>IBM</strong> AIX 5.3<br />

<strong>IBM</strong> <strong>DB2</strong> 9.1<br />

<strong>SAP</strong><br />

<strong>SAP</strong> System 1 <strong>SAP</strong> System 2<br />

<strong>SAP</strong> ECC6 <strong>SAP</strong> ECC6<br />

<strong>IBM</strong> AIX 5.3 <strong>IBM</strong> AIX 5.3<br />

<strong>IBM</strong> <strong>DB2</strong> 9.1 <strong>IBM</strong> <strong>DB2</strong> 9.1<br />

Log, data files,<br />

temporary tablespace,<br />

DB directory<br />

<strong>SAP</strong><br />

Log, data files,<br />

temporary tablespace,<br />

DB directory<br />

Source<br />

<strong>Cloning</strong> controlled by<br />

<strong>Replication</strong> Manager<br />

Target<br />

DMX<br />

Figure 8<br />

Cluster source to standalone target replication on <strong>EMC</strong> Symmetrix DMX<br />

storage systems<br />

<strong>EMC</strong> <strong>Intelligent</strong> <strong>Cloning</strong> <strong>for</strong> <strong>SAP</strong> <strong>Automated</strong> <strong>Replication</strong> <strong>for</strong> <strong>IBM</strong> <strong>DB2</strong> on <strong>IBM</strong> AIX Enabled by <strong>EMC</strong> Symmetrix<br />

DMX-3, <strong>EMC</strong> CLARiiON CX3, and <strong>EMC</strong> <strong>Replication</strong> Manager Integration Guide<br />

23


Solution Design<br />

<strong>EMC</strong> Confidential - Internal Use Only<br />

24<br />

<strong>EMC</strong> <strong>Intelligent</strong> <strong>Cloning</strong> <strong>for</strong> <strong>SAP</strong> <strong>Automated</strong> <strong>Replication</strong> <strong>for</strong> <strong>IBM</strong> <strong>DB2</strong> on <strong>IBM</strong> AIX Enabled by <strong>EMC</strong> Symmetrix<br />

DMX-3, <strong>EMC</strong> CLARiiON CX3, and <strong>EMC</strong> <strong>Replication</strong> Manager Integration Guide


<strong>EMC</strong> Confidential - Internal Use Only<br />

3<br />

Installation and<br />

Configuration<br />

This chapter includes the following sections:<br />

• Preparation ............................................................................................. 26<br />

• Software installation .............................................................................. 27<br />

• Component configuration ...................................................................... 29<br />

<strong>EMC</strong> <strong>Intelligent</strong> <strong>Cloning</strong> <strong>for</strong> <strong>SAP</strong> <strong>Automated</strong> <strong>Replication</strong> <strong>for</strong> <strong>IBM</strong> <strong>DB2</strong> on <strong>IBM</strong> AIX Enabled by <strong>EMC</strong> Symmetrix<br />

DMX-3, <strong>EMC</strong> CLARiiON CX3, and <strong>EMC</strong> <strong>Replication</strong> Manager Integration Guide 25


Installation and Configuration<br />

<strong>EMC</strong> Confidential - Internal Use Only<br />

Preparation<br />

<strong>EMC</strong> <strong>Replication</strong> Manager and Consistent Split technology<br />

RM with Symmetrix<br />

RM with CLARiiON<br />

Consistent Split<br />

technology<br />

<strong>Replication</strong> Manager supports the following replication technologies <strong>for</strong><br />

Symmetrix arrays, among which the TimeFinder/Clone replication along with<br />

<strong>EMC</strong> Consistent Split technology were used in this solution:<br />

• TimeFinder/Clone<br />

• TimeFinder/Mirror<br />

• TimeFinder/Snap<br />

• TimeFinder/Mirror of R2<br />

<strong>Replication</strong> Manager supports the following replication technologies <strong>for</strong><br />

CLARiiON arrays, among which the SnapView Clone replication along with<br />

<strong>EMC</strong> Consistent Split technology were used in this solution:<br />

• SnapView Clone<br />

• SnapView Snapshot<br />

• SAN Copy <strong>for</strong> Symmetrix to CLARiiON<br />

The technology that is used is determined by customer requirements.<br />

<strong>Replication</strong> Manager can utilize Consistent Split technology provided by<br />

Symmetrix and CLARiiON storage arrays to create consistent copies of<br />

application data. Consistency is assured not by the application, but by the <strong>EMC</strong><br />

storage arrays and enabling software: TimeFinder <strong>for</strong> Symmetrix, and<br />

Navisphere and SnapView <strong>for</strong> CLARiiON.<br />

Preparing to install <strong>EMC</strong> <strong>Replication</strong> Manager<br />

Refer to the <strong>EMC</strong> <strong>Replication</strong> Manager Support Matrix <strong>for</strong> prerequisites and<br />

compatibility in<strong>for</strong>mation on <strong>EMC</strong> Powerlink ® :<br />

Support > Interoperability and Product Lifecycle In<strong>for</strong>mation > E-Lab<br />

Interoperability Navigator<br />

or go directly to this URL:<br />

https://elabnavigator.emc.com/do/navigator.jsp<br />

26<br />

<strong>EMC</strong> <strong>Intelligent</strong> <strong>Cloning</strong> <strong>for</strong> <strong>SAP</strong> <strong>Automated</strong> <strong>Replication</strong> <strong>for</strong> <strong>IBM</strong> <strong>DB2</strong> on <strong>IBM</strong> AIX Enabled by <strong>EMC</strong> Symmetrix<br />

DMX-3, <strong>EMC</strong> CLARiiON CX3, and <strong>EMC</strong> <strong>Replication</strong> Manager Integration Guide


<strong>EMC</strong> Confidential - Internal Use Only<br />

Software installation<br />

Note: <strong>Replication</strong> Manager Server currently supports Windows 2000 Server,<br />

Windows 2000 Advanced Server, and Windows Server 2003. In addition, the system<br />

must meet the operating system patch levels specified in the <strong>EMC</strong> <strong>Replication</strong><br />

Manager Support Matrix.<br />

Software installation<br />

Installing <strong>EMC</strong> Solutions Enabler<br />

Installing <strong>EMC</strong> PowerPath<br />

Installing <strong>EMC</strong> Navisphere Agent and CLI<br />

<strong>Replication</strong> Manager uses <strong>EMC</strong> Solutions Enabler software to communicate<br />

with the Symmetrix or CLARiiON array's native software to create replicas<br />

of data and to discover storage arrays, their configurations, and the layout of<br />

application data.<br />

<strong>EMC</strong> Solutions Enabler must be installed on both source and target hosts <strong>for</strong><br />

replication, regardless of the storage array type being used.<br />

Refer to the <strong>EMC</strong> Solutions Enabler product documentation <strong>for</strong> detailed<br />

installation instructions.<br />

<strong>EMC</strong> strongly recommends using PowerPath with <strong>Replication</strong> Manager<br />

whenever possible, especially with CLARiiON storage where the<br />

trespassing of LUNs from one SP to another occurs. If PowerPath is installed<br />

on a production host, it also must be installed on all mount hosts; otherwise<br />

the mounts will fail.<br />

Refer to the <strong>Replication</strong> Manager Support Matrix <strong>for</strong> compatibility<br />

in<strong>for</strong>mation.<br />

Refer to the <strong>EMC</strong> PowerPath product documentation <strong>for</strong> installation<br />

instructions.<br />

Refer to the Navisphere product documentation <strong>for</strong> installation instructions.<br />

There are no special considerations <strong>for</strong> installing the product within this<br />

environment.<br />

<strong>EMC</strong> <strong>Intelligent</strong> <strong>Cloning</strong> <strong>for</strong> <strong>SAP</strong> <strong>Automated</strong> <strong>Replication</strong> <strong>for</strong> <strong>IBM</strong> <strong>DB2</strong> on <strong>IBM</strong> AIX Enabled by <strong>EMC</strong> Symmetrix<br />

DMX-3, <strong>EMC</strong> CLARiiON CX3, and <strong>EMC</strong> <strong>Replication</strong> Manager Integration Guide<br />

27


Installation and Configuration<br />

<strong>EMC</strong> Confidential - Internal Use Only<br />

Installing <strong>EMC</strong> Admsnap<br />

Installing <strong>EMC</strong> <strong>Replication</strong> Manager<br />

Refer to the Navisphere product documentation <strong>for</strong> installation instructions.<br />

There are no special considerations <strong>for</strong> installing the product within this<br />

environment.<br />

Installing <strong>Replication</strong> Manager within the context of this solution involves:<br />

• Installing <strong>Replication</strong> Manager Server on a Windows server<br />

• Installing <strong>Replication</strong> Manager Agent on each <strong>IBM</strong>-AIX host<br />

• Installing <strong>Replication</strong> Manager Console on Windows<br />

Refer to the <strong>Replication</strong> Manager Administrator's Guide <strong>for</strong> detailed installation<br />

instructions.<br />

Obtaining <strong>Replication</strong> Manager Client licenses<br />

<strong>Replication</strong> Manager is license-controlled and licensed per each host that uses<br />

<strong>Replication</strong> Manager Agent. Refer to the <strong>Replication</strong> Manager Administrator's<br />

Guide <strong>for</strong> in<strong>for</strong>mation on obtaining a license. All hosts participating in the<br />

replication need to be licensed.<br />

Assigning <strong>Replication</strong> Manager Client licenses to hosts<br />

Once you have obtained the appropriate number of <strong>Replication</strong> Manager Client<br />

licenses, you can assign them to the hosts to be used <strong>for</strong> replication.<br />

To assign a <strong>Replication</strong> Manager Client license to a host, do the following in<br />

<strong>Replication</strong> Manager:<br />

1. Right-click the <strong>Replication</strong> Manager host or server to which you want to<br />

assign a license<br />

2. Choose Properties<br />

3. Select the Licenses tab<br />

4. Click the link at the bottom of the dialog box<br />

5. Specify the license in<strong>for</strong>mation<br />

28<br />

<strong>EMC</strong> <strong>Intelligent</strong> <strong>Cloning</strong> <strong>for</strong> <strong>SAP</strong> <strong>Automated</strong> <strong>Replication</strong> <strong>for</strong> <strong>IBM</strong> <strong>DB2</strong> on <strong>IBM</strong> AIX Enabled by <strong>EMC</strong> Symmetrix<br />

DMX-3, <strong>EMC</strong> CLARiiON CX3, and <strong>EMC</strong> <strong>Replication</strong> Manager Integration Guide


<strong>EMC</strong> Confidential - Internal Use Only<br />

Component configuration<br />

Component configuration<br />

Configuring <strong>SAP</strong> <strong>DB2</strong> <strong>for</strong> <strong>Replication</strong> Manager<br />

To configure the <strong>SAP</strong> <strong>DB2</strong> database <strong>for</strong> <strong>Replication</strong> Manager, follow the<br />

instructions in the "UDB Procedures" chapter of the <strong>EMC</strong> <strong>Replication</strong><br />

Manager Version 5.1 Product Guide.<br />

1. Ensure that data files, active logs, temporary tablespace, DB directory,<br />

and all containers in each tablespace are located in an <strong>EMC</strong> supported<br />

storage array, since all of these files must be replicated.<br />

2. Ensure that appropriate SYSADM privileges are assigned to OS users<br />

<strong>for</strong> <strong>SAP</strong> and the database on the target in order to facilitate the<br />

administration of the target database.<br />

3. Ensure that an OS user <strong>for</strong> <strong>SAP</strong> application (e.g. , <strong>SAP</strong>) is created<br />

on target, which is identical to the source host. For Symmetrix DMX<br />

multi-partitioned local replication scenario, an identical OS user <strong>for</strong><br />

database (e.g., <strong>DB2</strong>) is also required on target hosts.<br />

4. Verify that an instance directory on target is created as below:<br />

db2//db2<br />

OR<br />

db2//db2<br />

5. For Symmetrix DMX multi-partitioned local replication, verify the<br />

sapdata1... n directories on the second node regardless of the<br />

usage. The subdirectories that contain the SYSCATALOG tablespace<br />

have to exist on all <strong>DB2</strong> nodes, so that they must be created even if they<br />

are empty on nodes where they are not being used.<br />

6. Verify that the target database log archive parameter value is the log<br />

archive directory.<br />

Configuring <strong>DB2</strong> <strong>for</strong> mount and recover operations<br />

The following steps need to be done either <strong>for</strong> the first time after the<br />

replication, or when the database name is changed on the target server.<br />

1. Verify that the user ID (UID) and the group ID (GID) of <strong>DB2</strong> database<br />

instance owner are the same on both the production host and mount host.<br />

Otherwise, permission issues when per<strong>for</strong>ming mount-related operations<br />

<strong>EMC</strong> <strong>Intelligent</strong> <strong>Cloning</strong> <strong>for</strong> <strong>SAP</strong> <strong>Automated</strong> <strong>Replication</strong> <strong>for</strong> <strong>IBM</strong> <strong>DB2</strong> on <strong>IBM</strong> AIX Enabled by <strong>EMC</strong> Symmetrix<br />

DMX-3, <strong>EMC</strong> CLARiiON CX3, and <strong>EMC</strong> <strong>Replication</strong> Manager Integration Guide<br />

29


Installation and Configuration<br />

<strong>EMC</strong> Confidential - Internal Use Only<br />

can occur. In the cluster to standalone replication, the UID is different<br />

between source and target. You can use RM callout scripts to handle file<br />

permission changes.<br />

2. Modify the environment variable with the following command:<br />

setenv dbs_db6_schema sap<br />

3. Update the password file on the target host.<br />

a. Verify the database connection:<br />

dscdb6up adm <br />

b. Run the following command if an error occurs:<br />

dscdb6up -create <br />

c. Run the following command to overwrite the existing password file:<br />

dscdb6up -rewrite<br />

d. Verify the database connection:<br />

dscdb6up adm <br />

The file dscdb6.conf is now updated.<br />

Configuring RM <strong>for</strong> mount and recover operations<br />

Mounting and unmounting procedures<br />

<strong>Replication</strong> Manager executes the steps from mapping appropriate devices <strong>for</strong><br />

replication to mounting to target hosts. With the callout scripts, <strong>Replication</strong><br />

Manager brings up the database with the target SID, and starts the <strong>SAP</strong><br />

application. Optionally, a script to initialize <strong>SAP</strong> system (e.g., Job, Transport<br />

route) can be run manually.<br />

The steps can be divided into 3 kinds of actions:<br />

1. Steps executed by <strong>Replication</strong> Manager<br />

2. Steps executed by callout scripts<br />

3. Steps executed by scripts manually<br />

Steps 1 and 2 are run with a <strong>Replication</strong> Manager job. Step 3 is run manually, but<br />

can be implemented with a <strong>Replication</strong> Manager job as a post-mount script or<br />

callout script based on the your requirement.<br />

30<br />

<strong>EMC</strong> <strong>Intelligent</strong> <strong>Cloning</strong> <strong>for</strong> <strong>SAP</strong> <strong>Automated</strong> <strong>Replication</strong> <strong>for</strong> <strong>IBM</strong> <strong>DB2</strong> on <strong>IBM</strong> AIX Enabled by <strong>EMC</strong> Symmetrix<br />

DMX-3, <strong>EMC</strong> CLARiiON CX3, and <strong>EMC</strong> <strong>Replication</strong> Manager Integration Guide


<strong>EMC</strong> Confidential - Internal Use Only<br />

Component configuration<br />

Figure 9 and 10 illustrate the mounting and unmounting procedures of<br />

<strong>Replication</strong> Manager.<br />

Figure 9<br />

Mounting procedure<br />

Note: <strong>DB2</strong> instance and DAS must run on both source and target mount hosts.<br />

Figure 10<br />

Unmounting procedure<br />

<strong>EMC</strong> <strong>Intelligent</strong> <strong>Cloning</strong> <strong>for</strong> <strong>SAP</strong> <strong>Automated</strong> <strong>Replication</strong> <strong>for</strong> <strong>IBM</strong> <strong>DB2</strong> on <strong>IBM</strong> AIX Enabled by <strong>EMC</strong> Symmetrix<br />

DMX-3, <strong>EMC</strong> CLARiiON CX3, and <strong>EMC</strong> <strong>Replication</strong> Manager Integration Guide<br />

31


Installation and Configuration<br />

<strong>EMC</strong> Confidential - Internal Use Only<br />

Configuring <strong>Replication</strong> Manager<br />

Application set<br />

settings<br />

Advanced replication<br />

settings<br />

For the multi-partitioned replication, multiple source servers are selected. Select<br />

appropriate directories from the servers you want to replicate.<br />

For the cluster-to-cluster replication, please select the <strong>DB2</strong> virtual host source<br />

server.<br />

For all replication scenarios, make sure Use consistent split, Online by<br />

suspending the database,and by database are selected.<br />

32<br />

<strong>EMC</strong> <strong>Intelligent</strong> <strong>Cloning</strong> <strong>for</strong> <strong>SAP</strong> <strong>Automated</strong> <strong>Replication</strong> <strong>for</strong> <strong>IBM</strong> <strong>DB2</strong> on <strong>IBM</strong> AIX Enabled by <strong>EMC</strong> Symmetrix<br />

DMX-3, <strong>EMC</strong> CLARiiON CX3, and <strong>EMC</strong> <strong>Replication</strong> Manager Integration Guide


<strong>EMC</strong> Confidential - Internal Use Only<br />

Component configuration<br />

For the multi-partitioned replication, multiple source servers are selected.<br />

Add pre- and post-scripts to the host that is running the primary <strong>DB2</strong> node..<br />

Mount option<br />

Make sure Alternate Path is selected and specified <strong>for</strong> cluster-to-standalone<br />

replication.<br />

<strong>EMC</strong> <strong>Intelligent</strong> <strong>Cloning</strong> <strong>for</strong> <strong>SAP</strong> <strong>Automated</strong> <strong>Replication</strong> <strong>for</strong> <strong>IBM</strong> <strong>DB2</strong> on <strong>IBM</strong> AIX Enabled by <strong>EMC</strong> Symmetrix<br />

DMX-3, <strong>EMC</strong> CLARiiON CX3, and <strong>EMC</strong> <strong>Replication</strong> Manager Integration Guide<br />

33


Installation and Configuration<br />

<strong>EMC</strong> Confidential - Internal Use Only<br />

For multi-partitioned replication, make sure the multiple paths are selected. In the<br />

following table, the first row indicates the locations of the DB directory. The<br />

second row indicates the locations of the rest of the database.<br />

For cluster-to-cluster replication, make sure Clustered volume group import is<br />

selected.<br />

34<br />

<strong>EMC</strong> <strong>Intelligent</strong> <strong>Cloning</strong> <strong>for</strong> <strong>SAP</strong> <strong>Automated</strong> <strong>Replication</strong> <strong>for</strong> <strong>IBM</strong> <strong>DB2</strong> on <strong>IBM</strong> AIX Enabled by <strong>EMC</strong> Symmetrix<br />

DMX-3, <strong>EMC</strong> CLARiiON CX3, and <strong>EMC</strong> <strong>Replication</strong> Manager Integration Guide


<strong>EMC</strong> Confidential - Internal Use Only<br />

Component configuration<br />

Configuring <strong>Replication</strong> Manager callout scripts<br />

<strong>Replication</strong> Manager callout scripts can be used <strong>for</strong> triggering customized<br />

actions at several points in the replication, mounting, and restore processes.<br />

The <strong>EMC</strong> <strong>Intelligent</strong> <strong>Cloning</strong> <strong>for</strong> <strong>SAP</strong> <strong>Automated</strong> <strong>Replication</strong> <strong>for</strong> <strong>IBM</strong> <strong>DB2</strong><br />

on <strong>IBM</strong> AIX solution utilized pairs of callout scripts. The first script in each<br />

pair per<strong>for</strong>ms a pre-clone action; the second script per<strong>for</strong>ms some post-clone<br />

cleanups.<br />

You must adhere to the following callout naming convention when creating<br />

callout scripts:<br />

IR_CALLOUT___<br />

where<br />

is the name of the application set that<br />

contains the job that will run the script.<br />

is the name of the job that will run the script (within the<br />

application set defined above).<br />

When = 600, the callout script is used to relocate database and start<br />

<strong>SAP</strong> system during the solution testing. The script is called “post-clone<br />

cleanup script” throughout this document.<br />

When = 1300, the callout script is used to stop <strong>SAP</strong> system and drop the<br />

database on target during the solution testing.<br />

Examples of the post-clone cleanup scripts are provided in Appendix A.<br />

For detailed in<strong>for</strong>mation on creating callout scripts, including all possible<br />

entry points and entry point numbers, refer to “Using application callout<br />

scripts” in the <strong>EMC</strong> <strong>Replication</strong> Manager Version 5.1 Product Guide.<br />

<strong>EMC</strong> <strong>Intelligent</strong> <strong>Cloning</strong> <strong>for</strong> <strong>SAP</strong> <strong>Automated</strong> <strong>Replication</strong> <strong>for</strong> <strong>IBM</strong> <strong>DB2</strong> on <strong>IBM</strong> AIX Enabled by <strong>EMC</strong> Symmetrix<br />

DMX-3, <strong>EMC</strong> CLARiiON CX3, and <strong>EMC</strong> <strong>Replication</strong> Manager Integration Guide<br />

35


Installation and Configuration<br />

<strong>EMC</strong> Confidential - Internal Use Only<br />

36<br />

<strong>EMC</strong> <strong>Intelligent</strong> <strong>Cloning</strong> <strong>for</strong> <strong>SAP</strong> <strong>Automated</strong> <strong>Replication</strong> <strong>for</strong> <strong>IBM</strong> <strong>DB2</strong> on <strong>IBM</strong> AIX Enabled by <strong>EMC</strong> Symmetrix<br />

DMX-3, <strong>EMC</strong> CLARiiON CX3, and <strong>EMC</strong> <strong>Replication</strong> Manager Integration Guide


<strong>EMC</strong> Confidential - Internal Use Only<br />

4<br />

Conclusion<br />

Building an enterprise <strong>SAP</strong> landscape that encompasses local replication,<br />

multi-partitioned replication, and cluster replication is a complicated<br />

endeavor. This integration guide depicts solutions that are reproduceable and<br />

a validated design using <strong>EMC</strong> Symmetrix DMX-3 1500 and CLARiiON<br />

CX3-40 storage systems, <strong>EMC</strong> <strong>Replication</strong> Manager, and storage<br />

consistency technology. This solution provides effective cloning of <strong>SAP</strong><br />

ERP and BI production data <strong>for</strong> <strong>IBM</strong>-AIX on a <strong>DB2</strong> plat<strong>for</strong>m <strong>for</strong> quality<br />

assurance, reporting, and upgrading purposes. The solution offers the<br />

following benefits:<br />

• Eliminates manual errors and custom script maintenance<br />

• Empowers <strong>SAP</strong> administrators and DBAs to create a second <strong>SAP</strong><br />

system where needed and when needed<br />

• Lowers TCO and provides greater flexibility with tiered storage<br />

replication<br />

• Accelerates "time to value" <strong>for</strong> new <strong>SAP</strong> modules<br />

• Improves productivity of IT resources<br />

• Enables consistent copies of multi-partitioning system<br />

• Provides customized automation of major post-cloning processes<br />

<strong>EMC</strong> can help accelerate assessment, design, implementation, and<br />

management while lowering the implementation risks and cost of creating a<br />

cloning environment <strong>for</strong> <strong>SAP</strong> on <strong>IBM</strong>-AIX with <strong>DB2</strong> on <strong>EMC</strong> Symmetrix<br />

DMX or CLARiiON CX storage.<br />

Please contact the <strong>EMC</strong> <strong>SAP</strong> Solution Practice in Hopkinton, MA, <strong>for</strong><br />

assistance and guidance. To learn more about this and other solutions,<br />

contact an <strong>EMC</strong> representative or visit www.<strong>EMC</strong>.com/solutions/sap.<br />

<strong>EMC</strong> <strong>Intelligent</strong> <strong>Cloning</strong> <strong>for</strong> <strong>SAP</strong> <strong>Automated</strong> <strong>Replication</strong> <strong>for</strong> <strong>IBM</strong> <strong>DB2</strong> on <strong>IBM</strong> AIX Enabled by <strong>EMC</strong> Symmetrix<br />

DMX-3, <strong>EMC</strong> CLARiiON CX3, and <strong>EMC</strong> <strong>Replication</strong> Manager Integration Guide 37


Conclusion<br />

<strong>EMC</strong> Confidential - Internal Use Only<br />

38<br />

<strong>EMC</strong> <strong>Intelligent</strong> <strong>Cloning</strong> <strong>for</strong> <strong>SAP</strong> <strong>Automated</strong> <strong>Replication</strong> <strong>for</strong> <strong>IBM</strong> <strong>DB2</strong> on <strong>IBM</strong> AIX Enabled by <strong>EMC</strong> Symmetrix<br />

DMX-3, <strong>EMC</strong> CLARiiON CX3, and <strong>EMC</strong> <strong>Replication</strong> Manager Integration Guide


<strong>EMC</strong> Confidential - Internal Use Only<br />

A<br />

Example Scripts<br />

<strong>Replication</strong> Manager callout scripts<br />

Post-clone cleanup script<br />

<strong>Replication</strong> Manager Application callout scripts are available <strong>for</strong> triggering<br />

customized actions at several points in the replication, mounting, and restore<br />

processes.<br />

This solution utilized pairs of callout scripts. The first script in each pair<br />

per<strong>for</strong>med a pre-clone action; the second script per<strong>for</strong>med some post-clone<br />

cleanups.<br />

You must adhere to the following callout naming convention when creating<br />

callout scripts; otherwise the scripts will not work:<br />

IR_CALLOUT___<br />

This section presents an outline of the post-clone cleanup script used during<br />

solution testing. The script was called automatically from a <strong>Replication</strong><br />

Manager callout script named IR_CALLOUT___600.<br />

For example:<br />

su - db2ae5 -c "/db2/db2ae5/relocatedb.sh"<br />

su - ae5adm -c "startsap"<br />

This callout script starts an <strong>SAP</strong> application on the target host.<br />

<strong>EMC</strong> <strong>Intelligent</strong> <strong>Cloning</strong> <strong>for</strong> <strong>SAP</strong> <strong>Automated</strong> <strong>Replication</strong> <strong>for</strong> <strong>IBM</strong> <strong>DB2</strong> on <strong>IBM</strong> AIX Enabled by <strong>EMC</strong> Symmetrix<br />

DMX-3, <strong>EMC</strong> CLARiiON CX3, and <strong>EMC</strong> <strong>Replication</strong> Manager Integration Guide 39


Example Scripts<br />

<strong>EMC</strong> Confidential - Internal Use Only<br />

The post-clone cleanup script per<strong>for</strong>med the following tasks:<br />

• Relocate database on the target host<br />

• Start database and <strong>SAP</strong> application<br />

Example:<br />

CLARiiON standalone source to standalone target replication:<br />

############################################################<br />

#File Name: IR_CALLOUT_test_test_600<br />

############################################################<br />

su - db2ae0 -c "/db2/db2ae0/relocatedb.sh<br />

############################################################<br />

#File Name: relocatedb.sh<br />

############################################################<br />

#!/bin/csh -fXV<br />

source $HOME/.dbenv_sapaix10.csh<br />

if ($status != 0) goto error<br />

set TSID=AE0<br />

set SSID=AE9<br />

set SH_NAME=relocatedb.sh<br />

set DBSSID=db2ae9<br />

set DBTSID=db2ae0<br />

set RELOCATEFILE=relocatedb.cfg_AE0<br />

set DBSHOST=sapaix09<br />

set DBSPWD=emcadm60<br />

cd $HOME<br />

if ($status != 0) goto error<br />

rm $HOME/*.scr<br />

if ($status > 2) goto error<br />

rm $HOME/*.brp<br />

if ($status > 2) goto error<br />

rm $HOME/$RELOCATEFILE<br />

if ($status > 2) goto error<br />

# db2start<br />

# if ($status > 1) goto error<br />

db2 CATALOG TCPIP NODE $DBSSID REMOTE $DBSHOST SERVER 5912<br />

REMOTE_INSTANCE $DBSSID<br />

SYSTEM $DBSHOST OSTYPE AIX64<br />

db2 CATALOG DATABASE $SSID AS $SSID AT NODE $DBSSID<br />

/sapmnt/$TSID/exe/brdb6brt -s $SSID -user $DBSSID -using<br />

$DBSPWD -bm RETRIEVE_RELOCATE<br />

40<br />

<strong>EMC</strong> <strong>Intelligent</strong> <strong>Cloning</strong> <strong>for</strong> <strong>SAP</strong> <strong>Automated</strong> <strong>Replication</strong> <strong>for</strong> <strong>IBM</strong> <strong>DB2</strong> on <strong>IBM</strong> AIX Enabled by <strong>EMC</strong> Symmetrix<br />

DMX-3, <strong>EMC</strong> CLARiiON CX3, and <strong>EMC</strong> <strong>Replication</strong> Manager Integration Guide


<strong>EMC</strong> Confidential - Internal Use Only<br />

Post-clone cleanup script<br />

-ip $HOME -replace $SSID/=$TSID/ -es<br />

if ($status != 0) then<br />

mv ${RELOCATEFILE}.save $RELOCATEFILE<br />

if ($status != 0) goto error<br />

endif<br />

# awk -F, '{if (/INSTANCE=$DBTSID,$DBTSID/) {printf<br />

"INSTANCE=$DBSSID,$DBTSID\n"}else<br />

if (/DB_NAME=$SSID,$SSID/){ printf<br />

"DB_NAME=$SSID,$TSID\n"}else if (/DB_PATH=,/)<br />

{printf "DB_PATH=/db2/$SSID,/db2/$TSID\n"}else{print<br />

$0}}' $HOME/$SSID_NODE0000.scr ><br />

$HOME/$RELOCATEFILE<br />

awk -F, '{if (/INSTANCE='$DBTSID','$DBTSID'/) {print<br />

"INSTANCE='$DBSSID','$DBTSID'"}else if<br />

(/DB_NAME='$SSID','$SSID'/){ print<br />

"DB_NAME='$SSID','$TSID'"}else if (/DB_PATH=,/) {print<br />

"DB_PATH=/db2/'$SSID',/db2/'$TSID'"}else{print $0}}'<br />

$HOME/${SSID}_NODE0000.scr ><br />

$HOME/$RELOCATEFILE<br />

if ($status != 0) goto error<br />

cp $RELOCATEFILE ${RELOCATEFILE}.save<br />

if ($status != 0) goto error<br />

cd /db2/$TSID/sapdata1<br />

if ($status != 0) goto error<br />

mv $DBSSID $DBTSID<br />

if ($status > 1) goto error<br />

cd /db2/$TSID/sapdata2<br />

if ($status != 0) goto error<br />

mv $DBSSID $DBTSID<br />

if ($status > 1) goto error<br />

cd /db2/$TSID/sapdata3<br />

if ($status != 0) goto error<br />

mv $DBSSID $DBTSID<br />

if ($status > 1) goto error<br />

cd /db2/$TSID/sapdata4<br />

if ($status != 0) goto error<br />

mv $DBSSID $DBTSID<br />

if ($status > 1) goto error<br />

db2 list applications<br />

if ($status != 0) then<br />

db2start<br />

if ($status != 0) goto error<br />

endif<br />

<strong>EMC</strong> <strong>Intelligent</strong> <strong>Cloning</strong> <strong>for</strong> <strong>SAP</strong> <strong>Automated</strong> <strong>Replication</strong> <strong>for</strong> <strong>IBM</strong> <strong>DB2</strong> on <strong>IBM</strong> AIX Enabled by <strong>EMC</strong> Symmetrix<br />

DMX-3, <strong>EMC</strong> CLARiiON CX3, and <strong>EMC</strong> <strong>Replication</strong> Manager Integration Guide<br />

41


Example Scripts<br />

<strong>EMC</strong> Confidential - Internal Use Only<br />

db2inidb $TSID as standby relocate using $HOME/$RELOCATEFILE<br />

if ($status != 0) then<br />

db2 list db directory on /db2/$TSID<br />

if ($status != 0) goto error<br />

endif<br />

# db2 -tvf $HOME/post_clone.sql -z $HOME/post_clone.log<br />

if ($status > 5) goto error<br />

done:<br />

exit 0<br />

<strong>SAP</strong> post-clone cleanup script<br />

error:<br />

exit 1<br />

############################################################<br />

This section presents an outline of the <strong>SAP</strong> post-clone cleanup script used during<br />

solution testing. During the solution testing, the script was called manually to be<br />

distinguished from the post-clone cleanup script that actually starts an <strong>SAP</strong><br />

application.<br />

The <strong>SAP</strong> post-clone cleanup script per<strong>for</strong>med the following tasks:<br />

1. Adjust required RFC destinations.<br />

2. Delete a single RFC connection.<br />

3. Update operation modes.<br />

4. Remove system copy message.<br />

5. Adjust and change job status.<br />

6. Initiate and reset transport system.<br />

7. Delete entries from <strong>SAP</strong> tables.<br />

8. Delete all entries from tables TPFET and TPFHT. These contain in<strong>for</strong>mation<br />

about changes made to the profile of the source system.<br />

9. Clean up DDLOG.<br />

10. Delete all entries from the following tables: ALCONSEG, ALSYSTEMS,<br />

DBSNP, MONI, OSMON, PAHI, SDBAD, SDBAH, SDBAP, SDBAR.<br />

11. Delete all entries from table TLOCK, which holds the repair requests from<br />

the source system.<br />

12. Delete all print jobs (transaction SP01, or ABAP program RSPO0041).<br />

42<br />

<strong>EMC</strong> <strong>Intelligent</strong> <strong>Cloning</strong> <strong>for</strong> <strong>SAP</strong> <strong>Automated</strong> <strong>Replication</strong> <strong>for</strong> <strong>IBM</strong> <strong>DB2</strong> on <strong>IBM</strong> AIX Enabled by <strong>EMC</strong> Symmetrix<br />

DMX-3, <strong>EMC</strong> CLARiiON CX3, and <strong>EMC</strong> <strong>Replication</strong> Manager Integration Guide


<strong>EMC</strong> Confidential - Internal Use Only<br />

Unmount script<br />

13. Disable printers, except selected printers.<br />

14. Deactivate all user events (transactions SM62,SM64).<br />

15. Reset password expiration times and invalid login counters <strong>for</strong> all users.<br />

Unmount script<br />

This section presents an outline of the unmount script used during solution<br />

testing. The script is called automatically from a <strong>Replication</strong> Manager<br />

callout script named IR_CALLOUT___1300. For<br />

example:<br />

su - ae5adm -c "/home/ae5adm/stopallsap.sh"<br />

su - db2ae5 -c "db2 -tvf /db2/db2ae5/dropdb.sql"<br />

Relocation configuration file<br />

/usr/es/sbin/cluster/utilities/claddres -g 'rg_NodeA'<br />

SERVICE_LABEL='dbae5' APPLICATIONS='db'<br />

VG_AUTO_IMPORT='false' VOLUME_GROUP='db2binvg'<br />

/usr/es/sbin/cluster/utilities/cldare -rt -V 'normal'<br />

The unmount script per<strong>for</strong>med the following tasks:<br />

1. Stop the <strong>SAP</strong> application<br />

2. Stop the DB connection, if any<br />

3. Drop the database<br />

The relocation configuration file consists of the location of filesystem paths,<br />

instance name, database name, log directory, and container paths. To bring<br />

up the database on target, create and modify the relocation configuration file<br />

follow the steps below:<br />

1. Log in as an adm user and generate a configuration file on the<br />

source host using the following command:<br />

brdb6brt -bm RETRIEVE_RELOCATE -replace = <br />

The command generates a configuration file (_NODE0000.scr)<br />

and a comment file (_NODE0000.brp).<br />

<strong>EMC</strong> <strong>Intelligent</strong> <strong>Cloning</strong> <strong>for</strong> <strong>SAP</strong> <strong>Automated</strong> <strong>Replication</strong> <strong>for</strong> <strong>IBM</strong> <strong>DB2</strong> on <strong>IBM</strong> AIX Enabled by <strong>EMC</strong> Symmetrix<br />

DMX-3, <strong>EMC</strong> CLARiiON CX3, and <strong>EMC</strong> <strong>Replication</strong> Manager Integration Guide<br />

43


Example Scripts<br />

<strong>EMC</strong> Confidential - Internal Use Only<br />

2. Modify the generated configuration file and move the file to the target host.<br />

a. Modify the name of the configuration file:<br />

cp _NODE0000.brp relocatedb.cfg_<br />

b. Modify the content of the configuration file:<br />

Example:<br />

From:<br />

INSTANCE=db2ae1,db2ae1<br />

CONT_PATH=/db2/AE1/sapdata1/NODE0000/AE1#DBD.container000<br />

,/db2/AE5/sapdata1/NODE0000/AE5#DBD.container000<br />

...<br />

**AE1 is source SID while AE5 is target SID.<br />

To:<br />

INSTANCE=db2ae1,db2ae5<br />

CONT_PATH=/db2/AE1/sapdata1/NODE0000/AE1#DBD.container000<br />

,/db2/AE5/sapdata1/NODE0000/AE1#DBD.container000<br />

...<br />

**AE1 is source SID while AE5 is target SID.<br />

Cluster configuration scripts<br />

Use these scripts to manipulate the target cluster to add/remove Volume Groups<br />

carried over by the replication.<br />

cladd.sh<br />

x=`lsvg | awk '/^ERM/ {printf "%s ",$0}'`<br />

echo "claddres -g 'rg_NodeA' SERVICE_LABEL='dbae5'<br />

APPLICATIONS='db' VG_AUTO_IMPORT='false'<br />

VOLUME_GROUP='db2binvg $x'"<br />

echo "claddres -g 'rg_NodeA' SERVICE_LABEL='dbae5'<br />

APPLICATIONS='db' VG_AUTO_IMPORT='false'<br />

VOLUME_GROUP='db2binvg $x'" | sh<br />

cldare -rt -V 'normal'<br />

clrem.sh<br />

claddres -g 'rg_NodeA' SERVICE_LABEL='dbae5'<br />

APPLICATIONS='db' VG_AUTO_IMPORT='false'<br />

VOLUME_GROUP='db2binvg'<br />

cldare -rt -V 'normal'<br />

44<br />

<strong>EMC</strong> <strong>Intelligent</strong> <strong>Cloning</strong> <strong>for</strong> <strong>SAP</strong> <strong>Automated</strong> <strong>Replication</strong> <strong>for</strong> <strong>IBM</strong> <strong>DB2</strong> on <strong>IBM</strong> AIX Enabled by <strong>EMC</strong> Symmetrix<br />

DMX-3, <strong>EMC</strong> CLARiiON CX3, and <strong>EMC</strong> <strong>Replication</strong> Manager Integration Guide


<strong>EMC</strong> Confidential - Internal Use Only<br />

B<br />

Troubleshooting<br />

This appendix lists potential issues and their corresponding solutions.<br />

CLARiiON local replication: <strong>SAP</strong> is not able to add partitions to the <strong>DB2</strong> nodes<br />

In the case of multi-partitioned database only, the subdirectories that contain<br />

the SYSCATALOG tablespace must exist on all <strong>DB2</strong> nodes. The<br />

subdirectories must be created even if they are empty on nodes where they<br />

are not being used.<br />

CLARiiON local replication: <strong>Replication</strong> terminates with an error that db directory is not on<br />

a supported array even if they are on CLARiiON storage<br />

Check the trace file. If the trace file indicates that the db_dir was a separate<br />

mount point that was not replicated by <strong>Replication</strong> Manager, manually<br />

create the subdirectory of db_dir. However, creating the mount point is not<br />

necessary. The filesystem that contains the DB directory should be present<br />

on CLARiiON/DMX storage. This location can be found by the db2<br />

user using the following command:<br />

db2 list db directory<br />

CLARiiON local replication: Unable to save Job Setting in <strong>Replication</strong> Manager<br />

Contact <strong>Replication</strong> Manager customer support to obtain the hotfix<br />

URM00049436.<br />

Symmetrix DMX cluster-to-cluster replication: Mounting replica terminates with an error<br />

Modify the node name of the cluster to its physical host name, or contact<br />

<strong>Replication</strong> Manager customer support to obtain the hotfix URM00049676.<br />

<strong>EMC</strong> <strong>Intelligent</strong> <strong>Cloning</strong> <strong>for</strong> <strong>SAP</strong> <strong>Automated</strong> <strong>Replication</strong> <strong>for</strong> <strong>IBM</strong> <strong>DB2</strong> on <strong>IBM</strong> AIX Enabled by <strong>EMC</strong> Symmetrix<br />

DMX-3, <strong>EMC</strong> CLARiiON CX3, and <strong>EMC</strong> <strong>Replication</strong> Manager Integration Guide 45


Troubleshooting<br />

<strong>EMC</strong> Confidential - Internal Use Only<br />

Symmetrix DMX cluster-to-standalone replication and Symmetrix DMX cluster-to-cluster<br />

replication: Umounting replica hangs with Callout script 1300<br />

Set the environment variable <strong>EMC</strong>_ERM_NOXMLFILE to 1 and start IRCCD.<br />

CLARiiON local replication: Recover DB option fails<br />

If you are using the <strong>DB2</strong> Automatic Storage feature <strong>for</strong> any tablespace, use RM's<br />

"Callout script" instead of the Recover DB option.<br />

46<br />

<strong>EMC</strong> <strong>Intelligent</strong> <strong>Cloning</strong> <strong>for</strong> <strong>SAP</strong> <strong>Automated</strong> <strong>Replication</strong> <strong>for</strong> <strong>IBM</strong> <strong>DB2</strong> on <strong>IBM</strong> AIX Enabled by <strong>EMC</strong> Symmetrix<br />

DMX-3, <strong>EMC</strong> CLARiiON CX3, and <strong>EMC</strong> <strong>Replication</strong> Manager Integration Guide


<strong>EMC</strong> Confidential - Internal Use Only<br />

C<br />

Database Layout<br />

and Mount Points<br />

Table 3 presents the <strong>SAP</strong> <strong>DB2</strong> database layout and mount points configured<br />

<strong>for</strong> this solution.<br />

Table 3<br />

Database Layout and Mount Points<br />

VG Name LV Name Mount Point Usage Size (GB)<br />

db2binvg db2binvg_lv03 /db2/db2/V9 <strong>DB2</strong> software 32<br />

db2binvg_lv04 /db2/db2 Home directory of db user and contains<br />

the <strong>DB2</strong> instance data <strong>for</strong> <br />

db2binvg_lv05<br />

/db2/db2as<br />

db2logvg lvdb2logs /db2//log_dir DB Logs 32<br />

lvdb2archive /db2//log_archive Log archiving directory<br />

db2datavg lvsapdata /db2//sapdata1.. sap datafiles 64*<br />

lvdb2dump /db2//db2dump Contains <strong>DB2</strong> diagnostic log files, <strong>DB2</strong><br />

dump files<br />

lvae1saptemp /db2//saptemp Contains the temporary tablespace<br />

divg lvusrsapd /usr/sap//D Dialog Instance 68<br />

<strong>EMC</strong> <strong>Intelligent</strong> <strong>Cloning</strong> <strong>for</strong> <strong>SAP</strong> <strong>Automated</strong> <strong>Replication</strong> <strong>for</strong> <strong>IBM</strong> <strong>DB2</strong> on <strong>IBM</strong> AIX Enabled by <strong>EMC</strong> Symmetrix<br />

DMX-3, <strong>EMC</strong> CLARiiON CX3, and <strong>EMC</strong> <strong>Replication</strong> Manager Integration Guide 47


Database Layout and Mount Points<br />

<strong>EMC</strong> Confidential - Internal Use Only<br />

Table 3<br />

Database Layout and Mount Points (continued)<br />

VG Name LV Name Mount Point Usage Size (GB)<br />

sapvg lvusrsap /usr/sap/ <strong>SAP</strong> instance files 68<br />

lvusrsaptrans /usr/sap/trans <strong>SAP</strong> transport file<br />

lvsapmnt /sapmnt/ <strong>SAP</strong> base directory<br />

(link to /usr/sap/)<br />

lvscs /usr/sap//CSC Central services instance<br />

lvsap

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!