From owner-freebsd-stable@FreeBSD.ORG Wed Sep 2 07:20:30 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 1E5B9106566B for ; Wed, 2 Sep 2009 07:20:30 +0000 (UTC) (envelope-from stark@mapper.nl) Received: from smtp-out2.tiscali.nl (smtp-out2.tiscali.nl [195.241.79.177]) by mx1.freebsd.org (Postfix) with ESMTP id A90018FC17 for ; Wed, 2 Sep 2009 07:20:29 +0000 (UTC) Received: from [82.170.17.27] (helo=mapper.nl) by smtp-out2.tiscali.nl with esmtp (Exim) (envelope-from ) id 1Mik8q-0002Mt-OE; Wed, 02 Sep 2009 09:20:28 +0200 Received: from bowser ([192.168.0.1] helo=[0.0.0.0]) by mapper.nl with esmtp (Exim 4.69 (FreeBSD)) (envelope-from ) id 1Mik8m-000GSs-Oy; Wed, 02 Sep 2009 09:20:24 +0200 Message-ID: <4A9E1CB5.6030906@mapper.nl> Date: Wed, 02 Sep 2009 09:20:21 +0200 From: Mark Stapper User-Agent: Thunderbird 2.0.0.23 (Windows/20090812) MIME-Version: 1.0 To: Miroslav Lachman <000.fbsd@quip.cz> References: <061541E3-F301-46C4-8ECB-5B05854F0EAA@exscape.org> <4A9D558A.9070609@quip.cz> In-Reply-To: <4A9D558A.9070609@quip.cz> X-Enigmail-Version: 0.96.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig015CF9C75ADF032EDA7B1D58" Cc: freebsd-stable@freebsd.org, Thomas Backman , Maciej Jan Broniarz 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: Wed, 02 Sep 2009 07:20:30 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig015CF9C75ADF032EDA7B1D58 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Miroslav Lachman wrote: > 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 > _______________________________________________ > freebsd-stable@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-stable > To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.or= g" Hello, I'm quite surprised by your setup, as you are using two mechanisms to accomplish the exact same thing: data replication. If you want two slices of toast do you use a toaster for one, and an oven for the other? My advice to you: either use zfs or gmirror to realize redundancy. Of course, zfs provides far more flexibility then UFS. However, as mentioned, booting from ZFS isn't something sysinstall can setup for you.= Besides, updating a zfs filesystem which you are running from is next to impossible. And since ZFS is still under heavy development, you will want to update your zfs version every now and then. So, i would recommend setting up gmirror to mirror your whole disks, install the base system(boot and "world") on a small UFS slice, and use the rest of the disc as zfs slice. If you feel comfortable enough running your entire system on zfs, you could use a mirrored zpool to boot from. Takes a little more efford, but is more uniform. Updating zfs will be a pain though. You would have to boot from another filesystem to be able to update your root filesystem. If you'll be reinstalling your system, you might want to check out FreeBSD 8 because zfs boot support is better. Hope it helps. Greetz, Mark --------------enig015CF9C75ADF032EDA7B1D58 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkqeHLgACgkQN9xNqOOVnWDt1gCglywYtyFMFtYVvTTqBgbceCHF vzUAnisdim6c7RPC5VA/P0SGv73vTpvm =+Ncl -----END PGP SIGNATURE----- --------------enig015CF9C75ADF032EDA7B1D58--