LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 12-07-2010, 08:07 AM   #1
imaitchoukow
LQ Newbie
 
Registered: Dec 2010
Posts: 2

Rep: Reputation: 0
Quota problem with one user


Hi guys, im kind of new in linux and my boss has a Debian Linux 5.0 running and mail server is squirrel, so here is the thing, the quota plugin when you access webmail shows the quota of the user full 100%, but when i run du -hs on the server is just 600K, i have erased the dovecot files of the Maildir's user to allow re-indexing (i read that somewhere), i have read about quota, quotatool all available manual and i can't find a way to reset the quota of the user shown when log into his account.

here you can see what the squirrel mail plugin shows when i log into user's account: http://img411.imageshack.us/img411/7...reenshotjw.png

this is what quota shows:

SERVER:/home# quota -us mborges
Disk quotas for user mborges (uid 2813):
Filesystem blocks quota limit grace files quota limit grace
/dev/mapper/vg0-home
291M* 280M 391M 6days 768 0 0

and the usage:

SERVER:/home# du -hs mborges
600K mborges

Last edited by imaitchoukow; 12-08-2010 at 10:28 AM.
 
Old 12-08-2010, 08:49 AM   #2
Reuti
Senior Member
 
Registered: Dec 2004
Location: Marburg, Germany
Distribution: openSUSE 15.2
Posts: 1,339

Rep: Reputation: 260Reputation: 260Reputation: 260
Maybe there a sparse files inside, i.e. files which claim a bigger size, but due to seek operations they are currently using only 600K (they have "holes" inside; records which were never used up to now). What sizes do you get with
Code:
ls -ls
for the files inside the directory?

AFAIK these sparse files will count as having their advertised size regarding any quota limits.
 
Old 12-08-2010, 08:58 AM   #3
Reuti
Senior Member
 
Registered: Dec 2004
Location: Marburg, Germany
Distribution: openSUSE 15.2
Posts: 1,339

Rep: Reputation: 260Reputation: 260Reputation: 260
Code:
du -s --apparent-size
should show it.
 
Old 12-08-2010, 01:09 PM   #4
imaitchoukow
LQ Newbie
 
Registered: Dec 2010
Posts: 2

Original Poster
Rep: Reputation: 0
hey thank for the help but seems it is the real disk usage:

SERVER:/home/mborges/Maildir# ls -lsh
total 148K
60K drwx------ 2 mborges mborges 56K dic 7 09:22 cur
4,0K -rw------- 1 mborges mborges 144 dic 7 09:22 dovecot.index
20K -rw------- 1 mborges mborges 18K dic 7 09:22 dovecot.index.cache
4,0K -rw------- 1 mborges mborges 908 dic 7 09:27 dovecot.index.log
4,0K -rw------- 1 mborges mborges 15 dic 7 09:27 dovecot-uidlist
48K drwx------ 2 mborges mborges 48K dic 8 11:30 new
4,0K -rw------- 1 mborges mborges 84 dic 6 10:40 subscriptions
4,0K drwx------ 2 mborges mborges 4,0K dic 8 11:30 tmp


the command:

SERVER:/home/mborges/Maildir# du -s --apparent-size
2294 .

I think it's a bug with the quotatool app,is there a way i can reset the quota of that particular user?

Well i'm guessing, you are the expert ^_^
 
Old 12-08-2010, 01:24 PM   #5
Reuti
Senior Member
 
Registered: Dec 2004
Location: Marburg, Germany
Distribution: openSUSE 15.2
Posts: 1,339

Rep: Reputation: 260Reputation: 260Reputation: 260
You can enter zeros for the quotas in edquota, and the user should no longer appear in repquota -av. Then enter the limits again.

BTW: Quotas are per mount point, not per directory. Are there anywhere else files of the same user (i.e. by accident in someone else's dircetory)?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
quota.user or aquota.user outbackjack Linux - General 1 07-04-2006 07:30 AM
quota per user mmoor Fedora 4 05-21-2006 04:27 PM
Problem setting user quota noelcantona Linux - General 0 12-06-2004 01:32 AM
user quota ust Linux - Software 1 08-25-2004 09:53 AM
User Quota chuck77 Linux - General 3 11-16-2002 09:21 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 09:45 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration