I've some problems with quota... For example on client web65 with du command i'll get Code: 1,2G /var/www/clients/client29/web65 on the panel i only see 41.22 MB My /etc/fstab looks like Code: UUID=d7bbdca4-5ce9-4467-9b99-d7d90ce863ce / ext4 errors=remount-ro,usrjquota=quota.user,grpjquota=quota.group,jqfmt=vfsv0 0 1 and Code: /var/log/ispconfig/httpd/domain.tld /var/www/clients/client29/web65/log none bind,nobootwait 0 0 with quota tool i'll get Code: Disk quotas for user web65 (uid 5064): Filesystem blocks quota limit grace files quota limit grace /dev/sda1 42268 2048000 2049024 6886 0 0 What's wrong?
The du command counts the size of files in a specific directory. Linux filesystem quota counts and limits the size of files owned by a specific user or group. If du and quota differ, then you probably uploaded files under a different user than the web user to the web directory. Another reason can be that the Linux quota system is not working correctly, but this does not happen quite often.
May be if for example a user uses modphp so the user who upload the files is www-data instead of the webxx user?
Yes, that might be. mod_php mode exists only for legacy reasons and should not be used for years now. If you still use mod_php in websites, switch them to php-fpm and ensure that suexec is alawys turned on.
It seems not working... also the count of numbers of files differs from reality... any idea what could i check?
What is not working? How can this be? How do you determine the count of files and how do you determine what is reality? See what files belong to the user web65 in that web directory: Code: find /var/www/clients/client29/web65 -user web65 -exec ls -lh {} \; Then compare that to ls -lh /var/www/clients/client29/web65, does that have lots of extra files? Actually I just came up with a better command, this should find all files in that directory tree that do not belong to the website owner: Code: find /var/www/clients/client29/web65 -not -user web65 -exec ls -lh {} \;
Like @till explained, they measure different things. Quota measures files owned by a user, du counts sizes of files in a subdirectory tree. They are not necessarily the same. Only way they could be same is if a directory tree contains only files belonging to the same user, and that user has no files anywhere outside that directory tree.
Either files are ownedd by a wrong user or group (not the web user and client group of that site) or the partition where the website resides on has no quota enabled or the quota system of your server is broken. You can try to force quota to recalculate file usage with: Code: quotaoff -avug quotacheck -avufgm quotaon -avug systemctl enable quota systemctl daemon-reload service quota start