Upgrade the Virtual Appliance in AWS
Upgrading the Virtual Appliance involves:
- Backing up and deleting the hard disks of the existing virtual machines.
- Deploying new virtual machines by using AMI image.
- Restoring the backup to their hard disks.
- Attaching the new hard disks to the older virtual machines
Splunk AppDynamics On-Premises Virtual Appliance provides the reference script that helps in upgrading the Virtual Appliance.
- Standard Deployment
- Hybrid Deployment
Follow steps to upgrade the Virtual Appliance in AWS.
Back Up the Virtual Appliance Data
Before you begin the upgrade, complete the following steps:
Migrate Custom Actions
The custom actions path has changed from the previous release. Create and run the following script to migrate custom actions during the upgrade.
Generate a Backup File
Prepare the AWS Environment for the Upgrade
To upgrade virtual machines in AWS, you must create the image and snapshot from the new AMI.
To use AWS CLI, you require reference scripts. Download these script from the Splunk AppDynamics GitHub repository. In config.cfg, ensure to update or verify the configuration details such as tags, deployment configuration, and IP addresses. Run the scripts in the given order. For more information about AWS CLI, see AWS CLI Documentation.
You must use the same AWS profile, VPC, S3 Bucket, and IAM role that you created at the time of deployment. See Deploy and Configure Virtual Machines in AWS.
| AWS Resources | Description | Reference Scripts | |
|---|---|---|---|
| 1 | Image |
Upload the Splunk AppDynamics image in the S3 bucket that generates the AMI for Virtual Appliance. See Uploading objects. |
05-aws-upload-image.sh |
| 2 | Snapshot |
Snapshots help in using the AMI that you have uploaded to S3 bucket. Complete the following steps to obtain an AMI ID:
Note: The AMI ID is used to create virtual machines.
|
06-aws-import-snapshot.sh 07-aws-register- snapshot.sh |
Upgrade the Virtual Appliance
Run the upgrade scripts in the given order:
| Step | Filename | |
|---|---|---|
| 1 | Obtain the details of the virtual machine. | 01-aws-get-vm-details.sh |
| 2 | Shutdown the virtual machine. | 02-aws-terminate-vms.sh |
| 3 | Check status of the virtual machine.
Ensure that all three virtual machines are terminated. If any of the virtual machines are not terminated, run the script again until all virtual machines are terminated. |
03-aws-get-vm-status.sh |
| 4 | Create a virtual machine. | 04-aws-create-vms.sh |
Verify the Deployment Status
Verify the deployment of virtual machines:
Restore Data in the Virtual Appliance
/var/appd/data location. Follow the steps to restore data in Virtual Appliance:
Migrate EUM and Synthetic Services Data to MinIO
Generate the Hybrid Configuration File
Ensure that you have the latest CA certificates obtained after installing services. If not, update the CA certificates and regenerate the hybrid configuration file after restarting the service.