Skip to main content
Enterprise applications

Deploy Hyper-V cluster

Contributors netapp-bingen netapp-chrisgeb

This appendix describes deploying a Hyper-V cluster.

Prerequisites

  • At least two Hyper-V servers exist connected to each other.

  • At least one virtual switch is configured on each Hyper-V server.

  • The failover cluster feature is enabled on each Hyper-V server.

  • SMB shares or CSVs are used as shared storage to store VMs and their disks for Hyper-V clustering.

  • Storage should not be shared between different clusters. You should have only one CSV/CIFS share per cluster.

  • If the SMB share is used as shared storage, then permissions on the SMB share must be configured to grant access to the computer accounts of all the Hyper-V servers in the cluster.

Deployment

  1. Log in to one of the Windows Hyper-V servers as a member of the administrator group.

  2. Start Server Manager.

  3. In the Tools section, click Failover Cluster Manager.

  4. Click the Create Cluster from Actions menu.

  5. Provide details for the Hyper-V server that is part of this cluster.

  6. Validate the cluster configuration. Select Yes when prompted for cluster configuration validation and select the tests required to validate whether the Hyper-V servers pass the prerequisites to be part of the cluster.

  7. After validation succeeds, the Create Cluster wizard is started. In the wizard, provide the cluster name and the cluster IP address for the new cluster. A new failover cluster is then created for the Hyper-V server.

  8. Click the newly created cluster in Failover Cluster Manager and manage it.

  9. Define shared storage for the cluster to use. It can be either an SMB share or a CSV.

  10. Using an SMB share as shared storage requires no special steps.

  11. To use a CSV as shared storage, complete the following steps:

    1. Configure LUNs on a NetApp storage controller. To do so, see the section "Provisioning in SAN Environments."

    2. Make sure that all the Hyper-V servers in the failover cluster can see the NetApp LUNs. To do this for all the Hyper-V servers that are part of the failover cluster, make sure that their initiators are added to the initiator group on NetApp storage. Also be sure that their LUNs are discovered and make sure that MPIO is enabled.

    3. On any one of the Hyper-V servers in the cluster, complete the following steps:

      1. Take the LUN online, initialize the disk, create a new simple volume, and format it using NTFS or ReFS.

      2. In Failover Cluster Manager, expand the cluster, expand Storage, right-click Disks, and then click Add Disks. Doing so opens the Add Disks to a Cluster wizard showing the LUN as a disk. Click OK to add the LUN as a disk.

      3. Now the LUN is named Clustered Disk and is shown as Available Storage under Disks.

    4. Right-click the LUN (Clustered Disk) and click Add to Cluster Shared Volumes. Now the LUN is shown as a CSV.

    5. The CSV is simultaneously visible and accessible from all the Hyper-V servers of the failover cluster at its local location C:\ClusterStorage\.

  12. Create a highly available VM:

    1. In Failover Cluster Manager, select and expand the cluster created previously.

    2. Click Roles and then click Virtual Machines in Actions. Click New Virtual Machine.

    3. Select the node from the cluster where the VM should reside.

    4. In the Virtual Machine Creation wizard, provide the shared storage (SMB share or CSV) as the path to store the VM and its disks.

    5. Use Hyper-V Manager to set the shared storage (SMB share or CSV) as the default path to store the VM and its disks for a Hyper-V server.

  13. Test planned failover. Move VMs to another node using live migration, quick migration, or storage migration (move). Review Live Migration in a Clustered Environment for more details.

  14. Test unplanned failover. Stop cluster service on the server owning the VM.