From owner-freebsd-fs@FreeBSD.ORG Wed Nov 15 21:23:51 2006 Return-Path: X-Original-To: freebsd-fs@freebsd.org Delivered-To: freebsd-fs@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0EEE716A644 for ; Wed, 15 Nov 2006 21:23:51 +0000 (UTC) (envelope-from user@dhp.com) Received: from shell.dhp.com (shell.dhp.com [199.4.150.5]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8209943D4C for ; Wed, 15 Nov 2006 21:23:49 +0000 (GMT) (envelope-from user@dhp.com) Received: by shell.dhp.com (Postfix, from userid 896) id 9687F263D3; Wed, 15 Nov 2006 16:23:42 -0500 (EST) Date: Wed, 15 Nov 2006 16:23:42 -0500 (EST) From: Ensel Sharon To: freebsd-fs@freebsd.org Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: Re: quota command and rsync snapshots... X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 Nov 2006 21:23:51 -0000 >> Second, is there any way to get quota to show an accurate representation >> of the users usage ? > It should be accurate - can you send some sample output? Ok, here is what I see (6.1-RELEASE) : First, the output of the quota command for that user: # quota sammy Disk quotas for user sammy (uid 1002): Filesystem usage quota limit grace files quota limit /mnt/big1 197067392 500000000 600000000 1554116 50000000 60000000 So, quota is saying 197 GB used, ~1.5 mil. files. Now looking at the users home directory itself, I see: du -ak /home/sammy | tail -1 197067392 (ok, agrees with quota) find /home/sammy | wc -l 5007486 (5 million ... ?) Now inside of the home directory: day.0 day.1 day.2 day.3 All four of these dirs are size 130 GB (give or take - small differences based on deletions day to day) All four of these dirs have ~1.25 (?) million files in them. Remember, only day.0 is "real" - the others are `cp -al` copies, consisting almost totally of hard links back to day.0. So I really don't know what is going on. quota says 1.5 mil. files, I have 5 million total "files", each dir does not exceed 140 GB. Does this mean that there is (197 minus 140) GB of churn per day, and that there must be (1.5 mil. minus 1.25 mil.) churn of file turnover per day ? Or something like that ? That is the only thing i can think of ...