From owner-freebsd-stable@FreeBSD.ORG Wed Sep 26 16:02:45 2012 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 02BF2106564A for ; Wed, 26 Sep 2012 16:02:45 +0000 (UTC) (envelope-from ndenev@gmail.com) Received: from mail-ee0-f54.google.com (mail-ee0-f54.google.com [74.125.83.54]) by mx1.freebsd.org (Postfix) with ESMTP id 8283A8FC0A for ; Wed, 26 Sep 2012 16:02:44 +0000 (UTC) Received: by eekc50 with SMTP id c50so455654eek.13 for ; Wed, 26 Sep 2012 09:02:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=subject:mime-version:content-type:from:in-reply-to:date:cc :message-id:references:to:x-mailer; bh=xlSEu7SDJyQD1m+Equ0MXMfbv1+lgEu23k2Km21iWMA=; b=ANY60AACotPPGLpwbyYgZr/QCvNwI3I3JqKT+LFZ31puWjh7qVwcILD43sdtZ3MCNI FQElTlgyHXzix1pjyxxl6LYmiFOjT4IExl130ZoGmXXHOd2ABmIKHOyVpYNhBpjZkKmO 1YsEjDJ5MKjy6usMgAvs326RjbKmvcGS1BEJIq9WtLJt5cy1gNt2CJK5/cAQtD46OmrP ks8LeXW9QwOlkWpB6BsiJtl9o3LmS2oaRCov9hRXoVBoTh8UecFkjrwcakv1+WIzgUlo 2aW7/lgW6W1C4ZiY76sl+P6OYynkRVXOshF9zGBsyhBVtSvqv9Quo/dIHmLTn4SsuTVp 7YyA== Received: by 10.14.182.134 with SMTP id o6mr2121583eem.26.1348675358560; Wed, 26 Sep 2012 09:02:38 -0700 (PDT) Received: from imba-brutale-3.totalterror.net ([93.152.184.10]) by mx.google.com with ESMTPS id i41sm10423777eem.7.2012.09.26.09.02.36 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 26 Sep 2012 09:02:37 -0700 (PDT) Mime-Version: 1.0 (Mac OS X Mail 6.1 \(1498\)) From: Nikolay Denev In-Reply-To: Date: Wed, 26 Sep 2012 19:02:37 +0300 Message-Id: <0546BF68-44E0-4048-AA70-2BD4F707AE06@gmail.com> References: <057A94AC-3CBC-4E91-8816-74EE2E4C8420@gmail.com> To: Chuck Tuffli X-Mailer: Apple Mail (2.1498) Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: "freebsd-stable@freebsd.org" Subject: Re: CAM Target Layer, Linux and camcontrol readcap X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 26 Sep 2012 16:02:45 -0000 On Sep 26, 2012, at 5:29 PM, Chuck Tuffli wrote: > On Wed, Sep 26, 2012 at 1:33 AM, Nikolay Denev = wrote: >> Hi, >>=20 >> I'm running RELENG_9 and I'm trying to play with CTL. >> Initially I've setup an isp(4) interface in TARGET mode and tried to = export a LUN to a directly connected >> Linux RHEL host, but for some reason that failed with the block = backend (ramdisk was exported properly) : >>=20 >> This is how I export the volume : >>=20 >> zfs create -V1000G tank/oracle >> ctladm create -b block -o file=3D/dev/zvol/tank/oracle -S = ZFSSERIAL001 -d ZFSLUN001 >> ctladm port -o on >> ctladm realsync off >=20 > This is similar to what I do, but you might try turning off realsync > before turning the port on and only turning on the FC ports. I.e. >=20 > ctladm realsync off > ctladm port -o on -t fc >=20 > If that doesn't help, it would be interesting to see if something is = stuck via >=20 > ctladm dumpooa >=20 > ---chuck I've did ctladm dumooa : Dumping OOA queues LUN 0 tag 0x000d RTR: SYNCHRONIZE CACHE(10). CDB: 35 0 0 0 0 0 0 0 0 0 = (91807313 ms) LUN 0 tag 0x0011 BLOCKED: READ CAPACITY(10). CDB: 25 0 0 0 0 0 0 0 0 0 = (35411180 ms) LUN 0 tag 0x0012 BLOCKED: READ CAPACITY(10). CDB: 25 0 0 0 0 0 0 0 0 0 = (35228663 ms) LUN 0 tag 0x0013 BLOCKED: START STOP UNIT. CDB: 1b 0 0 0 1 0 (34721150 = ms) OOA queues dump done And if I'm reading this right the other commands blocked because of the = sync cache. I will try now to set realsync to off before enabling the ports and = retest. Thanks for the suggestions!