Moving SQL Servers. Document version 3.2 Published December 2010



Similar documents
SQL Server Database Administrator s Guide

SELF SERVICE RESET PASSWORD MANAGEMENT BACKUP GUIDE

SafeGuard Enterprise upgrade guide. Product version: 7

Sophos Enterprise Console server to server migration guide. Product version: 5.2

Integration with IP Phones

Sophos Enterprise Console server to server migration guide. Product version: 5.1 Document date: June 2012

Moving a CIMPLICITY SQL Database using Detach/Attach Proficy HMI/SCADA CIMPLICITY

SafeGuard Enterprise upgrade guide. Product version: 6.1

Moving the Web Security Log Database

Configuring Steel-Belted RADIUS Proxy to Send Group Attributes

Sophos for Microsoft SharePoint startup guide

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

Distributing SMS v2.0

SafeGuard Easy upgrade guide. Product version: 7

Sophos Anti-Virus for NetApp Storage Systems startup guide

Juris Installation / Upgrade Guide

Sophos Computer Security Scan startup guide

ChangeAuditor. Migration Guide CA-MG

Migrating Trend Micro Mobile Security for Enterprise (TMMS) 8.0 to TMMS 9.0

Migrating Mobile Security for Enterprise (TMMS) 8.0 to version 9.0

Creating IBM Cognos Controller Databases using Microsoft SQL Server

Sophos Disk Encryption License migration guide. Product version: 5.61 Document date: June 2012

SAS 9.3 Foundation for Microsoft Windows

ESET REMOTE ADMINISTRATOR. Migration guide

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

4cast Client Specification and Installation

Redeploying Microsoft CRM 3.0

Sophos Anti-Virus for NetApp Storage Systems user guide. Product version: 3.0

Upgrading a computer to Windows 10 with PetLinx

ArcGIS 9. Installation Guide: Workgroup for Microsoft SQL Server Express

Sophos Anti-Virus standalone startup guide. For Windows and Mac OS X

Sophos Cloud Migration Tool Help. Product version: 1.0

DSS Support Backup / Restore DSS Databases using Windows Backup Windows XP Windows 2003 Server

G Data TechPaper #0257

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

Database Maintenance ZENworks Mobile Management 2.7.x August 2013

1. CONFIGURING REMOTE ACCESS TO SQL SERVER EXPRESS

Sophos Anti-Virus for NetApp Storage Systems startup guide. Runs on Windows 2000 and later

HELP DOCUMENTATION E-SSOM BACKUP AND RESTORE GUIDE

Migrating MSDE to Microsoft SQL 2008 R2 Express

Error: "Object reference not set to an instance of an object" When Opening Any Database

Installing and Trouble-Shooting SmartSystems

Sophos Endpoint Security and Control How to deploy through Citrix Receiver 2.0

How to Configure a Secure Connection to Microsoft SQL Server

How do I EVOLVE to Best Practice Software?

Sophos Endpoint Security and Control standalone startup guide

Mobility Services Platform Software Installation Guide

Moving the TRITON Reporting Databases

SafeNet Authentication Manager Express. Upgrade Instructions All versions

Sophos Endpoint Security and Control Windows Embedded test guide. Product version: 10

Moving a Romexis Database to an Existing SQL Instance

Symantec AntiVirus Corporate Edition Patch Update

How to deploy Arkeia Network Backup v10 on Windows Server 2008 and later with a domain

Any system currently running the Schneider Electric MBX Driver Suite or any activated Cyberlogic software suite.

BSDI Advanced Fitness & Wellness Software

FaxCore 2007 Database Migration Guide :: Microsoft SQL 2008 Edition

4cast Server Specification and Installation

Spector 360 Deployment Guide. Version 7.3 January 3, 2012

AVALANCHE MC 5.3 AND DATABASE MANAGEMENT SYSTEMS

If you have questions or need assistance, contact PCS Technical Services using the contact information on page 10.

Automated Database Backup. Procedure to create an automated database backup using SQL management tools

How To Upgrade Your Microsoft SQL Server for Accounting CS Version

DALIBuildings SQL Server System Administrator Account Management. DALI programming guide

PC Agent Quick Start. Open the Agent. Autonomy Connected Backup. Version 8.8. Revision 0

edwalt's - Things I Wish I'd known about Small Business Server...

