Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

We have a Debian Lenny server with open-iscsi that's configured to log into a target automatically:

hostname:~# grep \\.startup /etc/iscsi/iscsid.conf
node.startup = automatic
hostname:~# grep \\.startup /etc/iscsi/nodes/iqn..../the.correct.ip.address\,port
node.startup = automatic
node.conn[0].startup = automatic

If I issue a restart of open-iscsi via init.d, it works fine. But if I reboot the machine, iscsi starts, but does not even search for targets. I have to manually restart it before it works.

Any ideas how to make it find the target on boot?

share|improve this question

The problem is the /etc/network/if-up.d/open-iscsi script is looking for the iscsi node config files in the wrong place.




or, if you have multiple interfaces configured:


Edit that file accordingly and the interface should be able to be brought up on networking start.

share|improve this answer

Could it be because the iSCSI service is coming up before the networking services have come online? i.e. when iSCSI loads there is no network connection for it to scan?

share|improve this answer
Nope, it starts after the network daemon. As far as I know, it should search for targets anyway. If it'd search, but not find anything, that's one thing, but it does not even try searching, that's my problem. – Creshal Mar 21 '11 at 13:06

Assuming you use a static network configuration, try change your interface declaration (in /etc/network/interfaces) from allow-hotplug to auto

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.