Sles 11 sp1, rhel 5.8, and later versions, Discovering and adding iscsi targets, Iscsiadm commands for configuring the target – Dell Emulex Family of Adapters User Manual
Page 854

Emulex Drivers Version 10.2 for Linux User Manual
P010081-01A Rev. A
3. Configuration
iSCSI Driver Configuration
854
SLES 11 SP1, RHEL 5.8, and Later Versions
Discovering and Adding iSCSI Targets
The following steps are used to discover and add a target using the Ethernet adapter for
SLES 11 SP1, RHEL 5.8, and later versions.
1. For the iSCSI function, set the IP address using the iSCSI Select utility.
The initiator IP is set to 192.168.65.99. This IP is set for the iSCSI function, but it
does not get set for the Ethernet interface.
The target portal IP is 192.168.65.196.
2. Discover the targets using the Ethernet interface for which the IP was set.
iscsiadm -m discovery -t st -p 192.168.65.196:3260 -I
be2iscsi.00:00:c9:f2:73:91
3. Log in to the discovered targets.
iscsiadm -m node -p 192.168.65.196:3260 -l
4. To display the session after a successful log in or to log out, see step 10 and step 11
on page 853, respectively.
iscsiadm Commands for Configuring the Target
Note: These commands are supported in the RHEL 5.x operating system.
After setting up the target and initiator machines, use the following procedure to
configure the iSCSI target through Open-iSCSI.
Note: The following instructions assume that the initiator machine is a Linux machine
with a OneConnect adapter installed.
1. Create a new interface (iface):
iscsiadm -m iface -o new -I
In this command,
2. Add a NIC media access control (MAC) address:
iscsiadm -m iface -I
-v
In this command, mac_address> is the NIC MAC address you are adding for discovery. 3. Add the Transport Name: iscsiadm -m iface -I iface.transport_name -v be2iscsi In this command, 4. Restart the service: service open-iscsi restart 5. Perform target discovery using “SendTargets”: iscsiadm -m discovery -t st -p