This page provides some information on how to use IET on Debian. ( iSCSI Enterprise Target is known as iscsitarget under Debian). reminder, the target is the name of the "server" under iSCSI terminology (i.e The one that actually have the disk).

iscsitarget is available in Debian Lenny and newer

Quickstart

1. Install IET's package and module

IET is made of two packages :

2. Configure

You need to configure /etc/ietd.conf (here's a simple test page).

3. Restart the daemon

Building iscsitarget-module : iscsi_trgt

If you need, here's how to compile the kernel module using module-assistant (which deserves its name).

iscsitarget 0. + kernel 2.6.23

As described in bug 449237 , the iscsitarget-module_0.4.15-5 won't compile on kernel 2.6.23. Until the bug is fixed, you can compile by running :

Online administration / Dynamic configuration

Adding a target / LUN

First, Let's add a Target.

[id] must be unused. You can get a list of the currently used Target IDs by: cat /proc/net/iet/session

Then add a LUN to a pre-existing target.

[id] must be an already existing Target ID (listed in /proc/net/iet/session)

refer to the manpage on how to disconnect a connexion, change the settings or remove a LUN or a target.

Adding a user

First, create a user for "discovery" :

Then, create a user for "iqn.foo.bar:test2" :

refer to the manpage on how to "delete" a user.

FAQ

How to share an ISO file with Windows ?
When should I use "fileio" vs "blockio" ?

more FAQs on http://iscsitarget.sourceforge.net/wiki/index.php/FrequentlyAskedQuestions.

See also