From nobody@FreeBSD.org  Wed Dec 19 08:18:36 2007
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 8D93F16A419
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 19 Dec 2007 08:18:36 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id 7739913C455
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 19 Dec 2007 08:18:36 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.2/8.14.2) with ESMTP id lBJ8IGuJ014654
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 19 Dec 2007 08:18:16 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.2/8.14.1/Submit) id lBJ8IGCo014653;
	Wed, 19 Dec 2007 08:18:16 GMT
	(envelope-from nobody)
Message-Id: <200712190818.lBJ8IGCo014653@www.freebsd.org>
Date: Wed, 19 Dec 2007 08:18:16 GMT
From: Erik Swanson <erik.swanson@gmail.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: ZFS-related commands are nonfunctional in fixit shell.
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         118855
>Category:       misc
>Synopsis:       [zfs] ZFS-related commands are nonfunctional in fixit shell.
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pjd
>State:          feedback
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Dec 19 08:20:00 UTC 2007
>Closed-Date:    
>Last-Modified:  Thu Sep 02 00:53:37 UTC 2010
>Originator:     Erik Swanson
>Release:        7.0-BETA4
>Organization:
>Environment:
FreeBSD 7.0-BETA4 FreeBSD 7.0-BETA4 #0: Sun Dec 2 19:19:04 UTC 2007 root@logan.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386
>Description:
The zfs and zpool commands are nonfunctional in the fixit shell of the
7.0-BETA4-i386-livefs.iso cd image. When either command is run, the
result is "internal error: failed to initialize ZFS library".

>How-To-Repeat:
1. Boot from 7.0-BETA4-i386-livefs.iso.
2. Select country.
3. Select Fixit.
4. Select CDROM/DVD.
5. Try to run "zfs" or "zpool".
>Fix:


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->pjd 
Responsible-Changed-By: remko 
Responsible-Changed-When: Thu Dec 20 08:19:11 UTC 2007 
Responsible-Changed-Why:  
Hello Pawel, you probably know best what to do with this (or how to get 
this properly supported) so forwarding the ticket to you ;-) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=118855 
Responsible-Changed-From-To: pjd->freebsd-fs 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Thu May 28 22:21:34 UTC 2009 
Responsible-Changed-Why:  
With pjd's permission, reassing ZFS-related PRs to freebsd-fs. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=118855 

From: Dan Naumov <dan.naumov@gmail.com>
To: bug-followup@FreeBSD.org, erik.swanson@gmail.com
Cc:  
Subject: Re: misc/118855: [zfs] ZFS-related commands are nonfunctional in 
	fixit shell.
Date: Sun, 14 Jun 2009 00:32:54 +0300

 I am also having this very same problem on my 7.2-RELEASE/amd64, kinda
 hard to debug ZFS issues when you cannot interact with ZFS from
 Fixit...
 
 
 - Dan Naumov

From: Dan Naumov <dan.naumov@gmail.com>
To: bug-followup@FreeBSD.org, erik.swanson@gmail.com
Cc:  
Subject: Re: misc/118855: [zfs] ZFS-related commands are nonfunctional in 
	fixit shell.
Date: Sun, 14 Jun 2009 12:43:20 +0300

 This should be moved to -docs, here is why:
 
 I managed to figure it out after having some of my hair go gray: when
 you are in FIXIT, you have to do "kldload
 /dist/boot/kernel/opensolaris.ko; kldload /dist/boot/kernel/zfs.ko" in
 that particular order (because automatic loading of kernel module
 dependencies does not work in FIXIT). After this, "zpool" and "zfs"
 will start working. The ZFS part of the Handbook (
 http://www.freebsd.org/doc/en/books/handbook/filesystems-zfs.html )
 makes no mention about this, I think a small note in there is in
 order.
 
 
 Sincerely,
 Dan Naumov
State-Changed-From-To: open->feedback 
State-Changed-By: pjd 
State-Changed-When: ro 9 wrz 2009 06:04:47 UTC 
State-Changed-Why:  
Automatic dependencies load should work from fixit. I think the problem  
is that kern.module_path isn't configured properly. Are you able to 
verify that? If that's the case can you manually set kern.module_path to 
/dist/boot/kernel and see if that will make it to work? 


Responsible-Changed-From-To: freebsd-fs->pjd 
Responsible-Changed-By: pjd 
Responsible-Changed-When: ro 9 wrz 2009 06:04:47 UTC 
Responsible-Changed-Why:  
I'm back, so take it back. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=118855 
>Unformatted:
