Re: Bug report: open-iscsi hangs system
Hi! I don't know if that helps, but for an old version of open-iscsi I also saw the message iscsid: semop up failed 22, but it did no harm to the system. Example: Nov 13 10:11:46 testhost iscsid: iSCSI logger with pid=8186 started! Nov 13 10:11:46 testhost iscsid: transport class version 2.0-724. iscsid version 2.0-868 Nov 13 10:11:46 testhost iscsid: Can not bind IPC socket Nov 13 10:17:03 testhost kernel: scsi3 : iSCSI Initiator over TCP/IP Nov 13 10:17:03 testhost iscsid: semop up failed 22 Nov 13 10:17:03 testhost kernel: Vendor: HPModel: HSV200 Rev: 6100 Nov 13 10:17:03 testhost kernel: Type: Direct-Access ANSI SCSI revision: 05 Nov 13 10:17:03 testhost kernel: 3:0:0:0: Attached scsi generic sg12 type 0 Nov 13 10:17:04 testhost kernel: scsi4 : iSCSI Initiator over TCP/IP Nov 13 10:17:04 testhost iscsid: semop up failed 22 [...] Regards, Ulrich On 1 Mar 2009 at 10:40, Mike Christie wrote: Albert Pauw wrote: Just by coincidence I came across the following behaviour: Setup: Fedora 9, fully patches OS with latest git version of open-iscsi, Is this the last commit? commit 8b0984bf3c2670871af1983bb1495b4495c3f869 Author: Mike Christie micha...@cs.wisc.edu Date: Thu Feb 26 09:34:11 2009 -0600 docs: more README fixes kernel 2.6.27.15-78.2.23.fc9.i686. Target is tgt, latest git version. Normally I am able to log into the tgt target, no problems. This time I started up tgt, but had forgotton to define a target (just the daemon running), I checked that the iscsi port 3260 was open. Normally I run a little script which defines the target for the tgt daemon, this time I forgot. So no actual target defined. When I tried to log into the target, open-iscsi hangs, and in fact it freezes the whole system. I just tried it here and could not replicate it. Could you run your test with this patch applied to the open-iscsi git code? Could you run iscsid with iscsid -d 8 -f and send that output, and then could you make the iscsi modules with debugging make DEBUG_ISCSI=1 make DEBUG_ISCSI=1 install If the iscsi port was closed, ie not even the daemon started, open- iscsi hangs, but no freezes. What do you mean by hangs? You run iscsiadm -m -l and that never completes? The timeout for this might a little long now. It could be around 2 minutes. --~--~-~--~~~---~--~~ 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 open-iscsi+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/open-iscsi -~--~~~~--~~--~--~---
Bug report: open-iscsi hangs system
Just by coincidence I came across the following behaviour: Setup: Fedora 9, fully patches OS with latest git version of open-iscsi, kernel 2.6.27.15-78.2.23.fc9.i686. Target is tgt, latest git version. Normally I am able to log into the tgt target, no problems. This time I started up tgt, but had forgotton to define a target (just the daemon running), I checked that the iscsi port 3260 was open. Normally I run a little script which defines the target for the tgt daemon, this time I forgot. So no actual target defined. When I tried to log into the target, open-iscsi hangs, and in fact it freezes the whole system. If the iscsi port was closed, ie not even the daemon started, open- iscsi hangs, but no freezes. I only see the following messages in my /var/log/messages: Mar 1 15:27:02 orange iscsid: semop up failed 22 --~--~-~--~~~---~--~~ 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 open-iscsi+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/open-iscsi -~--~~~~--~~--~--~---
Re: Bug report: open-iscsi hangs system
Albert Pauw wrote: Just by coincidence I came across the following behaviour: Setup: Fedora 9, fully patches OS with latest git version of open-iscsi, Is this the last commit? commit 8b0984bf3c2670871af1983bb1495b4495c3f869 Author: Mike Christie micha...@cs.wisc.edu Date: Thu Feb 26 09:34:11 2009 -0600 docs: more README fixes kernel 2.6.27.15-78.2.23.fc9.i686. Target is tgt, latest git version. Normally I am able to log into the tgt target, no problems. This time I started up tgt, but had forgotton to define a target (just the daemon running), I checked that the iscsi port 3260 was open. Normally I run a little script which defines the target for the tgt daemon, this time I forgot. So no actual target defined. When I tried to log into the target, open-iscsi hangs, and in fact it freezes the whole system. I just tried it here and could not replicate it. Could you run your test with this patch applied to the open-iscsi git code? Could you run iscsid with iscsid -d 8 -f and send that output, and then could you make the iscsi modules with debugging make DEBUG_ISCSI=1 make DEBUG_ISCSI=1 install If the iscsi port was closed, ie not even the daemon started, open- iscsi hangs, but no freezes. What do you mean by hangs? You run iscsiadm -m -l and that never completes? The timeout for this might a little long now. It could be around 2 minutes. --~--~-~--~~~---~--~~ 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 open-iscsi+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/open-iscsi -~--~~~~--~~--~--~--- diff --git a/kernel/libiscsi.c b/kernel/libiscsi.c index 457ecfe..face5f0 100644 --- a/kernel/libiscsi.c +++ b/kernel/libiscsi.c @@ -1567,9 +1567,6 @@ static void fail_all_commands(struct iscsi_conn *conn, unsigned lun, { struct iscsi_task *task, *tmp; - if (conn-task (conn-task-sc-device-lun == lun || lun == -1)) - conn-task = NULL; - /* flush pending */ list_for_each_entry_safe(task, tmp, conn-xmitqueue, running) { if (lun == task-sc-device-lun || lun == -1) {
Re: Bug report: open-iscsi hangs system
Mike Christie wrote: Albert Pauw wrote: Just by coincidence I came across the following behaviour: Setup: Fedora 9, fully patches OS with latest git version of open-iscsi, Is this the last commit? commit 8b0984bf3c2670871af1983bb1495b4495c3f869 Author: Mike Christie micha...@cs.wisc.edu Date: Thu Feb 26 09:34:11 2009 -0600 docs: more README fixes kernel 2.6.27.15-78.2.23.fc9.i686. Could you also check if you have multiple iscsi tools installed? whereis iscsiadm whereis iscsiad --~--~-~--~~~---~--~~ 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 open-iscsi+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/open-iscsi -~--~~~~--~~--~--~---