From owner-freebsd-current@FreeBSD.ORG Tue Oct 8 20:25:15 2013 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 66812633; Tue, 8 Oct 2013 20:25:15 +0000 (UTC) (envelope-from fjwcash@gmail.com) Received: from mail-qe0-x22a.google.com (mail-qe0-x22a.google.com [IPv6:2607:f8b0:400d:c02::22a]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 1660A2E46; Tue, 8 Oct 2013 20:25:15 +0000 (UTC) Received: by mail-qe0-f42.google.com with SMTP id gc15so2125395qeb.1 for ; Tue, 08 Oct 2013 13:25:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=95HZEAOs8gQ66MfG4cNJmqIOM4Qgixe91W4HL2NiYJo=; b=xRLgC24FPpPrl1shyxaXd4yt4y9Zu8fWtZpZhkPPHTDTK+3kSO5xDZT5uC73b5e3LH yd9LPIHmTc7U/TDrrOhsBe+1yMKl3k1U/b9JpFp3CWvpi+XwQqKPLX/1VVF97S8LAf2Z xQiowD/dN9DITNZI+ndgXjmRKK9dFCDWYryasoe3e3WsFuuUnT0IskaFdSSNlfDtIiWK HiXWSBEeN/iFLEyOLJSCSjvQ1+tEI5xoyGG5S9CMiywgOebX8+5llt4eSg/DqceYTkFI pvsznMtr2FJDdMQ4k7gpm1PEIor42hHMa/Oa+0XpMuxrqyhXCzLf5GRVldhVvOcxtFrK GHBQ== MIME-Version: 1.0 X-Received: by 10.49.131.132 with SMTP id om4mr4937677qeb.2.1381263914220; Tue, 08 Oct 2013 13:25:14 -0700 (PDT) Received: by 10.49.39.33 with HTTP; Tue, 8 Oct 2013 13:25:14 -0700 (PDT) In-Reply-To: <52546844.2010608@freebsd.org> References: <52531295.7090700@allanjude.com> <52546844.2010608@freebsd.org> Date: Tue, 8 Oct 2013 13:25:14 -0700 Message-ID: Subject: Re: [CFT] Patch to bsdinstall to support root-on-ZFS and GELI From: Freddie Cash To: Nathan Whitehorn Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.14 Cc: FreeBSD-Current , Allan Jude X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.14 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: Tue, 08 Oct 2013 20:25:15 -0000 On Tue, Oct 8, 2013 at 1:17 PM, Nathan Whitehorn wr= ote: > 4. What is this gnop stuff for? > Can't comment on the rest, but gnop is required to create 4K-aligned vdevs where the minimum block size is 4K (aka ashift=3D12). Without this, ZFS relies on the underlying disk driver providing the correct information, and most don't. Also, if you don't do this, and create a vdev using 512B sectors, the ashift will be set to 9, and replacing the drive down the line with 4K Advanced Format drive will drop your drive performance in the toilet.=E2=80=8B=E2=80=8B Thus, to future-proof your pool, you need to: - set the ashift of the pool to 12 (4 KB) - align the disk/partition on 4 KB boundaries (starting partition at 1 MB works well) Until our ZFS gains the ability to set a minimum ashift for the pool, or to set the ashift at vdev creation, or all drive manufacturers write perfect firmware, than we need to fake it with gnop. --=20 Freddie Cash fjwcash@gmail.com