This script add automatic login on iscsi target.
Created attachment 87776 [details] new iscsid script
NAK on your variation of it. Please post a seperate init script that can do the logins, and only for cases where the db entry says automatic instead of manual.
> Please post a seperate init script that can do the logins, and only for cases > where the db entry says automatic instead of manual. If i'm set node entry to automatic login on target it's not login. I'm try write about this in openiscsi group: http://groups.google.com/group/open-iscsi/browse_thread/thread/fcf917fd2567e637/d71928cb01f0e116?q=auto+login&rnum=1#d71928cb01f0e116 But i'm no get right answer. I'm know this is ugly hack. But it's working. :)
All I want is a init.d script that does the logins on it's own, and none of the rest of the loading stuff.
(In reply to comment #4) > All I want is a init.d script that does the logins on it's own, and none of the > rest of the loading stuff. > Huh i'm forget about this. %) Check attach. I'm rewrite old ebuild for support new version open-iscsi 1.1-619 and separate loading daemon and login at ISCSI Target.
Created attachment 91353 [details] iscsi-login init.d script
the ebuild that Anatoly last posted works for me! the 1.0* doesn't even compile on 2.6.17 kernels anymore-
The current open-iscsi iscsiadm (754) have built in support for autologin. I don't think we need for a separate initd script any more. Neil
(In reply to comment #8) > The current open-iscsi iscsiadm (754) have built in support for autologin. > > I don't think we need for a separate initd script any more. If it's work we not need this.
(In reply to comment #8) > The current open-iscsi iscsiadm (754) have built in support for autologin. > > I don't think we need for a separate initd script any more. But the iscsid init script never invokes iscsiadm. And I don't believe in magic anymore. ;o)
Created attachment 117728 [details] My version of /etc/init.d/iscsid This init script does automatic login in case it's set to automatic and mounts any disks by label that are found in /etc/fstab.