From owner-freebsd-current@freebsd.org Fri Feb 12 03:46:46 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 9E57A542529 for ; Fri, 12 Feb 2021 03:46:46 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: from mail-qv1-xf36.google.com (mail-qv1-xf36.google.com [IPv6:2607:f8b0:4864:20::f36]) (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 4DcKDj4vvhz3rJ5 for ; Fri, 12 Feb 2021 03:46:45 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: by mail-qv1-xf36.google.com with SMTP id y10so3652668qvo.6 for ; Thu, 11 Feb 2021 19:46:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsdimp-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Lv7SAp4m+Ut23gQlHScJW6tQEtKJL+1ETdxrzEceKg8=; b=HvDTHQyh4FRTqXA1uSPYyKLTbeOgU0Wh+zLSazwzxaOFYOy52hs0ZjzRR+tYtCV7g0 /uGn1RNIPwqo9t6MvS/KWVm9l0d7ny7L+YwmqJiyjHKotLcYA0K2eZPwNlqU3Kgq63RM 9kzqCsqkE3WkXpr1Nmx52MiBYlzOqTnZkuz18DdeQordSl2cAfnkdEHPqiIdWRaB5ILW /jPTIYpCPBxuie1/xz9mjCBaykXNp0p/ycbhYpSYvXZ/JxaWX4RYKNTh+aGrVM4kTT64 +CzrSiStsx0NaJg1P/vUhyxklM5tbnZ0Ystm4gUViCQXLohXEZlzbOMHJiQhSIzdw14w vzCQ== 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=Lv7SAp4m+Ut23gQlHScJW6tQEtKJL+1ETdxrzEceKg8=; b=egSau6vKk9IFfaVnDVByRjyqLOFwJabz1qyRgjvt7QHCeU/ZH1Xg6gR6vWXdgGnz7a M9HyoxtKoIbALcpN+0hKNxtQ2tkqn6/ecDPHU6qFBwlrP2eOVQ1QXDGGTp6dXSNagKFf 7nPSjRQ99r/cbNjLos37aeVNmcKkXFNFaXgbyMNyYgQw26Jf64lZeAiznU+OpQ7x2LqM ha/h94xsKLWJ6GSmE6HLH3sNlQnPooZiPkR6FtEKGTB5dZNDZW49nGS+1SEEWzVzOREm h0Yqvy+pv+wSZACUsSWxAD9soLD1s8lbWDg8cA01Y4WLy+bZZjrC71CWkEYZS5Ofi6yG S12A== X-Gm-Message-State: AOAM531DsXSw8/rv7HIIoMcfLoboZMWUrrUpmYjt7evi2zaJRAUxRPNE tUm3u9Z3FxvKyt87kUrGcVHmZ+ZulZCkSylJvkRtlw== X-Google-Smtp-Source: ABdhPJxJLh11bUncESU2NRmuX4ISBJHo0ITbEQsnEUC8t0Prpwb4yEwzYxds/TxZSfw3o+aeiha52Uf9OWYslkKHbf0= X-Received: by 2002:ad4:576a:: with SMTP id r10mr873626qvx.29.1613101604621; Thu, 11 Feb 2021 19:46:44 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Warner Losh Date: Thu, 11 Feb 2021 20:46:32 -0700 Message-ID: Subject: Re: upgrade stable/12 -> stable/13 zfs + boot partition Mediasize 64K To: Freddie Cash Cc: "Russell L. Carter" , FreeBSD-Current X-Rspamd-Queue-Id: 4DcKDj4vvhz3rJ5 X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=bsdimp-com.20150623.gappssmtp.com header.s=20150623 header.b=HvDTHQyh; dmarc=none; spf=none (mx1.freebsd.org: domain of wlosh@bsdimp.com has no SPF policy when checking 2607:f8b0:4864:20::f36) smtp.mailfrom=wlosh@bsdimp.com X-Spamd-Result: default: False [-3.00 / 15.00]; RCVD_TLS_ALL(0.00)[]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[bsdimp-com.20150623.gappssmtp.com:s=20150623]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-current@freebsd.org]; DMARC_NA(0.00)[bsdimp.com]; SPAMHAUS_ZRD(0.00)[2607:f8b0:4864:20::f36:from:127.0.2.255]; TO_MATCH_ENVRCPT_SOME(0.00)[]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[bsdimp-com.20150623.gappssmtp.com:+]; NEURAL_HAM_SHORT(-1.00)[-1.000]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::f36:from]; R_SPF_NA(0.00)[no SPF record]; FREEMAIL_TO(0.00)[gmail.com]; FORGED_SENDER(0.30)[imp@bsdimp.com,wlosh@bsdimp.com]; MIME_TRACE(0.00)[0:+,1:+,2:~]; RBL_DBL_DONT_QUERY_IPS(0.00)[2607:f8b0:4864:20::f36:from]; RCVD_COUNT_TWO(0.00)[2]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; FROM_NEQ_ENVFROM(0.00)[imp@bsdimp.com,wlosh@bsdimp.com]; 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 03:46:46 -0000 512kB is what I recommend. ~540k (not 640k) is the limit Warner On Thu, Feb 11, 2021, 5:44 PM Freddie Cash wrote: > 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 > _______________________________________________ > freebsd-current@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org" >