From owner-freebsd-questions@FreeBSD.ORG Thu Nov 24 19:27:08 2011 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 959531065672 for ; Thu, 24 Nov 2011 19:27:08 +0000 (UTC) (envelope-from m.seaman@infracaninophile.co.uk) Received: from smtp.infracaninophile.co.uk (smtp6.infracaninophile.co.uk [IPv6:2001:8b0:151:1:3cd3:cd67:fafa:3d78]) by mx1.freebsd.org (Postfix) with ESMTP id 140DD8FC13 for ; Thu, 24 Nov 2011 19:27:07 +0000 (UTC) Received: from seedling.black-earth.co.uk (seedling.black-earth.co.uk [81.187.76.163]) (authenticated bits=0) by smtp.infracaninophile.co.uk (8.14.5/8.14.5) with ESMTP id pAOJR4XI077074 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO); Thu, 24 Nov 2011 19:27:04 GMT (envelope-from m.seaman@infracaninophile.co.uk) X-DKIM: OpenDKIM Filter v2.4.1 smtp.infracaninophile.co.uk pAOJR4XI077074 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=infracaninophile.co.uk; s=201001-infracaninophile; t=1322162824; bh=3U6mtVi+mTvWRJqWxSwHjEUd10NJnAldpfrtcO5FU38=; h=Message-ID:Date:From:MIME-Version:To:CC:Subject:References: In-Reply-To:Content-Type; b=D1WujXLKiYp7XLGOrdy4adqUmZ77yhJtpr6X0wXaCXMRN5zUxD+rSSGOPhIMw3Ge+ ro7NdjjlDlXdMurtQ/x6BR+Ym3rqyzwVwgNIs3Mzg4ESPE+fYgrFdoIfRRn40IdfiA qfpe1MyJqXhx28/2R6yJ5Bco/3H1FsHQpTMR13gY= Message-ID: <4ECE9A7F.9000107@infracaninophile.co.uk> Date: Thu, 24 Nov 2011 19:26:55 +0000 From: Matthew Seaman User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:8.0) Gecko/20111105 Thunderbird/8.0 MIME-Version: 1.0 To: APseudoUtopia References: <88f3d8e819b3420f8e61723bee90ba5e.squirrel@www.magehandbook.com> <4ECB580E.20203@infracaninophile.co.uk> In-Reply-To: X-Enigmail-Version: 1.3.3 OpenPGP: id=60AE908C Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig2D56C894960611D7E83C64B0" X-Virus-Scanned: clamav-milter 0.97.3 at lucid-nonsense.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, score=-0.6 required=5.0 tests=BAYES_05,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,SPF_FAIL autolearn=no version=3.3.2 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on lucid-nonsense.infracaninophile.co.uk Cc: freebsd-questions@freebsd.org Subject: Re: Setting up ZFS - Filesystem Properties and Installing on Root X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 Nov 2011 19:27:08 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig2D56C894960611D7E83C64B0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 24/11/2011 19:19, APseudoUtopia wrote: > On Tue, Nov 22, 2011 at 3:06 AM, Matthew Seaman > wrote: >> On 22/11/2011 02:09, APseudoUtopia wrote: >>> Another quick question about swap: If I have 4 drives, with 512MB >>> swap, the system uses all 4 swap partitions, correct? So it's not lik= e >>> it'd be going to waste? I'd have a total of 2 GB swap? >> >> Well, yes. If you just declare those raw partitions to be swap areas,= >> that will be the case. However, doing this is asking for trouble: you= >> subvert any resilience features obtained by using ZFS with raidz1. If= >> any one of the drives fails, your swap area will break and your system= >> will probably crash. >> >> Better to set up two pairs of gmirrors for swap -- the procedure is >> described here: http://wiki.freebsd.org/RootOnZFS/GPTZFSBoot/Mirror >> in section3 "Finish Install." This will effectively give you a raid10= >> for your swap, with a total size of 1GB. >> >=20 > I'm not sure I understand this. How would that negatively affect the > raidz1? The swap isn't in the zpool. I understand the system may crash > if the OS was using the swap space and the drive failed. But would you > not be able to reboot into a degraded zpool state and still have a > usable system? >=20 No -- it means a failed disk can cause your system to crash. That's not resilient behaviour. Yes, the data on the ZFS raidz1 should survive the crash and the reboot, but the point is ZFS raidz1 should be able to survive a disk failure like that /without/ a system crash. Cheers, Matthew --=20 Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard Flat 3 PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate JID: matthew@infracaninophile.co.uk Kent, CT11 9PW --------------enig2D56C894960611D7E83C64B0 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.16 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk7OmocACgkQ8Mjk52CukIyekgCdE1S4hCNEyCAmOuyuS1Z4A8NX 42cAnAmJEzIJusG1VFQPtkrXCTVSuNzR =91K0 -----END PGP SIGNATURE----- --------------enig2D56C894960611D7E83C64B0--