--- title: "Protecting the Main Database Using vSphere HA" slug: "protecting-the-main-database-using-vsphere-ha-4" tags: ["8.2", "Portal"] updated: 2024-03-03T10:01:19Z published: 2024-03-03T10:01:19Z canonical: "kb.ctera.com/protecting-the-main-database-using-vsphere-ha-4" --- > ## Documentation Index > Fetch the complete documentation index at: https://kb.ctera.com/llms.txt > Use this file to discover all available pages before exploring further. # Protecting the Main Database Using vSphere HA The CTERA Portal platform must be protected from datacenter and virtualization host failure and maintain data integrity and business continuity. This can be achieved through CTERA Portal’s native, application level, database archiving and replication procedures but can also be managed at the ESXi layer. To protect the CTERA Portal platform from datacenter and virtualization host failure at the ESXi layer: - [vSphere HA Hardware and Software Requirements](/v1/docs/protecting-the-main-database-using-vsphere-ha-4#vsphere-ha-hardware-and-software-requirements) - [Configuring vSphere HA](/v1/docs/protecting-the-main-database-using-vsphere-ha-4#configuring-vsphere-ha) - [Testing vSphere HA Failover](/v1/docs/protecting-the-main-database-using-vsphere-ha-4#testing-vsphere-ha-failover) ## vSphere HA Hardware and Software Requirements Before starting to configure vSphere HA and protect the CTERA Portal main database VM, review the VMware’s vSphere HA hardware and software requirements from [https://docs.vmware.com/en/VMware-vSphere/7.0/com.vmware.vsphere.avail.doc/GUID-8FD87389-8CC9-4298-8B08-A1526FB44524.html](https://docs.vmware.com/en/VMware-vSphere/7.0/com.vmware.vsphere.avail.doc/GUID-8FD87389-8CC9-4298-8B08-A1526FB44524.html). These requirements must be addressed prior to any configuration and VM deployments. ## Configuring vSphere HA Perform the following procedure to enable vSphere HA for your datacenter. **To configure vSphere HA:** 1. Login in to your vCenter Server using vSphere client. 2. Right-click on the cluster you want to protect using vSphere HA on and click **Settings**. 3. Browse to **vSphere Availability** under **Services**. ![image.png](https://cdn.document360.io/30792387-cdcb-4791-aa14-94929bbcd3fe/Images/Documentation/image-V9JYPBYW.png?sv=2026-02-06&spr=https&st=2026-11-11T04%3A43%3A44Z&se=2026-11-11T05%3A43%3A44Z&sr=c&sp=r&sig=sV%2Fw6xyI%2F7XBiU4Sd0mnMgULXBz3Kmnaq%2BICppPvByo%3D) 4. Click **EDIT** for vSphere HA. The **Edit Cluster Settings** window is displayed. ![image.png](https://cdn.document360.io/30792387-cdcb-4791-aa14-94929bbcd3fe/Images/Documentation/image-BGMGHKCG.png?sv=2026-02-06&spr=https&st=2026-11-11T04%3A43%3A44Z&se=2026-11-11T05%3A43%3A44Z&sr=c&sp=r&sig=sV%2Fw6xyI%2F7XBiU4Sd0mnMgULXBz3Kmnaq%2BICppPvByo%3D) 5. Enable **vSphere HA**. 6. In the **Failures and responses** tab make sure that **Enable Host Monitoring** is on and set **Host Failure Response** to **Restart VMs**. 7. In the **Heartbeat Datastores** tab, select the shared datastores that will be used for vSphere HA. **Note** You must select a minimum of two datastores. For automatic detection of accessible datastores, choose **Automatically select datastores accessible from the hosts**. ![image.png](https://cdn.document360.io/30792387-cdcb-4791-aa14-94929bbcd3fe/Images/Documentation/image-CQG7TRBX.png?sv=2026-02-06&spr=https&st=2026-11-11T04%3A43%3A44Z&se=2026-11-11T05%3A43%3A44Z&sr=c&sp=r&sig=sV%2Fw6xyI%2F7XBiU4Sd0mnMgULXBz3Kmnaq%2BICppPvByo%3D) 8. Click **OK**. vSphere HA is now enabled on the cluster. Once vSphere HA is enabled, using the dedicated, shared datastores, virtual machines deployed to hosts participating in your cluster are automatically protected. ## Testing vSphere HA Failover Virtual machines deployed to hosts participating in the vSphere HA-enabled cluster are protected. **To perform a failover test:** 1. Deploy the CTERA Portal Main Database VM to one of the hosts is the cluster with vSphere HA set. 2. Upload sample data to the CTERA Portal. 3. After successfully uploading files to the CTERA Portal, power off the vSphere host running the CTERA Portal main database. vSphere will provide an alert indicating that the failover process has started and will begin restarting the CTERA Portal main database VM on a second host. Upon completing the failover, vSphere will provide an alert indicating that the CTERA Portal main database virtual machine is back up and running. The failover and failback processes are performed automatically, requiring no manual intervention.