Zfs: failedwitherror6 under FreeBSD _ PHP Tutorial

Source: Internet
Author: User
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...

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.