Bug #6929
closedChoosing ZFS during install results in a system that cannot mount root
100%
Description
Choosing the ZFS option results in a system that starts to boot, but cannot mount the root slice because it doesn't know ZFS.
Trying to mount root from zfs:zroot/ROOT/default []... Mounting from zfs:zroot/ROOT/default failed with error 2: unknown file system
I can force it to mount by running the following at a loader prompt:
load /boot/kernel/kernel load /boot/kernel/opensolaris.ko load /boot/kernel/zfs.ko
If I then edit loader.conf and add lines to load the modules, it will boot automatically:
opensolaris_load="YES" zfs_load="YES"
Updated by Renato Botelho almost 8 years ago
- Status changed from Confirmed to Feedback
- % Done changed from 0 to 100
Pushed a fix, please try next round of snapshots
Updated by Jim Pingle almost 8 years ago
- Status changed from Feedback to Resolved
ZFS now works on CE and Factory snapshots, thanks!
Updated by Satadru Pramanik about 6 years ago
FYI this situation is re-occurring on current 2.4.4 dev snapshots. (The problem started in the last week.)
It can be fixed with the workaround above and the aforementioned additions to /boot/loader.conf, which unfortunately currently get overwritten on updates to newer snapshots.
Updated by Renato Botelho about 6 years ago
Satadru Pramanik wrote:
FYI this situation is re-occurring on current 2.4.4 dev snapshots. (The problem started in the last week.)
It can be fixed with the workaround above and the aforementioned additions to /boot/loader.conf, which unfortunately currently get overwritten on updates to newer snapshots.
I've pushed a fix to prevent update to overwrite loader.conf
Updated by Satadru Pramanik about 6 years ago
Renato Botelho wrote:
I've pushed a fix to prevent update to overwrite loader.conf
Thanks.
As a point of clarification, should the following be in the loader.conf by default?
opensolaris_load="YES"
zfs_load="YES"
Updated by Victor Hooi about 6 years ago
I hit this issue as well.
The workaround was to trigger the loader mode on bootup, then enter the commands:
load /boot/kernel/kernel
load /boot/kernel/opensolaris.ko
load /boot/kernel/zfs.ko
boot
However, the above comment seems to imply this is fixed - however, I've just updated to the 2018-07-21 nightly build, and it's still hanging on boot with "Mounting from zfs:zroot/ROOT/default failed with error 2: unknown file system".
Is this expected?
Or is the latest build meant to fix this issue automatically, or are we meant to do something manually to fix the issue?
Updated by Jim Thompson about 6 years ago
Victor Hooi wrote:
I hit this issue as well.
The workaround was to trigger the loader mode on bootup, then enter the commands:
load /boot/kernel/kernel
load /boot/kernel/opensolaris.ko
load /boot/kernel/zfs.ko
bootHowever, the above comment seems to imply this is fixed - however, I've just updated to the 2018-07-21 nightly build, and it's still hanging on boot with "Mounting from zfs:zroot/ROOT/default failed with error 2: unknown file system".
Is this expected?
Or is the latest build meant to fix this issue automatically, or are we meant to do something manually to fix the issue?
does your /boot/loader.conf contain
opensolaris_load="YES"
zfs_load="YES"
??
Updated by Jim Pingle about 6 years ago
If you upgraded to a snapshot that clobbered your /boot/loader.conf
contents then you would need to re-add the zfs_load="YES"
line to /boot/loader.conf manually. Those upgrading from before the problem time to now will be OK. Those upgrading from the problematic snapshots who repaired their loader.conf will be OK.
Updated by Satadru Pramanik about 6 years ago
Jim Pingle wrote:
If you upgraded to a snapshot that clobbered your
/boot/loader.conf
contents then you would need to re-add thezfs_load="YES"
line to /boot/loader.conf manually. Those upgrading from before the problem time to now will be OK. Those upgrading from the problematic snapshots who repaired their loader.conf will be OK.
Thanks.
I googled the error when I first saw this problem, saw this thread, and added
opensolaris_load="YES"
zfs_load="YES"
to my loader.conf, and since it is being preserved, I've had no further problems (with this) since...
Updated by Victor Hooi about 6 years ago
Got it - thanks for clarifying, Jim.
I added those two lines to the bottom of my /boot/loader.conf:
opensolaris_load="YES"
zfs_load="YES"
However, you're saying I only need the zfs_load line, right? I can take out the opensolaris_load line.
The joys of living on the bleeding edge, haha.
Updated by Jim Pingle about 6 years ago
Having both won't hurt anything, but you only need zfs_load="YES"
in loader.conf