What did you expect from this failure scenario?
If HA had worked automatically, site A would have started the VMs from site B and site B the VMs from site A, since these hosts are in the same situation. In the end all VMs would have run twice and you would have had a real split brain scenario and far more problems.
If your infrastructure is set up properly, a failure of the dark fiber connections won't be a problem because the VMs on both sites can continue to run and function. Only management functions would have been limited for the time of the dark fiber cut.
And in this scenario with a Metro Cluster and 2 sites there can only be a manual failover where a human decides on which site all VMs should be started (for the most cases).
More information can be found in the Metrocluster Best Practice guide:
For the sake of completeness I have to mention that there are also Active-Active storage solutions with automatic failover on the market:
Look at the recommendations in the whitepaper I wrote, which is mentioned above. But considering you are using Datacore you may also want to look at their best practices. Normally what you would see is that an APD or PDL is triggered, if you have the automatic response to a PDL or APD enabled in vSphere HA then the VMs that lost access to storage should be restarted in the remote location AND powered off in the "offline" location.
The problem is:
[quote]If your infrastructure is set up properly, a failure of the dark fiber connections won't be a problem because the VMs on both sites can continue to run and function. Only management functions would have been limited for the time of the dark fiber cut.
Yes - they are running on both sites and that is the problem.
If the dark fibre "breaks" we need to run ALL VMs in the other location.
So we need to shutdown Location A and everything should run in Location B
And this is, what i am looking for. Some automation like:
Location A is not reachable from Location B and vise versa
- shutdown all VMs on A
- stop datacore on A
- startup all VMs on B (which were on A)
i dont know how to realize this. The most important thing is, that Location B is running, cause Location B is a managed datacenter
Normally you use the APD or PDL response that you can configure in vSphere HA for this Marcus. If this will work will depend on how DATACORE has implemented their solution. For most stretched cluster solutions these days vendors use a "witness" in a 3rd location. And when a split brain has occurred, site partition also sometimes called, they will declare 1 location winner for each of the presented stretched datastores. The other location will then either go in PDL, or in APD state, and then HA can take action (when configured) based on that.
So talk to Datacore, or dig up a document, that describes exactly to the letter what they do in this scenario, as that will tell you what you should be seeing and if vSphere HA can even respond to this failure.