LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 09-26-2007, 11:41 AM   #1
tylernt
LQ Newbie
 
Registered: Sep 2007
Posts: 15

Rep: Reputation: 2
libiscsi bug in fresh install of Slack 12?


I've been using Slack for probably 5 or 6 years now, run it on all of our main servers at work. However I just found what may be a bug in Slackware 12?

1. Do a 'Full' install of Slack 12
2. Reboot, login as root, and run 'modprobe libiscsi'
3. Observe 'FATAL: Error inserting libiscsi (/lib/modules/2.6.21.5-smp/kernel/drivers/scsi/libiscsi.ko): Invalid module format' error

dmesg reports 'libiscsi: exports duplicate symbol iscsi_conn_get_param (owned by kernel)'.

I tried installing the open-iscsi tarball, but that only produced more errors when I try to modprobe one of the iscsi modules.

Please help?

Last edited by tylernt; 09-26-2007 at 01:16 PM.
 
Old 09-26-2007, 12:13 PM   #2
H_TeXMeX_H
Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269
What kernel are you running ? is it the 2.5.21.5-smp ? Run 'uname -r' just to make sure.
 
Old 09-26-2007, 12:23 PM   #3
tylernt
LQ Newbie
 
Registered: Sep 2007
Posts: 15

Original Poster
Rep: Reputation: 2
Thanks for the reply H_TeXMeX_H. Yes, it's 2.6.21.5-smp. I have a single-CPU system though, if that matters.
 
Old 09-26-2007, 01:53 PM   #4
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 5,334

Rep: Reputation: Disabled
Quote:
Originally Posted by tylernt View Post
I've been using Slack for probably 5 or 6 years now, run it on all of our main servers at work. However I just found what may be a bug in Slackware 12?

1. Do a 'Full' install of Slack 12
2. Reboot, login as root, and run 'modprobe libiscsi'
3. Observe 'FATAL: Error inserting libiscsi (/lib/modules/2.6.21.5-smp/kernel/drivers/scsi/libiscsi.ko): Invalid module format' error

dmesg reports 'libiscsi: exports duplicate symbol iscsi_conn_get_param (owned by kernel)'
Most likely you are running a Slackware huge(-smp) kernel.
The "huge" kernels have the iscsi drivers compiled-in and loading the module will produce that error. I.e. the module is not needed in this case.

If you switch to a generic(-smp) kernel this error message should go away.

Eric
 
Old 09-26-2007, 02:55 PM   #5
tylernt
LQ Newbie
 
Registered: Sep 2007
Posts: 15

Original Poster
Rep: Reputation: 2
Quote:
Originally Posted by Alien Bob View Post
Most likely you are running a Slackware huge(-smp) kernel.
The "huge" kernels have the iscsi drivers compiled-in and loading the module will produce that error. I.e. the module is not needed in this case.
Ah, thank you. Yes, it appears that the hugesmp.s kernel is the one that is installed by default.

I guess open-iscsi doesn't like to be compiled into the kernel, as iscsid complains about a 'Bad or missing module version from /sys/module/scsi_transport_iscsi/version' in the syslog. Looks like it may be a bug in the iscsid code (http://groups.google.at/group/open-i...647873434f232b - "So for example if we put the version info in the iscsi netlink msg, then that would also fix the module version not showing up when scsi_transport_iscsi is built into the kernel.") so it appears my choices are to either use the generic kernel which has iscsi as a module, hack the iscsid code, or wait for a fixed release from the open-iscsi folks.

Thanks again!
 
Old 09-27-2007, 01:35 PM   #6
tylernt
LQ Newbie
 
Registered: Sep 2007
Posts: 15

Original Poster
Rep: Reputation: 2
Thumbs up

Interesting, the non-smp generic kernel hangs on boot in VMWare (single-proc config). Freezes at 'Serial: 8250/16550 driver...' whether VMWare has a virtual serial port configured or not.

The generic-smp kernel seems to work though, after I did a 'mkinitrd -m ext3' and pointed LILO to the initrd, which is exactly what I want. Now I just have to add the iscsi modules to the initrd and tweak the init script in the initrd to connect to the iscsi target and mount root on it.
 
Old 09-27-2007, 03:34 PM   #7
tylernt
LQ Newbie
 
Registered: Sep 2007
Posts: 15

Original Poster
Rep: Reputation: 2
Well shoot it looks like the scsi_transport_iscsi module is built into the generic kernel as well, so I will have to compile a custom kernel without it. I wish open-iscsi would fix their stuff or Slackware would compile all open-iscsi stuff as modules in the default kernels!
 
Old 09-27-2007, 03:39 PM   #8
H_TeXMeX_H
Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269
But what's wrong with it being built-in ? Does it cause some type of problem ? Will your computer not boot ? Does it freeze ?
 
Old 09-27-2007, 03:48 PM   #9
tylernt
LQ Newbie
 
Registered: Sep 2007
Posts: 15

Original Poster
Rep: Reputation: 2
The problem with open-iscsi being built-in is the userspace tools (iscsid, iscsiadm, iscsistart) do not work. They try to read the module version from /sys/module/scsi_transport_iscsi/version which doesn't exist because they aren't loadable modules.

That's not Slackware's fault, of course. It's a bug the open-iscsi folks need to fix, but in the meantime, it would be nice if Slackware shipped with a kernel that had them as modules.
 
Old 12-23-2007, 07:14 PM   #10
Gazzonyx
LQ Newbie
 
Registered: Oct 2006
Location: Kutztown, PA
Distribution: Slackware 11.0 - hand compiled 2.4 kernel
Posts: 12

Rep: Reputation: 0
Thanks for posting this - I've been banging my head against my desk for about a day now on this very subject; iscsi is awesome, but it seems like the development is always so far behind the kernel team. Alrighty, time to compile on my old 900MHz Duron again! Wahoo! I'm going to go grab a caffeinated beverage.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Setting up a fresh Slack install Slack Noob Slackware - Installation 6 06-08-2007 11:38 AM
Slack 10 - No Sound After Fresh Install IamI Slackware 8 06-16-2005 09:30 PM
fresh slack 10.1 install (2.4.29) on a D915GEV MB coocoopuff Slackware 1 05-30-2005 01:41 PM
no network after fresh Slack 9 install major.tom Slackware 4 08-04-2003 05:01 PM
Can't boot fresh slack-9b install. gusgorman Slackware 8 02-21-2003 08:27 PM


All times are GMT -5. The time now is 07:33 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration