Bug 172487
Summary: | Difficulty with some iSCSI targets in iscsi_sfnet | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 4 | Reporter: | Andrew J Forgue <forgue> |
Component: | kernel | Assignee: | Mike Christie <mchristi> |
Status: | CLOSED ERRATA | QA Contact: | Brian Brock <bbrock> |
Severity: | low | Docs Contact: | |
Priority: | medium | ||
Version: | 4.0 | CC: | jbaron |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | RHSA-2006-0132 | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2006-03-07 20:38:00 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: | |||
Bug Depends On: | |||
Bug Blocks: | 168429 |
Description
Andrew J Forgue
2005-11-05 05:29:32 UTC
That code was removed becuase it was for a unsupported buggy target. However, our opcode code has a bug that triggers when targets send us bad commands. Could you try this sourceforge release and tell me if this fixes it for you http://www.cs.wisc.edu/~michaelc/linux-iscsi-rhel4.tar If it does I will try to get the fix into the next RHEL update. Until we get this fixed you can also just set IdleTimeout=0 ActiveTimeout=0 so the initiator will not send pings. Thanks for taking the time to fix this up for me.... Here's the output of the build: [forgue@mccoy linux-iscsi-rhel4]$ make Note: using kernel source from /lib/modules/2.6.9-22.0.1.EL.rootsmp/build containing kernel version 2.6.9-22.0.1.EL.rootsmp Note: using kernel config from /lib/modules/2.6.9-22.0.1.EL.rootsmp/build/.config make[1]: Entering directory `/usr/src/kernels/2.6.9-22.0.1.EL.root-smp-i686' CC [M] /home/f/forgue/linux-iscsi-rhel4/driver/iscsi-initiator.o CC [M] /home/f/forgue/linux-iscsi-rhel4/driver/iscsi-attr.o CC [M] /home/f/forgue/linux-iscsi-rhel4/driver/iscsi-session.o CC [M] /home/f/forgue/linux-iscsi-rhel4/driver/iscsi-task.o CC [M] /home/f/forgue/linux-iscsi-rhel4/driver/iscsi-portal.o CC [M] /home/f/forgue/linux-iscsi-rhel4/driver/iscsi-ioctl.o CC [M] /home/f/forgue/linux-iscsi-rhel4/driver/iscsi-network.o CC [M] /home/f/forgue/linux-iscsi-rhel4/driver/iscsi-recv-pdu.o /home/f/forgue/linux-iscsi-rhel4/driver/iscsi-recv-pdu.c: In function `iscsi_recv_pdu': /home/f/forgue/linux-iscsi-rhel4/driver/iscsi-recv-pdu.c:918: error: syntax error before '=' token /home/f/forgue/linux-iscsi-rhel4/driver/iscsi-recv-pdu.c:924: error: `op' undeclared (first use in this function) /home/f/forgue/linux-iscsi-rhel4/driver/iscsi-recv-pdu.c:924: error: (Each undeclared identifier is reported only once /home/f/forgue/linux-iscsi-rhel4/driver/iscsi-recv-pdu.c:924: error: for each function it appears in.) /home/f/forgue/linux-iscsi-rhel4/driver/iscsi-recv-pdu.c:929: error: `opcode' undeclared (first use in this function) make[2]: *** [/home/f/forgue/linux-iscsi-rhel4/driver/iscsi-recv-pdu.o] Error 1 make[1]: *** [_module_/home/f/forgue/linux-iscsi-rhel4/driver] Error 2 make[1]: Leaving directory `/usr/src/kernels/2.6.9-22.0.1.EL.root-smp-i686' make: *** [module] Error 2 Try this: http://www.cs.wisc.edu/~michaelc/linux-iscsi-test2.tar.gz Note that you need the sysfsutils-devel rpm installed. There are also some incompatibily tools so just do this: - tar -zxvf inux-iscsi-test2.tar.gz - cd linux-iscsi.work - make (DO NOT DO MAKE INSTALL!!!!!!) - if you have iscsi_sfnet and scsi_transport_iscsi loaded, rmmod them - While in the linux-iscsi.work dir do a insmod driver/scsi_transport_iscsi.ko insmod driver/iscsi_sfnet.ko - Then from linux-iscsi.work run Linux-i686/obj/iscsid Linux-i686 is the dir for my single proc Intel box, but you may have PPC or smp or some other arch. And tell me if this works for you. Yes, thank you. That seems to work, no more messages on the console about dropping sessions. I formatted and mounted a 150gb volume on the iSCSI target and did not have any errors in dmesg about dropping connections. I think this fixed it. ok, I think we may have missed the window for U3, but I will try since this is minor patch. If not U3 it will be in U4. Until then you can use disable the ping timeout like in comment 2. Thankd for testing. commited in -22.23 An advisory has been issued which should help the problem described in this bug report. This report is therefore being closed with a resolution of ERRATA. For more information on the solution and/or where to find the updated files, please follow the link below. You may reopen this bug report if the solution does not work for you. http://rhn.redhat.com/errata/RHSA-2006-0132.html |