From owner-freebsd-fs@FreeBSD.ORG Thu Nov 1 08:50:56 2012 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 92AA7C7A for ; Thu, 1 Nov 2012 08:50:56 +0000 (UTC) (envelope-from ronald-freebsd8@klop.yi.org) Received: from smarthost1.greenhost.nl (smarthost1.greenhost.nl [195.190.28.78]) by mx1.freebsd.org (Postfix) with ESMTP id 16EC68FC12 for ; Thu, 1 Nov 2012 08:50:56 +0000 (UTC) Received: from smtp.greenhost.nl ([213.108.104.138]) by smarthost1.greenhost.nl with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.69) (envelope-from ) id 1TTqUC-0002rD-P4 for freebsd-fs@freebsd.org; Thu, 01 Nov 2012 09:50:49 +0100 Received: from [81.21.138.17] (helo=ronaldradial.versatec.local) by smtp.greenhost.nl with esmtpsa (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.72) (envelope-from ) id 1TTqUB-0002km-Er for freebsd-fs@freebsd.org; Thu, 01 Nov 2012 09:50:47 +0100 Content-Type: text/plain; charset=utf-8; format=flowed; delsp=yes To: freebsd-fs@freebsd.org Subject: Re: geli device istgt References: <9A757AF2CA7F204A8F2444FFC5C27C301CADCD4C@Exchange2010.Skynet.local> Date: Thu, 01 Nov 2012 09:50:46 +0100 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: "Ronald Klop" Message-ID: In-Reply-To: <9A757AF2CA7F204A8F2444FFC5C27C301CADCD4C@Exchange2010.Skynet.local> User-Agent: Opera Mail/12.02 (Win32) X-Virus-Scanned: by clamav at smarthost1.samage.net X-Spam-Level: - X-Spam-Score: -1.1 X-Spam-Status: No, score=-1.1 required=5.0 tests=BAYES_05 autolearn=disabled version=3.2.5 X-Scan-Signature: 1fac81774939798d1cdb19633eb460de X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Nov 2012 08:50:56 -0000 On Wed, 31 Oct 2012 21:17:25 +0100, Johannes Mäulen wrote: > Hi there, > I'm new here, "Hello" :). Hopefully it's the right mailing list... > I've setup a Freebsd 9.0-RELEASE machine to handle my storage devices. > I'd like to "share" encrypted partitions via iscsi. But, I'd like to > take the encryption take place on the iscsi-target(-machine). The > machine is equipped with a aes-ni capable cpu, which I'd like to use. I > set up a geli device, but whenever I try to use it as target I get > errors like: > > /usr/local/etc/rc.d/istgt start > Starting istgt. > istgt version 0.5 (20121028) > normal mode > using kqueue > using host atomic > LU1 HDD UNIT > LU1: LUN0 file=/dev/da0p1.eli, size=1499976953856 > LU1: LUN0 2929642488 blocks, 512 bytes/block > istgt_lu_disk.c: 330:istgt_lu_disk_allocate_raw: ***ERROR*** > lu_disk_read() failed > istgt_lu_disk.c: 650:istgt_lu_disk_init: ***ERROR*** LU1: LUN0: allocate > error > istgt_lu.c:2091:istgt_lu_init_unit: ***ERROR*** LU1: lu_disk_init() > failed > istgt_lu.c:2166:istgt_lu_init: ***ERROR*** LU1: lu_init_unit() failed > istgt.c:2799:main: ***ERROR*** istgt_lu_init() failed > /usr/local/etc/rc.d/istgt: WARNING: failed to start istgt > > Could somebody help me with that? > If I try to start istgt with an unencrypted partition everything works > as expected. > > Kind regards > > Johannes Can you provide some information about how you setup geli and istg? And does the geli partition work locally without istgt? Ronald.