From owner-freebsd-questions@FreeBSD.ORG Sat Dec 3 11:56:51 2011 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 673A41065675 for ; Sat, 3 Dec 2011 11:56:51 +0000 (UTC) (envelope-from cyberleo@cyberleo.net) Received: from paka.cyberleo.net (paka.cyberleo.net [66.219.31.21]) by mx1.freebsd.org (Postfix) with ESMTP id 4604B8FC12 for ; Sat, 3 Dec 2011 11:56:50 +0000 (UTC) Received: from [172.16.44.4] (den.cyberleo.net [66.253.36.39]) by paka.cyberleo.net (Postfix) with ESMTPSA id F284D28407; Sat, 3 Dec 2011 06:56:49 -0500 (EST) Message-ID: <4EDA0E81.9050507@cyberleo.net> Date: Sat, 03 Dec 2011 05:56:49 -0600 From: CyberLeo Kitsana User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:7.0.1) Gecko/20111106 Thunderbird/7.0.1 MIME-Version: 1.0 To: APseudoUtopia References: In-Reply-To: X-Enigmail-Version: 1.4a1pre Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: ZFS Filesystems wont auto-mount on boot X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 03 Dec 2011 11:56:51 -0000 On 12/03/2011 12:28 AM, APseudoUtopia wrote: > Hello, > > I followed a couple tutorials I found through google to setup RAID-Z1 > on root on FreeBSD 9.0-RC2. Everything works well, except it always > drops me into a recovery shell on boot. I'm forced to run `zfs mount > -a` to get all my data visible. Here's the boot log: > > Trying to mount root from zfs:root []... > Dec 3 01:23:07 init: login_getclass: unknown class `daemon` > cannot open /etc/rc: No such file or directory You did not provide a list of your filesystems, so this is just a guess, but I'd say that, judging by this error, you have /etc on a separate filesystem. At least /bin, /sbin, /lib, /libexec, and /etc must be on your root filesystem for the boot process to function, since the system bootstrap (/etc/rc et alia) resides in /etc and uses components in the other listed directories; it is the system bootstrap which automounts your ZFS filesystems on boot (zfs_enable). > Enter full pathname of shell or RETURN for /bin/sh: > > I then hit return, then run `zfs mount -a` to mount all my zfs filesystems. > > How can I have zfs automount these filesystems on boot so that the > system can continue booting without being interrupted? -- Fuzzy love, -CyberLeo Technical Administrator CyberLeo.Net Webhosting http://www.CyberLeo.Net Furry Peace! - http://wwww.fur.com/peace/