1 Introduction
This document provides high-level guidelines on how to back up and restore Ericsson Dynamic Activation (EDA) on virtual and cloud deployments.
1.1 Purpose and Scope
The backup and restoration functionality in Dynamic Activation is not a complete solution with a separate backup media. Backup files created by the system must therefore be transferred to the secondary storage.
1.2 Target Groups
The target groups for this document are as follows:
- System Administrator
- Network Administrator
- Network Supervision Administrator
1.3 Typographic Conventions
Typographic conventions are described in the document Library Overview, Reference [1].
1.4 Prerequisites
To use this document fully, users must meet the following prerequisites:
- Knowledge about the Dynamic Activation product
- Knowledge about Linux operating system
- Knowledge about Kernel Based Virtualized Machine (KVM)
- Knowledge about VMware.
- Knowledge about Cloud Execution Environment (CEE)
- Knowledge about OpenStack.
2 Backup and Restore
The following backup and restore procedures are available:
- VM Backup and Restore (KVM/VMware)
- Backing up VM – includes creating a backup of all virtual disks for each VM in the Dynamic Activation deployment, see Section 2.1.1.
- Restoring VM – includes restoring a previously backup of all virtual disks for each VM in the Dynamic Activation deployment, see Section 2.1.2.
- Creating and Restoring VM Instance Snapshots (CEE/OpenStack)
- Restoring VM instance snapshot – includes restoring a previous snapshot of a VM instance in the cluster.
For detailed information on CEE deployment, see Section 2.2.
For detailed information, on OpenStack deployment, see Section 2.3.
- Subset Backup and Restore
A subset backup is used for backing up application data, and Dynamic Activation Software:
- Dynamic Activation Software, see Section 2.4.1.
- Zookeeper, see Section 2.5.1.
- Cassandra for OAuth or Recourse Configuration, see Section 2.6.1.
A subset restore is used for restoring application data, and Dynamic Activation Software:
- Dynamic Activation Software, see Section 2.4.2.
- Zookeeper, see Section 2.5.2.
- Cassandra for OAuth or Recourse Configuration, see Section 2.6.2.
- Processing Log Data
The Processing Log Data is handled separately.
For information on how to export Processing Log Data, see System Administrators Guide for Virtual and Cloud Deployment, Reference [2].
- Note:
- All backup and export files need to be stored on a safe remote server.
2.1 Backing Up and Restoring VM (KVM/VMware)
The section describes the backup and restore procedures on all persistent storage, for each VM, in the Dynamic Activation deployment.
2.1.1 VM Backup
- Shut down the VM that uses the persistent storage to be
backed up, this to avoid data corruption.
- Note:
- Shutdown of VM before a backup is mandatory, this to avoid data corruption.
- Copy the virtual disk to an external backup storage.
- When the copy process is done, startup the VM.
For detailed information regarding the procedure on VMWare, refer to Reference [3].
For detailed information regarding the procedure on KVM, refer to each host OS system guide.
2.1.2 Restore VM Backup
To revert to a backup, the VM MUST be shut down. This is because of the risk of data corruption.
- Shutdown VM that is to be restored.
- Copy the virtual disk from the external backup storage to the storage used by the hypervisor.
- Deploy the VM with the disks that were copied in previous step.
- Start the restored VM.
2.2 Creating and Restoring VM Instance Snapshots (CEE)
In Cloud Execution Environment (CEE) deployment, VM instance backup is achieved by creating a snapshot of the instance. The snapshot can be used to restore the VM instance.
- Note:
- Creating and restoring snapshots on the mandatory VM instances are different from that on additional VMs.
2.2.1 Create Mandatory VM Instance Snapshot
This section describes how to create VM instance snapshot on node-1, node-2, or node-3.
- Remove the VM instance from load balancer to be able to
do a controlled shutdown of the instance.
For instructions, refer to section Remove VM from Load Balancer in System Administrators Guide for Virtual and Cloud Deployment, Reference [2].
- Log on to the VM instance to take snapshot of, and run
the following command:
# /opt/dve/bin/CEESnapshotManagement.py --preSnapshot
- Take a cold snapshot of the VM instance by following the instruction in CEE 16A R5A library in http://cpistore.internal.ericsson.com/.
- When the snapshot is taken and the VM instance is running
up again, enable all service by running the command from the VM instance:
# /opt/dve/bin/CEESnapshotManagement.py --postSnapshot
- Add the VM instance to load balancer.
For instructions, refer to section Add VM to Load Balancer in System Administrators Guide for Virtual and Cloud Deployment, Reference [2].
- Check in the HAProxy GUI, to ensure that the VM instance is receiving traffic.
- Log on to Atlas, choose Computer > Image, make sure that the created snapshot is listed in the image list.
2.2.2 Create Additional VM Instance Snapshot
This section describes how to create VM Instance snapshot on node-4 or forward.
- Remove the VM instance from load balancer to be able to
do a controlled shutdown of the instance.
For instructions, refer to section Remove VM from Load Balancer in System Administrators Guide for Virtual and Cloud Deployment, Reference [2].
- Take a cold snapshot of the VM instance by following the
instruction in CEE 16A R5A library in http://cpistore.internal.ericsson.com/.
- Note:
- In CEE, the VM instances have similar names as:
node-4: <hostname>-resource-0
node-5: <hostname>-resource-1
and so forth.
- Add the VM instance to load balancer.
For instructions, refer to section Add VM to Load Balancer in System Administrators Guide for Virtual and Cloud Deployment, Reference [2].
- Check in the HAProxy GUI, to ensure that the VM instance is receiving traffic.
- Log on to Atlas, choose Computer > Image, make sure that the created snapshot is listed there.
2.2.3 Restore Mandatory VM Instance Snapshot
This section describes how to restore VM instance snapshot on node-1, node-2, or node-3.
- In Atlas, choose Compute > Instances.
- Locate the faulty VM instance and choose Rebuild Instance in the drop-down list.
- In the pop-up dialog, select a correct snapshot image to restore from.
- Enter the password of the logged in Atlas user, and then click Rebuild.
- After the rebuilt image is running up, log on to the restored
VM instance and run the following command to restore the Cassandra
database:
# /opt/dve/bin/CEESnapshotManagement.py --restoreNode
- Note:
- This command can take a long execution time, depending on how much data that were stored in the database.
- To check the restoring progress, run:
# watch -n 1 nodetool netstats
Look for lines similar as:
Receiving 91 files, 38132864075 bytes total. Already received 39 files, 27013761893 bytes total
Where "Receiving" refers to the total bytes to be transferred, and "Already" refers to the bytes has been transferred.
2.2.4 Restore Additional VM Instance Snapshot
This section describes how to restore VM Instance snapshot on node-4 or forward.
- In Atlas, choose Compute > Instances.
- Locate the faulty VM instance and choose Rebuild
Instance in the drop-down list.
- Note:
- In CEE, the VM instances have similar names as:
node-4: <hostname>-resource-0
node-5: <hostname>-resource-1
and so forth.
- In the pop-up dialog, select a correct snapshot image to restore from.
- Enter the password of the logged in Atlas user, and then click Rebuild.
2.3 Creating and Rebuilding VM Instance Snapshots (OpenStack)
In OpenStack deployment, VM instance backup is achieved by creating a snapshot of the instance. The snapshot can be used to rebuild the VM instance.
2.3.1 Create VM Instance Snapshot
- Remove the VM instance from load balancer.
For instructions, refer to section Remove VM from Load Balancer in System Administrators Guide for Virtual and Cloud Deployment, Reference [2].
- Log on to the VM that the snapshot is to be taken on.
- Shut down the VM:
# shutdown -h now
- Log on to the OpenStack GUI as a user with correct rights and choose Compute > Instances.
- Wait for the VM to shut down (it takes several minutes).
- Locate the instance to back up and in the drop-down list (to the right) choose Create Snapshot.
- Enter a name in the Snapshot Name box.
- Click Create Snapshot and wait until the image has been created.
- Start up the VM on the right panel.
- Add the VM instance to load balancer.
For instructions, refer to section Add VM to Load Balancer in System Administrators Guide for Virtual and Cloud Deployment, Reference [2].
- Check in the HAProxy GUI, to ensure that the VM instance is receiving traffic.
2.3.2 Rebuild VM Instance Snapshot
- Log on to the VM that is to be rebuilt and run the following
command:
# shutdown -h now
- Log on to the OpenStack GUI as a user with correct rights and choose Compute > Instances.
- Make sure that the VM is shutoff before proceeding with the next step (it may take several minutes).
- Locate the instance to rebuild and in the drop-down list (to the right) choose Rebuild Instance.
- In the Select Image drop-down list, choose
the image to rebuild from. Disk Partition must be
set to Automatic.
- Note:
- It is important to choose the correct image in the Select Image drop-down list.
- Click Rebuild Instance and wait until the rebuild is done.
- Start the VM after the rebuild is finished.
2.4 Backing Up and Restoring Dynamic Activation Software
This section describes the backup and restore procedures on the Dynamic Activation software.
Everything in the following directories is included:
- /home/bootloader
- /home/dveinstaller
- /home/actadm
- /home/dvecli
- /home/casadm
- /opt/ericsson/activation/bootloader
2.4.1 Backing Up Dynamic Activation Software
This section describes how to perform a backup of the Dynamic Activation software.
The backup script is installed by use of the /opt/dve/bin/pgSoftwareBackup.sh script.
To perform a full backup of the Dynamic Activation software:
- Log in as user root on node-1.
- Run the following command to back up the Dynamic Activation
software:
# /opt/dve/bin/pgSoftwareBackup.sh backup </path/> <identifier_for_filename>
For example:
# /opt/dve/bin/pgSoftwareBackup.sh backup /home/ config
- Backup command is finished when the following printout
is displayed:
Backup stored as /home/dveinstaller/config-BootloaderBackup-20150212_124650.tar.gz
2.4.2 Restoring Dynamic Activation Software
This section describes how to restore the Dynamic Activation software from a backup.
- Log in as user root on node-1.
- Make sure that the backup tar.gz file is stored on the node to be restored.
- Run the following command to restore the Dynamic Activation
software:
# /opt/dve/bin/pgSoftwareBackup.sh restore <full_path_and_backup_tar.gz_file_name>.
When prompted, enter yes and press Enter
- Log on to node-1, if currently logged in to another node.
- Run the following command to activate
the node that is to be restored:
# bootloader.py node activate --host <node-n>
- Note:
- Do not use all parameter,
which cannot be used in any cases other than new installations.
<node-n> is the name of the node that is to be activated, for example node-1.
- Repeat Step 1 through Step 5 on other nodes that are to be restored.Attention!
Wait for each node to be activated before starting with the next one, otherwise traffic disturbances occur.
2.5 Backing Up and Restoring Zookeeper
This chapter describes how to back up and restore the Zookeeper in Dynamic Activation. This involves, for example, Network Element and user configurations.
- Note:
- Backing up and restoring Zookeeper-data is a software version-dependent procedure. The Zookeeper-data backed up from a specific system must only be restored on the same specific software release. This to ensure full functionality of the restored data.
2.5.1 Backing Up Zookeeper
To perform a backup of Zookeeper:
- Log in as an administrator on either node-1 or node-2.
- Start the backup process by executing the following script:
$ sudo zookeeperBackup.sh backup </path> <identifier_for_filename>
For example:
$ sudo zookeeperBackup.sh backup /home/ config
- When the backup process is started, answer yes on the following question:
Backup will use approximately 1065161108 kb of disk space. Do you want to continue? (yes/no):
- When the backup process is done, the following printout
is displayed:
Backup stored as /home/config-zookeeperBackup-20150212_154150.tar.gz
2.5.2 Restoring Zookeeper
- Note:
- This involves stopping and starting the Dynamic Activation
application on all nodes, which results in traffic downtime.
When the configuration data has been restored, alarms that are no longer valid can still persist in the system. Use the fmsendmessage command to remove those alarms manually. For more information, refer to System Administrators Guide for Virtual and Cloud Deployment, Reference [2].
- Log in as an administrator on node-1 and run the following
command:
$ sudo zookeeperBackup.sh restore <full_path_and_backup_tar.gz_file_name>
Caution!This causes traffic downtime on the Dynamic Activation Application.
For example:
$ sudo zookeeperBackup.sh restore /home/config-zookeeperBackup-20150209_154150.tar.gz
When prompted enter yes and press Enter
The restore command is finished when the following printout is displayed:
Restore finished: /home/config-zookeeperBackup-20150209_154250.tar.gz
- Go to the Dynamic Activation GUI and check the user and network element configurations.
2.6 Backing Up and Restoring Cassandra (OAuth or Resource Configuration Related Data)
2.6.1 Backing Up Cassandra
To perform a backup of Cassandra:
- Log in as an administrator on node-1 in the cluster.
- Start the backup process by executing the backup script
depending on what to back up:
- OAuth
$ sudo -u actadm cassandra_backup.py backup oauth
- Resource Configuration
$ sudo -u actadm cassandra_backup.py backup scm
- OAuth and Resource Configuration
$ sudo -u actadm cassandra_backup.py backup all
- OAuth
- Enter the full path where the backup is to be stored:
Enter full path to backup folder: /<path>
For example:
Enter full path to backup folder: /home/actadm/backup/
- When the backup process is done, for each node on which
Cassandra is installed, one backup file is stored in the backup folder.
For example, in a four-node cluster the following files are to be stored in the backup folder of node-1, node-2, and node-3:
$ ls -l /home/actadm/backup total 1032 -rw-r----- 1 actadm activation 349702 Mar 2 07:28 node-1_20170302_1488436052.tar.gz -rw-r----- 1 actadm activation 349270 Mar 2 07:28 node-2_20170302_1488436052.tar.gz -rw-r----- 1 actadm activation 350804 Mar 2 07:28 node-3_20170302_1488436052.tar.gz
- Note:
- For Virtual or Cloud deployment, Cassandra is installed on the first three nodes even if there are more than three nodes in the cluster.
2.6.2 Restoring Cassandra
- Note:
- Restoring Cassandra requires stopping and starting the Dynamic
Activation application on all nodes, which results in traffic downtime.
Restoring also means that all data in the Cassandra database tables are to be overwritten by backup data. The affected data are OAuth and Resource Configuration related data.
- Log in as an administrator on node-1 and disable the Dynamic
Activation application processes by executing the following command:Caution!
The following command causes traffic downtime on the Dynamic Activation application.
$ bootloader.py node stop --host all
- Run the following command to start the Cassandra restore
process:Caution!
The following command causes all old OAuth or Resource Configuration related data to be replaced in the Cassandra database.
$ sudo -u actadm cassandra_backup.py restore
- Enter the full path where the backup is stored:
Enter full path to backup folder: /<path>
For example:
Enter full path to backup folder: /home/actadm/backup/
- Log on as an administrator on node-1 and enable the Dynamic
Activation application processes by executing the following command:
$ bootloader.py node start --host all
Reference List
| Ericsson Documents |
|---|
| [1] Library Overview, 18/1553-CSH 109 628 Uen |
| [2] System Administrators Guide for Virtual and Cloud Deployment, 3/1543-CSH 109 628 Uen |
| Other References |
|---|
| [3] VMware vSphere Data Protection Documentation, https://www.vmware.com/support/pubs/vdr_pubs.html. |

Contents