I know that using VMCP on VMware ESXi, it's possible to make the ESXi host shut down or restart a virtual machine when a datastore that the VM resides on goes into All Paths Down (APD) state.
I'm looking to know if it's possible to pause (as in, temporarily suspend the VM's operations but technically keep it running. Not "suspend" which is clearly impossible as the datastore is gone) a VM that resides on a datastore, when that datastore goes into APD state.
Example use case: iSCSI server has a fault and locks up, and trying to recover it exceeds the APD timeout. Currently, Linux guests will exceed /sys/block/sda/device/timeout
and remount the root filesystem readonly, requiring a full reboot and fsck
. If the VMs are non-critial or are themselves redundant, it might be preferable to just leave them paused until the datastore recovers (or an admin decides to restart them)
This is how VMware Workstation handles loss of a virtual disk, for example. I do understand that while Workstation has a pause function ESXi might simply lack this function, which means the answer to this question might just be "No"