Migrating AWS EC2 Deployments
This section covers migrating FortiSIEM AWS EC2 based Virtual Appliances from 3.7.x to 4.2.1. Since FortiSIEM 4.2.1 has new CentOS version, the procedure is unlike a regular upgrade (say from 3.7.5 to 3.7.6) – certain special procedures have to be followed.
Very broadly, 3.7.6 CMDB have to be first migrated to a 4.2.1 CMDB on a 3.7.6 based system and then the migrated 4.2.1 CMDB has to be imported to a 4.2.1 system.
There are 4 choices based on
NFS or a single Virtual appliance based deployment
In-place or Staging based method is chosen for data migration
The various methods are explained later, but stated simply, staging approach take more hardware but minimizes downtime and CMDB migration risk compared to the in-place approach.
If in-place method is to be deployed, then a snapshot method is highly recommended for recovery purposes.
Note: Internet access is needed for migration to succeed. A third party library needs to access the schema website.
Migrating an AWS EC2 Local Disk-based Deployment
Overview
This migration process is for an FortiSIEM deployment with a single virtual appliance and the CMDB data stored on a local AWS volume, and where you intend to run a 4.2.x version on the same physical machine as the 3.7.x version, but as a new virtual machine.
Overview
Prerequisites
Upgrading the 3.7.x CMDB to 4.2.1 CMDB
Restoring the Upgraded CMDB in a 4.2.1 Virtual Appliance
Change Local Volumes for Your AWS Instances
Change the IP Addresses Associated with Your Virtual Appliances
Registering Workers to the Supervisor
Setting the 4.2.1 SVN Password to the 3.7.x Password
Prerequisites
Contact AccelOps Support to reset your license
Take a snapshot of your 3.7.x installation for recovery purposes if needed
Make sure the 3.7.x virtual appliance has Internet access
Download the 4.2.1 migration scripts (ao-db-migration-4.2.1.tar). You will need the Username and Password associated with your AccelOps license to access the scripts.
Upgrading the 3.7.x CMDB to 4.2.1 CMDB
- Log in over SSH to your running 3.7.x virtual appliance as root.
- Change the directory to /root.
- Move or copy the migration script ao-db-migration-4.2.1.tar to /root.
- Untar the migration script.
- Run ls -al to check that root is the owner of the files ao-db-migration.sh and ao-db-migration-archiver.sh.
- For each AccelOps Supervisor, Worker, or Collector node, stop all backend processes by running the phtools
- Check the that archive files phoenixdb_migration_* and opt-migration-*.tar were successfully created in the destination directory.
- Copy the opt-migration-*.tar file to /root.
This contains various data files outside of CMDB that will be needed to restore the upgraded CMDB.
- Run the migration script on the 3.7.x CMDB archive you created in step 7.
The first argument is the location of the archived 3.7.x CMDB, and the second argument is the location where the migrated CMDB file will be kept.
- Make sure the migrated files were successfully created.
- Copy the migrated CMDB phoenixdb_migration_xyz file to the /root directory of your 4.2.1 virtual appliance This file will be used during the CMDB restoration process.
Restoring the Upgraded CMDB in a 4.2.1 Virtual Appliance
- Log in to your 4.2.1 virtual appliance as root.
- Change the directory to /opt/phoenix/deployment/.
- Run the post-ao-db-migration.sh script with the 3.7.x migration files phoenixdb_migration_xyz and opt-migration-*.ta r.
- When the migration script completes the virtual appliance will reboot.
Change Local Volumes for Your AWS Instances
- Log in to AWS EC2 dashboard and power off your 4.2.1 virtual appliance.
- In the Volumes table, find your production 3.7.x volume and tag it so you can identify it later, while also making a note of its ID.
For instance, 3.7.x_data_volume.
- Detach the volume.
- In the Volumes tab, find your 4.2.1 volume, and Detach
- Power on your 4.2.1. virtual appliance.
- Stop all back-end processes and change the SVN URL and Server IP address in database by running these commands.
Change the IP Addresses Associated with Your Virtual Appliances
- Log in to the AWS EC2 dashboard.
- Click Elastic IPS, and then select the public IP associated with your 4.2.1 virtual appliance.
- Click Disassociate Address, and then Yes, Disassociate.
- In Elastic IPs, select the IP address associated with your 3.7.x virtual appliance.
- Click Disassociate Address, and then Yes, Disassociate.
- In Elastic IPs, select the production public IP of your 3.7.x virtual appliance, and click Associate Address to associate it with your 4.2.1 virtual appliance.
The virtual appliance will reboot automatically after the IP address is changed.
Registering Workers to the Supervisor
- Log in to the Supervisor as admin.
- Go to Admin > License Management.
- Under VA Information, click Add, and add the Worker.
- Under Admin > Collector Health and Cloud Health, check that the health of the virtual appliances is normal.
Setting the 4.2.1 SVN Password to the 3.7.x Password
- Log in to the 4.2.1 Supervisor as root over SSH.
- Change the directory to /opt/phoenix/deployment/jumpbox.
- Run the SVN password reset script ./phsetsvnpwd.sh
- Enter the following full admin credential to reset SVN password
Organization: Super
User: admin
Password:****
Migration is now complete – Make sure all devices, user created rules, reports, dashboards are migrated successfully