Configuring the iSCSI software target
The iSCSI software target driver enables AIX® to act as one iSCSI target device or as several iSCSI target devices. The iSCSI target driver exports local disks, logical volumes, or local files to iSCSI initiators that connect to AIX using the iSCSI protocol and TCP/IP.
Each target device has an iSCSI Qualified Name and a set of logical unit numbers (LUNs) that are available to initiators that connect to the virtual iSCSI target. For each target device, you can specify which network interface and which TCP/IP port numbers the target driver can use to accept incoming connections.
- Create a single instance of the iSCSI target driver using the
following SMIT path. This instance acts as a container for the other
- Create one iSCSI target device for each virtual iSCSI target that
is allocated by the iSCSI target driver. Use the following SMIT path
to create each iSCSI target device:
- Define one or more LUNs for each target device using the following
SMIT path: Note: The LUNs are accessible by initiators that connect to a virtual target. On the iSCSI target, each LUN can be associated with either a previously defined logical volume, with a physical volume, or with a file previously created on a local file system. Any physical volume that is associated with an iSCSI target logical unit cannot be used in any other way by the AIX system that is running the iSCSI target driver.
This step generally completes the configuration. However, if you are using Challenge Handshake Authentication Protocol (CHAP), or if you are using Access Control Lists (ACLs) to indicate which initiators can access which LUNs, an additional step is required to complete the target configuration.
- If you are using CHAP authentication of the initiators, edit the /etc/tmiscsi/autosecrets file
and add the secrets used by the initiators to log in. The /etc/tmiscsi/autosecrets file
contains one entry per target. Each entry has the following format:
target_name chap_name chap_secret
- If you are using ACLs to indicate which initiators can access
which LUNs, edit the /etc/tmiscsi/access_lists file
and add one entry per target. Each entry has the following format:
target_name|lun_name iSCSI_name, iSCSI_name,...
- If you are using CHAP authentication of the initiators, edit the /etc/tmiscsi/autosecrets file and add the secrets used by the initiators to log in. The /etc/tmiscsi/autosecrets file contains one entry per target. Each entry has the following format: