From owner-freebsd-questions@FreeBSD.ORG Thu Feb 20 20:19:15 2014 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 97D4090D for ; Thu, 20 Feb 2014 20:19:15 +0000 (UTC) Received: from smtp.demon.co.uk (mdfmta005.mxout.tch.inty.net [91.221.169.46]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 527621A73 for ; Thu, 20 Feb 2014 20:19:13 +0000 (UTC) Received: from smtp.demon.co.uk (unknown [127.0.0.1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by mdfmta005.tch.inty.net (Postfix) with ESMTP id B9F9418D0D7 for ; Thu, 20 Feb 2014 20:12:32 +0000 (GMT) Received: from mdfmta004.tch.inty.net (unknown [127.0.0.1]) by mdfmta004.tch.inty.net (Postfix) with ESMTP id A4D88AC4072 for ; Thu, 20 Feb 2014 20:12:25 +0000 (GMT) Received: from mdfmta004.tch.inty.net (unknown [127.0.0.1]) by mdfmta004.tch.inty.net (Postfix) with ESMTP id 834D8AC406C; Thu, 20 Feb 2014 20:12:25 +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 mdfmta004.tch.inty.net (Postfix) with ESMTP; Thu, 20 Feb 2014 20:12:25 +0000 (GMT) Message-ID: <530661A6.1030606@sliderule.demon.co.uk> Date: Thu, 20 Feb 2014 20:12:22 +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: FreeBSD Questions , Steve Burton Subject: iSCSI Backing store Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-MDF-HostID: 17 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 20:19:15 -0000 Hi, 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 and /etc/ctld.conf is: portal-group pg0 { discovery-auth-group no-authentication listen 0.0.0.0 listen [::] } target iqn.2012-06.com.example:target0 { auth-group no-authentication portal-group pg0 lun 0 { path /targets/target0-0 } lun 1 { path /targets/target0-1 } } My first question is, is there a better and quicker way to make the backing store files? 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? Any and all advice appreciated. Steve.