From owner-freebsd-fs@FreeBSD.ORG Tue Mar 6 16:28:27 2007 Return-Path: X-Original-To: freebsd-fs@freebsd.org 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 9926E16A400; Tue, 6 Mar 2007 16:28:27 +0000 (UTC) (envelope-from bp@barryp.org) Received: from eden.barryp.org (host-42-60-230-24.midco.net [24.230.60.42]) by mx1.freebsd.org (Postfix) with ESMTP id 7260713C48D; Tue, 6 Mar 2007 16:28:27 +0000 (UTC) (envelope-from bp@barryp.org) Received: from geo.med.und.nodak.edu ([134.129.166.11]) by eden.barryp.org with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.63 (FreeBSD)) (envelope-from ) id 1HOcG3-000M15-Pe; Tue, 06 Mar 2007 10:11:24 -0600 Message-ID: <45ED9289.4090001@barryp.org> Date: Tue, 06 Mar 2007 10:10:49 -0600 From: Barry Pederson User-Agent: Thunderbird 1.5.0.8 (X11/20061025) MIME-Version: 1.0 To: Joao Barros References: <20070304123801.GA22350@garage.freebsd.pl> <20070306005831.22fb6115.nork@FreeBSD.org> <70e8236f0703060725j3487764enffe1ad524a098c96@mail.gmail.com> In-Reply-To: <70e8236f0703060725j3487764enffe1ad524a098c96@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-fs@freebsd.org, freebsd-current@freebsd.org, Pawel Jakub Dawidek Subject: Re: ZFS port to FreeBSD: 2nd patchset available. X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Mar 2007 16:28:27 -0000 Joao Barros wrote: > After some tries I finally got it to buildworld, but at 3am I never > got to test anything other than 'kldload zfs' > > I was reading the man pages and I was wondering if files are supported > devices like in this example: > > Example 4 Creating a ZFS Storage Pool by Using Files > > The following command creates an unmirrored pool using files. While > not recommended, a pool based on files can be useful for experimental > purposes. > > # zpool create tank /path/to/file/a /path/to/file/b > > I'd have to feed some noisy disks to my machine if file devs are not > supported -.- I tried something like that, with a 512mb file: dd if=/dev/zero of=/tmp/foo bs=1048976 count=512 zpool create tank /tmp/foo but it comes back with cannot use '/dev//tmp/foo': must be a GEOM provider mdconfig is one way to go here, creating a memory disk based on that file. and then creating a pool from that mdconfig -a -t vnode -f /tmp/foo (comes back with "md0" perhaps, meaning it's created a /dev/md0 ) zpool create tank md0 and you should be in business. Barry