From owner-freebsd-current@FreeBSD.ORG Mon Jun 25 12:24:14 2007 Return-Path: X-Original-To: freebsd-current@FreeBSD.ORG Delivered-To: freebsd-current@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 971E616A4CC for ; Mon, 25 Jun 2007 12:24:14 +0000 (UTC) (envelope-from hugo@barafranca.com) Received: from mail.barafranca.com (mail.barafranca.com [67.19.101.164]) by mx1.freebsd.org (Postfix) with ESMTP id 779A313C45E for ; Mon, 25 Jun 2007 12:24:14 +0000 (UTC) (envelope-from hugo@barafranca.com) Received: from localhost (localhost [127.0.0.1]) by mail.barafranca.com (Postfix) with ESMTP id 98032C384C; Mon, 25 Jun 2007 12:59:41 +0000 (UTC) Received: from mail.barafranca.com ([67.19.101.164]) by localhost (mail.barafranca.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 47068-09; Mon, 25 Jun 2007 12:59:00 +0000 (UTC) Received: from nexus.bsdlan.org (a213-22-26-49.cpe.netcabo.pt [213.22.26.49]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.barafranca.com (Postfix) with ESMTP id 3D02FC385D; Mon, 25 Jun 2007 12:58:59 +0000 (UTC) Message-ID: <467FB419.5000002@barafranca.com> Date: Mon, 25 Jun 2007 13:24:57 +0100 From: Hugo Silva User-Agent: Thunderbird 2.0.0.0 (X11/20070609) MIME-Version: 1.0 To: "Axel S. Gruner" , freebsd-current@FreeBSD.ORG References: <467F861A.3070004@encephalon.de> In-Reply-To: <467F861A.3070004@encephalon.de> Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: amavisd-new at barafranca.com X-Spam-Status: No, score=0 tagged_above=-1 required=4 tests=[none] X-Spam-Score: 0 X-Spam-Level: Cc: Subject: Re: ZFS and gmirror X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 25 Jun 2007 12:24:14 -0000 Axel S. Gruner wrote: > Hi all, > > i am playing a bit with ZFS on FreeBSD Current and i love it. > But now i am at a point where is got some questions coming up. > > My FreeBSD is running in a VM under Vmware Fusion and i am using FreeBSD > AMD64. > > I installed FreeBSD on da0. > / with 334 MB > swap 1GB > usr rest > > After that, i created a pool and usr on it: > > #zpool create zusr raidz da0 da1 da2 > #zfs create zusr/usr > > I copied /usr to zusr/usr > > #cp -Rp /usr/ /zusr/usr > > Edit the fstab entry, and comment out the old /dev/da0s1d (/usr). > > New mountpoint: > #zfs set mountpoint=/usr zusr/usr > > Ok, everything works fine. > > Now the question and/or problem. > > Now i have on da0 a free da0s1d. Ok, i can use this with zfs: > > #zpool create oldusr /dev/da0s1d > > Works. Nice. > > But, is there a way to mirror my /dev/da0s1a? Can i use gmirror to > mirror /dev/da0s1a with /dev/da0s4a? > Also, mirroring swap /dev/da0s1b with /dev/da0s4b would be nice. Yes > data is in a raidz mirror, but / is a single point of failure right now. > > And also, i could create a zfs mirror with da0s1d and da4s1d. > > Another question: > If i got only 2 disks, how about using ZFS here? Using just /boot on UFS > should work as i read, but can i mirror that one with gmirrror and use > the rest of the the two disks with ZFS as an ZFS mirror? > I stuck at that problem right now. > > Thanks in advance. > > Axel > > > > _______________________________________________ > freebsd-current@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org" > /dev/mirror/gm0s1a on / (ufs, local, soft-updates) devfs on /dev (devfs, local) mypool/home on /home (zfs, local, nosuid) mypool/home/klr on /home/klr (zfs, local, nosuid) mypool/tmp on /tmp (zfs, local, noexec, nosuid) mypool/usr on /usr (zfs, local) mypool/usr/ports on /usr/ports (zfs, local, nosuid) mypool/usr/ports/distfiles on /usr/ports/distfiles (zfs, local, noexec, nosuid) mypool/var on /var (zfs, local, noexec, nosuid) pool: mypool state: ONLINE scrub: none requested config: NAME STATE READ WRITE CKSUM mypool ONLINE 0 0 0 mirror ONLINE 0 0 0 ad0s2 ONLINE 0 0 0 ad1s2 ONLINE 0 0 0 errors: No known data errors