Hello Rudy, 


 If you run  ps -ax | grep iscsid after you stop open-iscsi I suspect you'll
find that the daemon is still running.   


[EMAIL PROTECTED]:~# ps ax | grep iscsid

 5651 ?        Ss     0:07 /sbin/iscsid

 5652 ?        S<Ls   0:00 /sbin/iscsid

15984 pts/2    S+     0:00 grep iscsid



 You'll see that there are multiple iscsid running.    The start-stop-daemon
in debian doesn't handle the multiple PIDs.   


My really poor fix is to add a 'killall -1 iscsid' to the
/etc/init.d/open-iscsi script. 


stop() {


        log_daemon_msg "Stopping iSCSI initiator service"

        start-stop-daemon --stop --quiet --pidfile $PIDFILE --exec $DAEMON

        rm -f $PIDFILE

        killall -1 iscsid


        modprobe -r ib_iser 2>/dev/null

        if [ "$?" -ne "0" -a "$?" -ne "1" ]; then



 I know I'll probably get flamed for such a poor fix but it works for me.


 I do recall that someone posted a suggested proper fix for debian but it
didn't get added.  





-----Original Message-----
From: open-iscsi@googlegroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Rudy Gevaert
Sent: Monday, March 31, 2008 8:42 AM
To: open-iscsi@googlegroups.com
Subject: interaction with udev





I have installed 2.0.865 on a Debian Etch system.

I can use my targets withyout any problem.


However when I stop open-iscsi my devices (/dev/sdb e.g.) aren't removed 

from the system.  I can still access them without any problems.


I can remove them with

scsiadd -r <host> <channel> <target> <lun>


But then restarting open-iscsi doesn't bring them back.


An other problem I have is that when I start open-iscsi devices are 

added by udev under  /dev/disk/by-path/.

When stopping open-iscsi links under /dev/disk/by-path aren't removed.

I think that is because the raw devices are still available.


Anybody seen this problem?  Or thought about it?


Thanks in advance,




You received this message because you are subscribed to the Google Groups 
"open-iscsi" group.
To post to this group, send email to open-iscsi@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/open-iscsi

Reply via email to