User`s guide

Chapter VII. iSCSI PDU Offload Target
Chelsio T5/T4 Unified Wire For Linux Page 111
A target can serve multiple devices, each device will be assigned a Logical Unit Number (LUN)
according to the order it is specified (i.e., the first device specified is assigned LUN 0, the
second one LUN 1, …, and so on and so forth). Multiple TargetDevice key=value pairs are
needed to indicate multiple devices.
Here is a sample of a minimum iSCSI target configuration located at /etc/chelsio-
iscsi/chiscsi.conf:
target:
TargetName=iqn.2006-02.com.chelsio.diskarray.san1
TargetDevice=/dev/sda
PortalGroup=1@192.0.2.178:3260
The TargetDevice value must match with the storage device in the system. The PortalGroup
value must have a matching IP address of the Ethernet adapter card in the system.
For more information about TargetDevice configuration see Target Storage Device
Configuration.
4.3.2. Basic iSCSI Control
Control of the Chelsio iSCSI software is done through iscsictl, the command line interface
control tool. The following are the basic commands needed for effective control of the target.
Start Target: To start all of the iSCSI targets specified in the iSCSI configuration file, execute
iscsictl with the -S option followed by target=ALL.
[root@host]# iscsictl f /etc/chelsio-iscsi/chiscsi.conf S target=ALL
To start a specific target execute iscsictl with -S followed by the target.
[root@host]# iscsictl f /etc/chelsio-iscsi/chiscsi.conf S
target=iqn.2006-02.com.chelsio.diskarray.san1
Stop Target: To stop the all the iSCSI target(s), execute iscsictl with “-s” option followed by
target=ALL”.
[root@host]# iscsictl s target=ALL