Disk quota reporting for usage >2TB
Garrett Cooper
yanegomi at gmail.com
Fri May 20 00:03:05 UTC 2011
On Thu, May 19, 2011 at 3:13 PM, David Wolfskill <david at catwhisker.org> wrote:
> 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:
>
> Disk quotas for user ,...] (uid 9874):
> Filesystem usage quota limit grace files quota limit grace
> /d 1.8T 0B 0B 25217562 0 0
> /d 1.9T 0B 0B 26793658 0 0
> /d 14G 0B 0B 28369755 0 0
> ...
> /d 815G 0B 0B 39402435 0 0
>
> 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?
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
More information about the freebsd-hackers
mailing list