Skip to main content
Enterprise applications

vMSC Design and Implementation Guidelines

Contributors netapp-bingen jfsinmsp RachelZhuNetApp

This document outlines the design and implementation guidlines for vMSC with ONTAP storage systems.

NetApp Storage Configuration

Setup instructions for NetApp MetroCluster (referred to as an MCC configuration) are available at MetroCluster Documentation. Instructions for SnapMirror active sync (SMas) are also available at SnapMirror Business Continuity overview.

Once you have configured MetroCluster, administering it is like managing a traditional ONTAP environment. You can set up Storage Virtual Machines (SVMs) using various tools like the Command Line Interface (CLI), System Manager, or Ansible. Once the SVMs are configured, create Logical Interfaces (LIFs), volumes, and Logical Unit Numbers (LUNs) on the cluster that will be used for normal operations. These objects will automatically be replicated to the other cluster using the cluster peering network.

If not using MetroCluster, you can use SnapMirror active sync which provides datastore-granular protection and active-active access across multiple ONTAP clusters in different failure domains. SMas uses consistency groups (CGs) to ensure write-order consistency among one or more datastores and you can create multiple CGs depending on your application and datastore requirements. Consistency groups are especially useful for applications that require data synchronization between multiple datastores. SMas also supports Raw Device Mappings (RDMs) and guest-connected storage with in-guest iSCSI initiators. You can learn more about consistency groups at Consistency groups overview.

ONTAP tools now provides a simple way to configure SnapMirror active sync for vMSC. You can use the ONTAP tools vCenter plugin to create and manage SnapMirror active sync relationships between two ONTAP clusters. The plugin provides a simple and intuitive interface to create and manage SnapMirror active sync relationships between two ONTAP clusters. You can learn more about the ONTAP tools vCenter plugin at ONTAP tools for VMware vSphere, or jump right into Protect using host cluster protection.

There is some difference in managing a vMSC configuration with SnapMirror active sync when compared to a MetroCluster. First, SMas is a SAN-only configuration, no NFS datastores can be protected with SnapMirror active sync. Second, you must map both copies of the LUNs to your ESXi hosts for them to access the replicated datastores in both failure domains.

VMware vSphere Configuration

Create a vSphere HA Cluster

Creating a vSphere HA cluster is a multi-step process that is fully documented at How Do You Create and Configure Clusters in the vSphere Client on docs.vmware.com. In short, you must first create an empty cluster, and then, using vCenter, you must add hosts and specify the cluster’s vSphere HA and other settings.

Note Nothing in this document supersedes VMware vSphere Metro Storage Cluster Recommended Practices. This content is provided for easy reference and is not a substitute for the official VMware documentation.

To configure an HA cluster, complete the following steps:

  1. Connect to the vCenter UI.

  2. In Hosts and Clusters, browse to the data center where you want to create your HA cluster.

  3. Right-click the data center object and select New Cluster. Under basics ensure you have enabled vSphere DRS and vSphere HA. Complete the wizard.

New Cluster
  1. Select the cluster and go to the configure tab. Select vSphere HA and click edit.

  2. Under Host Monitoring, select the Enable Host Monitoring option.

Enable Host Monitoring option
  1. While still on the Failures and Responses tab, Under VM Monitoring, select the VM Monitoring Only option or VM and Application Monitoring option.

VM Monitoring
  1. Under Admission Control, set the HA admission control option to cluster resource reserve; use 50% CPU/MEM.

Admission Control
  1. Click “OK”.

  2. Select DRS and click EDIT.

  3. Set the automation level to manual unless required by your applications.

vmsc 3 5
  1. Enable VM Component Protection, refer to docs.vmware.com.

  2. The following additional vSphere HA settings are recommended for vMSC with MCC:

Failure Response

Host failure

Restart VMs

Host isolation

Disabled

Datastore with Permanent Device Loss (PDL)

Power off and restart VMs

Datastore with All paths Down (APD)

Power off and restart VMs

Guest not heartbeating

Reset VMs

VM restart policy

Determined by the importance of the VM

Response for host isolation

Shut down and restart VMs

Response for datastore with PDL

Power off and restart VMs

Response for datastore with APD

Power off and restart VMs (conservative)

Delay for VM failover for APD

3 minutes

Response for APD recovery with APD timeout

Disabled

VM monitoring sensitivity

Preset high

Configure Datastores for Heartbeating

vSphere HA uses datastores to monitor hosts and virtual machines when the management network has failed. You can configure how vCenter selects heartbeat datastores. To configure datastores for heartbeating, complete the following steps:

  1. In the Datastore Heartbeating section, select Use Datastores from the Specified List and Compliment Automatically if Needed.

  2. Select the datastores you want vCenter to use from both sites and press OK.

A screenshot of a computer Description automatically generated

