EMC APPSYNC AND MICROSOFT SQL SERVER A DETAILED REVIEW



Similar documents
EMC Replication Manager and Kroll Ontrack PowerControls for Granular Recovery of SharePoint Items

ABSTRACT. February, 2014 EMC WHITE PAPER

White Paper. EMC REPLICATION MANAGER AND MICROSOFT SQL SERVER A Detailed Review

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

EMC NETWORKER SNAPSHOT MANAGEMENT

Technical Notes. EMC NetWorker Performing Backup and Recovery of SharePoint Server by using NetWorker Module for Microsoft SQL VDI Solution

This article Includes:

Restore Scenarios What to keep in mind. Pedro A. Lopes PFE

VMware Site Recovery Manager with EMC RecoverPoint

Support Document: Microsoft SQL Server - LiveVault 7.6X

EMC DOCUMENTUM xplore 1.1 DISASTER RECOVERY USING EMC NETWORKER

EMC NetWorker Module for Microsoft for Windows Bare Metal Recovery Solution

Technical Note P/N REV A02 May 07, 2010

Acronis Backup & Recovery Backing Up Microsoft Exchange Server Data

EMC ViPR Controller. Service Catalog Reference Guide. Version 2.3 XXX-XXX-XXX 01

SETTING UP ACTIVE DIRECTORY (AD) ON WINDOWS 2008 FOR EROOM

EMC NetWorker Module for Microsoft SQL Server ADMINISTRATOR S GUIDE. Release 5.0 P/N E

EMC NetWorker Module for Microsoft for Windows Bare Metal Recovery Solution

Backup and Recovery in MS SQL Server. Andrea Imrichová

EMC NetWorker Module for Microsoft for Windows Bare Metal Recovery Solution

Microsoft Exchange 2003 Disaster Recovery Operations Guide

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

WINDOWS SERVER 2008 OFFLINE SYSTEM RECOVERY USING WINDOWS SERVER BACKUP WITH NETWORKER

Acronis Backup & Recovery 11.5

Technical Notes TECHNICAL NOTES. Release number 8.2 Service Pack REV 01. January, 2015

EMC NetWorker Module for Microsoft SQL Server Release 5.1

Dell NetVault Backup Plug-in for SQL Server 6.1. User s Guide

Acronis Backup & Recovery 11. Backing Up Microsoft Exchange Server Data

CA XOsoft Replication for Windows

EMC MID-RANGE STORAGE AND THE MICROSOFT SQL SERVER I/O RELIABILITY PROGRAM

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

Backups and Maintenance

EMC Backup and Recovery for Microsoft SQL Server 2008 Enabled by EMC Celerra Unified Storage

WHITE PAPER: ENTERPRISE SOLUTIONS. Symantec Backup Exec Continuous Protection Server Continuous Protection for Microsoft SQL Server Databases

EMC ViPR Controller Add-in for Microsoft System Center Virtual Machine Manager

Acronis Backup & Recovery Update 2. Backing Up Microsoft Exchange Server Data

Veritas Cluster Server Database Agent for Microsoft SQL Configuration Guide

VERITAS NetBackup 6.0 for Microsoft Exchange Server

Course Syllabus. At Course Completion

SharePoint Backup Guide

Dell NetVault Backup Plug-in for SharePoint 1.3. User s Guide

EMC AVAMAR INTEGRATION WITH EMC DATA DOMAIN SYSTEMS

VMware vsphere Data Protection Evaluation Guide REVISED APRIL 2015

ShadowProtect Granular Recovery for Exchange Migration Scenarios

Version 4.61 or Later. Copyright 2013 Interactive Financial Solutions, Inc. All Rights Reserved. ProviderPro Network Administration Guide.

VMware vsphere Data Protection 6.0

EMC NetWorker Module for Microsoft SQL Server Release 5.2 Service Pack 1

4 Backing Up and Restoring System Software

EMC NetWorker Module for Microsoft SQL Server

EMC NetWorker Module for Microsoft Applications Release 2.3. Application Guide P/N REV A02

