From owner-freebsd-fs@FreeBSD.ORG Fri Apr 27 18:27:19 2007 Return-Path: X-Original-To: freebsd-fs@FreeBSD.org Delivered-To: freebsd-fs@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 553C016A401; Fri, 27 Apr 2007 18:27:19 +0000 (UTC) (envelope-from oschonef@techfak.uni-bielefeld.de) Received: from smarthost.TechFak.Uni-Bielefeld.DE (smarthost.piip.TechFak.Uni-Bielefeld.DE [129.70.137.17]) by mx1.freebsd.org (Postfix) with ESMTP id 168CD13C484; Fri, 27 Apr 2007 18:27:18 +0000 (UTC) (envelope-from oschonef@techfak.uni-bielefeld.de) Received: from mime.TechFak.Uni-Bielefeld.DE (mime.TechFak.Uni-Bielefeld.DE [129.70.128.67]) by smarthost.TechFak.Uni-Bielefeld.DE (Postfix) with ESMTP id ED96C48518; Fri, 27 Apr 2007 20:27:17 +0200 (CEST) Received: (from oschonef@localhost) by mime.TechFak.Uni-Bielefeld.DE (8.11.7+Sun/8.9.1) id l3RIRHf00514; Fri, 27 Apr 2007 20:27:17 +0200 (MEST) From: Date: Fri, 27 Apr 2007 20:27:17 +0200 To: Pawel Jakub Dawidek Message-ID: <20070427182717.GA504@mime.TechFak.Uni-Bielefeld.DE> References: <20070425110558.GA28614@mime.TechFak.Uni-Bielefeld.DE> <20070427142706.GL49413@garage.freebsd.pl> <20070427170159.GA458@mime.TechFak.Uni-Bielefeld.DE> <20070427173641.GB51688@garage.freebsd.pl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20070427173641.GB51688@garage.freebsd.pl> User-Agent: Mutt/1.4.2i X-Zen: Oooommmmmmmmmmmmmmmmmmmmmmm Cc: freebsd-fs@FreeBSD.org Subject: Re: NanoBSD with ZFS X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 27 Apr 2007 18:27:19 -0000 Hello Pawel, Eines schoenen Tages schrieb Pawel Jakub Dawidek: [..] > > Unfortunatly not! "zpool create" tries to write to /boot/zfs/.zpool.cache > > (possibly a temporary) which cannot be written. If I symlink > > /boot/zfs/.zpool.cache -> /etc/zfs/.zpool.cache, I end up with the > > cache being written to /etc/zfs/.zpool.cache. This file however is then not > > copied or moved to /etc/zfs/zpool.cache, but of the symlinks. > > If I link /boot/zfs/.zpool.cache to /etc/zfs/zpool.cache, the file is > > populated. > > After a reboot however the file, which was copied there by the rc.initdiskless, > > seems not to containt, what zfs expects, since the filesystems are not > > mounted and I need to import the pool by hand. > > And /boot/zfs -> /etc/zfs symlink? Ok, this solved the problem with the temporary file. I should have tried that by myself. ;) The filesystems are still not mounted after reboot. This is, because I preloaded the zfs.ko module. ZFS seems to try to load the cache, but rc.initdiskless has not been run and therefore there is no zpool.cache file. If I load the the module from a rc.d script, which needs to be run before rc.d/zfs, it works as expected. If the loader could preload files from a different partition (ffs, w/o bsdlabel), it would be possibe to preload the module. My first experiments however failed. But since it works the way I described above this feature would be nice to have, but is not mandatory ;) Thanks, Oliver -- -------------------------------------------------------- And remember: "To Infinity And Far Beyond ... Somehow?!" Hi! I'm a .signature virus! Copy me in your ~/.signature to help me spread! <- Save this lifeform ;-)