From owner-freebsd-rc@FreeBSD.ORG Thu May 29 17:37:22 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 656CC1065671 for ; Thu, 29 May 2008 17:37:22 +0000 (UTC) (envelope-from aaron@aaronholmes.net) Received: from yx-out-2324.google.com (yx-out-2324.google.com [74.125.44.28]) by mx1.freebsd.org (Postfix) with ESMTP id 0FB298FC18 for ; Thu, 29 May 2008 17:37:21 +0000 (UTC) (envelope-from aaron@aaronholmes.net) Received: by yx-out-2324.google.com with SMTP id 31so333417yxl.13 for ; Thu, 29 May 2008 10:37:21 -0700 (PDT) Received: by 10.150.79.32 with SMTP id c32mr7691395ybb.133.1212081062007; Thu, 29 May 2008 10:11:02 -0700 (PDT) Received: from ?192.168.1.100? ( [24.113.87.90]) by mx.google.com with ESMTPS id n45sm1412959pyh.29.2008.05.29.10.11.00 (version=SSLv3 cipher=RC4-MD5); Thu, 29 May 2008 10:11:01 -0700 (PDT) Message-ID: <483EE39B.6060403@aaronholmes.net> Date: Thu, 29 May 2008 10:10:51 -0700 From: Aaron Holmes User-Agent: Thunderbird 2.0.0.14 (Windows/20080421) MIME-Version: 1.0 To: Pawel Jakub Dawidek References: <48373178.4080909@aaronholmes.net> <20080529120022.GE3159@garage.freebsd.pl> In-Reply-To: <20080529120022.GE3159@garage.freebsd.pl> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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 17:37:22 -0000 I didn't think of mountlate, that may work. What I ended up doing was adding the "noauto" option and running a cronjob that checks and mounts the filesystem. Unfortunately, I learned that quotas only apply to mount points and not directories, so I may not be of any use for testing new things in the near future. Pawel Jakub Dawidek wrote: > 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) >> >> If I add that entry (/dev/zvol/tank/ufs) to /etc/fstab, it will try to >> mount as a critical filesystem on boot, however, because ZFS hasn't yet >> loaded, this fails and causes all sorts of fun for me. >> Currently I have that filesystem mounting via a cronjob that checks >> every minute if it's mounted.. definitely not ideal. >> >> I need this filesystem in /etc/fstab so I can setup quotas on it (if >> there is some other way to get quotas working, great, point me to a link >> or two). >> >> So what I'm thinking for a solution is to delay the mount of this >> filesystem until ZFS has loaded, but I'm not sure of a way to do this >> with the filesystem in /etc/fstab, and without extensive hacking to one >> or more rc scripts. >> >> 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. > >