From nobody Wed Feb 23 22:40:42 2022 X-Original-To: freebsd-stable@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id A71D419D00E9 for ; Wed, 23 Feb 2022 22:40:54 +0000 (UTC) (envelope-from SRS0=hzUB=TG=quip.cz=000.fbsd@elsa.codelab.cz) Received: from elsa.codelab.cz (elsa.codelab.cz [94.124.105.4]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4K3rbn6slvz4fhR for ; Wed, 23 Feb 2022 22:40:53 +0000 (UTC) (envelope-from SRS0=hzUB=TG=quip.cz=000.fbsd@elsa.codelab.cz) Received: from elsa.codelab.cz (localhost [127.0.0.1]) by elsa.codelab.cz (Postfix) with ESMTP id 7159328417 for ; Wed, 23 Feb 2022 23:40:45 +0100 (CET) Received: from illbsd.quip.test (ip-78-45-215-131.net.upcbroadband.cz [78.45.215.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by elsa.codelab.cz (Postfix) with ESMTPSA id 6F07228411 for ; Wed, 23 Feb 2022 23:40:44 +0100 (CET) To: FreeBSD Stable Mailing List From: Miroslav Lachman <000.fbsd@quip.cz> Subject: bootcode update after zpool upgrade Message-ID: Date: Wed, 23 Feb 2022 23:40:42 +0100 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 List-Id: Production branch of FreeBSD source code List-Archive: https://lists.freebsd.org/archives/freebsd-stable List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-stable@freebsd.org X-BeenThere: freebsd-stable@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 4K3rbn6slvz4fhR X-Spamd-Bar: / Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=none (mx1.freebsd.org: domain of "SRS0=hzUB=TG=quip.cz=000.fbsd@elsa.codelab.cz" has no SPF policy when checking 94.124.105.4) smtp.mailfrom="SRS0=hzUB=TG=quip.cz=000.fbsd@elsa.codelab.cz" X-Spamd-Result: default: False [-0.39 / 15.00]; RCVD_TLS_LAST(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-0.74)[-0.738]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-stable@freebsd.org]; DMARC_NA(0.00)[quip.cz]; AUTH_NA(1.00)[]; RCPT_COUNT_ONE(0.00)[1]; RCVD_COUNT_THREE(0.00)[3]; TO_DN_ALL(0.00)[]; NEURAL_SPAM_MEDIUM(0.15)[0.146]; NEURAL_HAM_SHORT(-1.00)[-1.000]; MLMMJ_DEST(0.00)[freebsd-stable]; FORGED_SENDER(0.30)[000.fbsd@quip.cz,SRS0=hzUB=TG=quip.cz=000.fbsd@elsa.codelab.cz]; R_SPF_NA(0.00)[no SPF record]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:42000, ipnet:94.124.104.0/21, country:CZ]; FROM_NEQ_ENVFROM(0.00)[000.fbsd@quip.cz,SRS0=hzUB=TG=quip.cz=000.fbsd@elsa.codelab.cz]; MID_RHS_MATCH_FROM(0.00)[]; RECEIVED_SPAMHAUS_PBL(0.00)[78.45.215.131:received] X-ThisMailContainsUnwantedMimeParts: N I did "zpool upgrade tank0" on one of our machines with FreeBSD 12.2-p13 amd64 and then got this message: # zpool upgrade tank0 This system supports ZFS pool feature flags. Enabled the following features on 'tank0': large_dnode spacemap_v2 allocation_classes If you boot from pool 'tank0', don't forget to update boot code. Assuming you use GPT partitioning and da0 is your boot disk the following command will do it: gpart bootcode -b /boot/pmbr -p /boot/gptzfsboot -i 1 da0 I am not sure what I should update. This machine is EFI boot only (this is the only one EFI machine we have). # gpart show => 40 1953525088 nvd0 GPT (932G) 40 409600 1 efi (200M) 409640 1024 2 freebsd-boot (512K) 410664 113624 - free - (55M) 524288 20971520 3 freebsd-swap (10G) 21495808 1932001280 4 freebsd-zfs (921G) 1953497088 28040 - free - (14M) => 40 1953525088 nvd1 GPT (932G) 40 409600 1 efi (200M) 409640 1024 2 freebsd-boot (512K) 410664 113624 - free - (55M) 524288 20971520 3 freebsd-swap (10G) 21495808 1932001280 4 freebsd-zfs (921G) 1953497088 28040 - free - (14M) Should I run: gpart bootcode -b /boot/pmbr -p /boot/gptzfsboot -i 2 nvd0 gpart bootcode -b /boot/pmbr -p /boot/gptzfsboot -i 2 nvd1 Or should I update EFI partitions? (if so, then how?) This machine is very problematic with booting and mounting NVME disks. They are not visible until I disabled PCI hot plug with hw.pci.enable_pcie_hp="0" in /boot/loader.conf This is production machine so I would really like to do it right and not make it unbootable. Kind regards Miroslav Lachman