["iSCSI"] > iSCSI/DebianIscsitarget


Debian as an iSCSI Target

Remember, the target is the "server" (It's the one that actually have the disk).

Quickstart

1. Install the package an module

You will need to install iscsitarget and iscsitarget-module (currently, you need to [#iscsitarget-module build the iscsitarget-module]).

2. Configure

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

3. Restart the daemon

?Anchor(iscsitarget-module)

Building iscsitarget-module

Due to bug 448195 , it's a little bit more complicated than it should be :

apt-get install iscsitarget iscsitarget-source wget
m-a prepare
m-a update
m-a clean iscsitarget 
m-a unpack iscsitarget 
cd /usr/src/modules/iscsitarget/
wget -O - 'http://bugs.debian.org/cgi-bin/bugreport.cgi?msg=20;filename=module-name.diff;att=1;bug=448195' | patch -p1 || exit
m-a a-i iscsitarget --not-unpack

FAQ

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

See also