[lustre-discuss] Size difference between du and quota

Phill Harvey-Smith p.harvey-smith at warwick.ac.uk
Wed May 20 01:50:30 PDT 2015


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.



More information about the lustre-discuss mailing list