WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-users

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

To: Xen users mailing list <xen-users@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-users] trouble with Linux iscsi initiator with Xen compiled from source
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
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:date:message-id :subject:from:to:content-type; bh=64SOHUZDqMFJFZg0xd6nZp6JG7BA5pAgGqwbVwneyQE=; b=Awgvq9REvNPw2CA2hHxK1Hfn6gx4xpG1LJniYqSJSWJxkZ9CTUh7g7+Mqk466krnLu GK32NBOfIabTBUXxa7OOyb0LCllKKB5LSURDNG7DNGZQp43AlLzsfChz4sy2kM1d3eTy 9W3vM7CWlvoIHgmJ3iYmEUX7phzKnZQ7LmRu8=
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=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
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
<Prev in Thread] Current Thread [Next in Thread>