Re: [Ips] this list

folkert <folkert@vanheusden.com> Mon, 24 January 2011 16:24 UTC

Return-Path: <folkert@vanheusden.com>
X-Original-To: ips@core3.amsl.com
Delivered-To: ips@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id B43EB3A690A for <ips@core3.amsl.com>; Mon, 24 Jan 2011 08:24:22 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.999
X-Spam-Level:
X-Spam-Status: No, score=-1.999 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, J_CHICKENPOX_36=0.6]
Received: from mail.ietf.org ([64.170.98.32]) by localhost (core3.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id VKEzF+l6figd for <ips@core3.amsl.com>; Mon, 24 Jan 2011 08:24:21 -0800 (PST)
Received: from keetweej.vanheusden.com (tunnel947.ipv6.xs4all.nl [IPv6:2001:888:10:3b3::2]) by core3.amsl.com (Postfix) with ESMTP id 217613A6AE4 for <ips@ietf.org>; Mon, 24 Jan 2011 08:24:19 -0800 (PST)
Received: from belle.intranet.vanheusden.com (belle.intranet.vanheusden.com [192.168.64.100]) by keetweej.vanheusden.com (Postfix) with ESMTP id BC4CB16D4F0; Mon, 24 Jan 2011 17:27:09 +0100 (CET)
Received: by belle.intranet.vanheusden.com (Postfix, from userid 1000) id 9905993365; Mon, 24 Jan 2011 17:27:09 +0100 (CET)
Date: Mon, 24 Jan 2011 17:27:09 +0100
From: folkert <folkert@vanheusden.com>
To: "Knight, Frederick" <Frederick.Knight@netapp.com>
Message-ID: <20110124162709.GS19602@belle.intranet.vanheusden.com>
References: <20110124133020.GN19602@belle.intranet.vanheusden.com> <7C4DFCE962635144B8FAE8CA11D0BF1E03D7689A49@MX14A.corp.emc.com> <AC32D7C72530234288643DD5F1435D530D97D8B6@RTPMVEXC1-PRD.hq.netapp.com>
MIME-Version: 1.0
Content-Type: text/plain; charset="iso-8859-1"
Content-Disposition: inline
Content-Transfer-Encoding: 8bit
In-Reply-To: <AC32D7C72530234288643DD5F1435D530D97D8B6@RTPMVEXC1-PRD.hq.netapp.com>
Organization: www.unixexpert.nl
X-Chameleon-Return-To: folkert@vanheusden.com
X-Xfmail-Return-To: folkert@vanheusden.com
X-Phonenumber: +31-6-41278122
X-URL: http://www.vanheusden.com/
X-PGP-KeyID: 1F28D8AE
X-GPG-fingerprint: AC89 09CE 41F2 00B4 FCF2 B174 3019 0E8C 1F28 D8AE
X-Key: http://pgp.surfnet.nl:11371/pks/lookup?op=get&search=0x1F28D8AE
Read-Receipt-To: <folkert@vanheusden.com>
Reply-By: Sat Jan 15 11:07:06 CET 2011
X-Message-Flag: www.vanheusden.com
User-Agent: Mutt/1.5.18 (2008-05-17)
Cc: ips@ietf.org
Subject: Re: [Ips] this list
X-BeenThere: ips@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: IP Storage <ips.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/ips>, <mailto:ips-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/ips>
List-Post: <mailto:ips@ietf.org>
List-Help: <mailto:ips-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/ips>, <mailto:ips-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 24 Jan 2011 16:24:22 -0000

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 = PMI: Pmi is CLEAR
    Vendor Unique = 0, NACA = 0, Link = 0

(0x25 for the first byte, the rest 0x00)

the reply is:
SCSI: SNS Info
    [LUN: 0x0000]
    Valid: 0
    .111 0000 = SNS Error Type: Current Error (0x70)
    Filemark: 0, EOM: 0, ILI: 0
    .... 0110 = 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 Occurred (0x2900)
    Field Replaceable Unit Code: 0x00
    0... .... = 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 within its rights to return CHECK CONDITION - but when it does, it should also return 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 comments), but INVALID FIELD IN CDB means you made a mistake.
> 
> 	Fred Knight
> 
> -----Original Message-----
> From: david.black@emc.com [mailto:david.black@emc.com] 
> Sent: Monday, January 24, 2011 10:39 AM
> To: folkert@vanheusden.com; ips@ietf.org
> Subject: Re: [Ips] this list
> 
> That's actually more of a generic SCSI question than an iSCSI question, but anyhow ...
> 
> ... if READ CAPACITY (10) doesn't work, try READ CAPACITY (16) [opcode 0x9E, service action 0x10].
> 
> OTOH, if READ CAPACITY (10) results in a Check Condition for invalid opcode, 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 the 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  01748
> +1 (508) 293-7953             FAX: +1 (508) 293-7786
> david.black@emc.com        Mobile: +1 (978) 394-7754
> ----------------------------------------------------
> 
> > -----Original Message-----
> > From: ips-bounces@ietf.org [mailto:ips-bounces@ietf.org] On Behalf Of folkert
> > Sent: Monday, January 24, 2011 8:30 AM
> > To: ips@ietf.org
> > 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
> Ips@ietf.org
> https://www.ietf.org/mailman/listinfo/ips


Folkert van Heusden

-- 
MultiTail ist eine flexible Applikation um Logfiles und Kommando
Eingaben zu überprüfen. Inkl. Filter, Farben, Zusammenführen,
Ansichten etc. http://www.vanheusden.com/multitail/
----------------------------------------------------------------------
Phone: +31-6-41278122, PGP-key: 1F28D8AE, www.vanheusden.com