Home  >  Article  >  Backend Development  >  zfs: failed with error 6 error solution under FreeBSD_PHP tutorial

zfs: failed with error 6 error solution under FreeBSD_PHP tutorial

WBOY
WBOYOriginal
2016-07-12 09:00:36929browse

Zfs: failed with error 6 error solution under FreeBSD

Environment:

After recompiling the kernel, restarting after installation, it shows: zfs: failed with error 6, and then mountroot> prompted.
This is a rare zfs error code, usually 2 or 19.

Trace:

Look at the last line, it still shows a string of guid numbers, so I suspect the problem still lies with gpt.
It still doesn’t work after adding two lines in loader.conf:

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

The reason for adding these two lines is that during installation, adap3 is used as the zfs target. Without these two lines, the disk will be displayed in guid format, causing the zfs pool to not be able to find the disk, resulting in Mistake 2.

Add the following line to display zfs debugging information, but since the USB keyboard cannot be used, you can only see the last line, which is still in guid format.
vfs.zfs.debug="1"
boot_pause="YES"

Finally 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 labelization

These three items are closely related to guid. I suspect they are related to them, so I added the following first Enter two lines into loader.conf and restart:
geom_label_load="YES"
geom_part_gpt_load="YES"

It started successfully!


Cause:

GEOM related options are disabled in the kernel, causing the geom system to not work properly.


Solution:
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





www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/1092986.htmlTechArticlezfs under FreeBSD: failed with error 6 error solution environment: Recompile the kernel, restart after installation, display: zfs : failed with error 6, and then the mountroot prompt appears. This is a rare...
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn