When you enable high availability (vSphere HA) on a VMware vSphere cluster, you have the option to enable an option called "VMCP" (VM Component Protection) which helps protect your virtual machines against storage-related issues.
As explained in our article "VMware vSphere 6.7 - Storage issues (APD and PDL states)", a loss of access to storage can generate an APD state (temporary loss) or a PDL state (permanent loss).
To learn more about these APD and PDL states, as well as how to view events related to these states, refer to the article cited previously.
Starting with vSphere 6.0, you can enable VM Component Protection (VMCP) so that vSphere HA can automatically detect datastore access issues and act accordingly for impacted virtual machines.
In the vSphere HA settings, you will find 2 sections "Datastores with APD" and "Datastores with PDL" where you can choose the behavior of VMCP in the event of an APD or PDL impacting your virtual machines: do nothing , only generate events or restart VMs on other hosts that still have access to the necessary storage.
For more information about these settings, refer to step "8. Enable VMware vSphere HA on your cluster" in our VMware vSphere HA tutorial.
Important : if the "VM Monitoring" or "VM Reboot Priority" setting is disabled, VM Component Protection (VMCP) will not be able to restart impacted virtual machines.
Source : VM Component Protection - VMware Docs.
As explained previously, VM Component Protection (VMCP) allows you to protect your virtual machines during storage access problems.
Below, you can see in detail how this feature works and therefore what happens in the event of a storage access problem.
To begin with, in the event of a storage failure, VMCP starts the recovery process.
VMCP generates the list of virtual machines impacted by this storage failure, then it detects whether it is a PDL (permanent loss of storage) or an APD (temporary loss of storage).
Generally, this depends on the error codes returned by the storage array in question.
Diagram taken from VMware blog : VM Component Protection (VMCP) - VMware vSphere Blog.
Here is also the timeline of the VMCP recovery process.
This diagram also comes from the VMware blog (see link cited previously).
To enable the VM Component Protection (VMCP) feature, start by selecting your VMware vSphere cluster.
Then go to "Configure -> Services -> vSphere Availability" and click "Edit".
As you can see in the description displayed in the "Failures and responses" tab of your cluster settings, you can configure the fault conditions for VM Component Protection (datastores with PDL and APD).
To begin, you will be able to enable Datastore with PDL Failure Response.
As noted earlier, VMCP can automatically restart your virtual machines on other hosts that still have access to the affected datastore.
To do this, select "Power off and restart VMs".
In the case of an APD state, select one of the "Power off and restart VMs" options so that VMCP can restart on other functional hosts that have access to the affected datastore in the event of an APD.
As explained previously, in the case of an APD condition, VMCP waits 140 seconds to see if the problem has disappeared automatically.
Otherwise, VMCP waits 3 minutes by default (delay configurable via the "Response delay" option visible below), then uses the "Response recovery" action if the APD problem has been resolved.
If the APD problem is not resolved after this additional time, the "... Failure Response" action will be used.
As noted on the "VM Component Protection - VMware Docs" page, VMCP will not be able to restart impacted virtual machines if VM monitoring or VM restart priority is disabled.
To avoid this issue, make sure that at least VM monitoring is enabled in the "VM Monitoring" section.
Note: application monitoring requires an application supporting VMware application monitoring.
In the "Host Failure Response" section, make sure that the "Default VM Priority" option is not disabled.
Note that vSphere HA settings can also be modified for specific virtual machines in the "Configure -> Configuration -> VM Overrides" section.
If these VM replacements are defined in your case, make sure to also configure these 2 options correctly for them so that VMCP can also work correctly for the affected VMs.
After changing the cluster settings, you will return to the "vSphere Availability" page.
VMware 6/29/2022
VMware 2/21/2024
VMware 2/16/2024
VMware 9/25/2024
Pinned content
Contact
® InformatiWeb-Pro.net - InformatiWeb.net 2008-2022 - © Lionel Eppe - All rights reserved.
Total or partial reproduction of this site is prohibited and constitutes an infringement punishable by articles L.335-2 and following of the intellectual property Code.
You must be logged in to post a comment