Recovering Cisco Video Surveillance VMs on the Cisco UCS Platforms

Recovery is used to replace an existing VM with a OVA deployment of the same release. This entails shutting down the existing VM, deploying the new VM, and transferring the storage and other properties to the new VM.

Refer to the following topics for more information.

Assumptions

The following instructions assume that the system configuration and data was previously backed up and is available for restoring on the new image.

For backup instructions, see the Cisco Video Surveillance Management Console Administration Guide.

Summary Steps

Review the following summary steps before you begin. Use the “Detailed Instructions: Recovering the VSM on the UCS” section to complete the recovery process.

 

Table 2-1 Summary Steps

Task
Description

Step 1

Backup the server configuration using the Cisco VSM Management Console

The configuration data from the existing VM will be restored to the new VM. The data will be lost if not backed up and restored.

See the Cisco Video Surveillance Management Console Administration Guide.

Step 2

Download the replacement OVA image from the Cisco website.

Note The new VM should be the same version as the old VM being replaced.

Download the OVA image that will replace the existing VM.

See the “Obtaining the Software Images” section

Step 3

Power off the existing Cisco VSM virtual machine (VM).

The existing VM must be powered off before it is replaced. All video processing and user access to the virtual machine will be lost during the recovery process.

Step 4

Deploy the new (replacement) VM.

Add the new replacement VM to the vSphere Client configuration.

Step 5

Connect the new (replacement) VM to the existing media virtual disk (used by the old VM).

Associates the storage from the old VM to the new replacement VM.

Step 6

Complete the configuration on the new VM. The configuration should be the same as the old VM.

  • Define a vLAN (if required).
  • Define the NTP settings.
  • Power On the VM and change the default password.
  • Configure the network settings.

You must manually apply the same configurations from the old VM to the new VM.

Step 7

Restore the video repositories.

Restores the existing video repositories to the new VM, which retains the existing video archives.

Step 8

Complete the Initial Setup using the Cisco VSM Management Console.

Use the browser-based Management Console to preform the initial server setup.

See the “Completing the Initial Server Setup Using the Management Console” section

Step 9

Restore the VSOM and Media Server configurations.

Restores the configuration data that was backed up from the old VM.

See the Cisco Video Surveillance Management Console Administration Guide.

Step 10

Verify that the data is restored by logging on to the VSOM and viewing live video from cameras and playing back archives.

See the Cisco Video Surveillance Operations Manager User Guide to check cameras, video streams and recordings to verify that the replacement VM is working properly.

Step 11

Delete the old VM from the vSphere Inventory tree.

Permanently deletes the old VM from the vSphere Client software.

Detailed Instructions: Recovering the VSM on the UCS

Procedure


Step 1 Before you begin, backup the server configuration using the Cisco VSM Management Console (see the Cisco Video Surveillance Management Console Administration Guide). If the server hosts both the Operations Manager and Media Server, back up both configurations.

Step 2 Download the replacement OVA image from the Cisco website.

See the “Obtaining the Software Images” section.


Note Template files are typically large in size. We recommend downloading and copying it to universal serial bus (USB) flash to avoid download delays.


Step 3 Power off the existing Cisco VSM virtual machine (VM):

a. Launch the vSphere Client software (Figure 2-1).

b. Right-click the VM in the left pane (Inventory tree).

c. Select Power > Power Off.

d. Click Yes to confirm the action.

Figure 2-1 vSphere Client Software—Powering Off the VSM VM

 

Step 4 Deploy the new (replacement) VM (Figure 2-2).

a. Select File > Deploy from OVF Template.

Figure 2-2 Deploying the OVF Template

 

b. Click Browse and select the .ova template file from a local disk, or enter the URL to download the file from the Internet.

c. Enter the remaining settings to deploy the template ( Table 2-2 ):

 

Table 2-2 OVA Deployment Settings

Setting
Description

OVF Template Details

Click Next to accept the default settings.

Name and Location

Enter the name and location for the VM.

  • The name is displayed in the inventory tree (for example, “Cisco Video Surveillance Manager”).
  • The location defines where the VM appears in the tree.

Click Next to continue.

Host / Cluster

Select the specific host or cluster where you want to run the template.

Storage

Select where the VM files will be stored. It should be deployed a datastore on internal storage, not external storage.

See the “Requirements” section for the amount of disk size required to deploy the VM (depending on the UCS platform). This requirement is for the VM only and does not include the video partition(s) disk space.

Disk Format

Click Next to accept the default disk format (Thick Provisioned Lazy Zeroed).

d. Click Finish to accept the selected deployment settings.

