FreeBSD zfs:failed with error 6 Troubleshooting _php Tutorial

Source: Internet
Author: User

Zfs:failed with error 6 troubleshooting under FreeBSD


Environment:

After re-compiling the kernel, reboot after installation, display: Zfs:failed with error 6, then the mountroot> hint.
This is a rare ZFS error code, typically 2 or 19 majority.

Tracking:

Look at the last line and still display a string of GUID numbers, so the suspicion is still on the GPT.
After adding two lines to the loader.conf, it still doesn't work:

kern.geom.label.gptid.enable= "0"
kern.geom.label.disk_ident.enable= "0"

The reason for adding these two lines is that the ADAP3 is the ZFS target when installing, and if not, the disk is displayed as a GUID format, causing the ZFS pool to find no disk, resulting in error 2.

The following line shows the ZFS debugging information, but because the USB keyboard is not available, you can only see the last line, still in the GUID format.
vfs.zfs.debug= "1"
Boot_pause= "YES"

Finally re-filtered the kernel configuration, found that three items were commented out:

Options Geom_part_gpt # GUID Partition Tables.
#options Geom_raid # Soft RAID functionality.
Options Geom_label # provides labelization

These three items are closely related to the GUIDs, which are suspected to be associated with them, so first add the following two lines to loader.conf and restart:
Geom_label_load= "YES"
Geom_part_gpt_load= "YES"

It turned out to be a smooth start!


Reason:

Geom related options are disabled in the kernel, causing the GEOM system to not function properly.


Solve:
Remove the note and recompile the kernel:
Options Geom_part_gpt # GUID Partition Tables.
#options Geom_raid # Soft RAID functionality.
Options Geom_label # provides labelization





http://www.bkjia.com/PHPjc/1092986.html www.bkjia.com true http://www.bkjia.com/PHPjc/1092986.html techarticle FreeBSD under zfs:failed with error 6 troubleshooting environment: Recompile the kernel, reboot after installation, display: Zfs:failed with error 6, then the mountroot prompt. This is a very little ...

  • 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.