Hey all Im trying to figure out if its possible to migrate VM datastore based off of the host the VM resides on. Im essentially attempting a poor mans vSAN. The idea would go as follows:
Host A and B both have identical TruNAS iSCSI data stores as well the same compute resources. When host A is running the compute resources for a VM the data store resides on host B and host A runs the shadow for FT. This way if host A fails the VM can migrate compute resources to host B, if host B fails the shadow datastore will take over on host A.
In testing I have noticed that when the compute VM migration happens from Host A to Host B and Host A comes back the VM will continue to use Host B for compute and datastore resources. I would like to automate this so that the datastore is always opposite of the host running as the compute. This way the VMs will always have somewhere to fail to as long as one of the hosts is up,
Is this is possible? Or is there is a better way to accomplish this without paying for vSAN?