Archive Server for MDaemon disaster recovery & database migration



Similar documents
Archive Server for MDaemon disaster recovery & database migration

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

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

Video Administration Backup and Restore Procedures

Run Archive Server for MDaemon in HTTPS

HP Device Manager 4.6

Notes Transfer instructions INTRODUCTION More information

Moving the TRITON Reporting Databases

Upgrade Guide. McAfee Vulnerability Manager Microsoft Windows Server 2008 R2

Moving the Web Security Log Database

ilaw Installation Procedure

SQL Server Setup for Assistant/Pro applications Compliance Information Systems

MIGRATING TO AVALANCHE 5.0 WITH MS SQL SERVER

WhatsUp Gold v16.1 Installation and Configuration Guide

SafeCom G2 Enterprise Disaster Recovery Manual

How To Upgrade Your Microsoft SQL Server for Accounting CS Version

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

Installing SQL Express. For CribMaster 9.2 and Later

Migrating helpdesk to a new server

Inmagic ODBC Driver 8.00 Installation and Upgrade Notes

How to Back Up and Restore an ACT! Database Answer ID 19211

Installation Guide. . All right reserved. For more information about Specops Inventory and other Specops products, visit

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

Specops Command. Installation Guide

Installation Instruction STATISTICA Enterprise Small Business

WhatsUp Gold v16.3 Installation and Configuration Guide

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

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

VeriCentre 3.0 Upgrade Pre-Installation and Post Installation Guidelines

WhatsUp Gold v16.2 Database Migration and Management Guide

Crystal Reports Installation Guide

STATISTICA VERSION 12 STATISTICA ENTERPRISE SMALL BUSINESS INSTALLATION INSTRUCTIONS

WhatsUp Gold v16.2 Installation and Configuration Guide

CIMHT_006 How to Configure the Database Logger Proficy HMI/SCADA CIMPLICITY

Matisse Installation Guide for MS Windows. 10th Edition

HELP DOCUMENTATION E-SSOM BACKUP AND RESTORE GUIDE

Installing, Uninstalling, and Upgrading Service Monitor

Juris Installation / Upgrade Guide

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

Database Migration and Management Guide v15.0

How to Install Multiple Monitoring Agents on a Microsoft Operating System. Version StoneGate Firewall/VPN 2.6 and SMC 3.2

Metalogix SharePoint Backup. Advanced Installation Guide. Publication Date: August 24, 2015

Reconfiguring VMware vsphere Update Manager

halfile Server Move Contents Overview Moving SQL Server databases to a new server

Microsoft Corporation. Project Server 2010 Installation Guide

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

SQL EXPRESS INSTALLATION...

SEER Enterprise Shared Database Administrator s Guide

Copyright 2011 DataNet Quality Systems. All rights reserved. Printed in U.S.A. WinSPC is a registered trademarks of DataNet Quality Systems.

Migrating MSDE to Microsoft SQL 2008 R2 Express

SEER-HD Database Administrator s Guide

MS SQL 2000 Server with CDR DICOM 3.5 and Recommended WAN Configuration

Cisco Unified Contact Center Express Data Migration Tool User Guide, Release 1.0

Installing RMFT on an MS Cluster

AVALANCHE MC 5.3 AND DATABASE MANAGEMENT SYSTEMS

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

ilaw Server Migration Guide

HOW TO SET UP A DIRECT LINK BETWEEN PRIMAVERA PROJECT MANAGER 5 AND NAVISWORKS. Timo Hartmann t.hartmann@ctw.utwente.nl

Standalone Installation Guide V3.1. Recorder 6 JNCC

MGC WebCommander Web Server Manager

Technical Paper. Defining an ODBC Library in SAS 9.2 Management Console Using Microsoft Windows NT Authentication

Spector 360 Deployment Guide. Version 7

MS SQL Server Database Management

How to Backup and FTP your SQL database using E2.

SplendidCRM Deployment Guide

SAS 9.3 Foundation for Microsoft Windows

SAS Activity-Based Management Server Software Release 6.0 for Windows

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

How To Upgrade a local MSDE database to an SQL Server

XMailer Reference Guide

Mobility Services Platform Software Installation Guide

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

DigiVault Online Backup Manager. Microsoft SQL Server Backup/Restore Guide

iw Document Manager Cabinet Converter User s Guide

Server Installation: ServerTools

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

Server & Workstation Installation of Client Profiles for Windows (WAN Edition)

Support Document: Microsoft SQL Server - LiveVault 7.6X

Installation / Migration Guide for Windows 2000/2003 Servers

Reconfiguration of VMware vcenter Update Manager

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