System Protection for Hyper-V Whitepaper

EMC Backup and Recovery for SAP Oracle with SAP BR*Tools Enabled by EMC Symmetrix DMX-3, EMC Replication Manager, EMC Disk Library, and EMC NetWorker

VMware vsphere Data Protection 5.8 TECHNICAL OVERVIEW REVISED AUGUST 2014

EMC NetWorker Module for Microsoft for SQL and SharePoint VSS User Guide

StarWind iscsi SAN Software: Implementation of Enhanced Data Protection Using StarWind Continuous Data Protection

VERITAS Backup Exec TM 10.0 for Windows Servers

Acronis SharePoint Explorer. User Guide

EMC NetWorker Module for Microsoft for Windows Bare Metal Recovery Solution

Database Server Maintenance Plan

Course Syllabus. Maintaining a Microsoft SQL Server 2005 Database. At Course Completion

Upgrading to advanced editions of Acronis Backup & Recovery 10. Technical white paper

EMC NetWorker Module for Microsoft for Exchange Server VSS

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

EMC VIPR SRM: VAPP BACKUP AND RESTORE USING EMC NETWORKER

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

FalconStor Recovery Agents User Guide

Acronis Backup Advanced for Exchange. Version 11.5 Update 3. Backing Up Microsoft Exchange Server Data

EMC REPLICATION MANAGER AND MICROSOFT EXCHANGE SERVER 2007

VMware Data Recovery. Administrator's Guide EN

Moving the Web Security Log Database

Acronis Backup Advanced Version 11.5 Update 6

Symantec Backup Exec 2014 Icon List

Greenplum Database (software-only environments): Greenplum Database (4.0 and higher supported, or higher recommended)

