From nobody Wed Nov 22 04:49:20 2023 X-Original-To: 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 4SZpgb1RNKz51n5l for ; Wed, 22 Nov 2023 04:49:31 +0000 (UTC) (envelope-from dpchrist@holgerdanske.com) Received: from holgerdanske.com (holgerdanske.com [184.105.128.27]) (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 4SZpgY6xLtz4D3S for ; Wed, 22 Nov 2023 04:49:29 +0000 (UTC) (envelope-from dpchrist@holgerdanske.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=holgerdanske.com header.s=nov-20210719-112354 header.b=Fq9geu8g; spf=pass (mx1.freebsd.org: domain of dpchrist@holgerdanske.com designates 184.105.128.27 as permitted sender) smtp.mailfrom=dpchrist@holgerdanske.com; dmarc=pass (policy=none) header.from=holgerdanske.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=holgerdanske.com; s=nov-20210719-112354; t=1700628560; bh=Zm2c8aqtFJTvqVeRwBtv7zh1Lq/znbtQEMn2SZXhhfM=; h=Received:Message-ID:Date:MIME-Version:User-Agent:Subject:To: References:Content-Language:From:In-Reply-To:Content-Type: Content-Transfer-Encoding; b=Fq9geu8g0BL4VFGtvXzO3w0jzV4EdxudthGTxGpHptaTFKaG3WBAxmsh0P712iYcl LOtJU4UzIQIYCkArdAgYwQqRmjSCIFfSwvdSLZs7mi2e0nW7hEWYC9KUbm8K6sZ8Nx IyClfe+0pDXIVJfZ1dX8HynEWsYgV5KwTWgWBHT2dycs0uSGvNyiQhXGdKg4RA7+yK agyFsfmcFUf7adNaqfhXSvyVIYMLOoLVtA1FbwZZIgkSgHDxtJnzTf1UynBh/jx5Px V8Hruer9W5oiE4hiN0arxRSRiT+iJBBrxlhC60knfX0pRH20c/ZQjtmtRsNUTtFqut xTsN5vRWPNvurY8BWKhRr+fxHzPb3EfYHVGszh6Nm68zCZGA6WKsLzHPtn74+bd6m6 LbdippLJhXAIdtni3ziTrft0Aewt4P7a23xkFRIODkpwr0a1R00wEbqzfOocAgK7Ym 8OLDZdJPCMsUHDMWoT5ohoVSpsaIesDw23HorMJ5T/wum4/P4EQ9Us3or8q0bJi18x 1ORrZBXD86AZCT19QzHeDLAGKBB+TB/C8gaFEL0hnEn2nHD+dy5NPH38Qpe4OYBkfs aj65I3iR7boL7IBDj26tNUJSaU7FNeMddNU3MDfdR4AEyr9I5sM1RXQ/GcAKIkJJSl hi+FSdGHxFBjkCvK5XLwurEk= 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 ; Tue, 21 Nov 2023 20:49:20 -0800 Message-ID: Date: Tue, 21 Nov 2023 20:49:20 -0800 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 Thunderbird Subject: Re: I am sick and tired of the poor quality of documentation on FreeBSD To: questions@freebsd.org References: Content-Language: en-US From: David Christensen In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spamd-Result: default: False [-3.89 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; DMARC_POLICY_ALLOW(-0.50)[holgerdanske.com,none]; R_DKIM_ALLOW(-0.20)[holgerdanske.com:s=nov-20210719-112354]; R_SPF_ALLOW(-0.20)[+a]; MIME_GOOD(-0.10)[text/plain]; ONCE_RECEIVED(0.10)[]; XM_UA_NO_VERSION(0.01)[]; FROM_EQ_ENVFROM(0.00)[]; RCVD_COUNT_ONE(0.00)[1]; PREVIOUSLY_DELIVERED(0.00)[questions@freebsd.org]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_ALL(0.00)[]; ASN(0.00)[asn:6939, ipnet:184.104.0.0/15, country:US]; MLMMJ_DEST(0.00)[questions@freebsd.org]; ARC_NA(0.00)[]; DKIM_TRACE(0.00)[holgerdanske.com:+]; TO_DN_NONE(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; FROM_HAS_DN(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[] X-Rspamd-Queue-Id: 4SZpgY6xLtz4D3S X-Spamd-Bar: --- On 11/21/23 11:51, iio7@tutanota.com wrote: > ... upgrade ... >   Pool 'zroot' has the bootfs property set, you might need to update the boot code. >   See gptzfsboot(8) and loader.efi(8) for details. > > I might need to update the boot code!? WTF does that even mean? > > I never touched any boot code during installation so I don't even know what that is! And reading those man pages did NOT help me in any way. > > So now I got a box that's borked with this beautiful message after updating the zroot pool: > > ZFS: unsupported feature: com.delphix:head_errlog > ZFS: pool zroot is not supported > Can't find /boot/zfsloader > Can't find /boot/loader > Can't find /boot/kernel/kernel On 11/21/23 13:10, iio7@tutanota.com wrote: > ... > https://www.daemonology.net/blog/2023-11-21-late-breaking-FreeBSD-14-breakage.html > ... On 11/21/23 15:22, iio7@tutanota.com wrote: > Enough with the assumptions! > ... I upgraded a ZFS boot pool and ZFS root pool last year, and encountered a similar warning: https://lists.freebsd.org/archives/freebsd-questions/2022-July/001593.html The following article was helpful for understanding the FreeBSD boot process: https://klarasystems.com/articles/the-freebsd-boot-process/ It might be possible to fix your FreeBSD instance: 1. Study the klarasystems article and determine the boot loader sequence for your computer, what stages/ files go where, and why. 2. Boot FreeBSD installer media into a rescue shell. 3. Crawl the FreeBSD installer shell script, following the path you would take if you were installing FreeBSD on that computer. Find the sections of installer code that write boot loader files from the installer media to various blocks on the system disk -- MBR, space between MBR and first slice, slices, BSD partition(s), etc.. Compare the installer files against disk blocks using cmp(1). If you find differences, write the installer files to the appropriate system disk blocks with dd(1). 4. If and when you get to installer files copied into a system disk ZFS file system, stop and see if the previous steps fixed the boot issue. 5. To access the system disk ZFS file systems, import the system disk pool(s) using the '-R altroot' option to avoid confusion due to overlaid file systems. I suggest taking an image of your system disk before attempting any of the above. Alternatively, remove the system disk, install a zeroed disk, do a fresh install, and restore from backups. Beware of installing multiple disks with identically named ZFS pools -- e.g. two system disks with pools "bootpool" and "zroot". It is safer to use the FreeBSD installer if you need to work on a ZFS system disk. David