From owner-freebsd-fs@FreeBSD.ORG Wed Jan 23 11:19:05 2013 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 6BF445C8 for ; Wed, 23 Jan 2013 11:19:05 +0000 (UTC) (envelope-from peter@rulingia.com) Received: from vps.rulingia.com (host-122-100-2-194.octopus.com.au [122.100.2.194]) by mx1.freebsd.org (Postfix) with ESMTP id 01882A35 for ; Wed, 23 Jan 2013 11:19:03 +0000 (UTC) Received: from server.rulingia.com (c220-239-246-167.belrs5.nsw.optusnet.com.au [220.239.246.167]) by vps.rulingia.com (8.14.5/8.14.5) with ESMTP id r0NBIvI1070522 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Wed, 23 Jan 2013 22:18:58 +1100 (EST) (envelope-from peter@rulingia.com) X-Bogosity: Ham, spamicity=0.000000 Received: from server.rulingia.com (localhost.rulingia.com [127.0.0.1]) by server.rulingia.com (8.14.5/8.14.5) with ESMTP id r0NBIqgx023019 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 23 Jan 2013 22:18:52 +1100 (EST) (envelope-from peter@server.rulingia.com) Received: (from peter@localhost) by server.rulingia.com (8.14.5/8.14.5/Submit) id r0NBIqI7023016; Wed, 23 Jan 2013 22:18:52 +1100 (EST) (envelope-from peter) Date: Wed, 23 Jan 2013 22:18:52 +1100 From: Peter Jeremy To: Michael DeMan Subject: Re: RFC: Suggesting ZFS "best practices" in FreeBSD Message-ID: <20130123111852.GM30633@server.rulingia.com> References: <314B600D-E8E6-4300-B60F-33D5FA5A39CF@sarenet.es> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="SLfjTIIQuAzj8yil" Content-Disposition: inline In-Reply-To: X-PGP-Key: http://www.rulingia.com/keys/peter.pgp User-Agent: Mutt/1.5.21 (2010-09-15) Cc: FreeBSD Filesystems X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 23 Jan 2013 11:19:05 -0000 --SLfjTIIQuAzj8yil Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 2013-Jan-22 17:27:13 -0800, Michael DeMan wrote: >- probably there are enough people even though it seems pretty obvious in = a couple more years nobody will have 32-bit or less than 8GB RAM? FreeBSD goes into an awful lot of embedded devices which are unlikely to transition off 32-bit or have more than a few hundred MB RAM for the foreseeable future. Definitely, the PC world is going that way - but it's heavily driven by Microsoft and it's quite likely that the next version of Windows won't fit into 32-bits. >I could be disinformed here, but my understanding) is best practice is to = use gpart + gnop to: >#1. Ensure proper alignment for 4K sector drives - the latest western dig= itals still report as 512. Recent versions of ZFS allow you to specify ashift=3D12 without needing gnop. And in any case, gnop is only needed when you initialise the pool. Once the initial ashift value is set, it can't be changed. (And I'd be interested in knowing how well a SSD ZIL compensates for having an ashift=3D9 pool on 4K sector disks). >#2. Ensure a little extra space is left on the drive since if the whole d= rive is used, a replacement may be a tiny bit smaller and will not work. As someone else has mentioned, recent ZFS allows some slop here. But I still think it's worthwhile carving out some space to allow for a marginally smaller replacement disk. >#3. Label the disks so you know what is what. With a paper label and a pen. >ZFS GENERAL BEST PRACTICES - address the regular ZFS stuff here=20 >- why the ZIL is a good thing even you think it kills your NFS performance >- no vdevs > 8 disks, raidz1 best with 5 disks, raidz2 best with 6 disks, = etc. >- striping over raidz1/raidz2 pools >- striping over mirrors >- etc... Most of this can be pointers to generic ZFS documentation. Which brings up another point - the documentation should make it clear whether a particular hint is FreeBSD-specific or generic across all ZFS platforms. And what "generic" ZFS hints are unnecessary on FreeBSD. --=20 Peter Jeremy --SLfjTIIQuAzj8yil Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (FreeBSD) iEYEARECAAYFAlD/xxwACgkQ/opHv/APuIeUFACfc9Nsr1d6RtSfgcGmtXTrRCd/ uTsAn2LBwgWuMbR8sxwUFcA9dAjKSz+K =vLtP -----END PGP SIGNATURE----- --SLfjTIIQuAzj8yil--