You are not logged in.

#1 2012-09-05 00:41:47

scarypezsanta
Member
Registered: 2009-06-04
Posts: 25

iSCSI initiator not automatically logging into targets at boot time

I have added open-iscsi to my daemons list:

DAEMONS=(syslog-ng network open-iscsi crond sshd open-vm-tools)

and it starts just fine. The only problem is that it isn't logging into the targets which I previously added. I can log onto the discovered targets by simply running:

iscsiadm -m node -L all

so I know they are saved correctly. I took a look at the default open-iscsi daemon file and altered one line:

#$ISCSIADM -m discovery -t sendtargets -p $SERVER $ISCSIADM_EXTRAARGS > /dev/null
$ISCSIADM -m discovery -t sendtargets -p $SERVER $ISCSIADM_EXTRAARGS > /home/ed/iscsi_startup

so that I could see the output when it tries to log into the targets, but there is no output. It seems that the if-statement:

if [ -n "$SERVER" ]; then 

is never being entered, and $SERVER has no value.

Am I missing a step where I should assign a value to $SERVER or something? I could just edit the DAEMON file to always log onto the portals rather than using the if-statement but that seemes like a pretty crude fix.

Offline

Board footer

Powered by FluxBB