From owner-freebsd-questions@FreeBSD.ORG Tue Feb 19 00:56:04 2013 Return-Path: Delivered-To: questions@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 7CF45BC9 for ; Tue, 19 Feb 2013 00:56:04 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mx02.qsc.de (mx02.qsc.de [213.148.130.14]) by mx1.freebsd.org (Postfix) with ESMTP id 2BBF0CF for ; Tue, 19 Feb 2013 00:56:03 +0000 (UTC) Received: from r56.edvax.de (port-92-195-74-250.dynamic.qsc.de [92.195.74.250]) by mx02.qsc.de (Postfix) with ESMTP id 056B627729; Tue, 19 Feb 2013 01:55:56 +0100 (CET) Received: from r56.edvax.de (localhost [127.0.0.1]) by r56.edvax.de (8.14.5/8.14.5) with SMTP id r1J0u0sm002415; Tue, 19 Feb 2013 01:56:00 +0100 (CET) (envelope-from freebsd@edvax.de) Date: Tue, 19 Feb 2013 01:56:00 +0100 From: Polytropon To: Fbsd8 Subject: Re: How to add zfs support to FreeBSD? Message-Id: <20130219015600.68050fb2.freebsd@edvax.de> In-Reply-To: <5122A3BA.2000907@a1poweruser.com> References: <51229B47.4070605@a1poweruser.com> <5122A3BA.2000907@a1poweruser.com> Organization: EDVAX X-Mailer: Sylpheed 3.1.1 (GTK+ 2.24.5; i386-portbld-freebsd8.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: FreeBSD questions X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: Polytropon List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 19 Feb 2013 00:56:04 -0000 On Mon, 18 Feb 2013 16:57:14 -0500, Fbsd8 wrote: > Fbsd8 wrote: > > The handbook does not cover how to add zfs support. > > > > How is it done? > > > Let me reword. If zfs is in the base system why does it not show up > when I look for it this way? > > if config -x $( sysctl -n kern.bootfile ) | grep -q > '^[[:space:]]*options[[:space:]]\{1,\}ZFS\>'; then > echo "yes zfs is in the kernel" > fi Without the ability to check this, I strongly assume that if you enable ZFS as described in the Handbook, the module /boot/kernel/zfs.ko (part of the default system) will be loaded. That's why it won't show up in a sysctl query aimed at the _kernel_ itself -- because it isn't in the kernel. Also, "sysctl -n kern.bootfile" will return the actual kernel file, /boot/kernel/kernel, which is a binary. If the exact config list (from the kernel _configuration_ file) is not plain-text part of that file, grep will not find the text you're grepping for. -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...