From owner-freebsd-stable@FreeBSD.ORG Wed Sep 26 14:29:10 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 76E1F106566C for ; Wed, 26 Sep 2012 14:29:10 +0000 (UTC) (envelope-from ctuffli@gmail.com) Received: from mail-ey0-f182.google.com (mail-ey0-f182.google.com [209.85.215.182]) by mx1.freebsd.org (Postfix) with ESMTP id 06BB38FC0C for ; Wed, 26 Sep 2012 14:29:09 +0000 (UTC) Received: by eaac10 with SMTP id c10so272677eaa.13 for ; Wed, 26 Sep 2012 07:29:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=ULPFvZ+ktAupK5e55Zgin020memr0OrpwRqAtGR1mJo=; b=LTc01b4EdNF3a9JpeyBorB0GVt4dbnxSs4fZhun8DBBlXdDptee4I9RrdqIfstar1x v0PaaRAJ56eqlnQaA6Ror2nOxr3t+k95oNhMUz/s7MCV/lekadRV7TbpyVQdZxg167ys u/D2eOfqqJNTTfv7/ZaAw3iQ5rtShN0PDNI+xoTguPCmy9jZVSgYwbDHx0F09v4yDvzS BWLiFqPV+tgw0mEs1kRo3aN1/kKXzIMtWT92ahwORs11auRNJRJHl9K6ifKQJgxzknkq fR4inY8T83XhHNk6+moESYxtqaoCB0P5oY4uwkx+AHfOU46YtHP+Gm+mHI57X1qQ86SA OOPQ== MIME-Version: 1.0 Received: by 10.14.193.136 with SMTP id k8mr1518255een.9.1348669748983; Wed, 26 Sep 2012 07:29:08 -0700 (PDT) Received: by 10.14.117.208 with HTTP; Wed, 26 Sep 2012 07:29:08 -0700 (PDT) In-Reply-To: <057A94AC-3CBC-4E91-8816-74EE2E4C8420@gmail.com> References: <057A94AC-3CBC-4E91-8816-74EE2E4C8420@gmail.com> Date: Wed, 26 Sep 2012 07:29:08 -0700 Message-ID: From: Chuck Tuffli To: Nikolay Denev Content-Type: text/plain; charset=ISO-8859-1 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 14:29:10 -0000 On Wed, Sep 26, 2012 at 1:33 AM, Nikolay Denev wrote: > Hi, > > 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) : > > This is how I export the volume : > > zfs create -V1000G tank/oracle > ctladm create -b block -o file=/dev/zvol/tank/oracle -S ZFSSERIAL001 -d ZFSLUN001 > ctladm port -o on > ctladm realsync off 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. ctladm realsync off ctladm port -o on -t fc If that doesn't help, it would be interesting to see if something is stuck via ctladm dumpooa ---chuck