From owner-freebsd-fs@FreeBSD.ORG Fri Apr 27 17:02:02 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 3756E16A402 for ; Fri, 27 Apr 2007 17:02:02 +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 DF0AD13C45D for ; Fri, 27 Apr 2007 17:02:01 +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 C92D648511; Fri, 27 Apr 2007 19:01:59 +0200 (CEST) Received: (from oschonef@localhost) by mime.TechFak.Uni-Bielefeld.DE (8.11.7+Sun/8.9.1) id l3RH1xb00471; Fri, 27 Apr 2007 19:01:59 +0200 (MEST) From: Date: Fri, 27 Apr 2007 19:01:59 +0200 To: Pawel Jakub Dawidek Message-ID: <20070427170159.GA458@mime.TechFak.Uni-Bielefeld.DE> References: <20070425110558.GA28614@mime.TechFak.Uni-Bielefeld.DE> <20070427142706.GL49413@garage.freebsd.pl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20070427142706.GL49413@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 17:02:02 -0000 Hello Pawel, Eines schoenen Tages schrieb Pawel Jakub Dawidek: > On Wed, Apr 25, 2007 at 01:05:58PM +0200, oschonef@techfak.uni-bielefeld.de wrote: > > I'm currently experimenting with NanoBSD and want to integrate ZFS. > > Unfortunatly ZFS maintains the zpool.cache in /boot/zfs, but the filesystem > > is mounted read-only and this file cannot be written or changed. > > Would it be possible to add a tunable or sysctl to ZFS, which allows > > to specify the location of the zpool.cache file? [..] > > Creating a symlink /boot/zfs/zpool.cache -> /etc/zfs/zpool.cache doesn't > help? 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. Best Regards, 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 ;-)