You are not logged in.

#1 2009-02-28 17:10:36

tjach
Member
Registered: 2007-09-17
Posts: 22

Disk quotas not being enforced, ext4

Hello everybody.

For some time I'm trying to configure LAMP server (linux, apache, mysql, php). Quite a few things have already been solved, but suddenly one problem emerged.

I've tried to set user quotas on hard disk. Following the advices found by google (and arch wiki too) I've installed quota-tools. I've configured it to start at system boot, inserted some rules for fake users:

[tjach@kni-linux log]$ sudo repquota -as
*** 
Grace period for blocks: 00:00; Grace period for i-nodes: 00:00
                        Block limits               File limits
User       used   soft   hard grace    used   soft   hard grace
----------------------------------------------------------------------
root      --      24       0       0              3     0     0       
http      --   18808       0       0           2578     0     0       
test      --      28      30      50             10     0    0

But the problem is, that when user "test" exceeds his limit, nothing happens. I expected him not to be able to write to disk any more, but it's not happening. The situation is the same like before installing quotas.
I have to say, that limiting the amount of i-nodes is being enforced - after creating too many files, the user is presented the message about exceeding his limit.

For the information to be full I'm using ext4 as my filesystem. Can anyone point me to the solution? Or should I start from the beginning after changing filesystem?

Offline

#2 2009-03-03 10:26:23

tjach
Member
Registered: 2007-09-17
Posts: 22

Re: Disk quotas not being enforced, ext4

*bump*

Offline

#3 2009-03-03 11:47:07

byte
Member
From: Düsseldorf (DE)
Registered: 2006-05-01
Posts: 2,046

Re: Disk quotas not being enforced, ext4

I have been playing with quotas on JFS and it just worked (well, after quite a bit of googling/manpaging...):
- installed quota-tools
- added usrquota to mount options in fstab
- fiddled with edquota
- quotaon -a in /etc/rc.local

Last edited by byte (2009-03-03 11:48:52)


1000

Offline

#4 2009-03-03 16:41:11

tjach
Member
Registered: 2007-09-17
Posts: 22

Re: Disk quotas not being enforced, ext4

Thank you for replay, however I've triple checked above things before asking here.
In a few days I'm going to run some tests with different filesystem types.

Offline

Board footer

Powered by FluxBB