From owner-freebsd-questions@FreeBSD.ORG Thu Feb 20 23:27:42 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 26FBCFCF for ; Thu, 20 Feb 2014 23:27:42 +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 AAC361D0F for ; Thu, 20 Feb 2014 23:27:41 +0000 (UTC) Received: from mdfmta005.tch.inty.net (unknown [127.0.0.1]) by mdfmta005.tch.inty.net (Postfix) with ESMTP id 72C2B18CC15; Thu, 20 Feb 2014 23:27:39 +0000 (GMT) Received: from mdfmta005.tch.inty.net (unknown [127.0.0.1]) by mdfmta005.tch.inty.net (Postfix) with ESMTP id 3ADB618C98B; Thu, 20 Feb 2014 23:27:39 +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 mdfmta005.tch.inty.net (Postfix) with ESMTP; Thu, 20 Feb 2014 23:27:38 +0000 (GMT) Message-ID: <53068F69.5020502@sliderule.demon.co.uk> Date: Thu, 20 Feb 2014 23:27:37 +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> <5306708D.6090001@sliderule.demon.co.uk> <20140220230554.GF80443@dan.emsphone.com> In-Reply-To: <20140220230554.GF80443@dan.emsphone.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-MDF-HostID: 18 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 23:27:42 -0000 On 20/02/2014 23:05, Dan Nelson wrote: > In the last episode (Feb 20), Steve Burton said: >> 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. >>>> >>>> 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 :) > > You haven't said what error message you are getting when you specify a raw > device, though... "path /dev/ada1", for example. > Dan, good point. I added lun 2 { path /dev/ada1 } to the portal group and started ctld. The following was in /var/log/messages Feb 20 23:13:01 files kernel: cfiscsi_ioctl_handoff: new connection from iqn.1991-05.com.microsoft:titan (192.168.254.1) to iqn.2012-06.com.example:target0 Feb 20 23:13:01 files kernel: (0:2:0:0): MODE SENSE(6). CDB: 1a 00 1c 00 c0 00 Feb 20 23:13:01 files kernel: (0:2:0:0): Tag: 0xcc621100, Type: 1 Feb 20 23:13:01 files kernel: (0:2:0:0): CTL Status: SCSI Error Feb 20 23:13:01 files kernel: (0:2:0:0): SCSI Status: Check Condition Feb 20 23:13:01 files kernel: (0:2:0:0): SCSI sense: ILLEGAL REQUEST asc:24,0 (Invalid field in CDB) Feb 20 23:13:01 files kernel: (0:2:0:0): Command byte 2 bit 5 is invalid Feb 20 23:13:01 files kernel: (0:2:0:1): MODE SENSE(6). CDB: 1a 00 1c 00 c0 00 Feb 20 23:13:01 files kernel: (0:2:0:1): Tag: 0xdc621100, Type: 1 Feb 20 23:13:01 files kernel: (0:2:0:1): CTL Status: SCSI Error Feb 20 23:13:01 files kernel: (0:2:0:1): SCSI Status: Check Condition Feb 20 23:13:01 files kernel: (0:2:0:1): SCSI sense: ILLEGAL REQUEST asc:24,0 (Invalid field in CDB) Feb 20 23:13:01 files kernel: (0:2:0:1): Command byte 2 bit 5 is invalid I googled the line 'files kernel: (0:2:0:0): Command byte 2 bit 5 is invalid' and found a recommendation in a FreeNAS forum that I should run 'camcontrol rescan all' so I did and it sprang into life. Problem solved! thanks for your help. Steve.