From owner-freebsd-ports@FreeBSD.ORG Thu Nov 26 12:05:06 2009 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 77B1510656A8 for ; Thu, 26 Nov 2009 12:05:06 +0000 (UTC) (envelope-from sergey.dyatko@gmail.com) Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.157]) by mx1.freebsd.org (Postfix) with ESMTP id 0BDFB8FC19 for ; Thu, 26 Nov 2009 12:05:05 +0000 (UTC) Received: by fg-out-1718.google.com with SMTP id l26so258613fgb.13 for ; Thu, 26 Nov 2009 04:05:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:date:from:to:cc:subject :message-id:x-mailer:mime-version:content-type :content-transfer-encoding; bh=BA4mUW0Swcn8qN8tnpKyfivh4S1uIeKIzkWsfSrv7N4=; b=FnRcyIWodkkhiSc7LDRQ5ljrUc6HCBjTuco/kDyKeh3mYpnBd8ZNQJLeyRm5vsozwh zmc4BPhec0Ld7fYtY4MsUCkJhzUVfnCjVXblBjsLEfjcudniL5mIA2Lsi0B6FR0yMWNL 3silxeGtPZjlODK6YEMXJzj4RzG+zkxnzrvp8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:cc:subject:message-id:x-mailer:mime-version :content-type:content-transfer-encoding; b=KNKEz3c3fuHc60Ik7jIyWuLrVda9Fw/6KQuIFVmit1yKM3e9HTB5GAZi7/Pcx+ghNH lq9JckjSdCjr/rPPdDGOBP0tvdyBy2TU6zuFuJ9TgLtsrYZfyc36O0laogCZ0ZucO/ib SqPWhBBdtd9fBkrwC+uz1HBsIwz8u0yN88q1A= Received: by 10.86.206.16 with SMTP id d16mr37750fgg.5.1259237104961; Thu, 26 Nov 2009 04:05:04 -0800 (PST) Received: from notebook (minsk.agava.net [212.98.174.157]) by mx.google.com with ESMTPS id 12sm15180855fgg.27.2009.11.26.04.05.03 (version=SSLv3 cipher=RC4-MD5); Thu, 26 Nov 2009 04:05:04 -0800 (PST) Date: Thu, 26 Nov 2009 14:05:19 +0200 From: "Sergey V. Dyatko" To: aoyama@peach.ne.jp Message-ID: <20091126140519.1a92fa2a@notebook> X-Mailer: Claws Mail 3.7.2 (GTK+ 2.16.6; i386-portbld-freebsd9.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: freebsd-ports@freebsd.org Subject: does istgt works on -CURRENT ? X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Nov 2009 12:05:06 -0000 Hi Daisuke Aoyama and list I'm trying run iSCSI target on my -CURRENT box %uname -a FreeBSD current.domain 9.0-CURRENT FreeBSD 9.0-CURRENT #6 r198480: Tue Nov 3 10:03:09 EET 2009 root@current.domain:/usr/obj/usr/src/sys/KERN amd64 %pkg_info -xI istgt istgt-20090428 An iSCSI target for FreeBSD 7.x with ZFS %zfs upgrade This system is currently running ZFS filesystem version 3. All filesystems are formatted with the current version. %zpool upgrade This system is currently running ZFS pool version 13. All pools are formatted using this version. Now my actions Step-by-step: # zfs create tank/share/target # zfs set mountpoint=none tank/share/target # zfs set quota=20G tank/share/target # cd /usr/local/etc/istgt # cp auth.conf.sample auth.conf # cp istgt.conf.sample istgt.conf # cp istgtcontrol.conf.sample istgtcontrol.conf my server`s IP is 192.168.9.249 I made some changes on istgt.conf: 1) section [PortalGroup1]: "Portal DA1 192.168.2.36:3260" -> "Portal DA1 192.168.9.249:3260" 2) sections [LogicalUnit1]: "LUN0 Storage /tank/iscsi/istgt-disk1 10G" -> "LUN0 Storage /tank/share/target" Now I'm trying start istgt: # /usr/local/etc/rc.d/istgt onestart istgt version 0.2 (20090428) istgt_lu.c:1213:istgt_lu_add_unit: ***ERROR*** LU1: LUN0: format error istgt_lu.c:1473:istgt_lu_init: ***ERROR*** lu_add_unit() failed istgt.c:1247:main: ***ERROR*** istgt_lu_init() failed /usr/local/etc/rc.d/istgt: WARNING: failed to start istgt where I'm wrong? -- wbr, tiger