How To Fix A Backup Error In A Windows Xp Server On A Windows (Windows) On A Pc Or Mac Xp (Windows 7) On An Uniden Computer (Windows 8) On Your Computer Or Your Computer (For

WhatsUp Gold v16.2 Installation and Configuration Guide

Backing up SIMS and FMS Databases

Installation Manual (MSI Version)

SafeGuard Easy startup guide. Product version: 7

FaxCore Ev5 Database Migration Guide :: Microsoft SQL 2008 Edition

Copyrights, Legal Notices, Trademarks and Servicemarks

JAVS Scheduled Publishing. Installation/Configuration... 4 Manual Operation... 6 Automating Scheduled Publishing... 7 Windows XP... 7 Windows 7...

Installation Instructions Release Version 15.0 January 30 th, 2011

Tool Tip. SyAM Management Utilities and Non-Admin Domain Users

Migrating FMS to SQL SIMS 2009 Autumn Main Release Onwards

Quest ChangeAuditor 4.8

HELP DOCUMENTATION E-SSOM DEPLOYMENT GUIDE

Archive Server for MDaemon disaster recovery & database migration

How To Install Outlook Addin On A 32 Bit Computer

High Availability Configuration

Inmagic ODBC Driver 8.00 Installation and Upgrade Notes

Promap V4 ActiveX MSI File

MadCap Software. Upgrading Guide. Pulse

Feith Dashboard iq Server Version 8.1 Install Guide

Database Administration Guide

ilaw Server Migration Guide

FaxCore 2007 Application-Database Backup & Restore Guide :: Microsoft SQL 2005 Edition

Sophos Anti-Virus for Mac OS X network startup guide. For networked Macs running Mac OS X

CloudPortal Services Manager Version 11.0 CU1 Deployment Guide

Archive Add-in Administrator Guide

Spector 360 Deployment Guide. Version 7

InformationNOW SQL 2005 Database Backup and Restoration

User Installation Guide for SAS 9.1 Foundation for 64-bit Microsoft Windows

DriveLock Quick Start Guide

BSDI Advanced Fitness & Wellness Software

Sophos SafeGuard Disk Encryption for Mac Startup guide

Using Windows Task Scheduler instead of the Backup Express Scheduler

Archive Attender Version 3.5

Transcription:

Copyright 2010 Sophos Limited. All rights reserved. No part of this publication may be reproduced, stored in retrieval system, or transmitted, in any form or by any means electronic, mechanical, photocopying, recording or otherwise unless you are either a valid licensee where the documentation can be reproduced in accordance with the licence terms or you otherwise have the prior permission in writing of the copyright owner. Sophos and Sophos Anti-Virus are registered trademarks of Sophos Limited. All other product and company names are trademarks or registered trademarks of their respective owners. Document version 3.2 Published December 2010 2

Table of Contents Moving SQL Servers with Sophos NAC Advanced... 4 Moving Only the SQL Server... 4 Moving Both the Application Server and SQL Server... 6 SQL Server Detach/Attach Procedure... 7 3

Moving SQL Servers with Sophos NAC Advanced At some point, it may become necessary to move the production Sophos NAC SQL server (Sophos Compliance Databases) to another SQL server because of hardware problems or upgrades. Additionally, you may have detailed policy data set up in a test environment that is necessary to keep when moving the Sophos Compliance Databases and Sophos Compliance Application Server into a production environment. This document addresses the steps that are necessary to complete these tasks. These procedures should be performed during a maintenance window when users will not be using the system. This document assumes that the Compliance Databases and the Compliance Application are on separate servers. An application outage for the Sophos Compliance Manager should be planned for this task. Moving Only the SQL Server The following steps outline the process necessary to move the Compliance Databases from a test environment to a production environment while keeping the same Compliance Application Server. Important: Sophos recommends that you back up your SQL server prior to performing these steps to ensure that no data is lost. The following procedure should be performed during a maintenance window when users will not be using the system. This document assumes that the Compliance Databases and the Compliance Application are on separate servers. 1. From the Compliance Application Server, log on to the Compliance Manager, go to the Configure System > Server Key area, export the public/private key pair, and save the key pair to an external location. 2. Install the new Compliance Databases on the new SQL server using the SophosComplianceManagerSetup.msi file. (This msi file is run immediately after the sfx file has been extracted.) Then, from the installation options, select the Sophos Compliance Database Server Only option. After the installation is complete, open SQL Enterprise Manager on the new SQL server and delete all Compliance Databases, which include: AlertStore, AuditStore, GeneralStore, PolicyStore, ReportStore, ReportStoreCache, ReportStoreWH, and SecurityStore. For more information, see SQL Server Detach/Attach Procedure, page 9 (step 8). 3. Put the existing Compliance Application Server into Maintenance Mode so that the SQL connections are suspended and Compliance Agents do not receive errors when trying to register, retrieve the policy, or report. To do this, run a command prompt, go to the following directory C:\Program Files\Sophos\NAC\Support Tools\, and then run the following command: maintmode.exe /start 4. From the old SQL server, open SQL Enterprise Manager, and detach all Compliance Databases, which include: AlertStore, AuditStore, GeneralStore, PolicyStore, ReportStore, ReportStoreCache, ReportStoreWH, and SecurityStore. Then, copy the MDF and LDF files to the new SQL server in the following location C:\Program Files\Microsoft SQL Server\MSSQL\Data, or wherever the default SQL database location is set on this server. For more information, see SQL Server Detach/Attach Procedure, page 7 (step 1). 5. From the new SQL server, open SQL Enterprise Manager, and attach all Compliance Databases that were detached from the old SQL server in step 4. For more information, SQL Server Detach/Attach Procedure, page 8 (step 3). 4

6. Uninstall the Compliance Application Server using Control Panel > Add/Remove Programs. 7. Re-install the Compliance Application Server using the SophosComplianceManagerSetup.msi file. (This msi file is run immediately after the sfx file has been extracted.) Then, from the installation options, select the Compliance Application Server and RADIUS Enforcer option, and point it to the new SQL server. 8. After re-installing the Compliance Application Server, log on to the Compliance Manager, go to the Configure System > Server Key area, and import the public/private key pair that was saved in step 1. 9. After confirming that the new installation was a success, uninstall the old Compliance Databases Server using Control Panel > Add/Remove Programs, and delete the Compliance Databases (or keep them as a backup). For more information, see SQL Server Detach/Attach Procedure, page 9 (step 8). 5

Moving Both the Application Server and SQL Server The following steps outline the process necessary to move both the Compliance Application Server and the Compliance Databases to two new servers. Important: Sophos recommends that you back up your SQL server prior to performing these steps to ensure that no data is lost. The following procedure should be performed during a maintenance window when users will not be using the system. This document assumes that the Compliance Databases and the Compliance Application are on separate servers. 1. From the Compliance Application Server, log on to the Compliance Manager, go to the Configure System > Server Key area, export the public/private key pair, and save the key pair to an external location 2. Install the new Compliance Databases on the new SQL server using the SophosComplianceManagerSetup.msi file. (This msi file is run immediately after the sfx file has been extracted.) Then, from the installation options, select the Sophos Compliance Database Server Only option. After the installation is complete, open SQL Enterprise Manager on the new SQL server and delete all Compliance Databases, which include: AlertStore, AuditStore, GeneralStore, PolicyStore, ReportStore, ReportStoreCache, ReportStoreWH, and SecurityStore. For more information, see SQL Server Detach/Attach Procedure, page 9 (step 8). 3. Put the existing Compliance Application Server into Maintenance Mode so that the SQL connections are suspended and Compliance Agents do not receive errors when trying to register, retrieve the policy, or report. To do this, run a command prompt, go to the following directory C:\Program Files\Sophos\NAC\Support Tools\, and then run the following command: maintmode.exe /start 4. From the old SQL server, open SQL Enterprise Manager, and detach all Compliance Databases, which include: AlertStore, AuditStore, GeneralStore, PolicyStore, ReportStore, ReportStoreCache, ReportStoreWH, and SecurityStore. Then, copy the MDF and LDF files to the new SQL server in the following location C:\Program Files\Microsoft SQL Server\MSSQL\Data, or wherever the default SQL database location is set on this server. For more information, see SQL Server Detach/Attach Procedure, page 7 (step 1). 5. From the new SQL server, open SQL Enterprise Manager, and attach all Compliance Databases that were detached from the old SQL server in step 4. For more information, see SQL Server Detach/Attach Procedure, page 8 (step 3). 6. Install the new Compliance Application Server using the SophosComplianceManagerSetup.msi file. (This msi file is run immediately after the sfx file has been extracted.) Then, from the installation options, select the Compliance Application Server and RADIUS Enforcer option, and point it to the new SQL server. 7. After installing the Compliance Application Server, log on to the Compliance Manager, go to the Configure System > Server Key area, and import the public/private key pair that was saved in step 1. 8. After confirming that the new installation was a success, uninstall the old Compliance Application Server and the old Compliance Databases Server using Control Panel > Add/Remove Programs, and delete the Compliance Databases (or keep them as a backup). For more information, see SQL Server Detach/Attach Procedure, page 9 (step 8). 6

SQL Server Detach/Attach Procedure The detach/attach procedure defined in the tasks above can be accomplished through the SQL Enterprise Manager. Important: If this server has just been installed with the Compliance Databases and you want to migrate the old databases to the new server, run step 9 first to remove the newly created databases before running step 1. 1. To detach a database from the old SQL server, open SQL Enterprise Manager, right-click the database you want to detach, and select All Tasks > Detach Database. 2. Repeat step 1 as necessary to detach all SQL server databases. 7

3. To attach a database on the new SQL server, open SQL Enterprise Manager, right-click the Databases folder, and select All Tasks > Attach Database. 4. Click the ellipsis button to browse for the database, scroll down to C:\Program Files\Microsoft SQL Server\MSSQL\Data, select the newly copied MDF files, and click OK. 8

5. The log file is automatically located. You must confirm or specify the new database owner. For each of the SQL databases, specify the NAC account that you chose when you installed the Compliance Databases and Compliance Application Server as the database owner, and click OK. 6. A dialog box displays confirming that the database was successfully attached. Click OK. 7. Repeat steps 4-7 as necessary to successfully attach all SQL server databases. 8. To delete the old databases and their corresponding LDF files on the Compliance Databases server, open SQL Enterprise Manager, right-click each of the databases, and select Delete from the list of options for each of the following databases: AlertStore, AuditStore, GeneralStore, PolicyStore, ReportStore, ReportStoreCache, ReportStoreWH, and SecurityStore. Important: The deletion of the databases should only be done on the old Compliance Databases SQL server after the databases have been backed up, detached, copied, and successfully attached to the new SQL server. 9

10