6471.BuildDiary 2019R4 CloneServer
6471.BuildDiary 2019R4 CloneServer
6471.BuildDiary 2019R4 CloneServer
©2021 The Sage Group plc or its licensors. All rights reserved. Sage, Sage logos, and Sage product and service names mentioned herein are the trademarks of
Sage Global Services Limited or its licensors. All other trademarks are the property of their respective owners.
Disclaimer
This document is provided "as is" and is for your guidance and educational purposes only. It does not
replace the Online documentation, nor is any warranty expressed nor implied for the steps described
herein.
Document Information
Author: Mike Shaw, Sage UK X3 Support Team
Contents
Introduction .................................................................................................................................................. 3
2019 R4 – Clone single-server TEST instance build diary.............................................................................. 4
Objective ................................................................................................................................................... 4
Starting architecture and notes ................................................................................................................ 4
Documentation to use for planning and execution of this task ............................................................... 5
Initial steps ................................................................................................................................................ 6
Configure software for new server name ................................................................................................. 7
Change X3 specific setup ........................................................................................................................ 12
Finishing steps ......................................................................................................................................... 13
Conclusion ................................................................................................................................................... 14
©2021 The Sage Group plc or its licensors. All rights reserved. Sage, Sage logos, and Sage product and service names mentioned herein are the trademarks of
Sage Global Services Limited or its licensors. All other trademarks are the property of their respective owners.
Introduction
What is a ”Build Diary”
A Build Diary simply describes the steps taken by Sage Support to perform a task or tasks on our internal
test systems. Build diaries could be created for major multi-node installations, but may also just be
describing the steps taken when installing a small hotfix, or anything in-between.
You could potentially use these documents as the base for your own “Workplan document” (Described
in “Overview of patching X3 and supporting technologies” https://www.sagecity.com/gb/sage-x3-
uk/b/sage-x3-uk-support-insights/posts/sage-x3-technical-support-tips-and-tricks---march-2021-index )
when you are planning your own activities
Target Audience
This document is aimed at Sage X3 Certified Technical consultants. Sage prescribe that X3 system
installation, maintenance, migrations, etc. should be performed by suitably qualified Sage X3
consultants. The prerequisite consideration would be for them to have the latest “Sage X3 Certified
Technical Consultant” certification. You can read more about the Sage X3 qualifications and
requirements in Sage University ( https://sageu.csod.com/catalog/CustomPage.aspx?id=20000242#tc )
©2021 The Sage Group plc or its licensors. All rights reserved. Sage, Sage logos, and Sage product and service names mentioned herein are the trademarks of
Sage Global Services Limited or its licensors. All other trademarks are the property of their respective owners.
2019 R4 – Clone single-server TEST instance build diary
Objective
I want to clone an existing single-node Sage X3 instance, by creating a copy of an existing TEST server
and then renaming the Clone server to a different Windows server name.
©2021 The Sage Group plc or its licensors. All rights reserved. Sage, Sage logos, and Sage product and service names mentioned herein are the trademarks of
Sage Global Services Limited or its licensors. All other trademarks are the property of their respective owners.
Documentation to use for planning and execution of this task
Pre-requisites
http://online-help.sageerpx3.com/erp/12/public/Prerequisites-(Last-version).html
http://online-help.sageerpx3.com/erp/12/public/prerequisites_overview.html
©2021 The Sage Group plc or its licensors. All rights reserved. Sage, Sage logos, and Sage product and service names mentioned herein are the trademarks of
Sage Global Services Limited or its licensors. All other trademarks are the property of their respective owners.
Initial steps
The first step is to clone an existing TEST VM server “SAGE-EMV12” then rename the cloned Windows
Server
As my source instance is an existing TEST server, I will simply shutdown the source VM to ensure there is
no problem when I bring up and configure the cloned VM. I’ll leave the source VM shutdown until I have
finished configuring and setting up my clone VM. (For a LIVE server setup, you would probably want to
check the firewall rules will block all but required traffic into the LIVE server; to prevent any cross-over
from the Clone; and make sure the clone VMs are similarly configured)
Once the clone has been created it comes up with its own IP address. Change the Windows server name
to “CLONESERVER” then restart it for the change to take effect. I am now ready to configure my
software components for this change of server name.
©2021 The Sage Group plc or its licensors. All rights reserved. Sage, Sage logos, and Sage product and service names mentioned herein are the trademarks of
Sage Global Services Limited or its licensors. All other trademarks are the property of their respective owners.
Configure software for new server name
Preamble
Shutdown all Sage X3 related services. In my case this is Syracuse, Elastic Search, MongoDB, Runtime,
Print Server, AdxAdmin (Any other Sage X3 component are outside the scope of this document, but
would also need to be stopped)
SQL Server
Check SQL server is running
Connect via SSMS
I now need to run the following commands to remove the original name and create new entry for the
new server name:
EXEC sp_dropserver 'SAGE-EMV12\X3DATASQL2K16';
GO
EXEC sp_addserver 'CLONESERVER\X3DATASQL2K16', local;
GO
Then restart SQL Server service. Finally run the following to confirm the change has taken effect:
select @@SERVERNAME
sp_helpserver
©2021 The Sage Group plc or its licensors. All rights reserved. Sage, Sage logos, and Sage product and service names mentioned herein are the trademarks of
Sage Global Services Limited or its licensors. All other trademarks are the property of their respective owners.
MongoDB
The mongoDB SSL certificates need to be regenerated with the new hostname. I am using the SSL
certificate scripts available via GitHub to Sage Business Partners to create these new certificates.
I am using the “Investigation Scripts” also available via GitHub to Sage Business Partners for the next two
steps:
Use “mzRunMongoExport.cmd” to export the following collections to an ASCII file: Host, EndPoint,
BatchServer, X3solution
Edit the resulting JSON text files:
Change any occurrences of “SAGE-EMV12” to “CLONESERVER”. Also check for any occurrences
of the source server IP address, which would also need to be changed if found.
Re-import the changes using “mzRunMongoImport.cmd”
NOTE: these changes can equally be done by direct update using mongo shell or your favorite
GUI tool, but I think it’s safer and more repeatable to follow the above steps
Syracuse
Edit nodelocal.js
Change any occurrences of “SAGE-EMV12” to “CLONESERVER”. Also check for any
occurrences of the source server IP address, which would also need to be changed if
found.
©2021 The Sage Group plc or its licensors. All rights reserved. Sage, Sage logos, and Sage product and service names mentioned herein are the trademarks of
Sage Global Services Limited or its licensors. All other trademarks are the property of their respective owners.
• Copy over the PEM file to the runtime keys directory
Elastic Search
Edit the config file “elasticsearch.yml”
Change any occurrences of “SAGE-EMV12” to “CLONESERVER”. Also check for any
occurrences of the source server IP address, which would also need to be changed if
found.
Apache
Edit the config file “httpd.conf”
Change any occurrences of “SAGE-EMV12” to “CLONESERVER”. Also check for any
occurrences of the source server IP address, which would also need to be changed if
found.
Classic components
Edit the following files.
Change any occurrences of “SAGE-EMV12” to “CLONESERVER”. Also check for any
occurrences of the source server IP address, which would also need to be changed if
found.
..\AdxAdmin\inst\adxinstalls.xml
..\AdxAdmin\inst\listsolutions.xml
..\Folders\solution.xml and ..\Folders\X3_PUB\solution.json
c:\users\USERNAME\AppData\Roaming\Sage\Console\reports.xml
c:\users\USERNAME\AppData\Roaming\Sage\Console\adxaccounts.xml
c:\users\USERNAME\AppData\Roaming\Sage\Console\solutions.xml
c:\users\USERNAME\AppData\Roaming\Sage\Console\webs.xml
Updated: 17/11/2021 Page 9 of 14 BuildDiary_2019R4_CloneServer.pdf
©2021 The Sage Group plc or its licensors. All rights reserved. Sage, Sage logos, and Sage product and service names mentioned herein are the trademarks of
Sage Global Services Limited or its licensors. All other trademarks are the property of their respective owners.
Print server
.\Config\adxeditionserversolutions.xml
.\tools\ADXADMIN\adxeditionserver_setadxsols_DEFAULT.xml
.\tools\ADXADMIN\adxeditionserver_config.ini
©2021 The Sage Group plc or its licensors. All rights reserved. Sage, Sage logos, and Sage product and service names mentioned herein are the trademarks of
Sage Global Services Limited or its licensors. All other trademarks are the property of their respective owners.
Update Print Server
Click “Configuration”
©2021 The Sage Group plc or its licensors. All rights reserved. Sage, Sage logos, and Sage product and service names mentioned herein are the trademarks of
Sage Global Services Limited or its licensors. All other trademarks are the property of their respective owners.
Change X3 specific setup
Review and update any parameters at folder level that point to the old IP or hostname
Change any occurrences of “SAGE-EMV12” to “CLONESERVER”. Also check for any occurrences
of the source server IP address, which would also need to be changed if found.
In my case, I need to change SUP, WRK, AWRKSYRA (Syracuse server) for all folders (X3 and SEED done)
As my source instance was already a TEST server, I don’t need to update email addresses.
©2021 The Sage Group plc or its licensors. All rights reserved. Sage, Sage logos, and Sage product and service names mentioned herein are the trademarks of
Sage Global Services Limited or its licensors. All other trademarks are the property of their respective owners.
Finishing steps
Shutdown all Cloned servers. This not only allows for a cold backup to be taken, but will also check
there are no problems caused by cached settings.
Take a cold backup to ensure you can get back to this point if needed
©2021 The Sage Group plc or its licensors. All rights reserved. Sage, Sage logos, and Sage product and service names mentioned herein are the trademarks of
Sage Global Services Limited or its licensors. All other trademarks are the property of their respective owners.
Conclusion
This “Build diary” document documents my experience of cloning a TEST VM by copying the source VM
to the target VM and then renaming the target VM to a different server name (and IP address)
Whilst Sage Support do not provide direct assistance with cloning, hopefully this article has given you
some pointers and ideas of what to consider.
©2021 The Sage Group plc or its licensors. All rights reserved. Sage, Sage logos, and Sage product and service names mentioned herein are the trademarks of
Sage Global Services Limited or its licensors. All other trademarks are the property of their respective owners.