Cloning provides a quick and efficient method of replicating an existing Synergetic server environment for testing purposes. There are however risks involved that will need to be mitigated in order to prevent accidental access to the source environment. This document describes the recommended method of cloning servers together with highlighting possible configurations that will need to be addressed prior to bringing the cloned server into a live network environment.
Recommended method of cloning servers for use with Synergetic
Overview
- Clone production server using the appropriate hypervisor tools for the virtualised host environment.
- Keep the cloned server turned off and move to a isolated network environment.
- Turn on cloned server and perform clean & rename.
- Move into production network environment
- Perform full system test
Resources
- Download the Synergetic cloning server scripts here: http://support.synergetic.net.au/cda/downloads/installation/CloningServerScripts.zip
- The download will require a username and password. The username is 'syntrf' - please contact the Service Desk for the password.
Clean and rename
Windows Server
- In System Properties, change 'Full computer name' to the new server name and change 'Workgroup' from the domain to a local workgroup (temporarily).
Applications
- Uninstall Screen Connect
- Uninstall Octopus Deploy
Email (recommended)
- Install MailHog to capture outbound email: https://github.com/mailhog/MailHog/releases
- Use localhost and port 2525
SQL Server
- In SQL Server Configuration Manager, change the SQL service accounts for SQL Server and SQL Server Agent to local default accounts ('MSSQLSERVER' & 'SQLSERVERAGENT')
- Using SQL Server Management Studio, rename SQL server using script 'SQL server rename.sql' make sure to change the default values before executing. Restart SQL server service and confirm server name change by executing 'select @@servername'
- Configure SQL Server email profiles to use MailHog as outbound email server
- Remove SQL Agent jobs which specifically reference the production server database.
IIS
- Load IIS manager and remove connection to the source server. Create a new connection to the new server name.
- Create new DNS records and bind these to the Synergetic test websites.
Synergetic applications
- In SQL Server Management Studio, use Synergetic database restore script (v68+) to load / rename the database from 'PRD' to 'TST' - update script to use new URLs for test websites. Run script to recreate database specific SQL Agent jobs.
- Configure Synergetic to use MailHog as outbound email server - using a script (TBC)
- Configure Synergetic applications to connect to new server name and new database name.
- Synergetic Windows Application
- Synergetic web portals - SynWeb, Community Portal, CoreAPI, Web Services, SynAPI
- Update Synergetic CoreAPI web applications - Application Dashboard & Form Builder to point to the new CoreAPI URL.
Windows Server
- Search entire registry for references to source server name and update
- Move server to production network environment and join to domain
SQL Server
- In SQL Server Configuration Manager, change the SQL service accounts for SQL Server and SQL Server Agent to domain service account
Finalise
- Restart server
- Test SQL Server access
- Test Synergetic applications and confirm each now connects to the test database
- Contact Synergetic service desk to notify of new test environment
- Contact Synergetic service desk to request Screen Connect and Octopus Deploy installation.