From owner-freebsd-ports@FreeBSD.ORG Thu May 31 08:04:14 2007 Return-Path: X-Original-To: freebsd-ports@freebsd.org Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 5D31116A469 for ; Thu, 31 May 2007 08:04:14 +0000 (UTC) (envelope-from patrick_dkt@yahoo.com.hk) Received: from web54302.mail.re2.yahoo.com (web54302.mail.re2.yahoo.com [206.190.49.112]) by mx1.freebsd.org (Postfix) with SMTP id 1507E13C4CC for ; Thu, 31 May 2007 08:04:13 +0000 (UTC) (envelope-from patrick_dkt@yahoo.com.hk) Received: (qmail 9824 invoked by uid 60001); 31 May 2007 07:37:33 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com.hk; h=X-YMail-OSG:Received:Date:From:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-ID; b=xrFLue0F6LR3W6h3pEz/xpH9RSoHT5mY1PBSpmWAtMHQhrnIdOsnRdmHxOZ6Vac1yPdqgYix/Nf7leFr+Pkkef5sB4aoiCVo7eWPuZm1vvKJxwKxKNzWRgdkkMTTt4Q7hWNwCE7a5MrviNCcn6s5ucjeTFBF/FUnVinao5vIVW4=; X-YMail-OSG: nPewYasVM1kSzaCR4Wyf7ye_8vzGRGDNU_.ExCKvUMhn.RO7_BMQ8W2nPogpw0wFOVVGx5sXJr87kuP.zkJfiTgrLLh4xIPJ1JB66WeBxydhUiqG6fXKtZ1ITigfpkeuU55r1oOOrX.zmKr80.0LUSS.tjD0XMxQ11iEdlFwc65fsCylO6D0 Received: from [61.15.61.52] by web54302.mail.re2.yahoo.com via HTTP; Thu, 31 May 2007 00:37:33 PDT Date: Thu, 31 May 2007 00:37:33 -0700 (PDT) From: Patrick Dung To: Mark Foster In-Reply-To: <465DF06F.9090500@foster.cc> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Message-ID: <786193.7469.qm@web54302.mail.re2.yahoo.com> Cc: freebsd-hackers@freebsd.org, freebsd-ports@freebsd.org Subject: Re: can we use disk device for iscsi-target port? 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, 31 May 2007 08:04:14 -0000 My testing env is Vmware, the backend disks are new/empty. Here's my testing result: 1. OpenBSD 4.1 with iscsi-target compiled (I can't find it in the ports) It support disk slice directly, I use /dev/sd1c. 2. NetBSD 4.0-current with iscsi-target in base OS It support disk slice directly, I use /dev/sd1d. 3. FreeBSD 6.2 with iscsi-target port: When the new harddisk is added. It is empty and do not have any individual slice (only have /dev/da1). iscsi-target cannot use /dev/da1 directly (tested yesterday) /dev/da1c is gone in FreeBSD (since 5.0).... I have tried to create a disk slice by fdisk (/dev/da1s1 and /dev/da1s1c is created). But iscsi-target cannot use them directly: Reading configuration from `./targets' target0:rw:0.0.0.0/0 extent0:/dev/da1s1:0:629145600 DISK: 1 logical units (1228800 blocks, 512 bytes/block), type iscsi fs DISK: LU 0: pid 1916:disk.c:778: ***ERROR*** error reading "target0"pid 1916:disk.c:895: ***ERROR*** error allocating space for "target0"pid 1916:target.c:1487: ***ERROR*** device_init() failed pid 1916:iscsi-target.c:150: ***ERROR*** target_init() failed Reading configuration from `./targets' target0:rw:0.0.0.0/0 extent0:/dev/da1s1c:0:629145600 DISK: 1 logical units (1228800 blocks, 512 bytes/block), type iscsi fs DISK: LU 0: pid 1919:disk.c:778: ***ERROR*** error reading "target0"pid 1919:disk.c:895: ***ERROR*** error allocating space for "target0"pid 1919:target.c:1487: ***ERROR*** device_init() failed pid 1919:iscsi-target.c:150: ***ERROR*** target_init() failed Patrick --- Mark Foster wrote: > Patrick Dung wrote: > > It would be great if disk device can be used directly. > > > > BTW, I have not yet test netbsd with raw disk. > > seems someone test on openbsd and it seems working: > > http://www.freebsdforums.org/forums/showthread.php?t=43960 > > > Whole disk or slice? I don't think either works at this point but > can't > say I've tried. Can you please test an individual slice and report > your > findings? > > -- > Said one park ranger, 'There is considerable overlap between the > intelligence of the smartest bears and the dumbest tourists.' > Mark D. Foster, CISSP http://mark.foster.cc/ > > ____________________________________________________________________________________ Be a PS3 game guru. Get your game face on with the latest PS3 news and previews at Yahoo! Games. http://videogames.yahoo.com/platform?platform=120121