• No results found

Configure SQL database mirroring

N/A
N/A
Protected

Academic year: 2021

Share "Configure SQL database mirroring"

Copied!
27
0
0

Loading.... (view fulltext now)

Full text

(1)

© 2013 Citrix Systems, Inc. All rights reserved. Page 1

App Orchestration 2.0

Configure SQL database mirroring

Prepared by: Mohit Menghnani

Commissioning Editor: Linda Belliveau Version: 4.0

(2)

Page 2 © 2013 Citrix Systems, Inc. All rights reserved.

Contents

Overview ... 3

Configure database mirroring for an App Orchestration deployment ... 3

Configure the database for an App Orchestration configuration server ... 4

Mirror the database ... 13

Configure the Configuration Logging database ... 20

Configure the App Orchestration configuration server ... 20

Configuring a XenDesktop Site ... 22

Configure mirrored databases using the App Orchestration wizard ... 23

(3)

Page 3 © 2013 Citrix Systems, Inc. All rights reserved.

Overview

Database mirroring maintains two copies of a single database that must reside on different server instances of SQL Server Database Engine. The principal server instance serves the database to clients. The other mirror server instance acts as a hot or warm standby server. When a database mirroring session is synchronized, database mirroring provides a hot standby server that supports rapid failover without a loss of data from committed transactions.

The principal and mirror servers communicate as partners performing complementary roles in a database mirroring session. At any time, one partner performs the principal role, and the other partner performs the mirror role.

High-safety mode with automatic failover requires a third SQL server known as a witness. Unlike the two partners, the witness does not serve the database. The witness supports automatic failover by verifying whether the principal server is up and functioning. The mirror server initiates automatic failover only if the mirror and the witness remain connected to each other after both have been disconnected from the principal server. If the mirror server loses its connection to the principal server but the witness is still connected to the principal server, the mirror server does not initiate a failover.

Configure database mirroring for an App Orchestration deployment

A typical App Orchestration deployment includes databases that are used by the following components:

 App Orchestration configuration server

 Delivery Sites and Session Machines running XenDesktop 7.1

 Delivery Sites and Session Machines running XenApp 6.5 Feature Pack 2

You can configure database mirroring on all three sets of the databases after these databases are configured for use on App Orchestration, XenDesktop, and XenApp.

For a database used by the App Orchestration configuration server with XenDesktop, you can configure the database mirroring before the App Orchestration configuration server and XenDesktop are installed.

This document describes how to prepare (or pre-mirror) App Orchestration configuration server and XenDesktop databases before installation.

(4)

Page 4 © 2013 Citrix Systems, Inc. All rights reserved.

Prepare databases

Here are the general steps for preparing the App Orchestration data base and XenDesktop Site databases. 1. Create empty databases.

2. Configure the empty database to enable database mirroring.

3. Configure the principal database. The configuration wizards detect the mirrored database and configure it accordingly.

○ Install the App Orchestration configuration server and run the App Orchestration configuration server wizard.

○ Run the Create a New Delivery Site wizard from the App Orchestration web console.

Configure the database for an App Orchestration configuration server

Create two empty databases used for App Orchestration configuration server on the principal database server.

The App Orchestration configuration server uses two databases:

 App Orchestration configuration database

 App Orchestration logging database

Using the Microsoft SQL Server Management Studio, perform the following steps on each database.

Note:

The App Orchestration logging database is reserved for a future release. However, it is required for App Orchestration 2.0 Server to properly operate.

On the General Page, create a database in the principal database server. 1.

(5)
(6)

Page 6 © 2013 Citrix Systems, Inc. All rights reserved. On the Options Page, make sure that the Collation Sequence for this database is

2.

Latin1_General_CI_AS_KS

.

If the wrong collation is specified during database creation, then the mirroring does not correctly function.

Activate the new empty database by selecting OK. 3.

Back up the new database created on the principal server to a Full database backup. 4.

 Right-click the database, select Tasks, and then click Back Up to display the Backup Database dialog box. Accept the defaults.

(7)

Page 7 © 2013 Citrix Systems, Inc. All rights reserved. Click OK to create the .bak file for the database in the destination location.

(8)

Page 8 © 2013 Citrix Systems, Inc. All rights reserved. Copy the .bak file from the destination location and paste it to the same directory on the mirrored 6.

(9)

Page 9 © 2013 Citrix Systems, Inc. All rights reserved. Access the SQL Server Management Studio on the mirrored database server. Right-click the 7.

(10)
(11)
(12)
(13)

Page 13 © 2013 Citrix Systems, Inc. All rights reserved.

Note:

Microsoft SQL Server management Studio displays a message indicating when the database has been successfully restored, as shown in the following example:

Mirror the database

When mirroring a database, Citrix recommends that you include a witness server instance in the Include Witness Server dialog box described in Step 4. The Witness server instance is similar to the principal and the mirrored server instances in the same domain. You do not need to copy the database backup file to the Witness server.

In the Microsoft SQL Server management Studio, return to the principal database server and right-click 1.

the database you just restored. In the following example, you select Connect > Databases > AppOrchestration-72 >Tasks > Mirror.

(14)

Page 14 © 2013 Citrix Systems, Inc. All rights reserved. Select Configure Security.

2.

Enter the Server network addresses. 3.

(15)
(16)

Page 16 © 2013 Citrix Systems, Inc. All rights reserved. Configure the following servers:

