Using SQL Database Mirroring to Improve Citrix XenApp Server Farm Disaster Recovery Capabilities



Similar documents
Configure SQL database mirroring

SQL Server Mirroring. Introduction. Setting up the databases for Mirroring

Protecting SQL Server Databases Software Pursuits, Inc.

ilaw Installation Procedure

Troubleshooting Failover in Cisco Unity 8.x

Backing Up CNG SAFE Version 6.0

XenDesktop 5 Database Sizing and Mirroring Best Practices

Database Migration and Management Guide v15.0

Synthetic Monitoring Scripting Framework. User Guide

Installing SQL Express. For CribMaster 9.2 and Later

WhatsUp Gold v16.1 Database Migration and Management Guide Learn how to migrate a WhatsUp Gold database from Microsoft SQL Server 2008 R2 Express

SQL Tuning and Maintenance for the Altiris Deployment Server express database.

WhatsUp Gold v16.0 Database Migration and Management Guide Learn how to migrate a WhatsUp Gold database from Microsoft SQL Server 2005 Express

Implementing Microsoft SQL Server 2008 Exercise Guide. Database by Design

BSDI Advanced Fitness & Wellness Software

Migrating MSDE to Microsoft SQL 2008 R2 Express

KEYWORDS InteractX, database, SQL Server, SQL Server Express, backup, maintenance.

WhatsUp Gold v16.2 Database Migration and Management Guide

SafeCom G2 Enterprise Disaster Recovery Manual

MICROSTRATEGY 9.3 Supplement Files Setup Transaction Services for Dashboard and App Developers

Upgrade ProTracker Advantage Access database to a SQL database

InformationNOW SQL 2005 Database Backup and Restoration

Support Document: Microsoft SQL Server - LiveVault 7.6X

High Availability for VMware GSX Server

Availability Guide for Deploying SQL Server on VMware vsphere. August 2009

InformationNOW SQL 2008 Database Backup and Restoration

How To Upgrade Your Microsoft SQL Server for Accounting CS Version

Integrating Data Protection Manager with StorTrends itx

Microsoft SQLServer Restore / Redirected Restore Procedure

Deploy App Orchestration 2.6 for High Availability and Disaster Recovery

How to Copy A SQL Database SQL Server Express (Making a History Company)

Sophos for Microsoft SharePoint startup guide

HELP DOCUMENTATION E-SSOM BACKUP AND RESTORE GUIDE

How to Backup Your Eclipse.Net Database Automatically. To clearly document a specific automatic SQL database backup method for Eclipse.net.

Backup Notification in Client Profiles for Windows

Install SQL Server 2014 Express Edition

Notes Transfer instructions INTRODUCTION More information

SonicWALL CDP 5.0 Microsoft Exchange InfoStore Backup and Restore

vcenter Configuration Manager Backup and Disaster Recovery Guide VCM 5.3

SQL Express to SQL Server Database Migration MonitorIT v10.5

Installing RMFT on an MS Cluster

Reconfiguring VMware vsphere Update Manager

GO!NotifyLink. Database Maintenance. GO!NotifyLink Database Maintenance 1

Configuring a Custom Load Evaluator Use the XenApp1 virtual machine, logged on as the XenApp\administrator user for this task.

Xopero Centrally managed backup solution. User Manual

Video Administration Backup and Restore Procedures

How To Create An Easybelle History Database On A Microsoft Powerbook (Windows)

Installation & Maintenance Guide

STATISTICA VERSION 9 STATISTICA ENTERPRISE INSTALLATION INSTRUCTIONS FOR USE WITH TERMINAL SERVER

Hands-on Lab Pilot Guide

HELP DOCUMENTATION E-SSOM BACKUP AND RESTORE GUIDE

Idera SQL Diagnostic Manager Management Pack Guide for System Center Operations Manager. Install Guide. Idera Inc., Published: April 2013

System Requirements for Microsoft Dynamics GP 2013

How to protect, restore and recover SQL 2005 and SQL 2008 Databases

Virtual Office Remote Installation Guide

WhatsUp Gold v16.3 Installation and Configuration Guide

Upgrading LytecMD from to 9.4 on Windows Server Best Practices. Revision Date: 7/29/2010 PLEASE READ:

Silect Software s MP Author

DIGIPASS Pack for Citrix on WI 4.5 does not detect a login attempt. Creation date: 28/02/2008 Last Review: 04/03/2008 Revision number: 2

Backup Assistant. User Guide. NEC NEC Unified Solutions, Inc. March 2008 NDA-30282, Revision 6

VMware vcenter Configuration Manager Backup and Disaster Recovery Guide vcenter Configuration Manager 5.4.1

VeriCentre 3.0 Upgrade Pre-Installation and Post Installation Guidelines

Upgrade Guide BES12. Version 12.1

