HP OpenView Storage Mirroring application notes. Guidelines for testing a disaster recovery/high availability scenario



Similar documents
Guidelines for using Microsoft System Center Virtual Machine Manager with HP StorageWorks Storage Mirroring

HP LeftHand SAN Solutions

HP Device Manager 4.6

High Availability for Microsoft SQL Server 7.0 Using Double-Take

capacity management for StorageWorks NAS servers

HP StorageWorks EVA Hardware Providers quick start guide

High Availability for Microsoft SQL Server Using Double-Take 4.x

WHITE PAPER. HP Guide to System Recovery and Restore

HP Intelligent Management Center v7.1 Virtualization Monitor Administrator Guide

High Availability for VMware GSX Server

Microsoft Windows Compute Cluster Server 2003 Getting Started Guide

Backing up and restoring HP Systems Insight Manager 6.0 or greater data files in a Windows environment

HP PolyServe Software upgrade guide

Citrix Systems, Inc.

HP Operations Orchestration Software

HYPERION SYSTEM 9 N-TIER INSTALLATION GUIDE MASTER DATA MANAGEMENT RELEASE 9.2

VERITAS Backup Exec TM 10.0 for Windows Servers

Symantec Backup Exec TM 11d for Windows Servers. Quick Installation Guide

Installing Windows Rights Management Services with Service Pack 2 Step-by- Step Guide

Sharing Pictures, Music, and Videos on Windows Media Center Extender

Active Directory 2008 Operations

How to configure 802.1X authentication with a Windows XP or Vista supplicant

Double-Take AVAILABILITY

HP Velocity Live QoS Support

User Document. Adobe Acrobat 7.0 for Microsoft Windows Group Policy Objects and Active Directory

HP LeftHand SAN Solutions

About Recovery Manager for Active

Send to Network Folder. Embedded Digital Sending

Symantec Backup Exec 2010 R2. Quick Installation Guide

HP Data Protector best practices for backing up and restoring Microsoft SharePoint Server 2010

HP Thin Client Imaging Tool

HP STORAGEWORKS ENTERPRISE BACKUP SOLUTIONS (EBS)

Active Directory Change Notifier Quick Start Guide

Using HP System Software Manager for the mass deployment of software updates to client PCs

HP ThinPro. Table of contents. Connection Configuration for RDP Farm Deployments. Technical white paper

Polar Help Desk Installation Guide

VERITAS Backup Exec 9.1 for Windows Servers Quick Installation Guide

Cluster to Cluster Failover Using Double-Take

Server Virtualization with Windows Server Hyper-V and System Center (20409) H8B93S

HP Device Manager 4.6

Cloud Identity Management Tool Quick Start Guide

How to use Data Protector 6.0 or 6.10 with Exchange Recovery Storage Groups to restore a single mailbox

Software Manual. HP SimpleSave. Backup Software User Manual. SimpleSave

CA ARCserve and CA XOsoft r12.5 Best Practices for protecting Microsoft Exchange

EMC NetWorker Module for Microsoft for Windows Bare Metal Recovery Solution

Quick Start Guide For Ipswitch Failover v9.0

HP Device Manager 4.7

Sage HRMS 2014 Sage Employee Self Service Tech Installation Guide for Windows 2003, 2008, and October 2013

HP A-IMC Firewall Manager

Installation and Deployment

Upgrade Guide. CA Application Delivery Analysis 10.1

HP IMC Firewall Manager

FTP Image Update for HP Linux Thin Clients

HP Softpaq Download Manager and HP System Software Manager

P4000 SAN/iQ software upgrade user guide

Monitoring and Operating a Private Cloud with System Center 2012 (10750) H7G37S

Disaster Recovery. Websense Web Security Web Security Gateway. v7.6

HP Operations Orchestration Software

High Availability for Internet Information Server Using Double-Take 4.x

5nine Security for Hyper-V Datacenter Edition. Version 3.0 Plugin for Microsoft System Center 2012 Virtual Machine Manager

Installing and Configuring Windows Server 2012 (20410) H4D00S

HP Quality Center. Software Version: Microsoft Word Add-in Guide

Xcalibur Global Version 1.2 Installation Guide Document Version 3.0

How to Configure Double-Take on Microsoft Exchange Server

Virtual Machine Environments: Data Protection and Recovery Solutions

Monitoring DoubleTake Availability

