From owner-freebsd-stable@FreeBSD.ORG Tue Sep 1 17:10:39 2009 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 37889106566B for ; Tue, 1 Sep 2009 17:10:39 +0000 (UTC) (envelope-from 000.fbsd@quip.cz) Received: from elsa.codelab.cz (elsa.codelab.cz [94.124.105.4]) by mx1.freebsd.org (Postfix) with ESMTP id E75978FC1F for ; Tue, 1 Sep 2009 17:10:38 +0000 (UTC) Received: from localhost (localhost.codelab.cz [127.0.0.1]) by elsa.codelab.cz (Postfix) with ESMTP id DD97619E044; Tue, 1 Sep 2009 19:10:34 +0200 (CEST) Received: from [192.168.1.2] (r5bb235.net.upc.cz [86.49.61.235]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by elsa.codelab.cz (Postfix) with ESMTPSA id C369C19E043; Tue, 1 Sep 2009 19:10:32 +0200 (CEST) Message-ID: <4A9D558A.9070609@quip.cz> Date: Tue, 01 Sep 2009 19:10:34 +0200 From: Miroslav Lachman <000.fbsd@quip.cz> User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 X-Accept-Language: cz, cs, en, en-us MIME-Version: 1.0 To: Maciej Jan Broniarz References: <061541E3-F301-46C4-8ECB-5B05854F0EAA@exscape.org> In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-stable@freebsd.org, Thomas Backman Subject: Re: zfs on gmirror slice X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 Sep 2009 17:10:39 -0000 Maciej Jan Broniarz wrote: > 2009/9/1 Thomas Backman : > >>On Sep 1, 2009, at 4:04 PM, Maciej Jan Broniarz wrote: >> >> >>I'm not familiar with gmirror, but it'd be a way better idea to mirror it >>using ZFS if possible - that way you get self-healing and stuff like that, >>which you won't if ZFS doesn't have a mirror/RAIDZ setup, but only sees a >>single slice. >> > > > I would like to do so. I have to disks (ad4 and ad5). Is it possible > to create two slices on both disks (eg ad4s1 and ad4s2 for ad4). > Then to create gmirror on ad4s1, install freebsd on it so it would > boot from it. Then, after having my system running to create zfs > mirror from ad4s2 and ad5s2? Yes, I am using it this way: root@cage ~/# gmirror status Name Status Components mirror/gms1 COMPLETE ad4s1 ad6s1 root@cage ~/# zpool status pool: tank state: ONLINE scrub: none requested config: NAME STATE READ WRITE CKSUM tank ONLINE 0 0 0 mirror ONLINE 0 0 0 ad4s2 ONLINE 0 0 0 ad6s2 ONLINE 0 0 0 errors: No known data errors root@cage ~/# zpool list NAME SIZE USED AVAIL CAP HEALTH ALTROOT tank 444G 353G 91.2G 79% ONLINE - gmirror gms1 is for system files, ports etc. zpool (444GB) is for jails Miroslav Lachman