Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 19 May 2011 16:38:36 -0700
From:      Garrett Cooper <yanegomi@gmail.com>
To:        David Wolfskill <david@catwhisker.org>
Cc:        hackers@freebsd.org
Subject:   Re: Disk quota reporting for usage >2TB
Message-ID:  <BANLkTikOpopCTgvqdFtxwE%2B3Bye3H5XPYw@mail.gmail.com>
In-Reply-To: <20110519221307.GK2135@albert.catwhisker.org>
References:  <20110519221307.GK2135@albert.catwhisker.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, May 19, 2011 at 3:13 PM, David Wolfskill <david@catwhisker.org> wro=
te:
> 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: =A0I ran a task in a loop, invoking "quota -h" after each
> iteration. =A0Each invocation should write about 114.2GB to the file
> system. =A0Eliding redundant headers, a relevant excerpt of the output,
> along with "df -h" output for the file system in question:
>
> Disk quotas for user ,...] (uid 9874):
> =A0 =A0 Filesystem =A0 usage =A0 quota =A0 limit =A0 grace =A0 files =A0 =
quota =A0 limit =A0 grace
> =A0 =A0 =A0 =A0 =A0 =A0 /d =A0 =A01.8T =A0 =A0 =A00B =A0 =A0 =A00B =A0 =
=A0 =A0 =A0 25217562 =A0 =A0 =A0 0 =A0 =A0 =A0 0
> =A0 =A0 =A0 =A0 =A0 =A0 /d =A0 =A01.9T =A0 =A0 =A00B =A0 =A0 =A00B =A0 =
=A0 =A0 =A0 26793658 =A0 =A0 =A0 0 =A0 =A0 =A0 0
> =A0 =A0 =A0 =A0 =A0 =A0 /d =A0 =A0 14G =A0 =A0 =A00B =A0 =A0 =A00B =A0 =
=A0 =A0 =A0 28369755 =A0 =A0 =A0 0 =A0 =A0 =A0 0
> ...
> =A0 =A0 =A0 =A0 =A0 =A0 /d =A0 =A0815G =A0 =A0 =A00B =A0 =A0 =A00B =A0 =
=A0 =A0 =A0 39402435 =A0 =A0 =A0 0 =A0 =A0 =A0 0
>
> Filesystem =A0 =A0Size =A0 =A0Used =A0 Avail Capacity =A0Mounted on
> /dev/mfid1 =A0 =A0 15T =A0 =A02.8T =A0 =A0 11T =A0 =A019% =A0 =A0/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?

    des@ and mckusick@ completed the 64-bit quota work on CURRENT last
year, but it hasn't been MFCed to 8-STABLE (probably because it breaks
KBIs). More info can be found here:
http://www.freebsd.org/projects/bigdisk/index.html .
HTH,
-Garrett



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?BANLkTikOpopCTgvqdFtxwE%2B3Bye3H5XPYw>