Skip to main content
ONTAP tools for VMware vSphere 10

Create a datastore in ONTAP tools

Contributors netapp-jani jani

When you create a datastore at the host cluster level, ONTAP tools mounts it on all destination hosts and enables the action only if you have the required privileges.

Interoperability between native datastores with vCenter Server and ONTAP tools managed datastores

Beginning with ONTAP tools for VMware vSphere 10.4, ONTAP tools creates nested igroups for datastores, with parent igroups specific to datastores and child igroups mapped to the hosts. You can create flat igroups from ONTAP System Manager and use them to create VMFS datastores without using ONTAP tools. Refer to Manage SAN initiators and igroups for more information.

After you onboard the storage and run datastore discovery, ONTAP tools changes flat igroups in VMFS datastores to nested igroups. You cannot use earlier flat igroups to create new datastores. Use the ONTAP tools interface or REST API to reuse nested igroups.

Create a vVols datastore

Beginning with ONTAP tools for VMware vSphere 10.3, you can create a vVols datastore on ASA r2 systems with thin space efficiency. The VASA Provider creates a container and the desired protocol endpoints while creating the vVol datastore. The VASA Provider does not assign any backing volumes to this container.

Before you begin
  • Make sure root aggregates are not mapped to the SVM.

  • Ensure that the VASA Provider is registered with the selected vCenter.

  • For ASA r2 storage systems, SVM-to-aggregate mapping is not required.

Steps
  1. Log in to the vSphere Client.

  2. Right-click on a host system, host cluster, or data center and select NetApp ONTAP tools > Create Datastore.

  3. Select vVols as the Datastore type.

  4. Enter the Datastore name and Protocol information.

    Note The ASA r2 system supports the iSCSI and FC protocols for vVols.
  5. Select the storage VM where you want to create the datastore.

  6. Under Advanced options:

    • If you select the Custom export policy, run discovery in vCenter for all objects before you continue. It’s recommended that you don’t use this option.

    • You can select a Custom initiator group name for the iSCSI and FC protocols.

      Note For an ASA r2 SVM, storage units (LUNs/namespaces) are not created because the datastore is only a logical container.
  7. In the Storage attributes pane, you can create new volumes or use the existing volumes. However, you cannot combine these two types of volumes to create a vVols datastore.

    When creating a new volume, you can enable QoS on the datastore. By default, one volume is created for each LUN creation request. Skip this step for vVols datastores on ASA r2 storage systems.

  8. Review your selection in the Summary pane and select Finish.

Create an NFS datastore

An NFS datastore connects ESXi hosts to shared storage using the NFS protocol. It is simple and flexible and is used in VMware vSphere environments.

Steps
  1. Log in to the vSphere Client.

  2. Right-click on a host system, host cluster, or data center and select NetApp ONTAP tools > Create datastore.

  3. Select NFS in the Datastore type field.

  4. Enter the datastore name, size, and protocol information in the Name and Protocol pane.

    1. Select Datastore cluster and Kerberos authentication in the Advanced options.

      Note Kerberos authentication is available only when the NFS 4.1 protocol is selected.
    2. Specify the Number of connections (nconnect) for the datastore. The default value is 4, configurable from 1 to 8. If the value you select is higher than the current host-level nconnect setting, ONTAP tools updates the host-level nconnect setting to match.

  5. In the Storage pane, select Platform and Storage VM.

  6. If you select Custom export policy under the Advanced options, run discovery in vCenter for all objects before you continue.

    Note You cannot create an NFS datastore using the SVM’s default or root volume policy.
    • In the Advanced options, the Asymmetric toggle button is visible only if performance or capacity is selected in the platform drop-down. However, the Asymmetric option does not apply to NFS datastore creation.

    • When you choose the Any option in the platform drop-down, all SVMs in the vCenter are visible. Platform and asymmetric settings do not affect visibility.

  7. In the Storage Attributes pane, select the aggregate for volume creation. In the Advanced options, choose Space Reserve and Enable QoS as required.

  8. In the Summary pane, review the selections and select Finish.

ONTAP tools creates the NFS datastore and mounts it on all hosts.

Create a VMFS datastore

VMFS is a clustered file system for storing virtual machine files. Multiple ESXi hosts can access the same VM files simultaneously for vMotion and High Availability features.

Before you begin

To configure an ONTAP SVM for FC protocol, refer to Configure an SVM for FC.

For more information on using NVMe/FC protocol with VMware vSphere 8.0, refer to NVMe-oF Host Configuration for ESXi 8.x with ONTAP.

For more information on using NVMe/FC with VMware vSphere 7.0, refer to ONTAP NVMe/FC Host Configuration guide.

Steps
  1. Log in to the vSphere Client.

  2. Right-click on a host system, host cluster, or data center and select NetApp ONTAP tools > Create Datastore.

  3. Select the VMFS datastore type.

  4. Enter the datastore name, size, and protocol information in the Name and Protocol pane. To add the new datastore to an existing VMFS cluster, select the datastore cluster in Advanced options.

  5. Select storage VM in the Storage pane. Provide the Custom initiator group name in the Advanced options section as required. You can choose an existing igroup for the datastore or create a new igroup with a custom name.

    When NVMe/FC or NVMe/TCP protocol is selected, a new namespace subsystem is created and is used for namespace mapping. ONTAP tools creates the namespace subsystem using the auto-generated name that includes the datastore name. You can rename the namespace subsystem in the custom namespace subsystem name field in the Advanced options of the Storage pane.

  6. From the Storage attributes pane:

    1. Select Aggregate from the drop-down options.

      Note For ASA r2 storage systems, the Aggregate option is not shown because storage is disaggregated. When you choose an ASA r2 storage system type SVM, the Storage attributes page shows options for enabling QoS.
    2. ONTAP tools creates a storage unit (LUN/Namespace) with a thin space reserve based on the selected protocol.

      Note Beginning in ONTAP 9.16.1, ASA r2 storage systems support up to 12 nodes per cluster.
    3. Select the Performance service level for an ASA r2 storage system with a 12-node SVM in a heterogeneous cluster. This option is unavailable if the selected SVM is a homogeneous cluster or uses an SVM user.

      'Any' is the default performance service level (PSL) value. This setting creates the storage unit using the ONTAP balanced placement algorithm. However, you can select the performance or extreme option as required.

    4. Select Use existing volume, Enable QoS options as required, and provide the details.

      Note In the ASA r2 storage type, volume creation or selection doesn't apply to storage unit creation (LUN/Namespace). Therefore, these options aren't shown.
      Note You cannot use the existing volume to create a VMFS datastore with NVMe/FC or NVMe/TCP protocol. Create a new volume for the VMFS datastore.
  7. In the Protection window, select Protect this datastore using SnapMirror replication to enable protection. You can add the datastore to an existing protection group or create a new one. To create a new protection group:

    1. Enter a Protection group name.

    2. Configure the SnapMirror relationship. If you select the Automated Failover Duplex policy(AFD), set up host cluster configuration settings before continuing. For details, see Configure cluster for datastore protection with ONTAP tools.

      Note If the selected volume is already part of another protection setting, the next protection page is disabled and an informational message appears. If the datastore is not eligible for protection, the protection option is disabled and the reason for ineligibility is displayed. You can still create the datastore without protection.
  8. Review the datastore details in the Summary pane and select Finish.

    Note If a datastore is protected, ONTAP tools mounts it on all hosts in the cluster.
Result

ONTAP tools creates the VMFS datastore and mounts it on all the hosts.