6.8.2. Demonstrating Virtual Machine High Availability when Storage Network is Down (Host: SPM)
Procedure 6.2. To demonstrate virtual machine high availability when storage network is down (Host: SPM)
- On the Hosts tab, select the
Pacifichost to display its details pane. Click the Network Interfaces subtab. You should have at least one rhevm network and one storage network, as configured earlier. In this example, the storage network is allocated onp1p1.Next, on the Tree pane click ISCSI-share. On the Storage tab, select the ISCSI-share domain and click . On the Edit Domain dialog, click the symbol to display the iSCSI target. Note that the storage target's subnet mask address is the same as the storage network's, as seen under Address. - Now that you have determined the name and physical interface of your storage network, connect to the
Pacifichost via SSH. Check your available networks by running the following command:[root@pacific ~]# ifconfig
Once you have determined the name of your storage network, run:[root@pacific ~]# ifdown storage [root@pacific ~]# ifdown p1p1
You have now shut down the network between thePacifichost andISCSI-sharestorage. On the Hosts tab, thePacifichost changes to Non Operational, then to Reboot. - Because the
Pacifichost was configured as the SPM, it is automatically rebooted. The highly available virtual machines are restarted on the other available host in the cluster - in this case it isAtlantic- while the non highly available ones are suspended. However, once thePacifichost is up and running again, the virtual machines which were originally running on it are migrated back to it in order to balance the workload between all hosts in the cluster.
You have now demonstrated high availability when the connection is disrupted between the storage and the host which is the SPM. However, storage disconnection can also occur with a host which is not acting as the SPM. In this case, the host moves into non-operational status, and its virtual machines migrate to other hosts in the cluster.