Upgrading to Document Manager 2.7

Administration guide. Host software WinCCU Installation. Complete gas volume and energy data management

Matisse Installation Guide for MS Windows

9. Database Management Utility

Technical Bulletin. SQL Express Backup Utility

Operating System Installation Guide

TMS Database Knowledge Tips

Modular Messaging. Release 4.0 Service Pack 4. Whitepaper: Support for Active Directory and Exchange 2007 running on Windows Server 2008 platforms.

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

HELP DOCUMENTATION E-SSOM BACKUP AND RESTORE GUIDE

Moving SQL Servers. Document version 3.2 Published December 2010

Setting up your new Live Server Account

NETWORK INSTALLATION GUIDE V5.1. Recorder 6 JNCC

All rights reserved. Trademarks

Voyager Reporting System (VRS) Installation Guide. Revised 5/09/06

VERITAS Backup Exec TM 10.0 for Windows Servers

Pro-Watch Software Suite Installation Guide Honeywell Release 4.1

Backup/Restore Microsoft SQL Server 7.0 / 2000 / 2005 / 2008

Migrating TimeForce To A New Server

Transcription:

Archive Server for MDaemon Archive Server for MDaemon disaster recovery & database migration Abstract... 2 Scenarios... 3 1 - Reinstalling ASM after a crash... 3 2 - Moving database from one server to another one... 3 3 - Upgrade from MSDE to SQL... 3 ASM database migration... 4 Step 1 - Stop ASM... 4 Step 2 - Detach the database... 4 Step 3 - Move database files... 4 Step 4 - Attach the ASM database to the new database server... 5 Step 5 - Modify the ODBC DSN... 5 Step 6 - Modify asm.cfg... 5 Step 7 - Update registry... 6 Step 8 - restart ASM... 6 Moving ASM from one server to the other... 7 Notes... 8 Note for MSDE users... 8 Note for utility tools... 8 Warning... 8

Abstract Archiving email messages may speed up your business, but you have to be aware that while working with servers, files and databases, system crashes may occurr. So you have to prepare a disaster recovery strategy for your ASM installation. This document is intended to explain how to migrate/recovery an Archive Server for MDaemon installation.. 2.

Scenarios There are several scenarios in which you need to setup or migrate an Archive Server for MDaemon installation. 1 - Reinstalling ASM after a crash a) ASM/Database/repository on the same machine Provided you have the database backup and the <asm repository folder> backup, you should: 1. install from scratch ASM (same release there was installed before the crash). Please use the same installation folder and the same database settings; 2. stop ASMd.exe; 3. restore your ASM database backup over the newly installed one; 4. restore your repository backup on the new installation; if you change the repository path, please change also the configuration of it in the ASM admin page. 5. restart ASMd.exe; 6. test the installation. b) Database is on a different machine If database is not on the same machine, and was not involved in the system crash: 1. detach it from the database server (see the chapter ASM database migration ); 2. install from scratch ASM (same release there was installed before the crash). Please use the same installation folder and the same database settings; 3. stop ASMd.exe; 4. restore your ASM database backup over the newly installed one; 5. restore your repository backup on the new installation; 6. restart ASMd.exe; 7. test the installation. Note: if the repository is not on the same machine, forget step 4, both for a) and b) scenarios 2 - Moving database from one server to another one This is fully described in the chapter ASM database migration. 3 - Upgrade from MSDE to SQL Both same machine or different ones. 1. install SQL Server; 2. see Scenario 2 (above) - involving detach of the database from MSDE and attach to SQL Server; 3. test installation; 4. uninstall MSDE (if not more used).. 3.

ASM database migration Step 1 - Stop ASM In order to move ASM database you need to stop ASM engine. While ASM engine is not running, incoming email messages will be saved in the queue folder and none of them will be lost. Use Start->Program->Archive Server for MDaemon->Stop Engine to halt ASM or do it from the Control panel->services. Prevent users from accessing the web interface is a good choice too. If it is possible stop the web server, or simply replace the <install folder>/html/index.htm file with an out of service page. Step 2 - Detach the database SQL server 2000 (and MSDE 2000) provide the database detach-attach functionality to ease the db migration from one machine to another (or simply from one location to another one on the same server). Database can be detached using the SQL Server Enterprise Manager utility (see at the and of this document if you miss this utility): select the database to be detached in the left pane, then right click and choose all activities->detach database; select the Update statistic prior to detach option, check there are no active connection and that the database is ready to be detached, then click OK. Step 3 - Move database files Provided the database name chosen during installation was ASM_DB (this is the default in ASM installation using MSDE express setup too), in SQL Server (or MSDE) Data folder there are 2 files: ASM_DB.mdf (ASM data) ASM_DB_log.ldf (transaction log) Note: if one installed ASM+MSDE and choose express setup, data folder is: c:\program files\msde\mssql$asm\data Move these files on the machine hosting the destination database, in the folder you prefer (this could be the SQL server default DATA folder, but it is not needed).. 4.