System Requirements for Dynamics GP 2013

Moving the TRITON Reporting Databases

How to Set Up a Shared SQL Express Database with ManagePro 7 Standard version

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

EXPRESSCLUSTER X for Windows Quick Start Guide for Microsoft SQL Server Version 1

Dream Report Version 4.5

Explain how to prepare the hardware and other resources necessary to install SQL Server. Install SQL Server. Manage and configure SQL Server.

QAD Enterprise Applications. Training Guide Demand Management 6.1 Technical Training

Administering and Managing Log Shipping

Table of Contents. CHAPTER 1 About This Guide CHAPTER 2 Introduction CHAPTER 3 Database Backup and Restoration... 15

System Requirements for Microsoft Dynamics GP 2013

HOW TO CONFIGURE SQL SERVER REPORTING SERVICES IN ORDER TO DEPLOY REPORTING SERVICES REPORTS FOR DYNAMICS GP

Upgrading from MSDE to SQL Server 2005 Express Edition with Advanced Services SP2

Supporting MS SQL Server Failover Using Database Mirroring

QUANTIFY INSTALLATION GUIDE

RE:Open for SQL Anywhere. Installation Guide. RE:Open for SQL Anywhere Installation Guide 1

Database Maintenance Guide

12 NETWORK MANAGEMENT

Installing and Configuring a. SQL Server 2012 Failover Cluster

Installation Troubleshooting Guide

6231A - Maintaining a Microsoft SQL Server 2008 Database

SQL Express to SQL Server Database Migration Goliath Performance Monitor v11.5

How to Configure Microsoft System Operation Manager to Monitor Active Directory, Group Policy and Exchange Changes Using NetWrix Active Directory

VMware vcenter Configuration Manager Backup and Disaster Recovery Guide vcenter Configuration Manager 5.7

Setting up a database for multi-user access

Citrix Systems, Inc.

VirtualCenter Database Maintenance VirtualCenter 2.0.x and Microsoft SQL Server

3 Setting up Databases on a Microsoft SQL 7.0 Server

Nexio Connectus with Nexio G-Scribe

ilaw Server Migration Guide

Troubleshooting Citrix MetaFrame Procedures

Sage Intelligence Financial Reporting for Sage ERP X3 Version 6.5 Installation Guide

Maintaining a Microsoft SQL Server 2008 Database

Snow Inventory. Installing and Evaluating

MS SQL Server Database Management

SQL Server Setup for Assistant/Pro applications Compliance Information Systems

Implementing Microsoft Windows Server Failover Clustering (WSFC) and SQL Server 2012 AlwaysOn Availability Groups in the AWS Cloud

Transcription:

Using SQL Database Mirroring to Improve Citrix XenApp Server Farm Disaster Recovery Capabilities www.citrix.com

Summary... 3 Environment... 3 SQL Server Configuration... 3 XenApp Server Configuration... 14 Verification... 17 Troubleshooting... 18 More Information... 21 Page 2

Summary This document describes how to improve the disaster recovery capabilities of a Citrix XenApp farm by leveraging the high availability database mirroring feature in Microsoft SQL 2005 / 2008 / 2008 R2. This feature allows transparent failover of the data store in the event of the loss of the principal SQL Server. The data store never physically resides on the witness server at any time, but SQL is required on that device so it can monitor the other two SQL servers and allow for automatic failover without losing any transactions (high safety). For the XenApp server to pick up the mirror in the event of a failure, two things are required on the XenApp servers: 1. The SQL Native Client must be installed on every XenApp server. 2. The MF20.DSN file must be modified on every XenApp server to match the example in this document. The Driver and Failover_Partner parameters are the only two lines that need modification. Environment Citrix XenApp 5.0 / 6.5 o XenApp 6.5 / Windows 2008 R2 Will require updated SQL Native Client 10.0 reference to MF20.DSN file Three Microsoft Standard or Enterprise Edition SQL 2005 / 2008 / SQL 2008 R2 Servers with latest SQL Service Pack (Roles Principal Mirror Witness) SQL Server Configuration 1. Create the data store database and have at least one XenApp join the server farm. 2. Verify the data store database by selecting Full in the Recovery model drop-down list in the Options page of the Database Properties. This is the default behavior: Page 3

3. Verify the SQL Server is using an Active Directory account. Ideally, use the same account for all three SQL Servers. 4. Back up the database on the principal SQL Server. 5. Create a database to the mirroring server. Page 4

6. From the Options page under Restore Database, back up the database to the mirroring server by selecting the Overwrite the existing database. 7. Under Recovery state, select the RESTORE WITH NORECOVERY as shown below: The following is a sample script, but you can use the wizard in SQL Server Management Studio (rightclick database tasks > backup): RESTORE DATABASE [CPS4Farm] FROM DISK = N'C:\CPS4Farm.bak' WITH FILE = 1, NORECOVERY, NOUNLOAD, REPLACE, STATS = 10 8. Start the mirroring process. Right-click the Database > Properties > Mirroring and click Configure Security to start the wizard. Page 5

