From owner-freebsd-stable@FreeBSD.ORG Tue Dec 17 15:30:37 2013 Return-Path: Delivered-To: stable@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 ESMTPS id A2AF1448 for ; Tue, 17 Dec 2013 15:30:37 +0000 (UTC) Received: from mail.egr.msu.edu (hill.egr.msu.edu [35.9.37.162]) by mx1.freebsd.org (Postfix) with ESMTP id 73FC61F32 for ; Tue, 17 Dec 2013 15:30:37 +0000 (UTC) Received: from hill (localhost [127.0.0.1]) by mail.egr.msu.edu (Postfix) with ESMTP id 4FBFF2D450 for ; Tue, 17 Dec 2013 10:24:10 -0500 (EST) X-Virus-Scanned: amavisd-new at egr.msu.edu Received: from mail.egr.msu.edu ([127.0.0.1]) by hill (hill.egr.msu.edu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id E9-5muASOh1r for ; Tue, 17 Dec 2013 10:24:10 -0500 (EST) Received: from EGR authenticated sender Message-ID: <52B06C9A.3050306@egr.msu.edu> Date: Tue, 17 Dec 2013 10:24:10 -0500 From: Adam McDougall User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0 MIME-Version: 1.0 To: stable@FreeBSD.org Subject: Re: bsdinstall, zfs booting, gpt partition order suitable for volume expansion References: <20131210175323.GB1728@egr.msu.edu> <52B065B4.2070006@yandex.ru> In-Reply-To: <52B065B4.2070006@yandex.ru> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.17 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, 17 Dec 2013 15:30:37 -0000 On 12/17/2013 09:54, Andrey V. Elsukov wrote: > On 10.12.2013 21:53, Adam McDougall wrote: >> I was wondering if either the default gpt partition order could become >> p1=boot, p2=swap, p3=zpool, or if the installer could be enhanced at >> some point to allow the user to select the order. It seems like it would > > Hi, > > I think the following scheme is more expansible: > p1=boot, p2=zpool, p3=swap > > You always can remove swap partition and change the size of zpool, then > add swap partition. Also, you can expand swap partition when the amount > of memory will be increased. > Expanding swap as you described it is more work though, and it is easy to add a second swap partition if more swap is required. If p2 and p4 were swap, you could still even delete p4 and expand the zpool, and possibly recreate a new p4 for swap. I suspect it will be more common that people will want to expand their zpool rather than swap, so if that is true, p2=swap and p3=zpool will require the least effort to repartition.