Configure an SVM for NVMe

Contributors

If you want to use the NVMe protocol on a node, you must configure your SVM specifically for NVMe.

What you’ll need

Your FC or Ethernet adapters must support NVMe. Supported adapters are listed in the NetApp Hardware Universe.

Steps
  1. If you do not want to use an existing SVM, create one:

    vserver create -vserver SVM_name

    1. Verify that the SVM is created:

      vserver show

  2. Verify that you have NVMe or TCP capable adapters installed in your cluster:

    For NVMe: network fcp adapter show -data-protocols-supported fc-nvme

    For TCP: network port show

  3. If you are running ONTAP 9.7 or earlier, remove all protocols from the SVM:

    vserver remove-protocols -vserver SVM_name -protocols iscsi,fcp,nfs,cifs,ndmp

    Beginning in ONTAP 9.8, it is not necessary to remove other protocols when adding NVMe.

  4. Add the NVMe protocol to the SVM:

    vserver add-protocols -vserver SVM_name -protocols nvme

  5. If you are running ONTAP 9.7 or earlier, verify that NVMe is the only protocol allowed on the SVM:

    vserver show -vserver SVM_name -fields allowed-protocols

    NVMe should be the only protocol displayed under the allowed protocols column.

  6. Create the NVMe service:

    vserver nvme create -vserver SVM_name

  7. Verify that the NVMe service was created:

    vserver nvme show -vserver SVM_name

    The Administrative Status of the SVM should be listed as up.

  8. Create an NVMe/FC LIF:

    ONTAP version Applicable protocols Command

    ONTAP 9.9.1 or earlier

    FC

    network interface create -vserver SVM_name -lif lif_name -role data -data-protocol fc-nvme -home-node home_node -home-port home_port

    ONTAP 9.10.1

    FC or TCP

    network interface create -vserver SVM_name -lif lif_name -service-policy {default-data-nvme-tcp | default-data-nvme-fc} -home-node home_node -home-port home_port -status admin up -failover-policy disabled -firewall-policy data -auto-revert false -failover-group failover_group -is-dns-update-enabled false

  9. Create an NVMe/FC LIF on the HA partner node:

    ONTAP version Applicable protocols Command

    ONTAP 9.9.1 or earlier

    FC

    network interface create -vserver SVM_name -lif lif_name -role data -data-protocol fc-nvme -home-node home_node -home-port home_port

    ONTAP 9.10.1 or later

    FC or TCP

    network interface create -vserver SVM_name -lif lif_name -service-policy {default-data-nvme-tcp | default-data-nvme-fc} -home-node home_node -home-port home_port -status admin up -failover-policy disabled -firewall-policy data -auto-revert false -failover-group failover_group -is-dns-update-enabled false

  10. Verify the NVMe/FC LIFs were created:

    network interface show -vserver SVM_name

  11. Create volume on the same node as the LIF:

    vol create -vserver SVM_name -volume vol_name -aggregate aggregate_name -size volume_size

    If a warning message is displayed about the auto efficiency policy, it can be safely ignored.