Option 1In clusters where DRS is enabled, its important to ensure that the DPD service on each host the LWD-protected VMs can migrate to is running and functional. If there are hosts within the cluster that are not enabled for lightweight data protection or can not support vmwarelwd for some reason, use anti-affinity rules to block LWD-protected VMs from migrating to them. This applies to manual migrations as well.
You may also need to ensure the DPD service is configured to start with the host from the vSphere Client.
- Select the ESXi host in the inventory.
- Click the Configure tab.
- Under System, click Services.
- Select the dpd service and use the Edit Startup Policy button to change it to "Start and Stop with host"
Option 2For situations where it is no longer desired for the virtual machine to be protected by vmwarelwd-related solutions, you can use the following instructions to remove the IO filter from them. A full-sync will be necessary should protection be re-enabled on the VM at a later point.
The attached script (lwd-cleanup-util.py) is a pyVmomi-based utility that allows users to:
- List LWD-protected virtual machines in vCenter inventory list
- Disable LWD protection for selected virtual machines on a vSphere vCenter server where the problematic VM resides.
The script requires the VMware vSphere API Python Bindings. In particular, it requires:
- pyVim (vm, folder, connect)
- pyVmomi (with vim version of at least vim.version.v7_0_2_1)
- six (a single-file opensource dependency used by pyVim and pyVmomi)
All of these dependencies are satisfied by the VMware vCenter Appliance. Move the script into the vCenter Appliance, SSH to it, and execute it using the directions below.
Execution Steps
HelpCommand Line Help
python lwd-cleanup-util.py --helpUsageList all LWD-protected VM(s) which are protected by any vendors (including VMs protected by a vendor without a vendor ID).
List all LWD-protected VM(s) which are protected by 'myVendor'.
List all LWD-protected VM(s) which are protected but do not have an associated vendor ID.
Disable LWD protection provided by 'myVendor' if present on the specified VM.
Disable LWD protection provided by a vendor which didn't specify a vendor ID, if present on the specified VM.
Disable LWD protection provided by any vendor, if present on the specified VM.
Disable LWD protection provided by 'myVendor' if present on the specified VMs.
python ./lwd-cleanup-util.py -u '[email protected]' -d -i myVendor -m vm1 -m vm2 -m vm3
Disable LWD protection provided by 'myVendor' for all VMs.
Connect to a remote VC '10.1.2.34' to list LWD protected VMs.
Connect to a remote VC '10.1.2.34' to disable LWD protection provided by 'myVendor' for all LWD-protected VMs.
Use custom pyVpx library from 'pyVpx' subfolder to connect to a remote VC and disable LWD protection provided by 'myVendor' for all LWD-protected VMs.
python ./lwd-cleanup-util.py -r 10.1.2.3 -u '[email protected]' -d -i myVendor --all --pyVpx pyVpx