Configure an SVM for iSCSI
To configure a storage virtual machine (SVM) for iSCSI, you must create LIFs for the SVM and assign the iSCSI protocol to those LIFs.
-
You need a minimum of one iSCSI LIF per node for each SVM serving data with the iSCSI protocol. For redundancy, you should create at least two LIFs per node.
-
Beginning with ONTAP 9.19.1, AFF systems support active-active multipathing with automatic LIF failover at the SVM level in SAN environments. You must enable active-active multipathing on AFF systems when you first create the SVM.
You must be a cluster administrator to perform this task.
Configure an storage VM for iSCSI with ONTAP System Manager (9.7 and later).
| To configure iSCSI on a new storage VM | To configure iSCSI on an existing storage VM |
|---|---|
|
|
Configure an storage VM for iSCSI with the ONTAP CLI.
-
Enable the SVMs to listen for iSCSI traffic:
vserver iscsi create -vserver vserver_name -target-alias vserver_name -
Create a LIF for the SVMs on each node to use for iSCSI:
-
For ONTAP 9.6 and later:
network interface create -vserver vserver_name -lif lif_name -data-protocol iscsi -service-policy default-data-iscsi -home-node node_name -home-port port_name -address ip_address -netmask netmask -
For ONTAP 9.5 and earlier:
network interface create -vserver vserver_name -lif lif_name -role data -data-protocol iscsi -home-node node_name -home-port port_name -address ip_address -netmask netmask
-
-
Verify that you set up your LIFs correctly:
network interface show -vserver vserver_nameLearn more about
network interface showin the ONTAP command reference. -
Verify that iSCSI is up and running and the target IQN for that SVM:
vserver iscsi show –vserver vserver_name -
From your host, create iSCSI sessions to your LIFs.