put kern.geom.mirror.debug=99 in loader.conf and reboot
The sysctl kern.geom.mirror.debug described in
gmirror(8) might be useful. It can also be set from the loader. The extra logging that it enables will appear in dmesg.
I placed the
kern.geom.mirror.debug=99 in the
loader.conf and commented out the
geom_mirror_load="YES" so that I could try different kernel modules. (Sorry
JordanG, I somehow missed your original reply.) With the 14.2 kernel module, I get:
Code:
GEOM_MIRROR[2]: Tasting diskid/DISK-070A9705EB673D80p2.
GEOM_MIRROR[2]: Tasting diskid/DISK-070A9705EB673D80p1.
GEOM_MIRROR[2]: Tasting iso9660/13_0_RELEASE_AMD64_DVDp2.
GEOM_MIRROR[2]: Tasting iso9660/13_0_RELEASE_AMD64_DVDp1.
GEOM_MIRROR[2]: Tasting da4p2.
GEOM_MIRROR[2]: Tasting da4p1.
GEOM_MIRROR[2]: Tasting diskid/DISK-S5P2NU0W506310Rp1.
GEOM_MIRROR[2]: Tasting nda2p3.
GEOM_MIRROR[2]: Tasting nda2p2.
GEOM_MIRROR[2]: Tasting nda2p1.
GEOM_MIRROR[2]: Tasting nda1p1.
GEOM_MIRROR[2]: Tasting diskid/DISK-S5P2NU0W508224Bp1.
GEOM_MIRROR[2]: Tasting nda0p1.
GEOM_MIRROR[2]: Tasting msdosfs/EFISYS.
GEOM_MIRROR[2]: Tasting gptid/4b2d443d-9908-11eb-bf4c-002590ec5bf2.
GEOM_MIRROR[2]: Tasting gptid/4b2d4434-9908-11eb-bf4c-002590ec5bf2.
GEOM_MIRROR[2]: Tasting diskid/DISK-070A9705EB673D80.
GEOM_MIRROR[2]: Tasting iso9660/13_0_RELEASE_AMD64_DVD.
GEOM_MIRROR[2]: Tasting gptid/2204e969-7015-11ee-a4d2-d05099838bc5.
GEOM_MIRROR[2]: Tasting gpt/MIR1.
GEOM_MIRROR[2]: Tasting diskid/DISK-S5P2NU0W506310R.
GEOM_MIRROR[2]: Tasting ufsid/6534546dcfb9367c.
GEOM_MIRROR[2]: Tasting gptid/2d176080-7015-11ee-a4d2-d05099838bc5.
GEOM_MIRROR[2]: Tasting gpt/MIR0.
GEOM_MIRROR[2]: Tasting diskid/DISK-S5P2NU0W508224B.
GEOM_MIRROR[2]: Tasting da4.
GEOM_MIRROR[2]: Tasting da3.
GEOM_MIRROR[1]: Cannot read metadata from da3 (error=6).
GEOM_MIRROR[2]: Tasting da2.
GEOM_MIRROR[1]: Cannot read metadata from da2 (error=6).
GEOM_MIRROR[2]: Tasting da1.
GEOM_MIRROR[1]: Cannot read metadata from da1 (error=6).
GEOM_MIRROR[2]: Tasting da0.
GEOM_MIRROR[1]: Cannot read metadata from da0 (error=6).
GEOM_MIRROR[2]: Tasting nda2.
GEOM_MIRROR[2]: Tasting nda1.
GEOM_MIRROR[2]: Tasting nda0.
Note: drives da0, da1, da2, da3 are removable drive bays with no drives installed. da4 is the FreeBSD-13.0 install USB. nda2p1, nda2p2, nda2p3 are the FreeBSD-14.2 partitions (EFI, ROOT, SWAP). nda0p1 and nda1p1 are the mirror (although they were created with the old drive names of nvd0p1 and nvd1p1). MIR0 and MIR1 are the labels I used for the mirror partitions. I did not track down the gptid/* or the diskid/*.
Try this: Disable gmirror kernel module (comment geom_mirror_load in loader.conf), reboot system, mount the 13.0 USB stick on the 14.2 system (it should be daXs2a, replace X with actual device number), kldload /mnt/boot/kernel/geom_mirror.ko, check gmirror status.
I could not mount the 13.0 USB stick, it appears that it may be corrupt now (although I can still boot to the Live CD -- this may be another clue, so let me know if I should pursue it). Instead, I copied the 13.3
geom_mirror.ko from another working 13.3 system. I rebooted the 14.2 system and then:
Code:
# kldload ./geom_mirror_13.3.ko
KLD geom_mirror_13.3.ko: depends on kernel - not available or version mismatch
kldload: can't load ./geom_mirror_13.3.ko: module already loaded or in kernel
Note: the first message is from dmesg -- I was running the command from the console.
Second test: Get a another 14.2 geom_mirror.ko , load it. I've attached one to this post.
I tried the version you attached:
Code:
# kldload ./geom_mirror-142.ko.txt
GEOM_MIRROR[2]: Tasting diskid/DISK-S5P2NU0W506310Rp1.
GEOM_MIRROR[2]: Tasting nda2p3.
GEOM_MIRROR[2]: Tasting nda2p2.
GEOM_MIRROR[2]: Tasting nda2p1.
GEOM_MIRROR[2]: Tasting nda1p1.
GEOM_MIRROR[2]: Tasting diskid/DISK-S5P2NU0W508224Bp1.
GEOM_MIRROR[2]: Tasting nda0p1.
GEOM_MIRROR[2]: Tasting gptid/2204e969-7015-11ee-a4d2-d05099838bc5.
GEOM_MIRROR[2]: Tasting gpt/MIR1.
GEOM_MIRROR[2]: Tasting diskid/DISK-S5P2NU0W506310R.
GEOM_MIRROR[2]: Tasting ufsid/6534546dcfb9367c.
GEOM_MIRROR[2]: Tasting gptid/2d176080-7015-11ee-a4d2-d05099838bc5.
GEOM_MIRROR[2]: Tasting gpt/MIR0.
GEOM_MIRROR[2]: Tasting diskid/DISK-S5P2NU0W508224B.
GEOM_MIRROR[2]: Tasting da3.
GEOM_MIRROR[1]: Cannot read metadata from da3 (error=6).
GEOM_MIRROR[2]: Tasting da2.
GEOM_MIRROR[1]: Cannot read metadata from da2 (error=6).
GEOM_MIRROR[2]: Tasting da1.
GEOM_MIRROR[1]: Cannot read metadata from da1 (error=6).
GEOM_MIRROR[2]: Tasting da0.
GEOM_MIRROR[1]: Cannot read metadata from da0 (error=6).
GEOM_MIRROR[2]: Tasting nda2.
GEOM_MIRROR[2]: Tasting nda1.
GEOM_MIRROR[2]: Tasting nda0.
Note: I removed da4 for this test.
I wanted to see what the debug information was supposed to look like, but I ran into some trouble. The 13.0 install USB Live CD doesn't recognize the kern.geom.mirror.debug OID. It seems that the OID isn't available until the geom_mirror.ko is loaded, and then it's too late to turn debugging on. So I installed 13.0 on a compact flash (one of the removable drive bays is CF). Then I was able to set the debug OID in
loader.conf, and capture the dmesg output when loading the kernel module. Setting it to 99 was probably a bit high -- the output is almost 700 lines, so I am attaching it instead of in-lining it.