e. Wait for the Cisco VSM template to deploy. Click Close when the success message appears.

f. Verify that the VM displays under the host entry in the Inventory tree (Figure 2-3).

Step 5 Connect the new (replacement) VM to the existing media virtual disk (used by the old VM).

a. Right-click the new VM and select Edit Settings (see Figure 2-3).

Figure 2-3 Edit Settings

 

b. Click Add (Properties screen in Figure 2-4).

Figure 2-4 Adding a Hard Disk

 

c. Select Hard Disk and click Next (Figure 2-5).

Figure 2-5 Selecting Device Type (Hard Disk)

 

d. Select Use an existing virtual disk and click Next (Figure 2-6).

Figure 2-6 Selecting the Disk Type to Use

 

e. Click Browse to navigate to the datastore in the old VM directory (see Figure 2-7).

Figure 2-7 Browsing and Selecting a Datastore

 

f. Select the appropriate media disk from the existing VM and click OK.


Tip See the “Adding Hard Disks for Media Storage” section for more information about the hard disk configuration for the old VM.


g. Complete the remaining steps by selecting the default values and then click Finish (see Figure 2-8).

Figure 2-8 Ready to Complete

 

h. Click OK to exit the VM Properties page (Figure 2-9).

Figure 2-9 Adding a Hard Disk

 

Step 6 Complete the following steps to complete the configuration on the new VM.

The configuration should be the same as the old VM.

 

Task
Instructions

a.

Define a vLAN (if required by your network configuration).

Defining the VLAN for the VM

b.

Define the NTP settings.

Configuring NTP Servers on the Blade

c.

Power on the VM.

Powering On the Cisco VSM Virtual Machine.

d.

Change the VM password.

Change the Default VM Password and Network Settings.

e.

Add the video repositories.

Creating Video Repositories.

f.

Complete the initial server setup and configure the network settings.

Completing the Initial Server Setup Using the Management Console

Step 7 Restore the video repositories.

Complete one of the following procedures for the OVA version you are restoring.

OVA Release 7.5 or Later


Note The video repositories include the video files from the original (old) VM. You must restore these repositories to the new VM or the video files will be lost.


a. Switch to the root user permissions

localadmin@linux:~> sudo su –

b. Run the storage integration script with the recovery option setup_media_storage.sh -r as described in the “Release 7.5 and Later: Adding Storage Partitions” section

For example:

[localadmin@vsm-server ~]$ sudo su -
[root@vsm-server ~]# /root/bin/setup_media_storage restore
 

c. Continue to Step 8.

OVA Release 7.2 and Earlier


Note The video repositories include the video files from the original (old) VM. You must restore these repositories to the new VM or the video files will be lost.


a. Switch to the root user permissions

localadmin@linux:~> sudo su –

b. Find the available media partitions:

Find the available media partitions listed by labels (Figure 2-10).

linux:~# ls –al /dev/disk/by-label

Figure 2-10 Example Output for the Listed Media# Repositories

 

c. Note down all the media# listed in the output.

Figure 2-10 shows example output.

d. Create a partition directory:

linux:~ # mkdir / media#

e. Add an fstab entry:

linux:~ # vi /etc/fstab

For example:

[root@localhost ~]# vi /etc/fstab
LABEL=media# /media# xfs rw,nodiratime,noatime 0 0
 
 

f. Verify the mounts:

linux:~ # mount –a

g. After successfully creating the partition, change ownership of the partition to the nobody account and group using the following command:

linux:~ # chown nobody:nobody /media1

h. Repeat these steps to mount an sd# device with a media# label for each hard-disk added to the VM.

i. Reboot the Cisco VSM virtual machine (log out and select the Reboot option at the bottom of the screen).

j. Continue to Step 8.

Step 8 Complete the Initial Setup using the Cisco VSM Management Console.

See the “Completing the Initial Server Setup Using the Management Console” section.

Step 9 Restore the VSOM and Media Server configurations.

See the Cisco Video Surveillance Management Console Administration Guide.

Step 10 Verify that the data is restored:

a. Log on to the browser-based Operations Manager.

b. Configure the Media Server options for the /media1 and /media0 partitions.

c. View live video from cameras and playing back archives.

See the Cisco Video Surveillance Operations Manager User Guide for more information.

Step 11 Delete the old VM from the left pane (Inventory tree):

a. Right-click the old (non-functional) VSM VM.

b. Select Delete from Disk (see Figure 2-11).


Caution Do not delete the original machine until all the previous steps in the recovery procedure have been completed.

Figure 2-11 Deleting the VSM VM from the Disk