[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-users] trouble with Linux iscsi initiator with Xen compiled from source


  • To: Xen users mailing list <xen-users@xxxxxxxxxxxxxxxxxxx>
  • From: Ray Barnes <tical.net@xxxxxxxxx>
  • Date: Tue, 29 Jun 2010 01:40:18 -0400
  • Delivery-date: Mon, 28 Jun 2010 22:42:04 -0700
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=uih5y1dJ+JUmbm/gaf15UqiXOCrKpXGe2xRnFSlZEbc23OcR7lISsO7VelEn1SOkXO CItB0k4aIIIjSYefGAlzhM43/meZElvOrS9Gs+Bk+VVbw/MnRAMNZxeE+O0Rm2nZZzr8 9K/aeq6yH9rqLBF0q5ewFn5/6PyFnyY2zqKWs=
  • List-id: Xen user discussion <xen-users.lists.xensource.com>

Hi all.  I've been having a heck of a time lately with the Linux iscsi initiator.  This all started when I tried to login to an iscsi target on a Solaris box, using my CentOS 5.5 machine running a compiled-from-source version of Xen 3.2.2.  As soon as I logged into the target, the kernel would panic with a bug in the iscsi code.  Then I tried compiling 3.4.3 from source - same result.  Specifically, the kernel panic from 3.4.3 can be seen at http://www.suicidedoorz.com/iscsipanic.jpg
 
Note that I was previously using the "iscsi-initiator-utils" package that comes with CentOS, and that I've never had a problem using that package with custom compiled versions of Xen, i.e. 3.2.2.  However, after some research, it seems that the Linux iscsi initiator package wants you to compile it against the specific kernel version that you're running.  I'm not sure if that means major versions or minor versions, but either way, I presumed that I need to compile the iscsi tools after installing and booting up on the dom0 kernel.  So I started fresh with CentOS 5.5 and compiled the latest 4.0.1-rc2 from source, installed it and a custom kernel, and booted on it.  Then I attempted to compile the source RPM for iscsi-initiator-utils and install it - it went smoothly but it simply didn't work.  The error recorded in /var/log/messages was:
 
Jun 23 12:53:18 vpsbox7 iscsid: iSCSI logger with pid=12171 started!
Jun 23 12:53:18 vpsbox7 iscsid: Missing or Invalid version from /sys/module/scsi_transport_i
scsi/version. Make sure a up to date scsi_transport_iscsi module is loaded and a up todate v
ersion of iscsid is running. Exiting...
At first it would seem that perhaps I didn't have all the goods compiled into the kernel.  After double-checking, I see the only two (seemlingly)  necessary drivers are enabled:
 
CONFIG_SCSI_TGT=y
CONFIG_SCSI_ISCSI_ATTRS=y
 
So I'm not sure why exactly that doesn't work.  Finally I removed those newly compiled RPMs and tried compiling version 3.6.3 of the iscsi tools from source.  I was greeted with the errors indicated below.  Any idea where I might be going wrong here? 
 
TIA!
-Ray
 
 
 
driver/iscsi.c:15925: error: âiscsi_hba_tâ has no member named âsession_lockâ
driver/iscsi.c: At top level:
driver/iscsi.c:15948: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â before âiscsi_driver_templateâ
driver/iscsi.c:15995: warning: data definition has no type or storage class
driver/iscsi.c:15998: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â before âiscsi_initâ
driver/iscsi.c:16059: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â before âiscsi_cleanupâ
driver/iscsi.c:16095: warning: data definition has no type or storage class
driver/iscsi.c:16095: warning: parameter names (without types) in function declaration
driver/iscsi.c:16096: warning: data definition has no type or storage class
driver/iscsi.c:16096: warning: parameter names (without types) in function declaration
make: *** [/root/build/linux-iscsi-3.6.3/Linux-i686/kobj/driver/iscsi.o] Error 1
_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.