From owner-freebsd-questions@FreeBSD.ORG Tue Feb 19 01:41:38 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 033B72DE for ; Tue, 19 Feb 2013 01:41:38 +0000 (UTC) (envelope-from fbsd8@a1poweruser.com) Received: from mail-03.name-services.com (mail-03.name-services.com [69.64.155.195]) by mx1.freebsd.org (Postfix) with ESMTP id C405525A for ; Tue, 19 Feb 2013 01:41:37 +0000 (UTC) Received: from [10.0.10.3] ([173.88.202.176]) by mail-03.name-services.com with Microsoft SMTPSVC(6.0.3790.4675); Mon, 18 Feb 2013 17:41:36 -0800 Message-ID: <5122D83F.6090107@a1poweruser.com> Date: Mon, 18 Feb 2013 20:41:19 -0500 From: Fbsd8 User-Agent: Thunderbird 2.0.0.17 (Windows/20080914) MIME-Version: 1.0 To: Polytropon Subject: Re: How to add zfs support to FreeBSD? References: <51229B47.4070605@a1poweruser.com> <5122A3BA.2000907@a1poweruser.com> <20130219015600.68050fb2.freebsd@edvax.de> In-Reply-To: <20130219015600.68050fb2.freebsd@edvax.de> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 19 Feb 2013 01:41:36.0990 (UTC) FILETIME=[418097E0:01CE0E42] X-Sender: fbsd8@a1poweruser.com X-Authenticated-Sender: fbsd8@a1poweruser.com X-EchoSenderHash: [fbsd8]-[a1poweruser*com] Cc: FreeBSD questions X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 19 Feb 2013 01:41:38 -0000 Polytropon wrote: > 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. > So the next question is there any sh script code I can use to check if zfs has been enabled by the rc.conf zfs_enable statement. I need to determine if zfs is enabled on the host. Thanks