You are not logged in.
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 allso 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_startupso 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