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
- Clone production server using the appropriate hypervisor tools for the virtualised host environment.
- Keep the cloned server turned off and move to an isolated network environment.
- Turn on cloned server and perform clean & rename.
- Move into live network environment
- Perform full system test
- Download the Synergetic cloning server scripts here: https://s3-ap-southeast-2.amazonaws.com/static.synergetic.net.au/System/Server+Installers/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
- In System Properties, change 'Full computer name' to the new server name and change 'Workgroup' from the domain to a local workgroup (temporarily).
- Uninstall Screen Connect
- Uninstall Octopus Deploy
- Install MailHog to capture outbound email: https://github.com/mailhog/MailHog/releases
- Use localhost and port 2525
- 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.
- 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.
- In SQL Server Management Studio, use Synergetic database restore script 'Syn Database Refresh from Production.sql' to load / rename the database from 'PRD' to 'TST' and 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 script 'Update all Synergetic email settings.sql' - make sure to change the default values before executing.
- Configure Synergetic applications to connect to new server name and new database name.
- Synergetic Windows Application & Service Suite
- 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.
- Search entire registry for references to source server name and update
- Move server to live network environment and join to domain
- In SQL Server Configuration Manager, change the SQL service accounts for SQL Server and SQL Server Agent to domain service account
- 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.