Configuring High Availability for VMware vCenter in RMS Distributed Setup

Configuring High Availability for VMware vCenter in RMS Distributed Setup
Configuring High Availability for VMware vCenter
in RMS Distributed Setup
This chapter describes the process of configuring high availability for the VMware vCenter. It provides the
prerequisites and procedures required to configure and test the hot standby and cold standby for Cisco RMS.
It also includes procedures required to back up and restore VMware vCenter. These procedures apply to
Distributed RMS deployment.
• Prerequisites, page 1
• Configuring Hot Standby for vCenter VM, page 2
• Testing Hot Standby for vCenter VM, page 2
• Configuring Cold Standby for vCenter VM, page 3
• Testing Cold Standby for vCenter VM, page 3
• Recovering the Primary of vCenter VM, page 4
• Backing Up vCenter VM Database, page 4
• Restoring vCenter VM Database, page 6
Prerequisites
• Operator or user of this procedure should have the following experience:
◦Knowledge basic database/DBA know-how
◦Knowledge of basic linux/shell commands
◦Ability to edit files with vi or vim
◦Ability to view files (cat, tail, more, less)
◦Ability to use SSH, and basic VMware commands.
◦Complete installation of vCenter VM and add SAN support as recommended in the Cisco RAN
Management System Installation Guide and the RMS VMs are added as described in Configuring
Hot Standby for the Central Node.
High Availability for Cisco RAN Management Systems
1
Configuring High Availability for VMware vCenter in RMS Distributed Setup
Configuring Hot Standby for vCenter VM
• For primary vCenter VM, install VM as part of the host that is planned to be part of the high availability
cluster for the Central VM.
• Install cold standby vCenter VM as part of the host for cold standby Central VM.
• Note the following information on your setup before proceeding to configure high availability for vCenter
VM:
Node Location
Node IP Address
Node Description
vCenter VM 1
<VCENTER_IP_1>
Primary vCenter VM
vCenter VM 2
<VCENTER_IP_2>
Cold standby vCenter VM
• Ensure that the following ssh commands are working; use the root login.
ssh root@<VCENTER_IP_1> ssh root@<VCENTER_IP_2>
Note
This section covers only additional steps required to achieve high availability for vCenter VM.
Configuring Hot Standby for vCenter VM
Step 1
Step 2
Step 3
Install VMware vCenter as described in the “Installing the VMware vCenter 5.1.0” section of the Cisco RAN Management
System Installation Guide to install primary vCenter VM on the same host where the primary Central VM is going to
be installed or is already installed.
Add vSphere high availability cluster as described in the Creating a High Availability Cluster to add vSphere high
availability cluster for the host containing Central VM and vCenter VM.
Take a database backup as described in the Backing Up vCenter VM Database, on page 4 and take a snapshot of the
primary vCenter for use in recovery in case of a disaster after the primary vCenter is completely configured and all
primary and hot standby VMs and hosts for Cisco RMS are being managed by the primary vCenter VM,
Note
Primary vCenter is configured to manage primary and hot standby Central VM, active-active pairs for Serving
VM and Upload VM, and primary and hot standby PMG DB VM (if applicable).
What to Do Next
Testing Hot Standby for vCenter VM
To test hot standby for vCenter VM, see the Testing High Availability Failover. The testing of high availability
for vCenter VM is same as testing high availability on the Central node. For more information, see Testing
High Availability on the Central Node.
High Availability for Cisco RAN Management Systems
2
Configuring High Availability for VMware vCenter in RMS Distributed Setup
Configuring Cold Standby for vCenter VM
Configuring Cold Standby for vCenter VM
Step 1
Step 2
Step 3
Step 4
Install VMware vCenter as described in the Cisco RAN Management System Installation Guide to install vCenter VM
with VCENTER_IP_2 on the host to be used for cold standby Central VM.
Take a backup of the vCenter database as described in the Backing Up vCenter VM Database, on page 4 after the
primary vCenter VM is completely configured and is managing all primary, hot standby hosts, and other VMs for Cisco
RMS,
Use the backed up database to restore it on the cold standby vCenter VM as described in Restoring vCenter VM Database,
on page 6.
Proceed with steps (see, Testing Cold Standby for vCenter VM, on page 3) to connect the hosts running the cold
standby Central VM and cold standby PMG DB VM (if applicable) after the DB is restored on the cold standby vCenter
VM.
Note
Cold standby vCenter VM continues to manage the hosts running the cold standby Central VM, and the cold
standby PMG DB VM (if applicable).
Take a VM snapshot and database backup of the cold standby vCenter VM to be used in case the cold standby vCenter
also fails and needs reinstallation.
Testing Cold Standby for vCenter VM
Step 1
Check if one of the hosts can be recovered to reinstall vCenter from the backup snapshot. If available, recover the primary
vCenter. Perform this step only when both hosts fail in the high availability cluster at the primary site containing the
primary vCenter VM.
Else, proceed to the next step.
Step 2
Perform these steps if there is no host at the primary site to restore primary vCenter and there is a urgent need to manage
remaining Serving, Upload, and PMG DB hosts and VMs at primary and secondary site.
a) Connect hosts on the new vCenter. To do this, log in to vCenter.
b) Go to Home > Inventory > Hosts and Clusters and right-click on the desired host and select Connect.
c) In the Reconnect host window that is displayed, click Yes.
d) In the Reconnect host error window that is displayed, which indicates that you need to enter the correct login credentials
for the respective host, click Close. This automatically opens the Add Host Wizard.
e) In the Specify Connection Settings screen of the wizard, enter your username and password for the host.
f) Click Next.
g) In the Security Alert pop-up window that is displayed, indicating that you need to add SHA1 thumbprint certificate,
click Yes.
h) In the Host Summary screen, which displays details about the host and VMs running under this host, click Next.
i) In the Virtual Machines Location screen, which indicates the location where the host is present, expand the datacenter
and select the respective folder under which the host is running.
j) Click Next.
High Availability for Cisco RAN Management Systems
3
Configuring High Availability for VMware vCenter in RMS Distributed Setup
Recovering the Primary of vCenter VM
k) In the Ready to Complete screen, which displays the summary of the hosts that will be connected, click Finish.
l) Repeat steps a to k on all hosts that need to be connected to the new vCenter. This will ensure successful connection
of hosts on the new vCenter.
m) Connect back the hosts mapping to active-active Serving node and Upload node after the primary site VMs and hosts
are restored on the cold standby vCenter.
n) Connect back the primary PMG DB, hot standby PMG DB (if applicable).
o) Proceed to connect the host on the cold standby site for redundant Serving and Upload VM to the cold standby vCenter
VM after the working hosts from primary site, that is, host for Serving node and Upload node and primary and hot
standby PMG DB( if applicable) are connected to the cold standby vCenter VM.
p) Proceed to configure cold standby for the Central node as described in the Configuring Cold Standby for vCenter
VM, on page 3, which deals with testing cold standby for Central node.
Recovering the Primary of vCenter VM
Using the saved VM snapshots of the vCenter VM or saved database for vCenter, restore the primary vCenter
after the replacement hosts for primary vCenter VM and central VM are installed or original failed hosts are
recovered.
For information on performing primary recovery of the Central node, see Enabling Primary Site After
Restoration.
Backing Up vCenter VM Database
Step 1
Establish an ssh connection using the root user to connect to the vCenter VM.
Example:
ssh root@VCENTER_IP_1
The system responds by connecting the user to the vCenter VM.
Step 2
Enter the root user password to gain access.
Example:
[enter root password]
The system responds with a command prompt.
Step 3
Stop the vCenter server service.
Example:
service vmware-vpxd stop
Stopping VMware vSphere Profile-Driven Storage Service...
Stopped VMware vSphere Profile-Driven Storage Service.
Stopping tomcat:
success
High Availability for Cisco RAN Management Systems
4
Configuring High Availability for VMware vCenter in RMS Distributed Setup
Backing Up vCenter VM Database
Stopping vmware-vpxd: success
Shutting down ldap-server..done
Step 4
Display the vPostgres database configuration file and make a note of the values for EMD_DB_INSTANCE,
EMB_DB_USER and EMB_DB_PASSWORD.
cat /etc/vmware-vpx/embedded_db.cfg
cat /etc/vmware-vpx/embedded_db.cfg
EMB_DB_INSTALL_DIR='/opt/vmware/vpostgres/9.0'
EMB_DB_TYPE='PostgreSQL'
EMB_DB_SERVER='127.0.0.1'
EMB_DB_PORT='5432'
EMB_DB_INSTANCE='VCDB'
EMB_DB_USER='vc'
EMB_DB_PASSWORD='I&8rx)A=rLs6u}22'
EMB_DB_STORAGE='/storage/db/vpostgres'
Step 5
On the vCenter Server Appliance virtual machine, navigate to the vPostgres utility directory.
Example:
cd /opt/vmware/vpostgres/1.0/bin
The system responds with a command prompt.
Step 6
Take a backup of the vCenter server database.
./pg_dump <EMB_DB_INSTANCE> -U <EMB_DB_USER> -Fp -c > <path/VCDBBackupFile>
Fill in the EMD_DB_INSTANCE and EMB_DB_USER from the embedded_db.cfg configuration information listed
in Step 4. Fill in the path/VCDBBackupFile with the location and file name to be generated
./pg_dump VCDB -U vc -Fp -c > /tmp/VCDBackUpfile1
Step 7
Verify that the backup file created.
Example:
ls -l /VCDBackUpfile>
ls -l /tmp/VCDBackUpfile1
-rw------- 1 root root 210205828 Aug 20 05:23 /tmp/VCDBackUpfile1
Step 8
Start the vCenter Server service.
Example:
service vmware-vpxd start
Waiting for the embedded database to start up: success
Verifying EULA acceptance: success
Executing pre-startup scripts...
Updating the vCenter endpoint in the Lookup Service.
Intializing registration provider...
Getting SSL certificates for https://10.105.242.123:7444/lookupservice/sdk
Service with name 'vpxd-blrrms-vcenter-ha-278ddba1-f0bd-4da5-8f5c-7e52daca9685' and ID
'local:f7bf9c8d-ea7c-459d-be49-b6b6281abdb4' was updated.
Return code is: Success
Starting ldap-server..done
Starting vmware-vpxd: success
Waiting for vpxd to initialize: .success
Starting tomcat: success
Executing startup scripts...
Autodeploy service is disabled, skipping registration.
Starting VMware vSphere Profile-Driven Storage Service...Waiting for VMware vSphere Profile-Driven
Storage Service......
VMware vSphere Profile-Driven Storage Service started.
Step 9
Using WinSCP or SCP, connect to the vCenter VM and download the VCDBackUpFile from /tmp/.
Example:
scp /VCDBackUpfile> root@10.5.242.123:/tmp/
scp /tmp/VCDBackUpfile1 root@10.105.242.123:/tmp/
VMware vCenter Server Appliance
root@10.105.242.123's password:
VCDBackUpfile1
High Availability for Cisco RAN Management Systems
5
Configuring High Availability for VMware vCenter in RMS Distributed Setup
Restoring vCenter VM Database
100%
198MB
65.9MB/s
00:03
What to Do Next
Restoring vCenter VM Database
Before You Begin
Step 1
Establish an ssh connection using the root user to connect to the vCenter VM.
Example:
ssh root@VCENTER_IP_1
The system responds by connecting the user to the vCenter VM.
Step 2
Enter the root user password to gain access.
Example:
[enter root password]
The system responds with a command prompt.
Step 3
Using WinSCP or SCP, connect to the vCenter Server Appliance and upload the backup copy of the VCDBackUp file
into the /tmp/ directory.
Example:
scp /tmp/VCDBackUpfile1 root@10.5.242.123:/tmp/
scp /tmp/VCDBackUpfile1 root@10.105.242.123:/tmp/
VMware vCenter Server Appliance
root@10.105.242.123's password:
VCDBackUpfile1
100%
198MB
Step 4
65.9MB/s
00:03
Stop the vCenter Server service.
Example:
service vmware-vpxd stop
service vmware-vpxd stop
Stopping VMware vSphere Profile-Driven Storage Service...
Stopped VMware vSphere Profile-Driven Storage Service.
Stopping tomcat: success
Stopping vmware-vpxd: success
Shutting down ldap-server..done
Step 5
Display the vPostgres database configuration file and make a note of values for EMD_DB_INSTANCE, EMB_DB_USER
and EMB_DB_PASSWORD.
Example:
cat /etc/vmware-vpx/embedded_db.cfg
EMB_DB_INSTALL_DIR='/opt/vmware/vpostgres/9.0'
EMB_DB_TYPE='PostgreSQL'
EMB_DB_SERVER='127.0.0.1'
EMB_DB_PORT='5432'
EMB_DB_INSTANCE='VCDB'
High Availability for Cisco RAN Management Systems
6
Configuring High Availability for VMware vCenter in RMS Distributed Setup
Restoring vCenter VM Database
EMB_DB_USER='vc'
EMB_DB_PASSWORD='$vq1oOh_CTmgG5E6' EMB_DB_STORAGE='/storage/db/vpostgres'
Step 6
On the vCenter Server Appliance virtual machine, navigate to the vPostgres utility directory.
Example:
cd /opt/vmware/vpostgres/1.0/bin
The system responds with a command prompt.
Step 7
Restore the vCenter Server vPostgres database from backup.
Example:
PGPASSWORD='EMB_DB_PASSWORD';
./psql -d <EMB_DB_INSTANCE> -Upostgres -f </path/VCDBBackupFile>
#PGPASSWORD='$vq1oOh_CTmgG5E6'
#./psql -d VCDB -Upostgres -f /tmp/VCDBackfile1
SET
SET
SET
SET
SET
SET
SET
ALTER TABLE
ALTER TABLE
.
.
.
ALTER DEFAULT PRIVILEGES
ALTER DEFAULT PRIVILEGES
ALTER DEFAULT PRIVILEGES
ALTER DEFAULT PRIVILEGES
ALTER DEFAULT PRIVILEGES
ALTER DEFAULT PRIVILEGES
Step 8
Restart the VMware vCenter Server service for the database restore to take effect.
Example:
service vmware-vpxd start
Waiting for the embedded database to start up: success
Verifying EULA acceptance: success
Executing pre-startup scripts...
Updating the vCenter endpoint in the Lookup Service.
Intializing registration provider...
Getting SSL certificates for https://10.105.242.123:7444/lookupservice/sdk
Service with name 'vpxd-blrrms-vcenter-ha-278ddba1-f0bd-4da5-8f5c-7e52daca9685' and ID
'local:f7bf9c8d-ea7c-459d-be49-b6b6281abdb4' was updated.
Return code is: Success
Starting ldap-server..done
Starting vmware-vpxd: success
Waiting for vpxd to initialize: .success
Starting tomcat: success
Executing startup scripts...
Autodeploy service is disabled, skipping registration.
Starting VMware vSphere Profile-Driven Storage Service...Waiting for VMware vSphere Profile-Driven
Storage
Service......
VMware vSphere Profile-Driven Storage Service started.
High Availability for Cisco RAN Management Systems
7
Configuring High Availability for VMware vCenter in RMS Distributed Setup
Restoring vCenter VM Database
High Availability for Cisco RAN Management Systems
8
Was this manual useful for you? yes no
Thank you for your participation!

* Your assessment is very important for improving the work of artificial intelligence, which forms the content of this project

Download PDF

advertising