From owner-freebsd-questions@FreeBSD.ORG Thu Feb 20 21:21:34 2014 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 565817F7 for ; Thu, 20 Feb 2014 21:21:34 +0000 (UTC) Received: from smtp.demon.co.uk (mdfmta010.mxout.tbr.inty.net [91.221.168.51]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 1364A11E5 for ; Thu, 20 Feb 2014 21:21:33 +0000 (UTC) Received: from mdfmta010.tbr.inty.net (unknown [127.0.0.1]) by mdfmta010.tbr.inty.net (Postfix) with ESMTP id 2B9E86F8C3E; Thu, 20 Feb 2014 21:15:37 +0000 (GMT) Received: from mdfmta010.tbr.inty.net (unknown [127.0.0.1]) by mdfmta010.tbr.inty.net (Postfix) with ESMTP id EF4396F8832; Thu, 20 Feb 2014 21:15:36 +0000 (GMT) Received: from [192.168.254.1] (unknown [80.177.21.188]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by mdfmta010.tbr.inty.net (Postfix) with ESMTP; Thu, 20 Feb 2014 21:15:36 +0000 (GMT) Message-ID: <5306708D.6090001@sliderule.demon.co.uk> Date: Thu, 20 Feb 2014 21:15:57 +0000 From: Steve Burton User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.3.0 MIME-Version: 1.0 To: Dan Nelson Subject: Re: iSCSI Backing store References: <530661A6.1030606@sliderule.demon.co.uk> <20140220204526.GE80443@dan.emsphone.com> In-Reply-To: <20140220204526.GE80443@dan.emsphone.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-MDF-HostID: 3 Cc: FreeBSD Questions X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 20 Feb 2014 21:21:34 -0000 On 20/02/2014 20:45, Dan Nelson wrote: > In the last episode (Feb 20), Steve Burton said: >> I'm trying to familiarize myself with the iSCSI implementation in FreeBSD >> 10 REL. I have made a target containing two LUNs which are backed by two >> files on my test server (redundant PC). This all worked well though it >> took ages to make the files using dd. >> >> dd if=/dev/zero of=/targets/target0-0 bs=512 count=31250000 >> >> My first question is, is there a better and quicker way to make the >> backing store files? > > A 512-byte blocksize is suboptimal; you're spending most of your time just > processing the read/write syscalls at that size. There isn't much benefit > to using a blocksize over 64k, but using 1m does make it easy to calculate > the count for large volumes :) > >> My second question relates to making iSCSI LUNs using a disk volume. I >> have a second (empty) hard drive. Is it possible to just use the disk as >> backing store for iSCSI? > > I don't see why not. > > I didn't see why not either but so far I can't see how :) Steve.