From nobody Sun Jul 31 09:23:33 2022 X-Original-To: freebsd-questions@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 4LwbR96VY1z4XklS for ; Sun, 31 Jul 2022 09:23:49 +0000 (UTC) (envelope-from dpchrist@holgerdanske.com) Received: from holgerdanske.com (holgerdanske.com [IPv6:2001:470:0:19b::b869:801b]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "holgerdanske.com", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4LwbR75bYkz3K8g for ; Sun, 31 Jul 2022 09:23:47 +0000 (UTC) (envelope-from dpchrist@holgerdanske.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=holgerdanske.com; s=nov-20210719-112354; t=1659259414; bh=Wp/9ukMVImBafkaVattQzp30NZehtyLNtD/s4apQMvE=; h=Received:Message-ID:Date:MIME-Version:User-Agent:Content-Language: To:From:Subject:Content-Type:Content-Transfer-Encoding; b=cEqDNpq7nDHugwxAHs/aTzQFxQMfQMQTRT1TMPrL2iwasR1ModulOwbdk4C9Nb7q5 +Ky4OV/sCNFJeMw0DaQ16qs/8wKaBnqjxTzcSXNKQaX6vd0iyAoX1VLLHQIESF16V9 fJQYkGSs+bA8/NsP/ykfanID0vrCQpenPjIfypsQN5LjSB8VdXlPXvyHlASSnahcjq PYNrayWnrVf2IQ08jhcFKsnzf76hPXyRMlYln8fNPe6az565IiSoOTWD75g7naSTA7 /IShf76xRlpgsKdxk+Qvy21Jkbwd5oR/mPm1ecrw05X2AYW3xneS485tokTqTFQ1ec bnndBxsfI10K6h35sa2Crrc5ISteYbyLSOvCDwaJZdlcNzq+ETc/IuLCkgFuxIKVaT ubDtRd2M5lJRCXkfiLUQmesDnUYqPJ56Ykf/4wmi5dFgxh/Bm3HDKOAZUs0DAGZXJB vlqqDToOLEFH+tfHW1ZpwT9aC1TZj1kCWQsnG0IZpygiMYNzGA9K0OLHo4Yj/7KR1A TtVJUAo6RaEnGQPoddNROtsf1ztUk5HInh31FDcXuJ9adsBhvwoBBLaTxfAh+XVkK2 UKBQrvBLCzeXctZhYBLvIW35whrTxG8vuzHK0L9dZKo8r9KV8NKaDCgWj6Xv+abrel kHyeOaaHiMPRQEr0EV0Eq1jg= Received: from 99.100.19.101 (99-100-19-101.lightspeed.frokca.sbcglobal.net [99.100.19.101]) by holgerdanske.com with ESMTPSA (TLS_AES_128_GCM_SHA256:TLSv1.3:Kx=any:Au=any:Enc=AESGCM(128):Mac=AEAD) (SMTP-AUTH username dpchrist@holgerdanske.com, mechanism PLAIN) for ; Sun, 31 Jul 2022 02:23:34 -0700 Message-ID: Date: Sun, 31 Jul 2022 02:23:33 -0700 List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.12.0 Content-Language: en-US To: freebsd-questions@freebsd.org From: David Christensen Subject: zpool upgrade "don't forget to update boot code" Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 4LwbR75bYkz3K8g X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=holgerdanske.com header.s=nov-20210719-112354 header.b=cEqDNpq7; dmarc=pass (policy=none) header.from=holgerdanske.com; spf=pass (mx1.freebsd.org: domain of dpchrist@holgerdanske.com designates 2001:470:0:19b::b869:801b as permitted sender) smtp.mailfrom=dpchrist@holgerdanske.com X-Spamd-Result: default: False [-4.00 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-1.000]; DMARC_POLICY_ALLOW(-0.50)[holgerdanske.com,none]; R_SPF_ALLOW(-0.20)[+a:november.he.net]; R_DKIM_ALLOW(-0.20)[holgerdanske.com:s=nov-20210719-112354]; MIME_GOOD(-0.10)[text/plain]; DKIM_TRACE(0.00)[holgerdanske.com:+]; ASN(0.00)[asn:6939, ipnet:2001:470::/32, country:US]; MLMMJ_DEST(0.00)[freebsd-questions@freebsd.org]; MIME_TRACE(0.00)[0:+]; FROM_EQ_ENVFROM(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; MID_RHS_MATCH_FROM(0.00)[]; ARC_NA(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; FROM_HAS_DN(0.00)[]; TO_DN_NONE(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; RCVD_TLS_ALL(0.00)[] X-ThisMailContainsUnwantedMimeParts: N freebsd-questions: I previously installed FreeBSD onto an x86_64 computer: FreeBSD-12.1-RELEASE-amd64-memstick.img The computer has a single SSD for the OS disk. I used the FreeBSD installer to partition the OS disk as follows: Partitioning Auto (ZFS) Pool Type/Disks stripe: 1 disk ada0 Pool Name soho2_zroot Force 4K Sectors YES Encrypt Disks YES Partition Scheme MBR (BIOS) Swap Size 2g Mirror Swap YES Encrypt Swap YES >>> Install Proceed with installation Encryption passphrase ******* The disk was partitioned as follows: # gpart show -p ada0 => 63 117231345 ada0 MBR (56G) 63 1985 - free - (993K) 2048 29360128 ada0s1 freebsd [active] (14G) # gpart show -p ada0s1 => 0 29360128 ada0s1 BSD (14G) 0 4194304 ada0s1a freebsd-zfs (2.0G) 4194304 4194304 ada0s1b freebsd-swap (2.0G) 8388608 20971520 ada0s1d freebsd-zfs (10G) I have upgraded several times since installation: # freebsd-version ; uname -a 12.3-RELEASE-p5 FreeBSD f3.tracy.holgerdanske.com 12.3-RELEASE-p5 FreeBSD 12.3-RELEASE-p5 GENERIC amd64 At some point, 'zpool status' started providing "status" and "action" notices for the boot and root pools: # zpool status bootpool pool: bootpool state: ONLINE status: Some supported features are not enabled on the pool. The pool can still be used, but some features are unavailable. action: Enable all features using 'zpool upgrade'. Once this is done, the pool may no longer be accessible by software that does not support the features. See zpool-features(7) for details. scan: scrub repaired 0 in 0 days 00:00:02 with 0 errors on Sun Jul 31 00:57:17 2022 config: NAME STATE READ WRITE CKSUM bootpool ONLINE 0 0 0 ada0s1a ONLINE 0 0 0 # zpool status soho2_zroot pool: soho2_zroot state: ONLINE status: Some supported features are not enabled on the pool. The pool can still be used, but some features are unavailable. action: Enable all features using 'zpool upgrade'. Once this is done, the pool may no longer be accessible by software that does not support the features. See zpool-features(7) for details. scan: scrub repaired 0 in 0 days 00:00:42 with 0 errors on Sun Jul 31 00:58:09 2022 config: NAME STATE READ WRITE CKSUM soho2_zroot ONLINE 0 0 0 ada0s1d.eli ONLINE 0 0 0 Tonight, I did the upgrades: # zpool upgrade bootpool This system supports ZFS pool feature flags. Enabled the following features on 'bootpool': allocation_classes # zpool status bootpool pool: bootpool state: ONLINE scan: scrub repaired 0 in 0 days 00:00:02 with 0 errors on Sun Jul 31 00:57:17 2022 config: NAME STATE READ WRITE CKSUM bootpool ONLINE 0 0 0 ada0s1a ONLINE 0 0 0 errors: No known data errors # zpool upgrade soho2_zroot This system supports ZFS pool feature flags. Enabled the following features on 'soho2_zroot': allocation_classes If you boot from pool 'soho2_zroot', 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 # zpool status soho2_zroot pool: soho2_zroot state: ONLINE scan: scrub repaired 0 in 0 days 00:00:42 with 0 errors on Sun Jul 31 00:58:09 2022 config: NAME STATE READ WRITE CKSUM soho2_zroot ONLINE 0 0 0 ada0s1d.eli ONLINE 0 0 0 errors: No known data errors The above message "Assuming you use GPT partitioning and da0 is your boot disk ..." does not seem to apply to my case. Nor do the FreeBSD Manual or Wiki: https://docs.freebsd.org/en/books/handbook/boot/ http://freebsdwiki.net/index.php/ZFS,_booting_from Do I need to update boot code? Which stage(s)? Which file(s)? Which destinations? What commands? David