A.10 Configuring the iSCSI Target Device

  1. Continuing in your SSH session with the virtual machine, launch YaST2 by entering

  2. In YaST2, go to Network Services > iSCSI Target.

    YaST opens to the iSCSI Target Overview page with the Service tab selected.

  3. Under Service Start, select When booting.

    This option is needed to automatically start the Linux iSCSI Initiator service on subsequent server restarts.

  4. Press Alt+G to go to the Global section.

  5. In the Global section, leave the target device open for anonymous connections by selecting No Authentication.

    In a production environment, you can set credentials to make the connection more secure.

  6. Press Alt+T to go to the Target section.

  7. In the Target section, press Alt+A to select Add.

    An example iSCSI target device (iqn.2001-04.com.example:storage.disk2.sys1.xyz) appears in the list. This is not your device. Each iSCSI target device has a unique IQN (iSCSI qualified name).

  8. Press Alt+A to add a new iSCSI target.

  9. Specify the LUN settings for the iSCSI target device:

    1. Specify the LUN value. The default is 0.

    2. Specify Type as fileio. This is the default.

    3. Specify the Path as /dev/sdf (or the path value you specified in the EBS setup).

    4. Select OK to continue.

  10. Select Next, select OK, then select Yes when you are prompted to restart the iSCSI Target service with the following command:

    rciscsitarget restart
  11. Select Quit to exit YaST.

  12. Use either of the following methods to view the IQN for the iSCSI device you created:

    • Launch YaST2, and go to Network Services > iSCSI Target.

    • View the device entry in the /etc/ietd.conf file by using the cat command.

    The target device’s IQN has a fixed syntax that looks like the following:

    iqn.yyyy-mm.<reversed domain name>:unique_id

  13. (Optional) Modify the IQN by opening the /etc/ietdf.conf file in a vi text editor to specify a unique_id value that satisfies your company naming conventions. The name must be globally unique within your network.

    For example:


  14. Record the IQN of the target device.

    You need the IQN later to connect the target device to the Windows server.

  15. Exit the SSH session.

  16. Continue with Section A.11, Configuring the iSCSI Initiator Software on a Windows Server.