A simple step-by-step guide for JIRA Administrator on how to Migrate JIRA 7 (Server) with Oracle to JIRA 8 (data center) with SQL 2016.
In any migration process, first step is to identify and create a compatiblity matrix. We need JIRA 8 with SQL 2016, but SQL 2016 is not supported platform for JIRA 7. Hence, we need a middle-ground between JIRA 7 + Oracle and JIRA 8 + SQL 2016. Of course, you also need to check compatiblity of your existing add-ons. But in the below steps, I will take you through a migration process that is independent of add-ons. Add-ons can be and, according to me, should be installed once the JIRA application has been upgraded to desired version and that the data has been successfully imported too:
|JIRA 7.X||SQL 2012|
|JIRA 8.X||SQL 2012|
|JIRA 8.X||SQL 2016|
So, the middle-ground is JIRA 7.X with SQL 2012.
Below are the steps:
- Export XML from JIRA 7 with Oracle
- Shutdown JIRA 7
- Install JIRA 7 with SQL 2012 on first instance (node1). Enter the data center license when prompted during the setup wizard.
- Import XML generated in Step 1
- Verify the imported data
- Once verified, upgrade JIRA to 8.x (using the installer)
- Start JIRA 8 (with SQL 2012 already in-place)
- Check if any issues during startup and verify the data
- Export XML from JIRA 8 with SQL 2012
- Shutdown JIRA 8
- Delete dbconfig.xml and start JIRA 8
- In the setup wizard, connect to SQL 2016
- Import the XML generated in step 9
- Verify the data (projects, issues, users, permissions, workflows, etc.)
- Setup a shared storage. Make sure that the directory can be read and written by both the nodes. Copy the following directories into mount location of shared storage (assuming this as locaiton: /data/jira/sharedhome):
- Create cluster.properties files in home directory
# This ID must be unique across the cluster jira.node.id = node1 # The location of the shared home directory for all JIRA nodes jira.shared.home = /data/jira/sharedhome
- Copy the installation & home directory from node1 to new instance (node2)
- Make changes to cluster.properties file (on node2) in home directory
- Copy attachments from JIRA 7 home directory to data directory in shared storage
- Start new node and monitor startup for any problems.
- That's it! Our data-center setup is ready.
- Use the same service account on both the nodes. Usually, application is installed on 1 node and remaining nodes are cloned from it. After cloning, ensure that JIRA serivce is running with the same service account in the cloned environment. As best practice, just add the service account under 'Log on' for JIRA service.
- Perform clone only after all the upgrades and imports are completed in first node.
- Always take snapshots, so that you can always go back to a successful installation or import rather than starting from zero again.
- Disable all emails while doing XML imports
- Use UNC path for your storage location