Skip to main content
ONTAP FlexArray

Configuring FC ports as initiators

Contributors netapp-chikkusu

You can configure individual FC ports as initiators on ONTAP systems. The initiator mode enables the ports to connect to storage arrays.

  1. Optional: If the adapter port already has LIFs configured, delete all the LIFs by using the network interface delete command.

    If the LIF is in a port set, you must remove the LIF from port set before you can delete the LIF.

    The following example shows how you can delete LIFs on an SVM vs3: network interface delete -vserver vs3 -lif lif2,lif0

  2. Take the port offline by using the network fcp adapter modify command.

    The following example shows how you can take the port 0c offline for the node sysnode: network fcp adapter modify -node sysnode1 -adapter 0c -state down

  3. Use the system hardware unified-connect modify command to change the offline port from target to initiator.

    The following example shows how you can change the port type for 0c from target to initiator: system node hardware unified-connect modify -node sysnode1 -adapter 0c -type initiator

  4. Reboot the node hosting the adapter you changed.

  5. Use the system hardware unified-connect show command to verify that the FC ports are configured correctly for your configuration.

    The following example shows the change in port type for 0c:

    system node hardware unified-connect show -node sysnode1

                           Current  Current    Pending  Pending
    Node          Adapter  Mode     Type       Mode     Type       Status
    ------------  -------  -------  ---------  -------  ---------  -----------
    sysnode1      0a       fc       target     -        -          online
    sysnode1      0b       fc       target     -        -          online
    sysnode1      0c       fc       initiator  -        -          offline
    sysnode1      0d       fc       target     -        -          online
  6. Use the storage enable adapter command to bring the offline port back online.

    The following example shows how you can make the port 0c online: node run -node sysnode1 -command storage enable adapter -e 0c