From owner-freebsd-hackers@FreeBSD.ORG Thu May 19 22:26:40 2011 Return-Path: Delivered-To: hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1C4CA106564A for ; Thu, 19 May 2011 22:26:40 +0000 (UTC) (envelope-from david@catwhisker.org) Received: from albert.catwhisker.org (m209-73.dsl.rawbw.com [198.144.209.73]) by mx1.freebsd.org (Postfix) with ESMTP id D0FB18FC14 for ; Thu, 19 May 2011 22:26:39 +0000 (UTC) Received: from albert.catwhisker.org (localhost [127.0.0.1]) by albert.catwhisker.org (8.14.4/8.14.4) with ESMTP id p4JMD7Ka018500 for ; Thu, 19 May 2011 15:13:07 -0700 (PDT) (envelope-from david@albert.catwhisker.org) Received: (from david@localhost) by albert.catwhisker.org (8.14.4/8.14.4/Submit) id p4JMD7Wk018499 for hackers@freebsd.org; Thu, 19 May 2011 15:13:07 -0700 (PDT) (envelope-from david) Date: Thu, 19 May 2011 15:13:07 -0700 From: David Wolfskill To: hackers@freebsd.org Message-ID: <20110519221307.GK2135@albert.catwhisker.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="P7Tqkd/m/Jnohiaz" Content-Disposition: inline User-Agent: Mutt/1.4.2.3i Cc: Subject: Disk quota reporting for usage >2TB X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 19 May 2011 22:26:40 -0000 --P7Tqkd/m/Jnohiaz Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable I recently found that, running FreBSD/i386 stable/8 as of around r221857, the disk quota subsystem appears to overflow & wrap as it crosses the 2TB mark. Evidence: I ran a task in a loop, invoking "quota -h" after each iteration. Each invocation should write about 114.2GB to the file system. Eliding redundant headers, a relevant excerpt of the output, along with "df -h" output for the file system in question: =20 Disk quotas for user ,...] (uid 9874):=20 Filesystem usage quota limit grace files quota limit g= race /d 1.8T 0B 0B 25217562 0 0 = =20 /d 1.9T 0B 0B 26793658 0 0 = =20 /d 14G 0B 0B 28369755 0 0 = =20 =2E.. /d 815G 0B 0B 39402435 0 0 = =20 Filesystem Size Used Avail Capacity Mounted on /dev/mfid1 15T 2.8T 11T 19% /d Now, this is a machine I'm testing -- I'm the only one writing to that file system (other than the quota.user file). Now, I don't have a defined quota; the intent is not to use the quota subsystem to restrict how myuch disk space folks use, but rather, to use it to measure and track the usage. For this purpose, I really have no particular desire for precision to the KB; precision could easily be as coarse as to the GB and still be useful -- for this purpose, under these circumstances. Does anyone see a way to use the disk quota subsystem to track storage >2TB on a single (UFS2) file system? Thanks! Peace, david --=20 David H. Wolfskill david@catwhisker.org Depriving a girl or boy of an opportunity for education is evil. See http://www.catwhisker.org/~david/publickey.gpg for my public key. --P7Tqkd/m/Jnohiaz Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.17 (FreeBSD) iEYEARECAAYFAk3VlfIACgkQmprOCmdXAD36CwCfXgeWqrHlt5vu2qcQdNNplnRz 33AAniu7J8d0KV4fPTzvGrksIlUcNh/b =HHJP -----END PGP SIGNATURE----- --P7Tqkd/m/Jnohiaz--