Date: Fri, 27 Apr 2007 20:27:17 +0200 From: <oschonef@techfak.uni-bielefeld.de> To: Pawel Jakub Dawidek <pjd@FreeBSD.org> Cc: freebsd-fs@FreeBSD.org Subject: Re: NanoBSD with ZFS Message-ID: <20070427182717.GA504@mime.TechFak.Uni-Bielefeld.DE> In-Reply-To: <20070427173641.GB51688@garage.freebsd.pl> 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>
next in thread | previous in thread | raw e-mail | index | archive | help
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 ;-)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070427182717.GA504>