Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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
hostname:~#

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

3 Answers 3

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

/etc/iscsi/nodes/*/*/default

vs

/etc/iscsi/nodes/*/*

or, if you have multiple interfaces configured:

/etc/iscsi/nodes/*/*/*

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

 
discard

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.