This section describes how to add targets during the device
configuration
These steps are to be performed after the AIX® software initiator is configured.
iSCSI device configuration requires that the iSCSI targets
can be reached through a properly configured network interface. Perform
the following steps to add the iSCSI targets:
- Edit the /etc/iscsi/targets file
to include the iSCSI targets that are needed during device configuration.
Each uncommented line in the file represents an iSCSI target.
Although
the iSCSI software initiator can work using a 10/100 Ethernet LAN,
the initiator is designed to work with a gigabit Ethernet network
that is separate from other network traffic. The following example
shows a sample targets file:
192.168.1.7 3260 iqn.1986-03.com.ibm.:2145.sahyadri.node1
- After editing the /etc/iscsi/targets file,
type the following command to reconfigure the software initiator driver:
cfgmgr -v -1 iSCSI0
This command causes
the driver to attempt to communicate with the targets that are listed
in the
/etc/iscsi/targets file and to
define a new hard disk (hdisk) for each LUN on the targets that are
found.
Note: If the appropriate disks are not defined, review the
configuration of the initiator, the target, and any iSCSI gateways
to ensure that they are correct. Run the cfgmgr command
again.
- If you want to configure additional configuration parameters
for iSCSI software initiator devices, use the following SMIT procedures:
- Select Devices.
- Select Fixed Disk.
The iSCSI 2145 disk device is reported as shown in the following
output:
hdisk2 Available IBM 2145 iSCSI Disk Drive
The
iSCSI disk supports command tag queuing and NACA=1 in the control
byte, you might want to change the queue depth setting of the disk
from the default value of 8 to a larger value. A larger value might
improve device performance. The optimal queue depth setting cannot
exceed the actual queue size on the drive. Setting the queue depth
to a value larger than the queue size of the drive might degrade performance.
To determine the queue size of the drive, consult the documentation
for the drive.
A suggested value of the rw_timeout setting is 60 seconds.