From owner-freebsd-current@FreeBSD.ORG Thu May 31 07:50:45 2007 Return-Path: X-Original-To: current@freebsd.org Delivered-To: freebsd-current@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id C58DC16A400 for ; Thu, 31 May 2007 07:50:45 +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 8617513C455 for ; Thu, 31 May 2007 07:50:45 +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 877AB484E7; Thu, 31 May 2007 09:25:42 +0200 (CEST) Received: (from oschonef@localhost) by mime.TechFak.Uni-Bielefeld.DE (8.11.7+Sun/8.9.1) id l4V7PgQ22944; Thu, 31 May 2007 09:25:42 +0200 (MEST) From: Date: Thu, 31 May 2007 09:25:41 +0200 To: Gerrit =?iso-8859-1?Q?K=FChn?= Message-ID: <20070531072541.GA22936@mime.TechFak.Uni-Bielefeld.DE> References: <20070530174944.31966e57.gerrit@pmp.uni-hannover.de> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable In-Reply-To: <20070530174944.31966e57.gerrit@pmp.uni-hannover.de> User-Agent: Mutt/1.4.2i X-Zen: Oooommmmmmmmmmmmmmmmmmmmmmm Cc: current@freebsd.org Subject: Re: ZFS does not load and mount at boot time X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 31 May 2007 07:50:45 -0000 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 ;-)