Step 4 - Attach the ASM database to the new database server Log in, using the Enterprise Manager, to the destination SQL server. Select the Databases folder in the left panel and right click. Choose All Activities->Attach Database. In the dialog Attach Database, specify the path to the.mdf file (see step 3). Verify that both.mdf and.ldf files are shown in the middle pane grid. Leave the proposed value for Attach as and select the appropriate database owner (if it does not exist in the list, please leave the attach procedure, create the user in SQL server and restart from step 4). Step 5 - Modify the ODBC DSN ASM engine use an ODBC Data Source Name to access the database. ODBC connection parameters are specified in the <ASM installation folder>/engine/asmd.ini file, in the ODBC section: [odbc] source=<odbc datasource name> user=<user used to connect to the database, same as step 4> pass=<password for the user used to connect to the database> Password in the asmd.ini file can be crypted using the command line utility ASMCustSupport.exe Example: c:\> ASMCustomerSupport CRYPT achab endecoded string (len=28): DEABF60B0C48D10C8F60AFDE After modifying asmd.ini, you must modify the ODBC datasource definition using the ODBC management tool that can be found in Control Panel (Administrative Tool). Step 6 - Modify asm.cfg ASM web application uses a different config file to access the database. This file, <ASM folder>/database/asm.cfg, could be recreated using the utility configtool.exe Please: rename the current asm.cfg in asm.cfg.old ; open a dos shell; run configtool.exe <ASM folder>/database/asm.cfg.. 5.

An application pop-up will appear. Select Microsoft OLE DB Provider for SQL Server in the Provider Tab, then click Next. Select (or type) the name of your SQL Server (the destination one). Specify username and password (the same as step 5) and be sure to check on save password. Select your database in the drop down list and, finally, test your connection. If you successfully connect to the database press OK, else verify the data you inserted. Step 7 - Update registry ASM saves in the registry some informations about the installation we must modify in order to keep the installation clean (and to let the upgrade run smoothly). The registry entries that must be updated are in: HKLM\Software\Achab\Archive Server for MDaemon\Database. Note: dbtype = SQL Server even for MSDE (this parameter is for future use) Hostname is the name of the instance (e.g. machine\asm). Password is the encryped form like in the ODBC DSN (see step 5). Step 8 - restart ASM Start ASM engine (using Start->Program->Archive Server for MDaemon->Start engine or Control panel->services) and restart the web server. Test the new installation.. 6.

Moving ASM from one server to the other Moving of ASM and repository only. Database stays where it is already installed. Provided you have the ASM folder backup and the <asm repository folder> backup, you should: install ASM on the new server (no new database installation required; same ASM release). Please use the same installation folder and the same database access settings; stop ASMd.exe; restore your repository backup on the new installation; if you change the repository path, please change also the configuration of it in the ASM admin page; restart ASMd.exe; test the installation.. 7.

Notes Note for MSDE users If SQL Server Enterprise Manager is not available (for example if the user has MSDE only), attach and detach could be done using one of the free MSDE management tools, like: http://www.asql.biz/dbamgr/download2k.shtm or directly from the osql, command line utility, see also: http://databasejournal.com/features/mssql/article.php/2224361 Note for utility tools You can find ASMCustomerSupport.exe and configtool.exe on the Archive Server for MDaemon download page: http://www.achab.com/prod/intern.cfm/13/181/45 The utility are provided as a zipped files. Warning After restoring the database on the machine, it may be necessary to run query analyzer and run the store procedure sp_change_users_login update_one, <login>, <login> in order to get security IDs mathed.. 8.

Achab S.r.l. Piazza Cinque Giornate, 4 20129 Milano Italy Telephone: +39 02 54108204 Fax: +39 02 5461894 For further informations about Archive Server for MDaemon, visit the Web pages: http://www.achab.com/asm For further informations about Achab, its products and services, visit the Web site: http://www.achab.com For sales and marketing related questions, contact Achab at: sales@achab.com For technical support requests, contact Achab at: support@achab.com Archive Server for MDaemon is developed and distributed by Achab. MDaemon is an Alt-N Technologies trademark. Copyright 2004 - Achab S.r.l. All rights reserved.