Full-Server Failover User s Guide

QAD Enterprise Applications. Training Guide Demand Management 6.1 Technical Training

High Availability for Oracle 8 Using Double-Take

Basic ShadowProtect Troubleshooting

Creating and Deploying Active Directory Rights Management Services Templates Step-by-Step Guide

HP Enterprise Integration module for SAP applications

HP OpenView Service Desk Process Insight 2.10 software

HP OpenView AssetCenter

HP Client Manager 6.2

By the Citrix Publications Department. Citrix Systems, Inc.

By Citrix Consulting Services. Citrix Systems, Inc.

NETWRIX CHANGE NOTIFIER

Legal Notices Introduction... 3

Standalone Trial Guide

HP Device Manager 4.7

Veritas Cluster Server Database Agent for Microsoft SQL Configuration Guide

Portions of this product were created using LEADTOOLS LEAD Technologies, Inc. ALL RIGHTS RESERVED.

How to Test Out Backup & Replication 6.5 for Hyper-V

Managing Scalability of Web services

HP ProtectTools Embedded Security Guide

HP OpenView Internet Services. SNMP Integration with HP Operations Manager for Windows White Paper

Dell InTrust Preparing for Auditing Microsoft SQL Server

Veeam Task Manager for Hyper-V

How to configure Failover Clustering for Hyper-V hosts on HP ProLiant c-class server blades with All-in-One SB600c storage blade

Adobe Acrobat 9 Deployment on Microsoft Windows Group Policy and the Active Directory service

HP Device Manager 4.6

HP Access Control Express Installation Guide

CommVault Simpana Archive 8.0 Integration Guide

Transcription:

HP OpenView Storage Mirroring application notes Guidelines for testing a disaster recovery/high availability scenario Part number: T2558 88082 Third edition: June 2006

Legal and notice information Copyright 2005-2006 Hewlett-Packard Development Company, L.P. Hewlett-Packard Company makes no warranty of any kind with regard to this material, including, but not limited to, the implied warranties of merchantability and fitness for a particular purpose. Hewlett-Packard shall not be liable for errors contained herein or for incidental or consequential damages in connection with the furnishing, performance, or use of this material. This document contains proprietary information, which is protected by copyright. No part of this document may be photocopied, reproduced, or translated into another language without the prior written consent of Hewlett-Packard. The information is provided as is without warranty of any kind and is subject to change without notice. The only warranties for HP products and services are set forth in the express warranty statements accompanying such products and services. Nothing herein should be construed as constituting an additional warranty. HP shall not be liable for technical or editorial errors or omissions contained herein. Microsoft, Windows, Windows NT, and Windows XP are U.S. registered trademarks of Microsoft Corporation. Storage Mirroring Guidelines for testing a disaster recovery/high availability scenario application notes

Document overview Audience Expectations This document is a Storage Mirroring application note. An application note provides guidelines on the use of Storage Mirroring in a specific environment. This document contains: Document Overview Explains what an application note contains, how it should be used, what you need to know before trying to use the application note, and where you can go for more information. Application Overview Explains how the application works with Storage Mirroring. Review this section to make sure that you understand the theory involved with using Storage Mirroring and your application. Implementation Guidelines Describes all of the considerations that you must weigh when implementing your Storage Mirroring solution. Includes both basics, such as system requirements, as well as configuration and environment-specific topics, such as interactions with specific clients or special considerations for WAN (Wide Area Network) environments. Pay special attention to those topics that are directly related to your environment. Sample Implementation Describes specific examples of how a Storage Mirroring disaster recovery/high availability test configuration has been implemented using SQL and Exchange databases. Use these procedures as a guideline for creating your own implementation. Because no two environments or configurations are exactly the same, you will probably need to implement additional or different steps than what is documented here in order to make the solution work in your environment. This document is written for network and application administrators who have a working understanding of the applications and environments where the Storage Mirroring solution is to be deployed. You many need to expand on the documented information in order to customize the solution to fit your environment. Before you use this application note, you should have an understanding of: Storage Mirroring The application that you will be testing The snapshot utility that you will be using (Volume Shadow Copy Service (VSS), or another third-party snapshot utility) Application notes are intended to provide a framework for configuring a Storage Mirroring solution in a specific environment and to draw attention to decisions you will need to make when configuring your solution. Because there are an infinite number of possible configuration, network, and environment scenarios, application notes contain general configuration guidelines as well as an example configuration procedure that has been tested for a specific environment. This document assumes that you are comfortable working with your operating system, Storage Mirroring, and the applications that you will be testing. Related documentation Before you begin to configure your solution, make sure that you have complete documentation for your operating system, application, and Storage Mirroring. This application note does not provide step-by-step instructions for using standard operating system, application, and Storage Mirroring functionality. The following documents contain additional information that you may need while setting up this solution: HP OpenView Storage Mirroring user s guide or online documentation Reference guides or documentation for Volume Shadow Copy Service (or for your snapshot utility, if you are not using VSS) Reference guides or documentation for the application you are testing (for example, SQL or Exchange) HP application notes for the application you are testing. Data Protection for Volume Shadow Copy Service (VSS) application note Storage Mirroring Guidelines for testing a disaster recovery/high availability scenario application notes 3

Getting help High Availability for Microsoft SQL Server 2000 using Storage Mirroring application note High Availability for Exchange Server 2000/2003 using the Exchange Failover Utility application note (available for download with the Exchange Failover Toolkit) Hewlett-Packard has application notes that describe how to configure Storage Mirroring with a variety of popular third-party applications. These application notes are available on the Storage Mirroring web site: http://h18006.www1.hp.com/products/storage/software/sm/index.html. For help using Storage Mirroring, refer to the Storage Mirroring online manual or online help. Solution overview This document describes a process that can be used to test a disaster recovery/high availability scenario. This process alleviates the risk of data loss or corruption in the event of a source failure during the time of testing. It also allows testing to occur during production hours in order to eliminate disruption to users. How this solution works During testing of the disaster recovery/high availability scenario, the connection between the source and target servers is never broken, but is instead just paused. The pause sends data from the source server to the queue on the target server. This queued data does not actually get applied to the target application. Prior to beginning the test, a snapshot utility (such as VSS or any other third-party snapshot utility) is used to capture the data on the target server prior to testing so that the data can be restored to its pre-test state once testing is complete on that server. In the event of a source failure, the connection between the source and target may be resumed (even though the source is no longer available), and the queued data from the source will be applied to the target. This solution also provides the ability to restore the target application data to its pre-testing state. Doing this allows the connection to be resumed after testing without needing to re-mirror the replication set. Avoiding having to re-mirror means that at no time is the application on the source server not protected. This data can be saved and restored using either VSS or another third-party snapshot utility. Testing the disaster recovery/high availability scenario You will use the process described in the following steps to test a disaster recovery/high availability scenario: 1. Copy the script files to the Storage Mirroring directory on the target server. 2. Verify that the script files have been updated to include the appropriate drive, server, and login information. 3. Run a script on the target that will pause the target so that it queues (but does not apply) the data it receives from the source server and take a snapshot of the replicated data on the target to preserve it in its pre-test state. 4. Run the post-failover script or a custom script appropriate to the application being protected in order to start the service(s) for this application. 5. Test the application on the target as appropriate. For example, if the application is a database server, have a few clients attempt to connect to the server on the target machine. 6. After testing is complete, run the pre-failback script or a a custom script appropriate to the application being protected in order to stop the service(s) for this application. 7. Run a script on the target that will restore the snapshot obtained in step 3 to restore the data to its pre-testing state and resume the transmission to allow changes in the queue to be applied to the target application. 4

Implementation guidelines Requirements Installation This section describes what you need to consider in order to successfully implement this solution. Each server must meet the following requirements: A licensed copy of Microsoft Windows Server 2003 with service pack 1 or later A licensed copy of Storage Mirroring version 4.4 with the most recent service pack If you are not using Microsoft Windows Server 2003 with service pack 1 or later, you will also need a third-party snapshot utility Because the disaster recovery/high availability test should be performed on an existing protected server, this application note assumes that the application and Storage Mirroring are already properly installed and running on the source and target servers. VSS cannot revert a volume that resides on the Windows system drive. While your application (such as SQL or Exchange) may be installed on a system drive, the application data (such as databases and logs) should be on one or more other drives on the target server. Storage Mirroring queue location For this solution to work, the volume on the target where the application data is being sent cannot be the volume where the Storage Mirroring queue resides. To view where the Storage Mirroring queue resides, right-click on the target server name in the Management Console, and select Properties. Select the Queue tab and note the drive letter of the path in the Folder field. Modifying the sample script files You will need to edit the pause-target.dtcl and resume-target.dtcl files to include the correct server and login information for your environment. If you are using VSS, you will also need to edit the start-test.bat file to include the correct drive letter of the drive where the snapshot will occur. NOTE: If your application data is stored on multiple drives, you will need either to modify the script or to create and restore the shadow copies manually. The following sample script files are used in this process: start-test.bat Sample batch file to run the pause-target.dtcl script, which will pause the target, and create the snapshot. pause-target.dtcl Sample script to pause execution of operations on the target prior to starting a snapshot. end-test.bat Sample batch file to restore the snapshot and resume transmission to the target server. restore-snapshot.vbs Get the shadow copy ID gained from the shadow copy creation and restore that shadow copy. resume-target.dtcl Sample script to resume execution of operations on the target after the snapshot restore is complete. Storage Mirroring Guidelines for testing a disaster recovery/high availability scenario application notes 5

sample_start-test.bat rem ***SAMPLE*** batch file to run the pause-target.dtcl script and to create the snapshot. rem This sample batch file is provided as an example only. Because no two rem environments or configurations are exactly the same, you MUST modify rem this script in order to make the solution work in your environment. cmd /c DTCL -f pause-target.dtcl rem Edit the drive letter from X: below to the drive where your data resides. vssadmin create shadow /for=x: >scid.txt sample_pause-target.dtcl # ***SAMPLE*** script to pause execution of operations on the target prior to starting a snapshot. # # This sample batch file is provided as an example only. Because no two # # environments or configurations are exactly the same, you MUST modify # # this script in order to make the solution work in your environment. # # Substitute the name of your target machine, username, password, and domain in the variable # # definitions below. # $TheTarget = "TargetServer"; $User = "Username"; $Pass = "password"; $TheDomain = "domain.com"; login $TheTarget $User $Pass $TheDomain; target $TheTarget; pausetarget $TheTarget; sample_end-test.bat rem ***SAMPLE*** batch file to restore the snapshot and resume transmission to the target server. rem This sample batch file is provided as an example only. Because no two rem environments or configurations are exactly the same, you MUST modify rem this script in order to make the solution work in your environment. call restore-snapshot.vbs cmd /c DTCL -f resume-target.dtcl 6

sample_restore-snapshot.vbs ' ***SAMPLE*** file to get the shadow copy ID from the shadow copy creation and restore that shadow copy ' This sample batch file is provided as an example only. Because no two ' environments or configurations are exactly the same, you MUST modify ' this script in order to make the solution work in your environment. ' Get the shadow copy ID gained from the shadow copy creation, and restore that shadow copy Const FOR_READING = 1 Set objfso = CreateObject("Scripting.FileSystemObject") ' Open output file created from the creation of the shadow copy Set objfile = objfso.opentextfile(".\scid.txt", FOR_READING) str_length=0 Do Until str_length>0 str_line=objfile.readline ' Correct line of output file if InStr(str_line, "Shadow Copy ID:") > 1 then first_char=instr(str_line, "{") last_char=instr(str_line, "}") str_length=len(str_line) scid=right(str_line, str_length-first_char+1) end if Loop Set WSShell=CreateObject("WScript.Shell") ' Execute vssadmin with the revert command using the shadow copy ID that was obtained WSShell.run "vssadmin.exe Revert Shadow /Shadow=" & scid & " /ForceDismount /Quiet",,true Set WSShell=Nothing objfile.close sample_resume-target.dtcl # ***SAMPLE*** script to resume execution of operations on the target after the snapshot restore # # is complete. # # This sample batch file is provided as an example only. Because no two # # environments or configurations are exactly the same, you MUST modify # # this script in order to make the solution work in your environment. # # Substitute the name of your target machine, username, password, and domain in the variable # # definitions below. # $TheTarget = "TargetServer"; $User = "Username"; $Pass = "password"; $TheDomain = "domain.com"; login $TheTarget $User $Pass $TheDomain; target $TheTarget; # Pause for two minutes to give time for the snapshot restore to complete. You may need to allow # # more time for the restore, depending on your configuration. # wait 120000; resumetarget $TheTarget; Storage Mirroring Guidelines for testing a disaster recovery/high availability scenario application notes 7

