From owner-freebsd-current@freebsd.org Fri Feb 12 00:43:54 2021 Return-Path: Delivered-To: freebsd-current@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 1BFA153C8C5 for ; Fri, 12 Feb 2021 00:43:54 +0000 (UTC) (envelope-from fjwcash@gmail.com) Received: from mail-qt1-x835.google.com (mail-qt1-x835.google.com [IPv6:2607:f8b0:4864:20::835]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4DcF9j0hy7z3Lnx for ; Fri, 12 Feb 2021 00:43:52 +0000 (UTC) (envelope-from fjwcash@gmail.com) Received: by mail-qt1-x835.google.com with SMTP id o21so5643502qtr.3 for ; Thu, 11 Feb 2021 16:43:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=NJsZGmay6ICGE7kq9+MBnuerFgtNWfQdLcq82kyWbIs=; b=jOLHkLNDroP8RQ6ZZCEKlwliWHNA4zYMFWMlySthuwfDa9C7aTcmGz7/p+b0ngB8x7 Mr5sdtM4yqGRVmPddYGC1q7mYfP06jovhLCpKI7ytCR55oyeJO6Kr01uhwmrrusnsHFh HrDx04GT1Xlny46/W2vpEtHYavPXNOaFpJugFVzvsCV0oQQdnaggCAIhTNGQTJm9MVQK TKJRJTvoi+Ioxnc1X+yRNeJV9Hm/hTqfvN29Prdu2d9KX25Af2hzcVqgchaL+pLZhadn bq91oPsk/XHdbVEy0gg9gWeZHUrmVfJHYEf4OXSdTELGB87qBk6VOPghjPFjCqs41p2X SZpQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=NJsZGmay6ICGE7kq9+MBnuerFgtNWfQdLcq82kyWbIs=; b=nks6kmSbX3f329H9MmnrSOQdO/zvLj9vaKemJt7FhVvX3FY1ODr8Oi7p5NvVjuy92H 9yqmkSdWjU3zors9W7K+U9J1owh9peqLDeXrNdbkBBK6H+pgHxdJI2ITYTj/F+iB4nog JSsn9AbYv1FJ7TPblCrhMHVCPgfueVTFaFOriua3U9DhPqL0X2hDiv4SQpO0q3n5oA49 MOjXfa1GG87nKGB9J6n2Qd6H3/Upx/W1VB2bLSDZTo6uzByS1Rrmc1lRj0UbDImyByL7 n7OsavJmsgGcuGyetnK0y5LG7Ax6xSrhTTIgiW5bSwkwOAfybIbPNtALgFBOmIXQGpEc Ta4A== X-Gm-Message-State: AOAM5321aQMPBhomvXzWXd055HkRCSLw8q1mqlTzF2NhUP+zLDL69MXP wprb/BTqX2ErPI9nxDmaxvAEi9QaBaC0OwGDzWx9DCVZ X-Google-Smtp-Source: ABdhPJwjt1kVYo7Ix+IiLHKDXxx2dMRKCqfcyAOhpzyegNsnJ4gfB7O5fq96AOOMfehBUP9MzIJS/3JwmFmYjCbPW5w= X-Received: by 2002:ac8:5747:: with SMTP id 7mr382051qtx.274.1613090632038; Thu, 11 Feb 2021 16:43:52 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Freddie Cash Date: Thu, 11 Feb 2021 16:43:40 -0800 Message-ID: Subject: Re: upgrade stable/12 -> stable/13 zfs + boot partition Mediasize 64K To: "Russell L. Carter" Cc: FreeBSD-Current X-Rspamd-Queue-Id: 4DcF9j0hy7z3Lnx X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=jOLHkLND; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of fjwcash@gmail.com designates 2607:f8b0:4864:20::835 as permitted sender) smtp.mailfrom=fjwcash@gmail.com X-Spamd-Result: default: False [-3.91 / 15.00]; FREEMAIL_FROM(0.00)[gmail.com]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; NEURAL_HAM_SHORT(-0.91)[-0.913]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; RBL_DBL_DONT_QUERY_IPS(0.00)[2607:f8b0:4864:20::835:from]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; FROM_HAS_DN(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-current@freebsd.org]; SPAMHAUS_ZRD(0.00)[2607:f8b0:4864:20::835:from:127.0.2.255]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::835:from]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[]; MAILMAN_DEST(0.00)[freebsd-current] Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.34 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.34 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: Fri, 12 Feb 2021 00:43:54 -0000 On Thu, Feb 11, 2021 at 4:35 PM Russell L. Carter wrote: > Greetings, > > I really want to jump from stable/12 to stable/13 but one thing is > causing a hesitancy. And that is, my main raidz2 system has > a system boot zfs mirror pair that has boot partition size > (Mediasize) of 64K, and when I tried to zpool upgrade that pool a > year or 2 ago I got some scary message something like "boot > partition size is not large enough". I asked about this on the > lists but never received an answer. So, laziness required me > to ignore the problem and not zpool upgrade any of my 15 or so > zpools in the interim. > > A few weeks ago I tried to make buildworld/installworld upgrade > 12->13 but the boot failed in the mounting filesystems phase with it > couldn't find a bootable target. So after restoring 12 I decided > to wait a bit. In the interim I have upgraded every zpool but that > one system pool. All the other freebsd-boot partitions have a size > of 512K. > > So what is the current advice? Is a freebsd-boot partition size > of 64K laughably obsolete, and I should get with the program and > repartition those disks, or can I march blindly into the upgrade? > > I guess I just want to understand where these sizes are going in > the future. > > That is laughably small and you need to enter the 21st century. ;) I believe the recommendation is 256 MB or even 512 MB these days. If you partitioned your disks using "-a 1M" with gpart(8) for the freebsd-zfs partition, then you'll have some slack space between it and the freebsd-boot partition. Just delete the freebsd-boot partition and create a larger one in it's place. I did something similar with some drives that were part of a separate storage pool that I wanted to make bootable, by creating a freebsd-boot partition in the slack space before the freebsd-zfs partition. If you don't have that slack space at the front, you will need to detach one of the drives from the mirror, re-partition it, then attach it back to the mirror. Rinse and repeat for the other side. ZFS shouldn't notice the pool is smaller by 1 MB (there's some internal slack space to allow you to add drives that are labelled as the same size, but actually have different numbers of sectors). Cheers, Freddie