From owner-freebsd-current@freebsd.org Fri Feb 12 01:07:27 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 B4BAD53D713 for ; Fri, 12 Feb 2021 01:07:27 +0000 (UTC) (envelope-from rcarter@pinyon.org) Received: from h2.pinyon.org (h2.pinyon.org [65.101.20.170]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4DcFhr6YN6z3NYY for ; Fri, 12 Feb 2021 01:07:24 +0000 (UTC) (envelope-from rcarter@pinyon.org) Received: from [10.0.10.15] (unknown [10.0.10.15]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by h2.pinyon.org (Postfix) with ESMTPSA id EB8A0856F; Thu, 11 Feb 2021 18:07:21 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pinyon.org; s=dkim; t=1613092041; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=sg+tsg93HUJ51oYV3y6c4ivuI3+A44Fqbg20xKonO1c=; b=sTJwUttvxlqBVSKyZtmjttrImkSsA+D1jFhHENS9hSP5bvYiWNDrkxNc0rMpUYeoiELVSs yev1IuEeUy09LSl0f3adPC7SPdVaoiInFGP3Tb2ba/vyeTuLL2F15I4XQqgHuuzwTN/CUO sFoYllgOYkhV0nValoGYfAQcgsoYB4A= Subject: Re: upgrade stable/12 -> stable/13 zfs + boot partition Mediasize 64K To: Freddie Cash References: From: "Russell L. Carter" Cc: freebsd-current@freebsd.org Message-ID: <6e3976f2-9641-cfea-3c2f-4ae2d834f1f3@pinyon.org> Date: Thu, 11 Feb 2021 18:07:21 -0700 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:78.0) Gecko/20100101 Firefox/78.0 Thunderbird/78.6.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-6.09 X-Rspamd-Server: h2 X-Rspamd-Queue-Id: 4DcFhr6YN6z3NYY X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=pinyon.org header.s=dkim header.b=sTJwUttv; dmarc=none; spf=pass (mx1.freebsd.org: domain of rcarter@pinyon.org designates 65.101.20.170 as permitted sender) smtp.mailfrom=rcarter@pinyon.org X-Spamd-Result: default: False [-3.49 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[pinyon.org:s=dkim]; MID_RHS_MATCH_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+mx]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[pinyon.org]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; SPAMHAUS_ZRD(0.00)[65.101.20.170:from:127.0.2.255]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[pinyon.org:+]; RCPT_COUNT_TWO(0.00)[2]; NEURAL_HAM_SHORT(-0.99)[-0.992]; FREEMAIL_TO(0.00)[gmail.com]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RBL_DBL_DONT_QUERY_IPS(0.00)[65.101.20.170:from]; ASN(0.00)[asn:209, ipnet:65.101.0.0/18, country:US]; RCVD_TLS_ALL(0.00)[]; MAILMAN_DEST(0.00)[freebsd-current]; RCVD_COUNT_TWO(0.00)[2] 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 01:07:29 -0000 On 2/11/21 5:43 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 >> > > That's what I wanted to know, thanks a lot. I need to practice replacing drives on that mirror anyway. Although I will study carefully the partition boundaries to see if your shortcut might work. I'm a FreeBSD person until I die so I should to get these lower level details nailed. Best! Russell