vSphere VMFS Datastore - iSCSI Storage backend with ONTAP

Contributors sureshthoppay Download PDF of this page

About this task

This section covers the creation of a VMFS datastore with ONTAP iSCSI storage.

For automated provisioning, use one of these scripts: PowerShell Script, Ansible Playbook, or Terraform.

What you need

  • The basic skills necessary to manage a vSphere environment and ONTAP.

  • ONTAP storage system (FAS/AFF/CVO/ONTAP Select/ASA) running ONTAP 9.8 or later

  • ONTAP credentials (SVM name, userID, and password)

  • ONTAP network port, SVM, and LUN information for iSCSI

  • A completed iSCSI configuration worksheet

  • vCenter Server credentials

  • vSphere host(s) information

    • vSphere 7.0 or later

  • iSCSI VMKernel adapter IP informattion

  • Network switch(es)

    • with ONTAP system network data ports and connected vSphere hosts

    • VLAN(s) configured for iSCSI

    • (Optional) link aggregation configured for ONTAP network data ports

  • ONTAP Tool for VMware vSphere deployed, configured, and ready to consume


  1. Check compatibility with the Interoperability Matrix Tool (IMT).

  2. Verify that the iSCSI configuration is supported.

  3. Complete the following ONTAP and vSphere tasks.

ONTAP tasks

  1. Verify the ONTAP license for iSCSI.

    1. Use the system license show command to check if iSCSI is listed.

    2. Use license add -license-code <license code> to add the license.

  2. Verify that the iSCSI protocol is enabled on the SVM.

  3. Verify that iSCSI network logical interfaces are available on the SVM.

    When an SVM is created using the GUI, iSCSI network interfaces are also created.
  4. Use the Network interface command to view or make changes to the network interface.

    Two iSCSI network interfaces per node are recommended.
  5. Create an iSCSI network interface.
    You can use the default-data-blocks service policy.

  6. Verify that the data-iscsi service is included in the service policy.
    You can use network interface service-policy show to verify.

  7. Verify that jumbo frames are enabled.

  8. Create and map the LUN.
    Skip this step if you are using ONTAP tools for VMware vSphere. Repeat this step for each LUN.

VMware vSphere tasks

  1. Verify that at least one NIC is available for the iSCSI VLAN. Two NICs are preferred for better performance and fault tolerance.

  2. Identify the number of physical NICs available on the vSphere host.

  3. Configure the iSCSI initiator.
    A typical use case is a software iSCSI initiator.

  4. Verify that the TCPIP stack for iSCSI is available.

  5. Verify that iSCSI portgroups are available.

    • We typically use a single virtual switch with multiple uplink ports.

    • Use 1:1 adapter mapping.

  6. Verify that iSCSI VMKernel adapters are enabled to match the number of NICs and that IPs are assigned.

  7. Bind the iSCSI software adapter to the iSCSI VMKernel adapter(s).

  8. Provision the VMFS datastore with ONTAP Tools. Repeat this step for all datastores.

  9. Verify hardware acceleration support.

What’s next?

After these the tasks are completed, the VMFS datastore is ready to consume for provisioning virtual machines.

PowerShell Script
Ansible Playbook