From: Douglas Gilbert <dougg@torque.net>
To: Kilian CAVALOTTI <kilian.cavalotti@lip6.fr>
Cc: linux-scsi@vger.kernel.org
Subject: Re: aic7xxx support for >2TB volumes?
Date: Fri, 18 Nov 2005 18:59:21 +1000 [thread overview]
Message-ID: <437D97E9.8020709@torque.net> (raw)
In-Reply-To: <200511161208.02374.kilian.cavalotti@lip6.fr>
Kilian CAVALOTTI wrote:
> Hi all,
>
> After some searching through newgroups and mailing lists, I haven't really
> found an answer to the question: is the aic7xxx driver capable of supporting
> larger than 2 terabytes volumes? I have read some success reports, but some
> failed attempts too...
>
> I actually have an external RAID array, hosting a 6TB virtual disk, plugged on
> an Adaptec 39160 SCSI card. I'm using a 2.6.14 kernel, with CONFIG_LBD=y,
> and thus, the aic7xxx (ver 7.0) module.
>
> My dmesg show the following:
>
> scsi1 : Adaptec AIC7XXX EISA/VLB/PCI SCSI HBA DRIVER, Rev 7.0
> <Adaptec 3960D Ultra160 SCSI adapter>
> aic7899: Ultra160 Wide Channel A, SCSI Id=7, 32/253 SCBs
> Vendor: transtec Model: T6100S16R1-D Rev: 342J
> Type: Direct-Access ANSI SCSI revision: 05
> scsi1:A:0:0: Tagged Queuing enabled. Depth 32
> target1:0:0: Beginning Domain Validation
> target1:0:0: wide asynchronous.
> target1:0:0: FAST-80 WIDE SCSI 160.0 MB/s DT (12.5 ns, offset 127)
> target1:0:0: Ending Domain Validation
> sdb : very big device. try to use READ CAPACITY(16).
> sdb : READ CAPACITY(16) failed.
> sdb : status=0, message=00, host=5, driver=00
> sdb : use 0xffffffff as device size
> SCSI device sdb: 4294967296 512-byte hdwr sectors (2199023 MB)
> SCSI device sdb: drive cache: write back
> sdb : very big device. try to use READ CAPACITY(16).
> sdb : READ CAPACITY(16) failed.
> sdb : status=0, message=00, host=5, driver=00
> sdb : use 0xffffffff as device size
> SCSI device sdb: 4294967296 512-byte hdwr sectors (2199023 MB)
> SCSI device sdb: drive cache: write back
> sdb: unknown partition table
> Attached scsi disk sdb at scsi1, channel 0, id 0, lun 0
> Attached scsi generic sg2 at scsi1, channel 0, id 0, lun 0, type 0
>
> Whatever the real size of the volume, it always give a "4294967296 512-byte
> hdwr sectors (2199023 MB)" device...
>
> Is there a way to support a >2TB volume on this SCSI controler? I know I could
> split my volume in smaller ones and use LVM to reassemble them, but I'd like
> to avoid adding overhead to the storage stack, and keep it the simplest.
>From the above, it seems the problem is within the
"sdb" device. If it responds to a READ CAPACITY (10)
with a last lba of 0xffffffff (i.e. (2**32 - 1)) then
according to SBC-2 and SBC-3 that is flagging the
application client (i.e. the sd driver) to try a
READ CAPACITY (16) command. The larger READ CAPACITY (16)
has an eight byte (64 bit) last lba field.
>From the log output above, /dev/sdb seems to reject
the READ CAPACITY (16) command. I think that it is
unlikely that the aic7xxx driver is filtering out that
particular command (why should it?) and a simple grep
in that driver for READ_CAP finds no matches.
As an extra check of the linux sd driver you could fetch
sg3_utils, build it and try:
sg_readcap -16 /dev/sdb
If that fails than I think you need to speak to the vendor
of /dev/sdb . Perhaps there is newer firmware.
Doug Gilbert
next prev parent reply other threads:[~2005-11-18 8:58 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-11-16 11:08 aic7xxx support for >2TB volumes? Kilian CAVALOTTI
2005-11-18 8:59 ` Douglas Gilbert [this message]
2005-11-18 12:55 ` Kilian CAVALOTTI
2005-11-18 15:01 ` Brian King
2005-11-18 23:05 ` Douglas Gilbert
2005-11-19 1:32 ` Douglas Gilbert
2005-11-19 14:57 ` Kilian CAVALOTTI
2005-11-20 1:33 ` Douglas Gilbert
2005-11-21 10:40 ` Kilian CAVALOTTI
2005-11-19 14:37 ` Kilian CAVALOTTI
2005-11-21 4:53 ` Brian King
2005-11-21 10:09 ` Kilian CAVALOTTI
2005-11-21 14:48 ` Brian King
2005-11-21 15:09 ` Kilian CAVALOTTI
2005-11-21 15:27 ` Brian King
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=437D97E9.8020709@torque.net \
--to=dougg@torque.net \
--cc=kilian.cavalotti@lip6.fr \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.