9. On the Configure Database Mirroring Security Wizard screen, click Next. Page 6

a. On the Include Witness Server screen, select Yes and click Next: Page 7

b. Select the principal server. Page 8

c. Select the mirroring server (click Connect ). Page 9

d. Select the witness (click Connect ). Page 10

10. Enter the SQL Server service accounts. Note: If all SQL Servers are using the same existing account, leave everything blank. Page 11

11. Start the mirroring process by clicking Start Mirroring. The following screen shot shows the two successfully synchronized databases in the SQL Server Management Studio: Page 12

Note: The database on the mirroring server is not available until a failover has occurred. All database transactions are first committed on the mirror database before the principal database. This might slow transactions, depending on the network performance. Page 13

XenApp Server Configuration 1. Citrix recommends that a data store timeout be in place before proceeding. For more information see Citrix article CTX107708. Adjust this value to accommodate the failure over the transition period. 2. Stop the IMA Service (use the net stop imaservice command) or in the Services MMC. 3. Install the SQL Native Client from http://www.microsoft.com/downloads/details.aspx?familyid=df0ba5aa-b4bd-4705-aa0a- B477BA72A9CB&DisplayLang=en. 4. Edit the Data Source Name (DSN) MF20.DSN located under C:\Program Files (x86)\citrix\independent Management Architecture or C:\Program Files\Citrix\Independent Management Architecture as follows: Example DSN: [ODBC] DRIVER=SQL Native Client UID=administrator Trusted_Connection=Yes DATABASE=XA DS WSID=DHARMAEXA02 APP=Citrix IMA SERVER=DHARMAESQ02 Failover_Partner=DHARMAESQ01 Page 14

Description=ds XenApp 6.5 Windows 2008 R2 Example DSN [ODBC] DRIVER={SQL Server Native Client 10.0} DATABASE=XA6Database APP=Citrix IMA UID=administrator SERVER=SQLPRINCIPAL Failover_Partner=SQLMIRRORSERVER Trusted_Connection=No 5. Start the IMA Service (use the net start imaservice command). Note: The SQL Client and the DSN modification must be installed on every XenApp server. Only the Driver and Failover_Partner fields need to be changed. An login account must present on the SQL mirror server for IMA. If the SQL Client is not found the Citrix IMA service may fail to connect to the principal database with the following even log error Citrix XenApp failed to connect to the Data Store. ODBC error while connecting to the database: IM002 -> [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified Ensure the Driver = field matches the following registry location HKLM\Software\ODBC\ODBCINST.INI\SQL Server Client xxxxx Page 15

Page 16

Verification Note: During the failover transition there is a short duration of time where the IMA data store is not available. This is as expected. 1. Initiate a failover on the principal SQL Server either by using the Failover button (go to Database > Properties > Mirroring > Failover) or stopping SQL itself. 2. Test by issuing the qfarm command at the command prompt at least twice or by using the Citrix Management Console. Both require the data store to be available. 3. Revert back to the original database by clicking Failover. Page 17

Troubleshooting XenApp Server: 1. Verify that the transparent redirection is working using the SQL Profiler. If the DSN is not set up properly as described above, the failure over feature does not work. The following error message is received: SQL Profiler trace running on the previous principal SQL server after failover. The following error message shows IMA still trying to connect to the original database: Error 954 The database IMADataStore cannot be opened. It is acting as a mirror database. Login failed for user 'xxxxxx. 2. Verify the SQL connection on the Presentation Server by running netstat an and verifying the 1433 port connection. 3. Issue the qfarm command at the command prompt of the Presentation Server to verify that it has a connection to the database. If the connection is dropped you might need to run this twice. Qfarm needs to connect to the data store to enumerate all the servers in the farm. Make sure no command line switches are passed for this test. SQL Server: 1. Verify all SQL Server 2005 servers have Service Pack 1 installed. The build version should be at least 9.0.2047. 2. You can view use the Database Mirroring monitor to see if there any SQL errors. You can also set up alerts if a problem does occur. 3. To begin, right-click Database and go to Tasks > Launch Database Mirroring Monitor Page 18

4. Highlight the database and click the Warnings tab. Page 19

5. Click Set Thresholds Page 20

More Information http://msdn.microsoft.com/en-us/library/ms190941.aspx http://technet.microsoft.com/en-us/library/cc917681.aspx http://msdn2.microsoft.com/en-us/library/aa337204.aspx http://msdn2.microsoft.com/en-us/library/ms131373.aspx https://www.microsoft.com/technet/prodtechnol/sql/2005/mirroringevents.mspx Page 21