Quota and reiserfs status
Hello,
I've tried some tests with quota using reiserfs filesystems. It works very well...
I have attached a very little documentation (2 ascii texts) about simple configuration.
Hope it can help somebody.
I have one question :
Now, you must patch linux kernel to have quota with reiserfs enabled.
Is it provided to the near future, or maybe not before the next stable release of lk ?
I've made some benchs and I have no problems.
But, can we considere quota support stable enough for production use ?
Thanks in advance for your help.
B.R.
-------------
Fabien SALVI Centre de Ressources Informatiques
Archamps, France -- http://www.cri74.org
PingOO GNU/linux distribution : http://www.pingoo.org
QUOTA under linux with REISERFS Filesystem
Fabien SALVI <[email protected]>
7 June 2002
To have quota with reiserfs, you have to patch linux kernel
For example, with 2.4.18 kernel :
==> If you use the standard kernel, you won't be able to use quota with reiserfs !!
1) Get kernel source, for example file linux-2.4.18.tar.gz
2) Get patches from ftp://ftp.suse.com/pub/people/mason/patches/reiserfs/quota-2.4/2.4.18/
2) Untar the linux kernel source and gunzip the patches
3) Follow the README given with the patches and apply patches to the linux kernel example :
cd path/to/linux
patch -p1 < path/to/patch-file
4) Configure your kernel with quota support
5) Recompile your kernel and boot on it
It *should* work :)
6) Get the last quota-tools on http://sourceforge.net/projects/linuxquota/
and compile/install it
QUOTA FOR LINUX FILESYSTEMS (tested with ext2 and reiserfs) Fabien SALVI <[email protected]>
7 June 2002
Warning !
To have quota with reiserfs, you need to apply patches to the standard kernel, see howto_quota_with_reiserfs.txt
1) You must mount partitions with the right option, example in fstab:
/dev/sdb1 /var/www reiserfs rw,usrquota 0 0 /dev/sdb2 /test ext2 defaults,usrquota 0 2
2) If the partitions are already mounted without the quota option, you must umount and remount them (or reboot if it is not possible, ie devices busy...)
3) Run quotacheck command, example :
$ quotacheck -c -avug quotacheck: Scanning /dev/sdb1 [/var/www] done quotacheck: Checked 3080 directories and 42649 files quotacheck: Old file not found. quotacheck: Scanning /dev/sdb2 [/test] done quotacheck: Checked 3 directories and 1 files quotacheck: Old file not found.
This will create quota files named "aquota.user" in /var/www and /test (the 2 partitions with quota option)
4) Activate quota with quotaon -a
5) use edquota to put quota on a user
For example :
$ equota fabien And adjust values to your needs
6) Verify an user quota :
$ quota -v fabien
Disk quotas for user fabien (uid 1001):
Filesystem blocks quota limit grace files quota limit grace
/dev/sdb1 1 10000 20000 1 0 0
/dev/sdb2 8 5000 10000 2 0 0 7) If you want an user to see its quota, change permissions of files aquota.user to 0644
Quoted 5 lines · Fabien Salvi
Is it provided to the near future, or maybe not before the next stable release of lk ?
I've made some benchs and I have no problems.
But, can we considere quota support stable enough for production use ?
It's quite stable - the problem is that if you install the quota patch (or have a kernel that includes it), it requires a matching upgrade in the user-space quota tools, and there's some resistance to doing that mid-kernel-cycle.
Signature · 3 lines
Valdis Kletnieks Computer Systems Senior Engineer Virginia Tech
Hello,
Quoted 6 lines
I've tried some tests with quota using reiserfs filesystems. It works very well...
I have attached a very little documentation (2 ascii texts) about simple configuration.
Hope it can help somebody.
The text is nice :)
Quoted 5 lines
I have one question :
Now, you must patch linux kernel to have quota with reiserfs enabled.Is it provided to the near future, or maybe not before the next stable release of lk ?
Currently VFS side of the patches is in 2.5 kernel and I
suppose Chris will commit Reiserfs part soon. I plan to backport patches from 2.5 kernel to 2.4 (but it's not certain Marcello will agree with it and I'm also not sure about Reiserfs part of the patches).
Honza
Quoted 13 lines · Jan Kara
Hello,
Quoted 6 lines
I've tried some tests with quota using reiserfs filesystems. It works very well...
I have attached a very little documentation (2 ascii texts) about simple configuration.
Hope it can help somebody.The text is nice :)
Quoted 3 lines
I have one question :
Now, you must patch linux kernel to have quota with reiserfs enabled.
Quoted 6 lines
Quoted 2 lines
Is it provided to the near future, or maybe not before the next stable release of lk ?
Currently VFS side of the patches is in 2.5 kernel and I
suppose Chris will commit Reiserfs part soon. I plan to backport patches from 2.5 kernel to 2.4 (but it's not certain Marcello will agree with it and I'm also not sure about Reiserfs part of the patches).
I think the 2.4 patches are stable enough that we can include them if and when Jan's new quota code is included.
For 2.5.x, I want to put in the data logging code first (it is actually based on pieces of the quota support). This is non-trivial, but will make the total time to merge both features easier.
-chris