From owner-freebsd-current@freebsd.org Fri Feb 12 00:44:10 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 5DE8F53CB6F for ; Fri, 12 Feb 2021 00:44:10 +0000 (UTC) (envelope-from fjwcash@gmail.com) Received: from mail-qt1-x831.google.com (mail-qt1-x831.google.com [IPv6:2607:f8b0:4864:20::831]) (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 4DcFB13HqRz3LxY for ; Fri, 12 Feb 2021 00:44:09 +0000 (UTC) (envelope-from fjwcash@gmail.com) Received: by mail-qt1-x831.google.com with SMTP id c5so5650645qth.2 for ; Thu, 11 Feb 2021 16:44:09 -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=ScDMZcEAhv8UWb0qtsnkG5IfkkjvrlRYAX/So7uVTvQ=; b=kNVd83yoMBf5FnaYUI14wuG4HFbg33VSYvWvwJuXqn3oM1Qwh3KaqVCpLcnJRawfvF cjXpdi6BLFa67nImCKe8EXghVIGsoClhV4oeB6EzKXOSCUgs/r/k3Flh1MAlMnHAnLFx uyKHT/iqTMXddJd7mV6C3X4PtaeaKHHxp6bUFVIt+Wui8VW0AGcEd3+cZ3FNgaoecWnh iPS1ZCKI+k5o3fOpSABJ7wiE3ii7BYHg8+MpDBSO6FCQ65aOxR2Dh/xB6yD09dQHl4N6 wrr0926Ej67OlXAlldheKfKC3qTpOfAYmXC3ixUQwzs/7zqw8XOL2evBdmLDEFwPqZwG T8kw== 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=ScDMZcEAhv8UWb0qtsnkG5IfkkjvrlRYAX/So7uVTvQ=; b=SV+oelb+rtyxJTDxKpCIe1RKcUXpFbqe4HXfYKwpJ+okCxXd6BgKrrChw8lE0xfdXV KvhE0cvNLWXu6bfjatOb4TSrUPei1t0fxNkRgzLfAs+AhYoyUMsKcj8SN2g4fj78Bp78 nXq+j+Pc5r2/DBHbVi1c81ROBXD3PbDAJWjLrlakAOT5maMjmhWG+HyC/wzY7yzSPE+O SaZE1sMPDDsoAYpT3pteU0QGLq4mAXBgNO7KoIuPwrPfcVHUqCN5FoVGXQcpTHWyzvuB 3chtgNPEAowrd87coNUXCLY0f58WcRqb2HCq2pF0bYNYr1sC6aINEtOcKNNQLfFm1iw/ kuJg== X-Gm-Message-State: AOAM532V5t1WGmoDQidpkt/zezMZ6nFAZ/K2mqeGI8Wv+6Il957DtHQj AzajEcAOvqd8pKLxizIbm4EU78VdpcFwkG2wGRQevcq1 X-Google-Smtp-Source: ABdhPJzGDGPIexBTSTcsJRhJLPS3267ufcAa3pM83EIZh0vMQDmApNDPPr+nmgxZVFjD4cRYe9+xH4iqVJCg7T+5TSY= X-Received: by 2002:ac8:5ad4:: with SMTP id d20mr391982qtd.224.1613090648797; Thu, 11 Feb 2021 16:44:08 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Freddie Cash Date: Thu, 11 Feb 2021 16:43:57 -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: 4DcFB13HqRz3LxY X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=kNVd83yo; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of fjwcash@gmail.com designates 2607:f8b0:4864:20::831 as permitted sender) smtp.mailfrom=fjwcash@gmail.com X-Spamd-Result: default: False [-3.88 / 15.00]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36:c]; FREEMAIL_FROM(0.00)[gmail.com]; 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.88)[-0.878]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; RBL_DBL_DONT_QUERY_IPS(0.00)[2607:f8b0:4864:20::831: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::831:from:127.0.2.255]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::831: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:44:10 -0000 Sorry, meant 256 KB or 512 KB, not MB! On Thu, Feb 11, 2021 at 4:43 PM Freddie Cash wrote: > 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 > -- Freddie Cash fjwcash@gmail.com