Download page Upgrade the Virtual Appliance in KVM.
Upgrade the Virtual Appliance in KVM
Upgrading the Virtual Appliance involves:
Backing up the hard disks of the existing virtual machines.
Deploying new virtual machines by using QCOW2 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.
Follow the steps to upgrade the Virtual Appliance in KVM.
Back up the Virtual Appliance Data
Before you begin the upgrade, complete the following steps:
Download the Virtual Appliance upgrade QCOW2 file from the Downloads portal.
Shut down the Virtual Appliance:
appdcli stop secapp
appdcli stop aiops
appdcli stop appd
<<Wait for pods to terminate before deleting operators>>
appdcli stop operators
CODE
Run the backup command:
appdcli run backup
CODE
This command generates a <backup_tar> file with all the necessary data.
Copy and paste the backup file outside of the cluster.
Upgrade the Virtual Appliance
Download the upgrade script from the Cisco AppDynamicsGitHub repository.
Run the following command by specifying the locations of the QCOW2 file and config.cfg.
./upgrade-cluster ../<filename>.qcow2 config.cfg
CODE
This script verifies the virsh connection and ensures the storage pools are active. Then, it automates the following in each cluster nodes:
Stops the virtual machine.
Uploads the new QCOW2 image to the node storage pool.
Deletes the OS disk image. However, it retains the data disk image.
Creates a new OS disk from the template image.
Starts the virtual machine.
Verify the Deployment Status
Verify the deployment of virtual machines:
Verify whether the deployment of virtual machines is successful:
appdctl show boot
CODE
Ensure that the services in each node is active. If any service appears as Failed, restart that virtual machine. You might have to redeploy the virtual machine if it is still failing.
Create a three-node cluster:
Run the following command in the primary node and specify the IP address of the peer nodes:
appdctl cluster init <Node-2-IP> <Node-3-IP>
CODE
Run the following command to verify the node status:
appdctl show cluster
microk8s status
CODE
Ensure that the output displays the Running status as true for the nodes that are part of the cluster.