Disk quotas do not work in ext4
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
| quota (Ubuntu) |
Undecided
|
Unassigned | ||
Bug Description
Description: Ubuntu jaunty (development branch)
Release: 9.04
Disk quotas do not seem to work for ext4. cat /etc/fstab | grep /dev/md2 shows:
/dev/md2 on / type ext4 (rw,relatime,
root@isp0:/# quotacheck -avugm
quotacheck: Cannot find filesystem to check or filesystem not mounted with quota option.
Laurent Dinclaux (dreadlox) wrote : | #1 |
Changed in quota (Ubuntu): | |
status: | New → Confirmed |
JanG (jan-ge) wrote : | #2 |
why is quota not updated in ubuntu when there is a fix for this bug?
JanG (jan-ge) wrote : | #3 |
using quota in version 3.17-2 from karmic repos fixes this for me, so quota should at least be backported for jaunty.
Almacha (almacha) wrote : | #4 |
I confirm ext4 quotas work on karmic but not on jaunty.
My quota version on jaunty: 3.16-7
My quota version on karmic: 3.17-3
BenKochie (ben-nerp) wrote : | #5 |
Also confirmed fixed with backported 3.17-3.
From the upstream changelog:
Changes in quota-tools from 3.16 to 3.17
* add EXT4 (not only EXT4DEV) to the list of supported filesystems (Mingming Cao)
It would be nice to have quota 3.17 backported to Jaunty.
Chuck Short (zulcss) wrote : | #6 |
Fixed for karmic. This is probably a good candiate for an SRU.
Regards
chuck
Changed in quota (Ubuntu): | |
status: | Confirmed → Fix Released |
Vinyo (vinyo) wrote : | #7 |
I have changed my debian server to Ubuntu-server (jaunty).
It would be importance for me to work the qouta, because there are many users on my server.
Updated my qouta 3.16x to 3.17-3 and then 3.17-5 but still not work correctly.
I tried it with webmin and with edquota,
I set up qouta for a test user with the following settings:
Block soft limit 10000 (10MB), hard limit 20000 (20MB),
File soft limit 5 and hard limit 10
Grace time: 10 minutes.
The file limit works fine: if user reach the hard limit, ubuntu don't allow to create new file or directory. (mesg :Disk qouta exceeded)
But if block hard limit exceeded (without reaching file limits) the users can create new file, but cannot create new directory (in his home direcotry.)
If I check this user's qouta it can be seen that quota is exceeded.
I reformatted this parttition with ext3 fs, and everything works fine.
I would like to know when there will be a solution for this case?
Is there any now?
Almacha (almacha) wrote : | #8 |
I tried to reproduce Vinyo's bug but I could not.
I use Ubuntu karmic i386, quota version is 3.17-3ubuntu1.
1. I formated 2 partitions, one with ext3 and the other with ext4.
2. I added them to /etc/fstab with options rw,usrquota.
3. I ran quotacheck -a and rebooted by computer.
4. I used edquota to set a block hard limit of 10MB to my user on both partitions.
5. I tried creating a too big file on each of these two partitions with my user. It stopped when the block hard limit was reached, complaining about disk quota being exceeded.
So I had the same (correct) behaviour with both ext3 and ext4.
Thomas Schweikle (tps) wrote : | #9 |
Same problem with later Ubuntu-Versions. Quota does not work as expected:
!root@ilx01:/# ls -la /users
!total 32
!drwxr-xr-x 5 root root 4096 2011-02-15 18:02 .
!drwxr-xr-x 26 root root 4096 2011-07-14 11:04 ..
!drwxr-xr-x 59 root root 4096 2011-08-31 11:53 dirs
!drwxr-xr-x 59 root root 4096 2011-08-31 11:53 home
!drwx------ 2 root root 16384 2011-02-15 17:50 lost+found
!-rw------- 1 root root 0 2011-09-05 18:23 quota.group
!-rw------- 1 root root 0 2011-09-05 18:23 quota.user
!root@ilx01:/# quotacheck -g -u -c -m -v -a
!quotacheck: Skipping 192.168.
!quotacheck: Cannot find filesystem to check or filesystem not mounted with quota option.
!root@ilx01:/# mount
![...]
!/dev/mapper/
!root@ilx01:/# cat /etc/mtab
![...]
!/dev/mapper/
!root@ilx01:/# cat /proc/mounts
![...]
!/dev/mapper/
Thomas Schweikle (tps) wrote : | #10 |
I had to restart the whole machine to make it work. It did not help to
! umount /users
! mount /users
I confirm.
Wouldn't that be the fix: http:// marc.info/ ?l=linux- fsdevel& m=1225327001309 50&w=2 ?