Subject: Re: twa(4) vs. nonzero LUN
To: Jeff Rizzo <riz@tastylime.net>
From: Bill Studenmund <wrstuden@netbsd.org>
List: tech-kern
Date: 02/17/2007 11:03:56
--W/nzBZO5zC0uMSeA
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Fri, Feb 16, 2007 at 02:37:54PM -0800, Jeff Rizzo wrote:
> I'm currently working on getting a machine with a 3ware 9550SX and 16
> 750G drives ready for production use.  One of the stumbling blocks I'm
> coming up against is that our twa(4) driver doesn't seem to support the
> controller exporting disks with a LUN !=3D 0 - which means that 3ware's
> "boot volume" is useless to me.    What I'd _like_ to do is create a
> 14-disk RAID5, and create a 40G boot volume so that I don't have to deal
> with a boot volume that's too big for an MBR.  If I do this, however,
> twa(4) only reports the 40G drive, but not the big one, because the
> controller exports it as unit 0, lun 1.
>=20
> A quick look at the twa(4) driver and ld_twa.c lead me to believe that
> the lun issue is never really addressed - it also convinces me that
> storage drivers really aren't my thing.  :)  I would greatly appreciate
> it if Someone In The Know would glance at it and at least tell me what
> needs to be done.  I've filed PR kern/35591 to track the issue.

Ok, I thought I knew what we need to do, but I don't. I think we need to=20
know more about how FreeBSD is handling this. We have some very=20
rudimentary (and probably wrong) LUN handling in there, and I don't=20
understand why it's not working.

Take care,

Bill

--W/nzBZO5zC0uMSeA
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (NetBSD)

iD8DBQFF11GcWz+3JHUci9cRAhvWAKCYndg8P3N4k4QWgBMQminE843qlwCZAXbM
avO1LgcIMg6tlOthv4xiRcY=
=Ov4S
-----END PGP SIGNATURE-----

--W/nzBZO5zC0uMSeA--