[lustre-discuss] Size difference between du and quota

Drokin, Oleg oleg.drokin at intel.com
Wed May 20 04:27:48 PDT 2015


Hello!

 I imagine this could be related to the number of blocks, and also,
 du would not report any unlinked, but still opened files that still take disk space, as they are no longer in the namespace,
 but quota still sees them.

Bye,
    Oleg
On May 20, 2015, at 4:50 AM, Phill Harvey-Smith wrote:

> Hi all,
> 
> One of my users is reporting a massive size difference between the figures reported by du and quota.
> 
> doing a du -hs on his directory reports :
> du -hs .
> 529G    .
> 
> doing a lfs quota -u username /storage reports
> Filesystem  kbytes   quota   limit   grace   files   quota   limit   grace
> /storage 621775192  640000000 640010000       -  601284  1000000 1100000       -
> 
> Though this user does have a lot of files :
> 
> find . -type f | wc -l
> 581519
> 
> So I suspect that it is the typical thing that quota is reporting used blocks whilst du is reporting used bytes, which can of course be wildly different due to filesystem overhead and wasted unused space at the end of files where a block is allocated but only partially used.
> 
> Is this likely to be the case ?
> 
> I'm also not entirely sure what versions of lustre the client machines and MDS / OSS servers are running, as I didn't initially set the system up.
> 
> Cheers.
> 
> Phill.
> 
> _______________________________________________
> lustre-discuss mailing list
> lustre-discuss at lists.lustre.org
> http://lists.lustre.org/listinfo.cgi/lustre-discuss-lustre.org



More information about the lustre-discuss mailing list