From owner-freebsd-questions@FreeBSD.ORG Mon Jun 2 08:06:21 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7550037B405 for ; Mon, 2 Jun 2003 08:06:21 -0700 (PDT) Received: from maskot.maskot.sk (maskot.maskot.sk [213.151.234.74]) by mx1.FreeBSD.org (Postfix) with SMTP id 8491043F93 for ; Mon, 2 Jun 2003 08:06:19 -0700 (PDT) (envelope-from gigi@gigi.sk) Received: (qmail 735 invoked from network); 2 Jun 2003 15:06:17 -0000 Received: from unknown (HELO gigi.sk) (1000@192.168.1.2) by maskot.maskot.sk with SMTP; 2 Jun 2003 15:06:17 -0000 Message-ID: <3EDB6819.5060900@gigi.sk> Date: Mon, 02 Jun 2003 17:07:05 +0200 From: Uncle GIGI User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.3) Gecko/20030313 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Matthew Seaman References: <3EDB49AA.6060600@gigi.sk> <20030602141923.GC19194@happy-idiot-talk.infracaninophile.co.uk> In-Reply-To: <20030602141923.GC19194@happy-idiot-talk.infracaninophile.co.uk> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-questions@FreeBSD.ORG Subject: Re: Quotas on /usr filesystem X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 02 Jun 2003 15:06:21 -0000 Thanks for your answer ! >On Mon, Jun 02, 2003 at 02:57:14PM +0200, Uncle GIGI wrote: > > > >>I have a problem with filesystem quotas enabled on the /usr filesystem. >>It causes the system (FreeBSD 4.8 STABLE) to freeze. Is it because the >>quotas utilities are on the /usr filesystem as well ? >>Thanks a lot for any suggestions. >> >> > >That shouldn't matter, unless you've gone completely mad and >restricted root's quota so much that it can't install all of the >required system files under the /usr filesystem. > :-))) No, I'm not mad, don't worry. :-))) > >However, I'm at a loss as to why you would want to run quotas on the >/usr filesystem. Typically you only want quotas enabled on partitions >where generic users have write privileges. That might include /home >or /var, but preferably shouldn't include /usr. > For example on /usr/local/www/data/users/..., but doesn't matter. (I know your answer, but that's not the problem) Let's try to enable quotas on /usr filesystem and you'll see. > >What do: > > % mount > % repquota -a > >return? > >One thing I've run afoul of in the past is that if you've got an old >unix system that can NFS mount your drives and that system has the >nobody UID set to -1, it can cause havoc with quotas. On the old >system, the UID is a short integer, so '-1' is effectively the same as >'65534'. However on FreeBSD, the UID field is 4 byte integer value, >so that the '-1' UID effectively maps onto '4294967295'. Not a huge >problem in itself, but realise that the quota system will try and >install a quota file with enough room for 4294967295 entries, and >that's going to take up a fair chunk of your filesystem. It also >takes forever for quotacheck(8) to run on boot up under those >circumstances. You're unlikely to see this nowadays --- the last time >I ran into this, the "old unix" was a NeXT box, circa 1998. > > Cheers, > > Matthew > > >