Running the script files Running the end-test.bat file will take at least two minutes because the script has a built-in delay (perhaps longer, if you modify the wait time). This delay should allow enough time for the volume to be restored to its original state. Configuring memory usage Storage Mirroring uses memory to queue operations and data on both the source and target. Since the source server is typically running a production application, it is important that the amount of memory Storage Mirroring and the other applications use does not exceed the amount of RAM in the system. If the applications require more memory than there is RAM, the system will begin to swap pages of memory to disk and the system performance will degrade. For instance, SQL Server will use all of the available system memory when needed by default, and it may use almost all of the system memory during high-load operations. These high-load operations are precisely what cause Storage Mirroring to need memory to queue the data being changed by SQL Server. On a server with 1GB of RAM running SQL Server and Storage Mirroring, you might configure SQL Server to use only 512MB and Storage Mirroring to use 256MB, leaving 256MB for the operating system and other applications on the system. Many other server applications will use almost all system memory by default, so it is important to check and configure applications appropriately, particularly on high-capacity servers. Testing the application on the target after failover Depending on your applications, you may want to do one or more of the following to test that the application has failed over properly: Have the client application connect to the target copy of the database instead of the source copy Manually move a test user from the server on the source to the target. Restoring the original data The original data will need to be restored, even if nothing was explicitly changed on the target database. This is because the process of starting applications (such as SQL Server or Exchange Information Store) alters the data slightly as it recovers from a crash-consistent state. Limitations on using this process Do not perform a disaster recovery/high availability test if a mirror or verify operation is taking place. For more information about how to determine if these operations are in progress, see the HP OpenView Storage Mirroring user s guide. In Exchange implementations, because the Microsoft Exchange Information Store service is the only Exchange service that can be started on the target without causing problems, the variety of tests that can be performed on the target server is limited. Sample Implementations This section describes how this solution has been implemented in the following environments: Microsoft SQL Server Microsoft Exchange See the following sections for example implementation details for each environment. NOTE: Because no two environments or configurations are exactly the same, you will need to modify the sample implementation in order to make the solution work in your environment. Test environment setup The following test equipment was used in both application scenarios: 4 dual-processor 930 Mhz servers with 1 Gig of RAM each Microsoft Windows Server 2003 with Service Pack 1 8

VSS installed on the target machine Storage Mirroring version 4.4 Microsoft SQL scenario: SQL 2000 with Service Pack 3a installed on each server Microsoft Exchange scenario: Exchange 2003 installed on each server Testing a disaster recovery/high availability scenario with SQL server 1. Copy the following script files to the Storage Mirroring directory on the target server: start-test.bat pause-target.dtcl end-test.bat restore-snapshot.vbs resume-target.dtcl 2. Verify that the script files have been updated to include the appropriate drive, server, and login information. 3. Run the start-test.bat file on the target. The file will pause Storage Mirroring writing data to the target server volumes and initiate a snapshot of the volumes being protected. 4. Run the SQL post-failover script to start the SQL Server services after the snapshot has been successfully created. The services that must be manually started include: Distributed Transaction Coordinator Message Queueing MSSQLServer SQLServerAgent 5. Test the running copy of SQL Server on the target as desired. 6. After testing is complete, run the pre-failback script to stop the SQL Server services. This should be the same SQL services that you started in step 4. 7. Run the end-test.bat file on the target. This file uses VSS to revert the volume to its pre-test state and then to resume writing data on the target. Testing a disaster recovery/high availability scenario with Exchange 1. Copy the following script files to the Storage Mirroring directory on the target server: start-test.bat pause-target.dtcl end-test.bat restore-snapshot.vbs resume-target.dtcl 2. Verify that the script files have been updated to include the appropriate drive, server, and login information. 3. Run the start-test.bat file on the target. The file will pause Storage Mirroring writing data to the target server volumes and initiate a snapshot of the volumes being protected. 4. Manually start the Microsoft Exchange Information Store service. Starting this service will verify the integrity of the Exchange data on the target; if it is corrupt, then this service will not start. 5. Test the running copy of Exchange on the target as desired. 6. After testing is complete, manually stop the Microsoft Exchange Information Store service. 7. Run the end-test.bat file on the target. This file uses VSS to revert the volume to its pre-test state and then to resume writing data on the target. Storage Mirroring Guidelines for testing a disaster recovery/high availability scenario application notes 9

10