From: Douglas Gilbert <dougg@torque.net>
To: linux-kernel@guzu.net
Cc: linux-scsi@vger.kernel.org
Subject: Re: [BUG] Fusion MPT 2.6.8 driver and multi LUN device
Date: Tue, 01 Mar 2005 20:47:41 +1000 [thread overview]
Message-ID: <4224484D.5090900@torque.net> (raw)
In-Reply-To: <42243E15.5070502@guzu.net>
Manu wrote:
>
> Under a fresh Mandrake 10.1 with a 2.6.8 kernel, the Fusion MPT driver
> do recognize the HP tape autoloader. The autoloader is composed of tape
> drive (on LUN 0) and the changer (on LUN 1).
> The message comes from scsi_scan.c :
> printk(KERN_WARNING "scsi: %s lun%d has a LUN larger"
> " than allowed by the host adapter\n",
> devname, lun);
>
> Playing a bit with printk it looks like the num_luns is well computed
> (the value is 2), but the 2 LUN values seems to be miss-aligned.
> When displaying the 8 bytes raw buffer (through lunp) in the loop :
> 00 00 00 00 00 00 00 00
> 00 00 01 00 00 00 00 00
>
> I think the second buffer should be :
> 00 01 00 00 00 00 00 00
>
> Which, when computed, gives 1 instead of 16777216 (0x1000000).
>
> The autoloader works like a charm under the 2.4.27 kernel provided with
> the Mandrake 10.1.
>
> - Emmanuel Varagnat
>
> PS: the 2 harddrives in RAID1 are well working, even with the 2.6.8 kernel.
Perhaps you could try the sg_luns utility from the
sg3_utils package ( http://www.torque.net/sg )
with either the 2.4 or 2.6 kernel. It should be sent
to lun 0 (i.e. the tape drive), for example:
sg_luns /dev/st0
[I'm not sure whether st devices support the SG_IO
ioctl in lk 2.6.8; they do now. If that fails use the
sg_map utility to find the corresponding sg device and
apply sg_luns to that sg device.]
If the sg_luns response shows an offset result for the
tape changer (lun 1), then you should be looking to see
if HP has new firmware for that tape autoloader.
The difference between lk 2.4 and lk 2.6 is that 2.6
uses the REPORT LUNS SCSI command whereas 2.4 just polled
the possible luns (with INQUIRY).
Doug Gilbert
next prev parent reply other threads:[~2005-03-01 10:46 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-03-01 10:04 [BUG] Fusion MPT 2.6.8 driver and multi LUN device Manu
2005-03-01 10:47 ` Douglas Gilbert [this message]
2005-03-01 13:04 ` Manu
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4224484D.5090900@torque.net \
--to=dougg@torque.net \
--cc=linux-kernel@guzu.net \
--cc=linux-scsi@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox