[lustre-discuss] Size difference between du and quota

Scott Nolin scott.nolin at ssec.wisc.edu
Wed May 20 07:50:48 PDT 2015


Another thing to think about is does he perhaps own files outside of his 
directory? The quota is on the volume but you are only doing du on the 
directory.

Even if he's not aware of it, things can happen like people using rsync 
and preserving ownership. The original owner's usage then goes up.

Scott

On 5/20/2015 3: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


-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 6248 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://lists.lustre.org/pipermail/lustre-discuss-lustre.org/attachments/20150520/0ce747a3/attachment-0001.bin>


More information about the lustre-discuss mailing list