@ha_tu_su
Here are the details, albeit little late than what I had promised. Mondays are...not that great.
Below commands were executed on all 3 hosts after installation of xcp-ng.
yum update
wget https://gist.githubusercontent.com/Wescoeur/7bb568c0e09e796710b0ea966882fcac/raw/052b3dfff9c06b1765e51d8de72c90f2f90f475b/gistfile1.txt -O install && chmod +x install
./install --disks /dev/sdd --thin --force
Then XO was installed on one of the hosts and a pool was created which consisted of 3 hosts. Before that NIC renumbering was done on VW1 was changed to match the NIC numbers for other 2 hosts.
Then XOSTOR SR was created by executing follwoing on master host:
xe sr-create type=linstor name-label=XOSTOR host-uuid=<MASTER_UUID> device-config:group-name=linstor_group/thin_device device-config:redundancy=2 shared=true device-config:provisioning=thin
Then on host which is linstor controller below commands were executed. Each of the network has a /30 subnet.
linstor node interface create xcp-ng-vh1 strg1 192.168.255.1
linstor node interface create xcp-ng-vh1 strg2 192.168.255.10
linstor node interface create xcp-ng-vh2 strg1 192.168.255.5
linstor node interface create xcp-ng-vh2 strg2 192.168.255.2
linstor node interface create xcp-ng-vw1 strg1 192.168.255.9
linstor node interface create xcp-ng-vw1 strg2 192.168.255.6
linstor node-connection path create xcp-ng-vh1 xcp-ng-vh2 strg_path strg1 strg2
linstor node-connection path create xcp-ng-vh2 xcp-ng-vw1 strg_path strg1 strg2
linstor node-connection path create xcp-ng-vw1 xcp-ng-vh1 strg_path strg1 strg2
After this HA was enabled on the pool by executing below commands on master host:
xe pool-ha-enable heartbeat-sr-uuids=<XOSTOR_SR_UUID>
xe pool-param-set ha-host-failures-to-tolerate=2 uuid=<POOL_UUID>
After this some test VMs were created as mentioned in Original Post. Host failure case works as expected for VH1 and VH2 host. For VW1 when it is switched off, VH1 and VH2 also reboot.
Let me know if any other information is required.
Thanks.