How To Use A Microsoft Networker Module For Windows (Windows) And Windows 8 (Windows 8) (Windows 7) (For Windows) (Powerbook) (Msa) (Program) (Network

SAP HANA Backup and Recovery (Overview, SPS08)

Ontrack PowerControls User Guide Version 8.1

EMC ViPR Controller. Version 2.4. User Interface Virtual Data Center Configuration Guide REV 01 DRAFT

SQL Server Protection Whitepaper

Moving the TRITON Reporting Databases

Virtual Dashboard for VMware and Hyper-V

EMC NetWorker Module for Microsoft for Exchange Server VSS

EMC Replication Manager for Virtualized Environments

Veritas NetBackup for Microsoft Exchange Server Administrator s Guide

Symantec Enterprise Vault Technical Note. Administering the Monitoring database. Windows

BrightStor ARCserve Backup for Windows

System Protection for Hyper-V User Guide

EMC Documentum Repository Services for Microsoft SharePoint

IBM DB Backup and Recovery Hands-On Lab. Information Management Cloud Computing Center of Competence. IBM Canada Lab

vcenter Configuration Manager Backup and Disaster Recovery Guide VCM 5.3

How To Backup A Database In Navision

Hyper-V Protection. User guide

CommVault Simpana Archive 8.0 Integration Guide

SAP Note FAQ: SAP HANA Database Backup & Recovery

EMC Avamar 7.2 for IBM DB2

Backup and Recovery. What Backup, Recovery, and Disaster Recovery Mean to Your SQL Anywhere Databases

Exchange Mailbox Protection Whitepaper

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

Maintaining a Microsoft SQL Server 2008 Database

Transcription:

EMC APPSYNC AND MICROSOFT SQL SERVER A DETAILED REVIEW ABSTRACT This white paper discusses how EMC AppSync integrates with Microsoft SQL Server to provide a solution for continuous availability of critical user data EMC WHITE PAPER 1 December 2013

TABLE OF CONTENTS ABSTRACT... 1 TABLE OF CONTENTS... 2 EXECUTIVE SUMMARY... 3 Audience... 3 CREATING SQL SERVER DATABASE COPIES... 3 Prerequisites and Restrictions... 3 SQL Server backup types... 3 Efficiency... 3 Salient Features... 4 Truncating the transaction log... 4 RESTORING SQL SERVER DATABASE COPIES... 4 Restoring from the copy... 4 Affected entities during restore... 5 Backup of transaction logs... 6 Restoring damaged databases... 6 Restore restrictions... 7 MOUNTING SQL SERVER DATABASE COPIES WITH RECOVERY... 7 Mount and production host version compatibility... 7 Supported mount recovery modes... 7 Mounting copies from multiple production hosts to a single mount host... 7 Mounting multiple database copies existing on same production LUNs or consistency groups... 8 Partial recovery of mounted databases... 8 UNMOUNTING SQL SERVER DATABASE COPIES... 8 Custom shutdown script prior to unmount... 8 CONCLUSION... 8 References... 8 CONTACT US... 8 2

EXECUTIVE SUMMARY EMC AppSync provides an efficient and simple backup and recovery solution for Microsoft SQL Server 2008, 2008 R2 and 2012 versions. It facilitates and automates creation of disk-based copies of Microsoft SQL Server databases for EMC VNX and EMC RecoverPoint which can be used for recovery and repurposing. Audience This white paper has been written for the following audience: Microsoft SQL Server administrators responsible for implementing AppSync in a SQL Server environment EMC internal and field personnel who assist customers with implementing AppSync in Microsoft SQL Server environments CREATING SQL SERVER DATABASE COPIES Prerequisites and Restrictions 1. The SQL Server database must be online during replication. If one or more databases are offline during the service plan run, protection does not fail and copies are created for all the databases that are online. AppSync dynamically checks for the database status during the service plan run and protects all the databases that are online at the time of the run. 2. System databases cannot be protected and are not listed post discovery. The System databases must not reside on the same storage as the User databases because they might unwantedly get overwritten in case a User database copy is restored. 3. AppSync does not truncate transaction logs. Hence, you should create a database maintenance plan to coexist with your scheduled replications. Refer to Microsoft SQL Server documentation for information about creating a database maintenance plan. 4. SQL Server database and its transaction logs must be located on disks in the same storage array. 5. Full-text catalogs associated with a filegroup are included as part of a copy of that filegroup. If the full-text catalogs are not located on supported storage, protection will fail. When using full-text catalogs, you should make sure that the storage device where the catalog is located does not include data that is not related to the database. 6. If you attempt to create a copy of a database mirror, the copy fails with an error indicating that the database is currently not in a valid state. SQL Server backup types Two backup types are supported: Full and Copy. 1. Full protects the database, and the active part of the transaction log. This copy type is typically used when the copy will be considered a backup of the database or when the copy will be mounted in order to use a third-party product to create a backup of the database. This type of copy allows you to restore transaction logs to bring the database forward to a point in time that is newer than the copy, assuming you have backed up those transaction logs. AppSync uses Microsoft SQL Server s VDI snapshot feature to create this type of copy. 2. Copy protects the database and the active part of the transaction log without affecting the sequence of backups. This provides DBAs with a way to create a copy without interfering with third-party backup applications that may be creating full and/or differential backups of the SQL Server databases. AppSync uses Microsoft SQL Server s VDI snapshot feature to create this type of copy. Efficiency You can subscribe multiple SQL Server databases across instances to a SQL Server service plan. AppSync can create copies of multiple databases in parallel. There is a multithreaded approach in AppSync host plugin that enables application consistent backups of multiple databases in parallel. This gives good performance boost. AppSync divides the subscribed databases into multiple groups. Each group will not have more than 35 databases per instance on a host. This grouping avoids flooding the host plugin with requests and ensures load balancing during the copy creation process. If there are two instances on the same host, then a group can have a maximum of 70 databases altogether subject to a maximum of 35 databases per instance. While the first group is being protected, the other groups that belong to the same host wait until the protection of the former group is completed. The number of databases that can be protected together per instance is restricted by the server setting variable max.sql.affinity.databases.units. Use the REST client to do a PUT on a URL similar to: https://host:8445/appsync/rest/instances/setting::max.sql.affinity.databases.units The request body should be similar to: <atom:content type="application/atom+xml"> <setting name="max.sql.affinity.databases.units" value="n"> </setting> </atom:content> 3 Where N is the new maximum number of databases.

Salient Features 1. Dynamic discovery of databases: AppSync can dynamically add or remove databases from a protection plan as and when they are added or removed from the instance on the SQL Server. This can be achieved by subscribing the User Databases folder of a particular SQL Server instance to a service plan. 2. Dynamic discovery of database components: AppSync can also dynamically discover database components and create copies accordingly. For example, a user may add or delete some filegroups to a SQL Server database on the production environment. AppSync can dynamically accommodate such changes and create a copy that is up-to-date with the production database. 3. Operations for deleted databases: A database that has been removed from a production SQL Server instance but has a copy in AppSync, is marked with a database could not be found flag in the AppSync console. You may choose to mount or restore such database copies and they are no longer considered during subsequent protection cycles. The database could not be found flag does not apply to database components like log files and filegroups. If you intend to add or remove individual database components, select the copy for restore carefully. You may mount a copy to check whether all the desired data is available in that backup before performing a restore. 4. Pre-copy script: To perform preparatory steps before creating a copy, specify a pre-copy script and parameters in the service plan's Settings tab. The pre-copy script runs as per the schedule set in the Plan Startup phase. Valid script formats are.bat,.exe, and.ps1 (PowerShell scripts). You can optionally enter credentials to run the script as a specific user. The script runs as Local System by default. The default location of the script is %ProgramData%\EMC\AppSync\scripts\ on the application host. Exact parameters depend on your script. Parameters with spaces must be enclosed in double quotes. This phase can be enabled or disabled. This operation requires the Service Plan Administrator role in AppSync. 5. Post-copy script: To perform cleanup or other post-copy steps after creating a copy, specify a post-copy script and parameters in the service plan's Settings tab. The script runs on successful completion of the Create copy phase. Valid script formats are.bat,.exe, and.ps1 (PowerShell scripts). You can optionally enter credentials to run the script as a specific user. The script runs as Local System by default. The default location of the script is %ProgramData%\EMC \AppSync\scripts\ on the application host. Exact parameters depend on your script. Parameters with spaces must be enclosed in double quotes. This phase can be enabled or disabled. This operation requires the Service Plan Administrator role in AppSync. Truncating the transaction log In addition to scheduling the online backups, you should create a maintenance plan for the transaction logs so they are truncated on a regular basis. If log records were never deleted from the transaction log, the logical log would grow until it fills all the available space on the disks holding the physical log files. At some point, old log records that are no longer necessary for recovering or restoring a database must be deleted to make way for new log records. The process of deleting these log records to reduce the size of the logical log is called truncating the log. You can create a maintenance plan using SQL Server s management tools or you can schedule BACKUP LOG statements to occur at intervals that will keep the transaction log from growing past the desired size. This means that the sequence of log backups must contain every log record that was written since the database backup. When you are maintaining a sequence of transaction log backups, no log record can be truncated until after it has been written to a log backup. Active logs (.ldf) and transaction log backups must not be confused. The latter is a production of backing up the former. Only the transaction log backup can be used in the roll-forward procedure. RESTORING SQL SERVER DATABASE COPIES This section describes the methods for restoring a SQL Server database. The restore granularity for SQL Server database copies created in AppSync is at the LUN level for EMC VNX and at the consistency group level for EMC RecoverPoint. A careful planning of the database layout is desirable to avoid any affected entities. See Affected entities during restore. Restoring from the copy Before restoring a database, it is highly recommended to back up the transaction log first. This minimizes the amount of data that is lost. AppSync can back up the transaction log. You need to use one of the SQL Server management tools to restore it after the database has been restored. The Recovery, No Recovery, and Standby options are available when restoring the full database. You may also restore from an AppSync SQL database copy when: Production database has been lost or deleted Production database has been corrupted Production database needs to be rolled back Acknowledge the restore of affected databases that may come up due to the storage layout of the primary restore candidate See Affected entities during restore. 4

Depending upon the recovery type (Standby or Recovery) selected, AppSync performs database recovery post completion of storage level restore. In case NoRecovery is selected, the database is attached to the production instance but left in non-operational mode. Manual intervention is needed to recover the database. This table covers different restore scenarios and preferred recovery types: Recovery Type Recovery Standby Purpose Recovers the database after restoring. Additional backups cannot be restored post recovery. Leaves the database in a standby state, in which the database is available for limited readonly access. It rolls back uncommitted transactions, but saves the undo actions in a standby file so that recovery effects can be reverted. NoRecovery Leaves the database in the restoring state and does not roll back the uncommitted transactions. This allows you to restore transaction log backups in the current recovery path. Affected entities during restore When restoring from a copy, you may be prompted to restore items in addition to the ones you selected. An affected entity is data that resides on your production host that unintentionally becomes part of a copy because of its proximity to the data you intend to protect. You can prevent affected entity situations by properly planning your data layout based on the restore granularity. If there are affected entities in your underlying storage configuration, the Restore Wizard notifies you of these items. Restore cannot proceed further without you acknowledging the listed of affected entities. If required, take necessary steps to detach affected databases and then proceed with restore. The following scenarios produce affected entities that require you to acknowledge that additional items will be restored: For RecoverPoint, if the databases are in the same consistency group, they become affected entities when the other database is protected. For VNX, if the databases are on the same LUN, they become affected entities when the other database is protected. If the affected entity was protected along with the database that is selected for restore, it will be restored by AppSync. Any other database that was not protected but is an affected entity will be overwritten. AppSync calculates affected entities for the consistency groups or LUNs of the database that is selected for restore. If the affected databases in turn partially reside on other consistency groups or LUNs, AppSync does not calculate affected entities on those consistency groups or LUNs. Depending upon the type of affected entity, the affected databases are detached by AppSync if they were protected in the same service plan run as the database to be restored. For databases that were not protected in the same service plan run as the database to be restored, you must manually detach them from the SQL Server instance. The image Affected entities during restore depicts the two types of affected entities seen during restore. 5

Affected entities during restore Affected entities are calculated only for the SQL Server instances where the credentials are configured. AppSync does a fresh database discovery for all these instances before calculating the affected entities. It is recommended not to share storage across databases that belong to different SQL Server Instances. Backup of transaction logs It is highly recommended to back up transaction logs before performing a restore. Every SQL Server database has a transaction log that records all transactions and the database modifications made by each transaction. You may choose to backup transaction logs prior to restore in AppSync and specify a location with file prefix and extension on the production host for the same. This backup can be used to recover the database in case the database is restored with NORECOVERY or STANDBY option. If the database is damaged, you must select the Database is damaged option to facilitate tail log backup. See Restoring damaged databases. You may also choose to truncate transaction logs and overwrite existing backup files. These options are not available if the database is damaged. The Table AppSync options and flags in Backup Log explains the flags that are appended to the BACKUP LOG command based on the selected options in the AppSync UI. Truncate Overwrite existing backup Database is damaged Flag(s) appended to BACKUP LOG transaction logs 6 files command Not Selectable Not Selectable Selected WITH NO_TRUNCATE / WITH CONTINUE_AFTER_ERROR Selected Not Selected Not Selected None Selected Selected Not Selected WITH INIT, SKIP Not Selected Selected Not Selected WITH NO_TRUNCATE, INIT, SKIP AppSync options and flags in Backup Log If you do not choose to backup transaction logs for restore, additional recovery options like Restore with Recovery and Overwrite existing databases (WITH REPLACE) appear in the user interface. The latter should be selected if you intend to erase and replace the existing database with the backed up data. This must be done carefully or it may result in data loss or corruption. Restoring damaged databases Damaged databases may have data files missing or damaged with their log files intact. Tail log backups capture the tail of the log even if the database is offline, damaged, or has missing data files. AppSync can take tail log backups for damaged databases. A damaged database must not contain bulk-logged changes and it must not be in OFFLINE state. If the production database is damaged and you select the Database is damaged checkbox during restore, AppSync backs up the tail log of the damaged database before proceeding with restore. A damaged database can be in RECOVERY_PENDING or SUSPECT state. AppSync first tries to detach the database by setting the EMERGENCY mode on it. If AppSync fails to set the EMERGENCY mode on the database, it drops the database and then proceeds with the restore. Once the restore is successful, you can recover the database manually using the tail log backup.

For this case, the BACKUP LOG statement is executed with either NO_TRUNCATE or with CONTINUE_AFTER_ERROR option. The Truncate transaction logs and Overwrite existing backup files options are not available when you select the Database is damaged option. In case there are other ONLINE affected databases that were protected along with the damaged database, AppSync does not apply the damaged database scenario on any of them and they are taken offline, detached and restored. The BACKUP LOG statement is executed with NO_TRUNCATE option for all such databases. Restore restrictions 1. The database to be restored must not be a snapshot database. A database snapshot is a read-only, static view of a SQL Server database (the source database). The database snapshot is consistent transaction-wise nwith the source database as of the moment of the snapshot's creation. A database snapshot always resides on the same server instance as its source database. As the source database is updated, the database snapshot is updated. 2. The database to be restored must not have snapshot databases. 3. The database to be restored must not be mirrored. This means it should not have an active mirroring session. MOUNTING SQL SERVER DATABASE COPIES WITH RECOVERY The mount host must have Microsoft SQL Server installed if you want to recover databases from the mounted copy. If the mount host is a virtual machine, the Virtual Center must be registered with AppSync. This is needed to mount RDMs. Mount and production host version compatibility If the major version of the SQL Server instance on the production host is newer than that of the mount host, recovery fails for all databases belonging to that instance. If the major version of the SQL Server instance on the production host is older than that of the mount host, recovery succeeds only if the recovery type is either RECOVERY or NORECOVERY. Recovery fails if recovery type is STANDBY. If the major version of the SQL Server instance on the production host is same as that of the mount host, but the minor version is newer, recovery fails for all databases belonging to that instance. If the major version of the SQL Server instance on the production host is same as that of the mount host, but the minor version is older, recovery succeeds only if the recovery type is either RECOVERY or NORECOVERY. Recovery fails if recovery type is STANDBY. If the version of SQL Server instance on the mount host is newer than that of the production host, then the database version gets upgraded on recovery. However, in case of EMC RecoverPoint, changes are discarded when the bookmark is dismounted. Supported mount recovery modes RECOVERY: Instructs the restore operation to roll back any uncommitted transactions. After the recovery process, the database is ready for use. NORECOVERY: Instructs the restore operation not to roll back any uncommitted transactions. When in NORECOVERY mode, the database is unusable. This option is useful when the Database Administrator needs to restore one or more transaction log backups. Database is attached to the instance selected for recovery and is left in the RESTORING state. STANDBY: Restores files and opens the database in read-only mode. Subsequently, the Database Administrator can manually apply additional transaction log backups. Note: If you are restoring a database from an older version of SQL Server onto a newer SQL Server version, do not use STANDBY mode. If you use STANDBY, the upgrade to the newer version cannot happen and will result in a failure of the operation. Mounting copies from multiple production hosts to a single mount host You may choose to subscribe SQL Server instances across hosts to the same service plan. When the plan runs, it groups the databases-instance by host and creates copies for all such groups. So you get database copies grouped by hosts. These groups may further get divided on the basis of the load on each instance (see Efficiency). You may choose a single mount host for mounting or recovering all such copies. You should be careful to avoid any conflicting mount points or database names across hosts. To avoid conflicting mount paths, you may choose host level mount overrides to specify a different mount path for all databases that will be protected on that host. To avoid conflicting database names on the mount host in case production database names are same across hosts, you may choose to override database rename suffix for all databases that will be protected on a particular production host. The database name conflict can only occur when you intend to recover databases post mount. Failure to avoid such conflicts may result in partially mounted/recovered copies. You may choose separate mount hosts, one for each of the involved production hosts, in order to avoid any conflicts whatsoever. This can be achieved by overriding the mount host / recovery SQL Server Instance for each of the production hosts involved. For details on configuring mount overrides, refer the AppSync User Guide, section Overriding mount settings in a service plan. 7

Mounting multiple database copies existing on same production LUNs or consistency groups This scenario may occur when the filesystems that are being mounted were already mounted for another set of databases in the same service plan run. If you have several databases sharing the same storage (LUNs in case of VNX / consistency groups in case of RecoverPoint) and the databases get split due to the restriction on the number of databases per run (see Efficiency), only one of the resulting groups will be mounted successfully. The group that gets mounted first will mount successfully and the next ones will fail and a warning explaining the reason will be displayed. You might reconfigure the value of the server setting variable max.sql.affinity.databases.units to a higher value (default value is 35) using REST interface in order to force all databases in a single group. However, this is not recommended from performance perspective. Careful planning of the storage layout of databases in advance may prevent this issue from occurring. Partial recovery of mounted databases AppSync is capable of partially recovering databases on mount. This means that the entire mount operation is not failed if one or more but not all databases fail to recover. For example, if you are trying to mount 10 SQL Server databases and three of those have name collision with databases already present on the target SQL Server instance, then AppSync fails recovery only for those three databases and the remaining seven will be recovered successfully. UNMOUNTING SQL SERVER DATABASE COPIES Custom shutdown script prior to unmount Prior to unmount, if you wish to perform a customized shut down of the databases, you can place a script at the following location: %ProgramData%\EMC\AppSync\script\. The script name must be in this format: <ServicePlanName>_<host_ProductionInstanceName OR ProductionInstanceName>_ShutdownSQL.bat Where: ServicePlanName is the name of the service plan that the database is subscribed to host_productioninstancename OR ProductionInstanceName: In host_productioninstancename, you can replace host by another name, the ProductionInstanceName is needed irrespective of whether there are different SQL instances or not. Use ProductionInstanceName in case of default production instance which is equal to the host name. Using the _ as a separator in the script file name is mandatory. It is recommended that you run the script as a Windows user. To run the script as a SQL Server user in SQL Server 2012 environment, the Local System user must have the sysadmin role. In the absence of a customized script, AppSync performs a shutdown of the databases prior to unmount. This is not a selectable option in the UI and AppSync looks for this script during the unmount operation. If the script is present and does not have proper access or executable permissions, AppSync displays a warning and continues with the shutdown and unmount operation. CONCLUSION This whitepaper explains Microsoft SQL Server backup and recovery support provided by EMC AppSync for standalone use cases. It talks about features like dynamic discovery of databases during protection runs and usage of pre and post scripts. It also explains various options and scenarios for mount and restore of SQL Server database copies. References 1. AppSync User and Administration Guide 2. AppSync REST API Guide 8 CONTACT US To learn more about how EMC products, services, and solutions can help solve your business and IT challenges, contact your local representative or authorized reseller or visit us at www.emc.com. www.emc.com Copyright 2013 EMC Corporation. All Rights Reserved. EMC believes the information in this publication is accurate as of its publication date. The information is subject to change without notice. The information in this publication is provided "as is." EMC Corporation makes no representations or warranties of any kind with respect to the information in this publication, and specifically disclaims implied warranties of merchantability or fitness for a particular purpose. Use, copying, and distribution of any EMC software described in this publication requires an applicable software license. For the most up-to-date listing of EMC product names, see EMC Corporation Trademarks on EMC.com. EMC2, EMC, the EMC logo, and the RSA logo are registered trademarks or trademarks of EMC Corporation in the United States and other countries. VMware is a registered trademark of VMware, Inc. in the United States and/or other jurisdictions. All other trademarks used herein are the property of their respective owners. Published in the USA. 12/13 White Paper H12583