Web Hosting Talk







View Full Version : weird quota issue


clocker1996
11-04-2002, 02:04 AM
I've been running 2.4.9-31 kernel for awhile now..

while i was running this kernel, i frequently used quota stuff

meaning id add an account, run edquota -u username

and set their soft limit, and their hard limit

e.g if i want them to have a 6mb limit

id set their soft limit to : 5000
hard limit to : 6000

so thats that....

so last night i decided to upgrade to 2.4.19 kernel last night.

in the menu config

under File systems ---->
i checked Quota support (put a asterik)

compiled.... kernel booted fine.

2.4.19 #1 Sun Nov 3 02:52:14 EST 2002 i686 unknown
anyhow

i just did adduser dooba
edquota -u dooba

i set soft limit to 5000
hard limit to 6000

then i su'ed to that username, and wgetted a 60mb file, and it didnt even stop me at all

i'm confused. Is there something i missed?

bottom line:

ill add a user, set a quota for them, but it doesnt work...
the user can go past their limit
doesnt even say anything


suron:/usr/src/linux# dmesg | grep quota
VFS: Diskquotas version dquot_6.4.0 initialized

Anyone have any ideas.

If i can't get this to work then ill probably have to go back to 2.4.9 because having a working quota system is important.

realalien
11-04-2002, 07:47 AM
hello,

sorry for adding another question instead of answering to yours (I'm not skilled enough).

I've never been able to understand how quotas work. webmin does not allow me to set quotas when creating a new user, I'm not even ask for quotas. do you use special modules or other stuff?

thanks indeed!

CJCS
11-04-2002, 08:22 AM
Hy,

check if there are some time limits set for th quota's. IMHO the time limits control after which time the overquota message is printed and no more files are accepted.

Take a look at the edquota manpage and there the -t switch.

Greetings
O. Schlag

clocker1996
11-04-2002, 11:03 AM
i ran edquota -t


Grace period before enforcing soft limits for users:
Time units may be: days, hours, minutes, or seconds
Filesystem Block grace period Inode grace period
/dev/hda3 0minutes 0minutes

i didtn really understand that ^^
so i tried changing it to


1seconds 1seconds

added a user
set their quota to 5mb
su'ed to that user
it still let them go past the limit

sigh, i don't know what to do.

clocker1996
11-04-2002, 08:37 PM
any ideas

bitserve
11-05-2002, 02:07 AM
I agree that's odd.

Try running a quotacheck and then test it.

Then try booting your old kernel just to make sure it is a kernel problem.