From owner-freebsd-current@FreeBSD.ORG Thu May 31 07:43:13 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 1D8E716A400 for ; Thu, 31 May 2007 07:43:13 +0000 (UTC) (envelope-from gerrit@pmp.uni-hannover.de) Received: from mrelay1.uni-hannover.de (mrelay1.uni-hannover.de [130.75.2.106]) by mx1.freebsd.org (Postfix) with ESMTP id A553C13C465 for ; Thu, 31 May 2007 07:43:12 +0000 (UTC) (envelope-from gerrit@pmp.uni-hannover.de) Received: from www.pmp.uni-hannover.de (www.pmp.uni-hannover.de [130.75.117.2]) by mrelay1.uni-hannover.de (8.13.8/8.13.8) with ESMTP id l4V7WMqh006981; Thu, 31 May 2007 09:32:24 +0200 Received: from pmp.uni-hannover.de (arc.pmp.uni-hannover.de [130.75.117.1]) by www.pmp.uni-hannover.de (Postfix) with SMTP id 9CD9E5BE; Thu, 31 May 2007 09:32:22 +0200 (CEST) Date: Thu, 31 May 2007 09:32:22 +0200 From: Gerrit =?ISO-8859-1?Q?K=FChn?= To: Message-Id: <20070531093222.25fde006.gerrit@pmp.uni-hannover.de> In-Reply-To: <20070531072541.GA22936@mime.TechFak.Uni-Bielefeld.DE> References: <20070530174944.31966e57.gerrit@pmp.uni-hannover.de> <20070531072541.GA22936@mime.TechFak.Uni-Bielefeld.DE> Organization: Albert-Einstein-Institut (MPI =?ISO-8859-1?Q?f=FCr?= Gravitationsphysik & IGP =?ISO-8859-1?Q?Universit=E4t?= Hannover) X-Mailer: Sylpheed 2.3.1 (GTK+ 2.10.12; i386-portbld-freebsd6.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-PMX-Version: 5.3.0.289146 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:43:13 -0000 On Thu, 31 May 2007 09:25:41 +0200 wrote about Re: ZFS does not load and mount at boot time: OUBD> > When manually running "/etc/rc.d/zfs start", zfs additionally OUBD> > complains that it may have been mounted before by a different OUBD> > host, and I have to use -f to overcome this. OUBD> > Are there any hints how to solve these issues? OUBD> If you put zfs_load="YES" into loader.conf, the module will be OUBD> loaded by the loader. If, however, the /boot/zfs/zpool.cache is not OUBD> up-to-date or not even written (in case of a ro-mount of / in OUBD> nanobsd) the filesystems will not be mounted automatically; they OUBD> have to be imported manually as decribed by another post in this OUBD> thread. I worked around that by symlinking /boot/zfs -> /etc/zfs; OUBD> therefore zpool.cache will be saved on the /etc mfs filesystem. On OUBD> shutdown, I save zpool.cache to nanobas's configuration slice. The OUBD> file will then be automatically copied to /etc/zfs by rc.diskless OUBD> and the filesystems will be mounted on boot-time. I read the thread before and tried to circumvent problems arising from this by setting /boot rw for testing purposes. However, without any change in behaviour. But I'll take a look at this again anyway, thanks for the hint. cu Gerrit