Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 2 > General

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 20th June 2008, 11:54
SupuS SupuS is offline
HowtoForge Supporter
 
Join Date: May 2006
Posts: 196
Thanks: 67
Thanked 13 Times in 11 Posts
Default quota problem - repquota does't match du -sh [SOLVED]

Hi All

With one web I have strange problem. It is almost over limit but du -sh returns different value:

User quota (web has this user only):

Code:
repquota -avug |grep zs25adminuser
zs25adminuser  --  996532       0       0           8856     0     0
zs25adminuser  --       0       0       0              0     0     0
Group quota:

Code:
repquota -avug |grep web25
web25     --  996532 1126400 1127424           8856     0     0
web25     --       0 1126400 1127424              0     0     0
su (as root):

Code:
du -sh /var/www/web25
693M    /var/www/web25
I tried search all files belongs to this user and group by:

Code:
find / -group web25
find / -user zs25adminuser
but all files are in /var/www/web25.

I cannot find any reason for this behavior.

Thanks for any suggestion
SupuS

Last edited by SupuS; 16th November 2008 at 12:17.
Reply With Quote
Sponsored Links
  #2  
Old 20th June 2008, 13:23
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 34,647
Thanks: 794
Thanked 5,000 Times in 3,911 Posts
Default

Are you really sure that all files are in /var/www/web25 ? Please double check that no files or folders are in /tmp and /var/spool/mail
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 20th June 2008, 13:30
SupuS SupuS is offline
HowtoForge Supporter
 
Join Date: May 2006
Posts: 196
Thanks: 67
Thanked 13 Times in 11 Posts
Default

Quote:
Originally Posted by till View Post
Are you really sure that all files are in /var/www/web25 ? Please double check that no files or folders are in /tmp and /var/spool/mail
Hi till

Yes I'am .. I checked tmp before post .. here is du of tmp and mail:

tmp:
Code:
du -sh /tmp/
58M     /tmp
mail (it is link /var/spool/mail -> ../mail)
Code:
du -sh /var/mail
740K    /var/mail
Whole tmp has 58M and no files owned by web25 or zs25*
Reply With Quote
  #4  
Old 9th October 2008, 11:01
SupuS SupuS is offline
HowtoForge Supporter
 
Join Date: May 2006
Posts: 196
Thanks: 67
Thanked 13 Times in 11 Posts
Default Same problem again

I found exactly same problem on another ispconfig server:

Code:
# repquota -avugs |grep web34
web34     --    949M   1000M   1001M          31676     0     0
web34     --       0   1000M   1001M              0     0     0
Code:
# du -sh /var/www/web34
835M    /var/www/web34
I found some empty files in /tmp and /var/mail but its deleting didn't help.

Any idea please?

SupuS
Reply With Quote
  #5  
Old 13th November 2008, 15:10
SupuS SupuS is offline
HowtoForge Supporter
 
Join Date: May 2006
Posts: 196
Thanks: 67
Thanked 13 Times in 11 Posts
Default

Again with same problem Now I found very interesting behaviour. Listing of my quota files says that quota.user has 111 GB.

Code:
# ls -lth /quota.*
-rw------- 1 root root 111G Nov 13 14:54 /quota.user
-rw------- 1 root root 2.5M Nov 13 14:54 /quota.group
-rw------- 1 root root 2.5M Jul 23 13:19 /quota.group.new
-rw------- 1 root root 2.5M Jul 23 13:19 /quota.user.new
But whole used disc space is 31 GB only:

Code:
# df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/sda4             127G   31G   90G  26% /
I cannot delete guota.user file. I get this error:

Code:
# rm -rf /quota.group
rm: cannot remove `/quota.group': Operation not permitted
quotacheck -avugm or quotacheck -avugmc doesn't help.

And after all .. running of repquota -avugs |grep webXX is really slow.

Any idea please?
Reply With Quote
  #6  
Old 14th November 2008, 21:54
SupuS SupuS is offline
HowtoForge Supporter
 
Join Date: May 2006
Posts: 196
Thanks: 67
Thanked 13 Times in 11 Posts
Default

So here is what I did to fix incredible big quota.user file:

Stop the quotas:

Code:
/etc/init.d/quota stop
or

Code:
quotaoff -a
Delete quota files.

Create new quota files, build new one and turning quota on:

Code:
touch /quota.user /quota.group
chmod 600 /quota.*
quotacheck -avugm
quotaon -avug
Now my quota files has proper size:

Code:
# ls -lth /quota.*
-rw------- 1 root root 2.5M Nov 14 21:35 /quota.group
-rw------- 1 root root 2.5M Nov 14 21:35 /quota.user
Unfortunately quotas of all users seems to be gone so I have to rebuild them by manual changing quota in ispconfig. May be is better way to rebuild it .. I don't know it

For now everything seems quite well. Even differences between quotacheck and du -sh changed:

Code:
# du -sh /var/www/web16
859M    /var/www/web16

# repquota -avugs |grep web16
web16     --    726M    800M    801M           5986     0     0
web16     --       0    800M    801M              0     0     0
.. not as I expected but better than before ..

may be somebody know what happend ..

SupuS
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
empty maildir /tmp after quota problem clamav Jorem General 5 20th June 2008 13:24
Virtual users... Ubuntu 8.04 spaceuser HOWTO-Related Questions 12 19th June 2008 08:04
Maildir Quota Problem grafzahl Installation/Configuration 2 7th March 2008 17:07
postfix + dovecot + postfixadmin - problem with quota kosta Server Operation 3 24th August 2007 22:08
Quota Problem with Procmail rafaelenrike Installation/Configuration 1 16th June 2006 02:32


All times are GMT +2. The time now is 17:53.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.