Zfs: failedwitherror6 under FreeBSD. Solution environment for zfs: failedwitherror6 in FreeBSD: re-compile the kernel, restart the kernel after installation, and display: zfs: failedwitherror6, followed by the mountroot prompt. This is a solution that rarely solves the zfs: failed with error 6 error in FreeBSD.
Environment: After the kernel is re-compiled, the system restarts after installation. the following prompt is displayed: zfs: failed with error 6, followed by mountroot>.
This is a rare zfs error code, usually 2 or 19.
Tracking: The last line still shows a string of GUIDs, so it is suspected that the problem still exists in the gpt.
After adding two lines to loader. conf, the problem persists:
Kern. geom. label. gptid. enable = "0"
Kern. geom. label. disk_ident.enable = "0"
The reason for adding these two lines is that during installation, the target is "adap3". if the two lines are not available, the disk is displayed as the guid format, and the zfs pool cannot find the disk, thus error 2 is generated.
Add the following line to display zfs debugging information. However, the last line is still in guid format because the USB keyboard is unavailable.
Vfs. zfs. debug = "1"
Boot_pause = "YES"
Finally, we re-filtered the kernel configuration and found that three items were commented out:
Options GEOM_PART_GPT # GUID Partition Tables.
# Options GEOM_RAID # Soft RAID functionality.
Options GEOM_LABEL # Provides labequalation
These three items are closely related to GUIDs, and are suspected to be related to them. Therefore, add the following two lines to loader. conf and restart:
Geom_label_load = "YES"
Geom_part_gpt_load = "YES"
It started successfully!
Cause: The GEOM-related options are disabled in the kernel, resulting in abnormal running of the geom system.
Solution:
Note: re-compile the kernel:
Options GEOM_PART_GPT # GUID Partition Tables.
# Options GEOM_RAID # Soft RAID functionality.
Options GEOM_LABEL # Provides labequalation
Failed with error 6 solution environment: re-compile the kernel, restart the system after installation, and display: zfs: failed with error 6, followed by the mountroot prompt. This is very rare...