Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 5 Jan 2012 07:24:35 -0700
From:      "Kenneth D. Merry" <ken@freebsd.org>
To:        Julian Elischer <julian@freebsd.org>
Cc:        current@freebsd.org, scsi@freebsd.org
Subject:   Re: CAM Target Layer available
Message-ID:  <20120105142435.GA75178@nargothrond.kdm.org>
In-Reply-To: <4F05677D.7070602@freebsd.org>
References:  <20120105043934.GA37322@nargothrond.kdm.org> <4F05677D.7070602@freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Jan 05, 2012 at 01:03:57 -0800, Julian Elischer wrote:
> On 1/4/12 8:39 PM, Kenneth D. Merry wrote:
> >The CAM Target Layer (CTL) is now available for testing.  I am planning to
> >commit it to to head next week, barring any major objections.
> >
> >CTL is a disk and processor device emulation subsystem originally written
> >for Copan Systems under Linux starting in 2003.  It has been shipping in
> >Copan (now SGI) products since 2005.
> >
> >It was ported to FreeBSD in 2008, and thanks to an agreement between SGI
> >(who acquired Copan's assets in 2010) and Spectra Logic in 2010, CTL is
> >available under a BSD-style license.  The intent behind the agreement was
> >that Spectra would work to get CTL into the FreeBSD tree.
> [...]
> 
> >  - Note that the ramdisk backend is a "fake" ramdisk.  That is, it is
> >    backed by a small amount of RAM that is used for all I/O requests.  
> >    This
> >    is useful for performance testing, but not for any data integrity 
> >    tests.
> 
> so, If I read this correctly, I should be able to export a fusion-io 
> flash card with
> ctladm create -b block -o file=/dev/fio0  ??

Yes, that would work.

Although last time I tried using a block device, as opposed to a file, I
ran into a GEOM panic that looked like it should be pretty easy to fix.  If
you run into that, you can get around it by disabling sending sync cache to
the back end:

ctladm realsync off

> >  - To add a LUN with the block/file backend:
> >
> >	truncate -s +1T myfile
> >	ctladm create -b block -o file=myfile
> >	ctladm port -o on
> >

Ken
-- 
Kenneth Merry
ken@FreeBSD.ORG



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20120105142435.GA75178>