repquota is showing double the space used

Discussion in 'Installation/Configuration' started by bambam82, Nov 5, 2010.

  1. bambam82

    bambam82 New Member

    I noticed the following issue. My quota in ISPconfig is showing double the space used, in comparison with the check "du -hs".

    Below you'll find my setup.

    I have the same setup in a VM and there it works. But i don't know what is different... For all my sites it is showing double the space used. Below you'll find all specific for one website.

    My setup:
    Ubuntu linux 10.04.
    /etc/fstab
    Code:
    /dev/md0 /               ext4    errors=remount-ro,usrjquota=aquota.user,grpjquota=aquota.group,jqfmt=vfsv0 0       1
    Code:
    # mount
    /dev/md0 on / type ext4 (rw,errors=remount-ro,usrjquota=aquota.user,grpjquota=aquota.group,jqfmt=vfsv0)
    
    Code:
    # repquota -avug | grep web19
    web19     --  106388  153600  154624          13507     0     0 
    Code:
    # du -hs /var/www/clients/client2/web19
    50M	/var/www/clients/client2/web19
    Code:
    # quota web19
    Disk quotas for user web19 (uid 5002): 
         Filesystem  blocks   quota   limit   grace   files   quota   limit   grace
           /dev/md0  106388  153600  154624           13507       0       0  
     
    Last edited: Nov 10, 2010
  2. bambam82

    bambam82 New Member

    I hope someone still has an answer on this.
     
  3. falko

    falko Super Moderator Howtoforge Staff Moderator HowtoForge Supporter ISPConfig Developer

    I don't know why this happens, but anyway, I've added this to our bugtracker, so we will check this.
     
  4. bambam82

    bambam82 New Member

    thank you. Mind that my softraid is raid1. If you need any config details. Let me know.
     
  5. till

    till Super Moderator Howtoforge Staff HowtoForge Supporter ISPConfig Developer

    The du command shows only the size of a given directory while repquota shows the size of all files owned by a specific user. So if files are not in that directory, they will be reported by repquota but not by du, so it is ok if the sizes differ. The relevant size for quota is the one reported by repquota and not by du. I guess that you have a copy of your web tree somewhere on that harddisk, thats why repquota shows the double size. You can e.g. use the find commaind to search for all files owned by a specific user to find where these copy is.
     
  6. bambam82

    bambam82 New Member

    damn

    You are so right... when i saw your first line, i was like. duhh.. ;)
    Than in it was made clear to me that my rdiff backup is also on there.... This explains the doubling of the size (exact ;) ).

    Thank you so much for thinking with me on this one... I knew that repquota check the whole file system, but i totally forgot about the backup...

    Thanks!!!
     

Share This Page