The DSC Platform Disaster Recovery procedure performs a backup and restore on a VM if a system failure occurs.
Only after a new VM is installed, configured, and running data traffic as per operating requirements, an image of the VM is created and saved in a backup file that is used to rebuild the VM in the event of a catastrophic system failure. The VM will be restored to the same image and configuration status that proceeded the catastrophic failure event.
The Disaster Recovery procedure is closely coupled with the new VM Install procedure. The backup file contains an image of the new DSC Platform after it is installed, configured, and performing (running data traffic) as required.
It is highly recommended that a backup copy is made of the new DSC Platform installation and saved to another computer (for example, a dedicated backup server) for safe storage and later retrieval.
Step | Action |
---|---|
1 | Create a Backup of a VM. |
2 | Restore a VM(s) on a KVM Host. |
3 | Check the Status of VM(s). |
4 | Re-authenticate pcsd Tokens and Verify VM Status. |
5 | Create new SSH keys for the DSC Platform. |
Follow the instructions in this subsection for creating a backup of a VM.
For a complete backup and restore of system configuration files on the DSC Platform, refer to the detailed procedures in the Platform Manager User Guide.
In the System menu, click Backups.
Select the Manual Configuration Backup.
Click Complete configuration backup.
Click Create Manual Backup.
The backup file (tar archive) is created and stored in the default directory: /var/log/backups. For safe storage and retrieval, save the backup file to the designated backup server. The location of the backup file destination can be changed by selecting the Backup Destination tab and clicking Create New Destination Definition. The Create Backup Destination screen appears where you can define the Destination Types (for example, local or FTP directories) and the pathname of the new destination.
Log in to the VM as a root user using an SSH console port connection.
login as: root root@10.91.1.70's password: ************************************* Hostname --> DSCVMLab70slot1 System IP -> 10.91.1.70 ************************************* [root@DSCVMLab70slot1 ~]#
Verify the backup was created.
[root@DSCVMLab70slot1 ~]# ls -lrt /var/log/backups/ -rw-r--r-- 1 root root 175004 Oct 22 15:11 DSCVMLab70slot1-bak-24-10-14-104357-Complete-DSCVM.14.4.tar.gz
Copy the backup tar file to the backup server for later retrieval.
# scp /var/log/backups/<Backup_Filename> <Destination_Computer / Destination_Directory>
Execute the following procedure to restore the VM(s) on the DSC Platform. After a successful VM restore, the Web UI is used to verify the slot status and to ensure all applications are running.
It is recommended that you perform the complete VM restore for the Routing and Management VM1 and VM2 before you restore the other Routing VMs.
During the initial install, you are expected to save a copy of the install package, installation configuration and backup files. This procedure provides instructions about restoring a VM(s) on a KVM Host using the configuration file from the initial install and a complete backup file.
Enter the following command to start the restore process.
./dsc_swe_<release>_nb<date>_KVM.sh restore --config <filename>.conf --backup <backupFilename>
# ./dsc_swe_17_0_0_nb20180604_KVM.sh restore --config DSC_TMAkvm.conf --backup TMAkvm-slot1-bak-06-06-18-110824-Complete-DSCVM.17.0.tar.gz
Enter the following command at the Linux prompt.{cod
# ./dsc_swe_<release>_nb<date>_KVM.sh status --local --system <systemName>
# ./dsc_swe_17_0_0_nb20180604_KVM.sh status --local --system samsvnf
DSC Self-Extraction Utility 17_0_0_nb20180604 ----------------------------------------------------- Verify archive integrity... Executing install script... DSC SWe KVM Host Interaction ---------------------------- Verify requisite files in the archive... Processing hosts ---------------- Connected to caot-cloud1.sonusnet.com libvirt 1005003 (lib 2000000) Installed DSC VMs ----------------- --+ Host caot-cloud1.sonusnet.com (6) +-- samsvnf-slot3 +-- samsvnf-slot6 +-- samsvnf-slot2 +-- samsvnf-slot4 +-- samsvnf-slot1 +-- samsvnf-slot5 complete.
Use the following procedure to re-authenticate pcsd Tokens for the restored DSC Platform
StartEnter the following command to re-authenticate the pcsd tokens on the VM:
# pcs cluster auth mgmt_cpu1_0 mgmt_cpu2_0 --force -u hacluster -p vmcluster
Log onto the Web UI.
From the Main Menu, click Slot Monitor.
Make sure the Slot Status for the restored VM shows AVAILABLE.
Use the following procedure to create new SSH Keys for the restored DSC Platform
StartEnter the following command to recreate the SSH Keys:
# status CPU
From the Main Menu, click Processes.
Click Watchdog Processes.