[Bug 271555] FreeBSD 14.0: kernel panic with kern.geom.label.disk_ident.enable and kern.geom.label.gptid.enable both enabled
Date: Sun, 24 Sep 2023 10:50:51 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=271555 Graham Perrin <grahamperrin@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|standards@FreeBSD.org |bugs@FreeBSD.org CC|grahamperrin@freebsd.org |doc@FreeBSD.org Summary|Using UUID to identify |FreeBSD 14.0: kernel panic |partitions on FreeBSD does |with |not work well on FreeBSD |kern.geom.label.disk_ident. |14.0 |enable and | |kern.geom.label.gptid.enabl | |e both enabled Flags|maintainer-feedback?(dteske |maintainer-feedback- |@FreeBSD.org) | --- Comment #5 from Graham Perrin <grahamperrin@gmail.com> --- ^Triage: with or without reproducibility of the kernel panic, it will be useful to document the rationale for some installations of FreeBSD having kern.geom.label.disk_ident.enable and kern.geom.label.gptid.enable disabled by default in loader.conf(5). ==== Re: opening comment #0, from <https://forums.freebsd.org/posts/611439> (2023-05-21): > On FreeBSD 14.0 at today,we can't do : > > kern.geom.label.disk_ident.enable="1" > kern.geom.label.gptid.enable="1" > > otherwise,we get this kernel panic : (see attachment 242313) > instead,this argument works ok : > > kern.geom.label.ufsid.enable="1" > > and it will enable the mapping of the disks using the UUID method. % sysctl -d kern.geom.label.disk_ident.enable kern.geom.label.gptid.enable kern.geom.label.ufsid.enable kern.geom.label.disk_ident.enable: Create device nodes for drives which export a disk identification string kern.geom.label.gptid.enable: Create device nodes for GPT UUIDs kern.geom.label.ufsid.enable: Create device nodes for UFS file system IDs % Retrospective ==================== <https://github.com/freebsd/freebsd-src/commit/ee482f2c28e5675eba7f868427a4750c3121c57a> (2013-12-16) included addition of a line for 0 (zero) for: kern.geom.label.disk_ident.enable ee482f2c28e5 Add kern.geom.label.disk_ident.enable="0" to loader.conf(5). ---- <https://github.com/freebsd/freebsd-src/commit/2875e59f52f95d59ab7bf94ea67a98292f4f7775#diff-7c79805a092a0910d091e6f20f796b44ddb21504f3ab236ca0ea9406afe7a7c3R1268-R1273> (2014-04-15) included addition of a line for 0 (zero) for: kern.geom.label.gptid.enable 2875e59f52f9 Here is a patch for the bsdinstall root-on-zfs stuff that adds optional encryption for swap, and optional gmirror for swap (which can be combined) In doc and src trees ==================== % rg -e 'kern.geom.label.disk_ident.enable' /usr/doc % rg -e 'kern.geom.label.gptid.enable' /usr/doc /usr/doc/website/content/en/releases/8.1R/relnotes-detailed.adoc 1163:kern.geom.label.gptid.enable % rg -e 'kern.geom.label.ufsid.enable' /usr/doc /usr/doc/website/content/en/releases/8.1R/relnotes-detailed.adoc 1162:kern.geom.label.ufsid.enable % ▶ <https://www.freebsd.org/releases/8.1R/relnotes-detailed/#DISKS> ---- % rg -e 'kern.geom.label.disk_ident.enable' /usr/src /usr/src/usr.sbin/bsdinstall/scripts/zfsboot 1495: 'kern.geom.label.disk_ident.enable=\"0\"' \ /usr/src/release/tools/vmimage.subr 99: echo "kern.geom.label.disk_ident.enable=0" >> ${DESTDIR}/boot/loader.conf % rg -e 'kern.geom.label.gptid.enable' /usr/src /usr/src/usr.sbin/bsdinstall/scripts/zfsboot 1498: 'kern.geom.label.gptid.enable=\"0\"' \ % rg -e 'kern.geom.label.ufsid.enable' /usr/src % -- You are receiving this mail because: You are the assignee for the bug.