After installing open-iscsi and following the instructions at http://en.gentoo-wiki.com/wiki/ISCSI I am able to mount and use my target drives. If I try to restart the iscsid service all targets are unmounted, logged out and then the init script fails with iscsiadm: No records found! Reproducible: Always Steps to Reproduce: 1. install & configure open-iscsi 2. discover targets 3. /etc/init.d/iscsid restart Actual Results: you must manually login to targets with iscsiadm after each reboot or service restart Expected Results: the devices should be made available for mounting when the service restarts. I was able to fix this on my system by altering the starttargets() function in /etc/init.d/iscsid changing: /usr/sbin/iscsiadm -m node --loginall=automatic to /usr/sbin/iscsiadm -m node --loginall=all
Wouldn't this log you into every single node available on your network? Not necessarily something people would want (like myself).
The current state of the configuration file, according to the man page, would result in it logging into the ones that are marked for automatic login. While the change you want to make would result in every node being logged in, which is definitely not something that we would want to make the default. I recommend setting the ones you want to automatically login to as automatic.