Subject: Re: NetBSD iSCSI HOWTOs
To: Alistair Crooks <agc@pkgsrc.org>
From: Bill Studenmund <wrstuden@netbsd.org>
List: current-users
Date: 02/27/2006 20:09:45
--bjuZg6miEcdLYP6q
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Fri, Feb 24, 2006 at 08:31:21PM +0000, Alistair Crooks wrote:
> On Fri, Feb 24, 2006 at 03:23:31PM +0000, Chavdar Ivanov wrote:
> >=20
> > The iSCSI tests from Windows (both W2K3 server and W2K server) worked
> > fine. I am trying to use the Solaris10 initiator now.
>=20
> Ah, excellent - a number of the initiators use different SCSI commands.

Technically it's the host OS on top..

> > I am getting: Feb 24 14:52:23 loan8 iscsi-target: > Normal login from
> > iqn.1986-03.com.sun:01:00902793279f.43ff1bac on 10.1.2.3
> > Feb 24 14:52:23 loan8 iscsi-target: pid
> > 2661:/usr/src/dist/iscsi/src/disk.c:1001: ***ERROR*** UNKNOWN OPCODE
> > 0x1b
> > Feb 24 14:52:23 loan8 last message repeated 3 times
> > Feb 24 14:52:23 loan8 iscsi-target: pid
> > 2661:/usr/src/dist/iscsi/src/disk.c:1001: ***ERROR*** UNKNOWN OPCODE
> > 0x4d
> > Feb 24 14:52:23 loan8 last message repeated 3 times
> > Feb 24 14:52:23 loan8 iscsi-target: pid
> > 2661:/usr/src/dist/iscsi/src/disk.c:1001: ***ERROR*** UNKNOWN OPCODE
> > 0x5e
> > Feb 24 14:52:24 loan8 last message repeated 3 times
> > Feb 24 14:53:24 loan8 iscsi-target: pid
> > 2661:/usr/src/dist/iscsi/src/disk.c:1001: ***ERROR*** UNKNOWN OPCODE
> > 0x35
> > Feb 24 14:53:25 loan8 last message repeated 3 times
>=20
> 0x1b Load/Unload Sequential

Actually, that's what it's defined for for tape drives (SSC). For disk=20
(SBC) devices, it's Stop/Start Unit.

> 0x4d Log Sense
> 0x5e (unknown for just now)

Persistent Reserve In

> 0x35 Synchronise cache
>=20
> are ones I haven't come across until now.

Sunchronise Cache is easy. There, ehm, is the fsync_range() system call=20
which, ehm, just so happens to have the needed semantics for this.

> I'll see what I can do about implementing them PDQ.

All of the above are optional. Synchronize Cache is easy, and PR-IN is=20
needed for a cluster. You'll get far w/o the other two.

You can hobble along w/o PR-IN & Out.

I think a more important issue to address is the following warnings:

Feb 24 15:15:16 barney genunix: [ID 587529 kern.warning] WARNING:
Page83 data not standards compliant
Feb 24 15:15:16 barney iscsi: [ID 183114 kern.warning] WARNING: iscsi
driver found no comptible driver for=20
iqn.1994-04.org.netbsd.iscsi-target:target0 lun 3685

Take care,

Bill

--bjuZg6miEcdLYP6q
Content-Type: application/pgp-signature
Content-Disposition: inline

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

iD8DBQFEA80JWz+3JHUci9cRAl9aAJ9ozAPzZAFzoyHXWcMvJyvaw4ICjwCghNZF
QG+RnuXr/LH2lfqC7zshtm8=
=M8ZY
-----END PGP SIGNATURE-----

--bjuZg6miEcdLYP6q--