From owner-freebsd-rc@FreeBSD.ORG Thu May 29 12:23:11 2008 Return-Path: Delivered-To: freebsd-rc@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5F42C1065671; Thu, 29 May 2008 12:23:11 +0000 (UTC) (envelope-from pjd@garage.freebsd.pl) Received: from mail.garage.freebsd.pl (chello087206046210.chello.pl [87.206.46.210]) by mx1.freebsd.org (Postfix) with ESMTP id BDFF38FC17; Thu, 29 May 2008 12:23:10 +0000 (UTC) (envelope-from pjd@garage.freebsd.pl) Received: by mail.garage.freebsd.pl (Postfix, from userid 65534) id 9D12045F21; Thu, 29 May 2008 14:00:26 +0200 (CEST) Received: from localhost (pjd.wheel.pl [10.0.1.1]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.garage.freebsd.pl (Postfix) with ESMTP id 9D88E45EA4; Thu, 29 May 2008 14:00:22 +0200 (CEST) Date: Thu, 29 May 2008 14:00:22 +0200 From: Pawel Jakub Dawidek To: Aaron Holmes Message-ID: <20080529120022.GE3159@garage.freebsd.pl> References: <48373178.4080909@aaronholmes.net> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="ep0oHQY+/Gbo/zt0" Content-Disposition: inline In-Reply-To: <48373178.4080909@aaronholmes.net> User-Agent: Mutt/1.4.2.3i X-PGP-Key-URL: http://people.freebsd.org/~pjd/pjd.asc X-OS: FreeBSD 8.0-CURRENT i386 X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on mail.garage.freebsd.pl X-Spam-Level: X-Spam-Status: No, score=-5.9 required=3.0 tests=ALL_TRUSTED,BAYES_00 autolearn=ham version=3.0.4 Cc: freebsd-rc@FreeBSD.org, freebsd-questions@freebsd.org Subject: Re: Delaying mount of UFS filesystem in ZFS pool X-BeenThere: freebsd-rc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion related to /etc/rc.d design and implementation." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 May 2008 12:23:11 -0000 --ep0oHQY+/Gbo/zt0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, May 23, 2008 at 02:04:56PM -0700, Aaron Holmes wrote: > I have a UFS filesystem inside a zpool: > tank on /tank (zfs, local) > /dev/zvol/tank/ufs on /mnt/ufs (ufs, local, acls) >=20 > If I add that entry (/dev/zvol/tank/ufs) to /etc/fstab, it will try to=20 > mount as a critical filesystem on boot, however, because ZFS hasn't yet= =20 > loaded, this fails and causes all sorts of fun for me. > Currently I have that filesystem mounting via a cronjob that checks=20 > every minute if it's mounted.. definitely not ideal. >=20 > I need this filesystem in /etc/fstab so I can setup quotas on it (if=20 > there is some other way to get quotas working, great, point me to a link= =20 > or two). >=20 > So what I'm thinking for a solution is to delay the mount of this=20 > filesystem until ZFS has loaded, but I'm not sure of a way to do this=20 > with the filesystem in /etc/fstab, and without extensive hacking to one= =20 > or more rc scripts. >=20 > Ideas? Adding 'late' flag in "Options" section to the fstab entry may help, although I don't think it will help with quotas: # rcorder /etc/rc.d/* [...] /etc/rc.d/mountcritlocal [...] /etc/rc.d/zfs [...] /etc/rc.d/mountcritremote [...] /etc/rc.d/quota [...] /etc/rc.d/mountlate [...] We might consider running rc.d/quota after rc.d/mountlate, not sure if it won't break something else. I added freebsd-rc@ to CC. --=20 Pawel Jakub Dawidek http://www.wheel.pl pjd@FreeBSD.org http://www.FreeBSD.org FreeBSD committer Am I Evil? Yes, I Am! --ep0oHQY+/Gbo/zt0 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.4 (FreeBSD) iD8DBQFIPprWForvXbEpPzQRAo71AKD1d+r8dpZX6Fi/5sId8/RRWMIMqACgk6cY TMtS2jlDOghaCtAMp4Z3T1E= =aQL9 -----END PGP SIGNATURE----- --ep0oHQY+/Gbo/zt0--