Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 31 May 2007 09:25:41 +0200
From:      <oschonef@techfak.uni-bielefeld.de>
To:        Gerrit =?iso-8859-1?Q?K=FChn?= <gerrit@pmp.uni-hannover.de>
Cc:        current@freebsd.org
Subject:   Re: ZFS does not load and mount at boot time
Message-ID:  <20070531072541.GA22936@mime.TechFak.Uni-Bielefeld.DE>
In-Reply-To: <20070530174944.31966e57.gerrit@pmp.uni-hannover.de>
References:  <20070530174944.31966e57.gerrit@pmp.uni-hannover.de>

next in thread | previous in thread | raw e-mail | index | archive | help
Hello Gerrit,

Hello Gerrit,

Eines schoenen Tages schrieb Gerrit K=FChn:
> I'm using zfs on -currrent in form of a nanobsd image. Until recently I
> used my own script in rc.d/zfs to mount zfs volumes, which I had written
> prior to the import of zfs into -current.
[..]
> When manually running "/etc/rc.d/zfs start", zfs additionally complains
> that it may have been mounted before by a different host, and I have to
> use -f to overcome this.
> Are there any hints how to solve these issues?

If you put zfs_load=3D"YES" into loader.conf, the module will be loaded by =
the
loader. If, however, the /boot/zfs/zpool.cache is not up-to-date or not even
written (in case of a ro-mount of / in nanobsd) the filesystems will not be
mounted automatically; they have to be imported manually as decribed by
another post in this thread.
I worked around that by symlinking /boot/zfs -> /etc/zfs; therefore
zpool.cache will be saved on the /etc mfs filesystem. On shutdown, I save
zpool.cache to nanobas's configuration slice. The file will then be automat=
ically
copied to /etc/zfs by rc.diskless and the filesystems will be mounted on
boot-time.

HTH,
Oliver
--=20
--------------------------------------------------------
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?20070531072541.GA22936>