Re: this list
folkert <[email protected]> Mon, 24 Jan 2011 17:27:09 +0100
| Newsgroups | gmane.ietf.ips |
|---|---|
| Organization | www.unixexpert.nl |
| Message-ID | <[email protected]> |
Hi,
The CDB I send is:
SCSI CDB Read Capacity(10)
[LUN: 0x0000]
[Command Set:Direct Access Device (0x00) (Using default commandset)]
[Response in: 12]
Opcode: Read Capacity(10) (0x25)
Logical Block Address: 0
PMI Flags: 0x00
.... ...0 =3D PMI: Pmi is CLEAR
Vendor Unique =3D 0, NACA =3D 0, Link =3D 0
(0x25 for the first byte, the rest 0x00)
the reply is:
SCSI: SNS Info
[LUN: 0x0000]
Valid: 0
.111 0000 =3D SNS Error Type: Current Error (0x70)
Filemark: 0, EOM: 0, ILI: 0
.... 0110 =3D Sense Key: Unit Attention (0x06)
Sense Info: 0x00000000
Additional Sense Length: 10
Command-Specific Information: 00000000
Additional Sense Code+Qualifier: Power On, Reset, Or Bus Device Reset O=
ccurred (0x2900)
Field Replaceable Unit Code: 0x00
0... .... =3D SKSV: False
Sense Key Specific: 000000
in hex:
70 00 06 00 00 00 00 0a 00 00 00 00 29 00 00 00 00 00
On Mon, Jan 24, 2011 at 11:09:30AM -0500, Knight, Frederick wrote:
> On the other hand, it depends on what CHECK CONDITION you are getting.
> =
> Can you supply the full CDB and full response (all sense data including) =
- status, sense key, ASC/ASCQ, data (if any).
> =
> If you are sending a badly formed CDB, they the device is perfectly withi=
n its rights to return CHECK CONDITION - but when it does, it should also r=
eturn more info about what is wrong (and that will be down in the detailed =
bits of the returned sense data).
> =
> Invalid OP Code is not valid for a disk to return (as per previous commen=
ts), but INVALID FIELD IN CDB means you made a mistake.
> =
> Fred Knight
> =
> -----Original Message-----
> From: [email protected] [mailto:[email protected]] =
> Sent: Monday, January 24, 2011 10:39 AM
> To: [email protected]; [email protected]
> Subject: Re: [Ips] this list
> =
> That's actually more of a generic SCSI question than an iSCSI question, b=
ut anyhow ...
> =
> ... if READ CAPACITY (10) doesn't work, try READ CAPACITY (16) [opcode 0x=
9E, service action 0x10].
> =
> OTOH, if READ CAPACITY (10) results in a Check Condition for invalid opco=
de, the target that issued that CC does not comply with the SCSI standards,=
as support for READ CAPACITY (10) is mandatory for block devices in both t=
he SBC-2 standard and all drafts of the in-progress SBC-3 standard.
> =
> Thanks,
> --David
> ----------------------------------------------------
> David L. Black, Distinguished Engineer
> EMC Corporation, 176 South St., Hopkinton, MA=A0 01748
> +1 (508) 293-7953=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 FAX: +1 (508) 293-7=
786
> [email protected]=A0=A0=A0=A0=A0=A0=A0 Mobile: +1 (978) 394-7754
> ----------------------------------------------------
> =
> > -----Original Message-----
> > From: [email protected] [mailto:[email protected]] On Behalf Of f=
olkert
> > Sent: Monday, January 24, 2011 8:30 AM
> > To: [email protected]
> > Subject: [Ips] this list
> > =
> > Hi,
> > =
> > Is this list available for generic iSCSI questions?
> > =
> > If so: some (linux iscsi target and window iStorageSErver) respond with
> > valid data to Read Capacity(10) SCSI 0x25 command while for example
> > nexenta store (an opensolaris system) responds with Check Condition.
> > So I guess this is not the common way of determing the sector size and
> > size of the device.
> > Which command should I use for this?
> > Thanks.
> > =
> > =
> > Folkert van Heusden
> _______________________________________________
> Ips mailing list
> [email protected]
> https://www.ietf.org/mailman/listinfo/ips
Folkert van Heusden
-- =
MultiTail ist eine flexible Applikation um Logfiles und Kommando
Eingaben zu =FCberpr=FCfen. Inkl. Filter, Farben, Zusammenf=FChren,
Ansichten etc. http://www.vanheusden.com/multitail/
----------------------------------------------------------------------
Phone: +31-6-41278122, PGP-key: 1F28D8AE, www.vanheusden.com
_______________________________________________
Ips mailing list
[email protected]
https://www.ietf.org/mailman/listinfo/ips