Configure Advanced Options

Isolation events occur when hosts within an HA cluster lose connectivity to either the network or other hosts in the cluster. By default, vSphere HA will use the default gateway for its management network as the default isolation address. However, you can specify additional isolation addresses for the host to ping to determine whether an isolation response should be triggered. Add two isolation IPs that can ping, one per site. Do not use the gateway IP. The vSphere HA advanced setting used is das.isolationaddress. You can use ONTAP or Mediator IP addresses for this purpose.

A screenshot of a computer Description automatically generated

Adding an advanced setting called das.heartbeatDsPerHost can increase the number of heartbeat datastores. Use four heartbeat datastores (HB DSs)—two per site. Use the “Select from List but Compliment” option. This is needed because if one site fails, you still need two HB DSs. However, those don’t have to be protected with MCC or SnapMirror active sync.

VMware DRS Affinity for NetApp MetroCluster

In this section, we create DRS groups for VMs and hosts for each site\cluster in the MetroCluster environment. Then we configure VM\Host rules to align VM host affinity with local storage resources. For example, site A VMs belong to VM group sitea_vms and site A hosts belong to host group sitea_hosts. Next, in VM\Host Rules, we state that sitea_vms should run on hosts in sitea_hosts.

Tip
  • NetApp highly recommends the specification Should Run on Hosts in Group rather than the specification Must Run on Hosts in Group. In the event of a site A host failure, the VMs of site A need to be restarted on hosts at site B through vSphere HA, but the latter specification does not allow HA to restart VMs on site B because it’s a hard rule. The former specification is a soft rule and will be violated in the event of HA, thus enabling availability rather than performance.

  • You can create an event-based alarm that is triggered when a virtual machine violates a VM-Host affinity rule. In the vSphere Client, add a new alarm for the virtual machine and select “VM is violating VM-Host Affinity Rule” as the event trigger. For more information about creating and editing alarms, refer to vSphere Monitoring and Performance documentation.

Create DRS Host Groups

To create DRS host groups specific to site A and site B, complete the following steps:

  1. In the vSphere web client, right-click the cluster in the inventory and select Settings.

  2. Click VM\Host Groups.

  3. Click Add.

  4. Type the name for the group (for instance, sitea_hosts).

  5. From the Type menu, select Host Group.

  6. Click Add and select the desired hosts from site A and click OK.

  7. Repeat these steps to add another host group for site B.

  8. Click OK.

Create DRS VM Groups

To create DRS VM groups specific to site A and site B, complete the following steps:

  1. In the vSphere web client, right-click the cluster in the inventory and select Settings.

  1. Click VM\Host Groups.

  2. Click Add.

  3. Type the name for the group (for instance, sitea_vms).

  4. From the Type menu, select VM Group.

  5. Click Add and select the desired VMs from site A and click OK.

  6. Repeat these steps to add another host group for site B.

  7. Click OK.

Create VM Host Rules

To create DRS affinity rules specific to site A and site B, complete the following steps:

  1. In the vSphere web client, right-click the cluster in the inventory and select Settings.

  1. Click VM\Host Rules.

  2. Click Add.

  3. Type the name for the rule (for instance, sitea_affinity).

  4. Verify the Enable Rule option is checked.

  5. From the Type menu, select Virtual Machines to Hosts.

  6. Select the VM group (for instance, sitea_vms).

  7. Select the Host group (for instance, sitea_hosts).

  8. Repeat these steps to add another VM\Host Rule for site B.

  9. Click OK.

A screenshot of a computer Description automatically generated

Create datastore clusters if needed

To configure a datastore cluster for each site, complete the following steps:

  1. Using the vSphere web client, browse to the data center where the HA cluster resides under Storage.

  2. Right-click the data center object and select Storage > New Datastore Cluster.

Tip

*When using ONTAP storage, it is recommended to disable Storage DRS.

  • Storage DRS is generally not needed or recommended for use with ONTAP storage systems.

  • ONTAP provides its own storage efficiency features, such as deduplication, compression, and compaction, which can be impacted by Storage DRS.

  • If you are using ONTAP snapshots, then storage vMotion would leave behind the copy of the VM in the snapshot, potentially increasing storage utilization and may impact backup applications like NetApp SnapCenter which track VMs and their ONTAP snapshots.

Storage DRS
  1. Select the HA cluster and click Next.

HA cluster
  1. Select the datastores belonging to site A and click Next.

datastores
  1. Review options and click Finish.

  2. Repeat these steps to create the site B datastore cluster and verify that only datastores of site B are selected.

vCenter Server Availability

Your vCenter Server Appliances (VCSAs) should be protected with vCenter HA. vCenter HA allows you to deploy two VCSAs in an active-passive HA pair. One in each failure domain. You can read more about vCenter HA on docs.vmware.com.