ZFS RAID MIRROR Boot Error

iamfahad

New Member


Messages: 4

I have installed FreeBSD-RELEASE 11.0 with MIRROR (Double Disk). SWAP mirror too.


Code:
Mounting from zfs:zroot/ROOT/default failed with error 2: unknown file system
I can by pass the problem by loading kernels,
load /boot/kernel/kernel
load /boot/kernel/opensolaris.ko
load /boot/kernel/zfs.ko

But every time I need boot this way.

If I then edit loader.conf and add lines to load the modules, it will boot automatically:

opensolaris_load="YES"
zfs_load="YES"

Is this the perfect solution? I have to build an Internal server. But If it is like that, i am little bit worried to rely. I had to give some time to find the exact way around.

Isn't there any official update in this FREEBSD?
 

gkontos

Daemon

Reaction score: 480
Messages: 2,151

How did you install the system? bsdinstall in FreeBSD 11.0-RELEASE has a very straight forward way to create a mirror root on ZFS.

Code:
opensolaris_load="YES"
Is not needed.
 
OP
OP
iamfahad

iamfahad

New Member


Messages: 4

How did you install the system? bsdinstall in FreeBSD 11.0-RELEASE has a very straight forward way to create a mirror root on ZFS.

Code:
opensolaris_load="YES"
Is not needed.
I did install that way. It works in my virtualbox with several disk and raid mirror. But facing this problem in my home server(to be).

does it varies on main boards?
 

gkontos

Daemon

Reaction score: 480
Messages: 2,151

I did install that way. It works in my virtualbox with several disk and raid mirror. But facing this problem in my home server(to be).

does it varies on main boards?
No, it is exactly the same. Here is the /boot/loader.conf of one server installed with FreeBSD 11.0-RELEASE

Code:
kern.geom.label.disk_ident.enable="0"
kern.geom.label.gptid.enable="0"
kern.geom.label.disk_ident.enable="0"
kern.geom.label.gptid.enable="0"
zfs_load="YES"
If your home server is using any sort of raid make sure that you disable it.
 
OP
OP
iamfahad

iamfahad

New Member


Messages: 4

No, it is exactly the same. Here is the /boot/loader.conf of one server installed with FreeBSD 11.0-RELEASE

Code:
kern.geom.label.disk_ident.enable="0"
kern.geom.label.gptid.enable="0"
kern.geom.label.disk_ident.enable="0"
kern.geom.label.gptid.enable="0"
zfs_load="YES"
If your home server is using any sort of raid make sure that you disable it.
Actually I meant mirror. Not raid. Raid is disabled. I clean partitioned the disks. I will update the config check, will let you know. Thank You.
 
OP
OP
iamfahad

iamfahad

New Member


Messages: 4

No, it is exactly the same. Here is the /boot/loader.conf of one server installed with FreeBSD 11.0-RELEASE

Code:
kern.geom.label.disk_ident.enable="0"
kern.geom.label.gptid.enable="0"
kern.geom.label.disk_ident.enable="0"
kern.geom.label.gptid.enable="0"
zfs_load="YES"
If your home server is using any sort of raid make sure that you disable it.

Hello, I have the following configs in /boot/loader.conf

Code:
geom_mirror_load="YES"
kern.geom.label.disk_ident.enable="0"
kern.geom.label.gptid.enable="0"
zfs_load="YES"
Is it supposed to be like that?

If I just comment the "geom_mirror_load="YES" " then the system boot normally. :) But why is it by default enabled ?
 

ShelLuser

Son of Beastie

Reaction score: 1,719
Messages: 3,538

geom_mirror should not be used in combination with ZFS, that is most definitely the cause of your problem. GEOM is basically the 'internal' way to set up mirrors, raids and journals (see also gmirror(8)). It's been years since I installed FreeBSD but I can only guess that you could have enabled a wrong option somewhere.

To my knowledge you can set up ZFS during installation, but it doesn't fully automatically set up mirrors and raid-z and such. However, I could be wrong about that because as said: it's been ages since I used the installer.
 

chrbr

Aspiring Daemon

Reaction score: 241
Messages: 670

To my knowledge you can set up ZFS during installation, but it doesn't fully automatically set up mirrors and raid-z and such. However, I could be wrong about that because as said: it's been ages since I used the installer.
Nowadays it works well assuming you want to use the whole disk(s).
 
Top