Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 19 May 2011 15:13:07 -0700
From:      David Wolfskill <david@catwhisker.org>
To:        hackers@freebsd.org
Subject:   Disk quota reporting for usage >2TB
Message-ID:  <20110519221307.GK2135@albert.catwhisker.org>

next in thread | raw e-mail | index | archive | help

--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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20110519221307.GK2135>