From owner-freebsd-current@FreeBSD.ORG Mon Aug 13 13:35:00 2007 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D305D16A417 for ; Mon, 13 Aug 2007 13:35:00 +0000 (UTC) (envelope-from swhetzel@gmail.com) Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.185]) by mx1.freebsd.org (Postfix) with ESMTP id 5A61B13C45D for ; Mon, 13 Aug 2007 13:34:59 +0000 (UTC) (envelope-from swhetzel@gmail.com) Received: by nf-out-0910.google.com with SMTP id b2so514418nfb for ; Mon, 13 Aug 2007 06:34:58 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=HhQOJ1NmFT5ptb8YZsU3VtCbv2l2V+HeVaB9atBm9fwqLlsADMYuprCBrtXtdJ27vDkm0js7VS6rSsB8oW1hc01A9EiyEAWX5KJ82IpvyVxJ1uVMNyxD+ZFwYpeWyTZxSxjHPqEcEhZmzpxBRUpUDtm2ssyTEox4YVaaYlXni98= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=jAkNio7ootg26T3iYB/R1NAMUjVghgOH6AzGMUW2FnIHVN2xO/0auoX0x+P0FWsLozo8Ldpzfy+6PXmkrwEE/WKl/aYU8cYUsfJnUQcmsHokWbd6c24ENSsD6EJqbaMvSCtdpM6Xp5fMFh62NUhd6w0UnVous0zPwJZO9NgLJh4= Received: by 10.86.51.2 with SMTP id y2mr4745088fgy.1187012098473; Mon, 13 Aug 2007 06:34:58 -0700 (PDT) Received: by 10.86.59.6 with HTTP; Mon, 13 Aug 2007 06:34:58 -0700 (PDT) Message-ID: <790a9fff0708130634k18411f00ld6aa47b6bfb2a54b@mail.gmail.com> Date: Mon, 13 Aug 2007 08:34:58 -0500 From: "Scot Hetzel" To: gary.jennejohn@freenet.de In-Reply-To: <20070813123332.bd6dba7b.gary.jennejohn@freenet.de> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20070813055415.GM93381@obelix.dsto.defence.gov.au> <790a9fff0708122350w729761d1v72e6aaff414d3756@mail.gmail.com> <20070813070530.GT93381@obelix.dsto.defence.gov.au> <20070813123332.bd6dba7b.gary.jennejohn@freenet.de> Cc: freebsd-current@freebsd.org, "Wilkinson, Alex" Subject: Re: ZVOL/ZFS hosting UFS filesystems ... ERROR! 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: Mon, 13 Aug 2007 13:35:00 -0000 On 8/13/07, Gary Jennejohn wrote: > On Mon, 13 Aug 2007 15:05:30 +0800 > "Wilkinson, Alex" wrote: > > > 0n Mon, Aug 13, 2007 at 01:50:32AM -0500, Scot Hetzel wrote: > > > > >On 8/13/07, Wilkinson, Alex > wrote: > > >> Currently when boostrapping I get the following error: > > >> > > >> "Can't stat /dev/zvol/data_dg/export/ufs > > >> Unknown error; help! > > >> ERROR: ABORTING BOOT (sending SIGTERM to parent)!" > > >> > > >> And I drop into single user mode. > > >> > > >> The line causing this in fstab(5) is: > > >> > > >> /dev/zvol/data_dg/export/ufs /export/mod ufs rw,acls 1 1 > > >> > > >> Can anyone recommend how I can get around this ? > > >> > > >Try using: > > > > > > /dev/zvol/data_dg/export/ufs /export/mod ufs rw,acls,late 1 1 > > > > > >I had a similar problem, except I was mounting UFS filesystems > > >(/dev/ad0s2d) on to a mount point that was in a ZFS filesystem. When > > >I added the 'late' option, I nolonger saw messages that the mount > > >point didn't exist. > > > > Unfortuneately the 'late' option does not help. Exact same problem as I > have > > described above with 'late' included in fstab(5). :-( > > > > I am dropped into single user mode, then I have to: > > > > #/etc/rc.d/hostid start > > #/etc/rc.d/zfs start > > #mount /export/mod > > #^D > > > > And THEN all is good. OR set "noauto" in fstab(5) for /export/mod > > > > :-( > > > > Add this line to /boot/loader.conf (if it's already there then I can't help > you): > > zfs_load="YES" > If this doesn't work add the following to /etc/rc.d/zfs start_main so that it will mount the zfs volumes after the module has been loaded: # Mount ZVOLs with property org.freebsd:late=on. zfs list -H -o org.freebsd:late,name -t volume | \ while read state name; do case "${state}" in [oO][nN]) mount /dev/zvol/${name} ;; esac done Edit /etc/fstab to add noauto to each ZVOLs, and then add the "org.freebsd:late" attribute to each ZVOLs: zfs set org.freebsd:late=on data_dg/export/ufs Scot -- DISCLAIMER: No electrons were mamed while sending this message. Only slightly bruised.