This wasnt incredibly difficult to figure out, but if you have a Debian etch system with iscsi-target compiled from source (as I regularly do) getting both open-iscsi and iscsi-target to play nice together takes a small amount of fiddling.
First of all, install open-iscsi
Now compile and install iscsi-target
cd iscsitarget-0.4.16
make
make install
And now the important bits. iscsi-target needs to be added to the sysv init scripts in the correct places, which a source install obviously doesnt do:
That will make it start just before open-iscsi and stop just after it. Now configure your open-iscsi conf file to auto login to iscsi targets that have their connection mode set to automatic:
sed -i ’s/^node.startup = manual$/# node.startup = manual/’ /etc/iscsi/iscsid.conf
And thats it! Any iscsi target that you log into with the “automatic” option should be correctly connected to during bootup
0 Responses to “iscsi-target, open-iscsi and Debian”