4.

 Principal server instance

(17)

Page 17 © 2013 Citrix Systems, Inc. All rights reserved. Enter the domain user credentials as shown in the following example, using the format 5.

(18)

Page 18 © 2013 Citrix Systems, Inc. All rights reserved. The following summary appears when you complete the mirroring procedure.

(19)

Page 19 © 2013 Citrix Systems, Inc. All rights reserved.

Select Start Mirroring. 6.

(20)

Page 20 © 2013 Citrix Systems, Inc. All rights reserved. This designation indicates that it is the principal instance of the database and it is synchronized with the mirrored instance of the database.

Configure the Configuration Logging database

Repeat the previous steps for App Orchestration App Orchestration logging database.

Configure the App Orchestration configuration server

Install the App Orchestration configuration server and run the App Orchestration Server Configuration 1.

wizard. When the database name is encountered in the wizard, the Configuration wizard detects whether the database is mirrored.

This document assumes that at this point, the administrator has already configured mirroring for the App Orchestration Configuration database and App Orchestration Logging database.

On the Server Configuration page, select Create a new deployment. 2.

In the Deployment Information dialog box, enter the name of the database mirrored earlier and the 3.

address of the principal server instance.

Complete the remaining steps in the wizard. Note that the administrator does not need to perform any 4.

(21)

Page 21 © 2013 Citrix Systems, Inc. All rights reserved. Complete the remaining steps in the wizard. .

5.

Note:

Although it is not required to enter the logging database name in this configuration, to make sure that App Orchestration properly functions, Citrix recommends that you configure mirroring for logging database.

(22)

Page 22 © 2013 Citrix Systems, Inc. All rights reserved.

Configuring a XenDesktop Site

XenDesktop Delivery Sites require the following databases:

 Site Database

 Logging Database

 Monitoring Database

App Orchestration requests each database separately. If a database is unreachable, the following results occur:

Unreachable database results

If this database is unreachable… Then…

Site XenDesktop Site does not function

Logging

The Site continues to function. Any operation that involves a configuration change, and therefore needs to be logged, fails, but users can continue to use the Site, such as establishing sessions

Monitoring The Site continues to function, but no monitoring data is collected.

For proper functionality, make sure all these databases are mirrored and include them when configuring those names in the App Orchestration console. The remaining mirror configuration occurs through Delivery Site creation scripts in App Orchestration.

These following high level steps let you create mirrored databases for the XenDesktop Site.

Create the following empty databases on the App Orchestration configuration server on the principal 1.

database server:

 Site

 Monitoring

 Configuration logging

Enable the empty database to be mirrored as described in Configure the database for an App 2.

(23)

Page 23 © 2013 Citrix Systems, Inc. All rights reserved. In the App Orchestration web console, select Design >Delivery Sites >Create a Delivery Site.

3.

In the database settings for the Delivery Site, enter the name of the principal database only. The wizard 4.

detects that the database is mirrored.

In the database settings for the Delivery Site, enter the names of the Configuration Logging and 5.

Monitoring databases you created in Step 1

Configure the mirrored databases as described in Configure mirrored databases using the App 6.

Orchestration wizard.

Configure mirrored databases using the App Orchestration wizard

On the Basic Settings page enter the name of the XenDesktop Delivery Site, XenDesktop version, and 1.

Licensing model.

In the Location Settings page, enter the Delivery Controllers Machine Names and other Site 2.

(24)
(25)

Page 25 © 2013 Citrix Systems, Inc. All rights reserved. In the App Orchestration web console, enter the names of the three mirroring databases and then click 3.

(26)

Page 26 © 2013 Citrix Systems, Inc. All rights reserved. After the Database Settings entries are processed, it triggers a workflow to create a Delivery Site.

When this workflow successfully completes, the XenDesktop Site is correctly configured with the 4.

(27)

Page 27 © 2013 Citrix Systems, Inc. All rights reserved.

Possible errors

The following error indicates that the SQL Services for the principal, mirror, or witness server has a local account (Network Service or Local System) instead of an AD service account.

The following error results if you do not select the NORECOVERY option for the mirrored server database.

References

Related documents

This solution in the Lenovo portfolio uses the high performance System x3850 X6 server combined with Intel P3700 NVMe PCIe flash adapters to solve SQL database warehouse needs up

The 37 TB version of the Lenovo Database Configuration for Microsoft SQL DWFT Server 2014 features the System x3650 M5 with SanDisk Optimus Max SAS SSD which improves

With Sybase SQL Anywhere the Xpert.ivy Server Configuration program will not create a new database instance for Xpert.ivy Server instead it will create only the necessary tables

Web server Web server Asset server App server App server App server App server Database Master Database slave 1 Database slave N Loa d B ala ncer Loa d B ala ncer Load

 Implement SQL Server 2008 R2 Audits  Manage SQL Server 2008 R2 Agent and Jobs  Configure database mails, alerts and notifications  Maintain databases..  Configure

SQL Server Configuration Configuration parameters SQL Server Configuration Parameters mssqlconfig.scp SQL Server Objects Database configuration SQL Server Database

■ (SQL Server legacy policies) Backups of databases and database components, configuration of backup options, and monitoring NetBackup for SQL Server restore operations.. In this

If you want to use ODBC to store the configuration in database, you should install Microsoft SQL Server (or any other supported database server software) on two machines connected