All of lore.kernel.org
 help / color / mirror / Atom feed
* Quota and reiserfs status
@ 2002-06-07 13:43 Fabien Salvi
  2002-06-07 13:54 ` Valdis.Kletnieks
  2002-06-07 16:20 ` Jan Kara
  0 siblings, 2 replies; 4+ messages in thread
From: Fabien Salvi @ 2002-06-07 13:43 UTC (permalink / raw)
  To: reiserfs-list@namesys.com

[-- Attachment #1: Type: text/plain, Size: 744 bytes --]

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

[-- Attachment #2: howto_quota_with_reiserfs.txt --]
[-- Type: text/plain, Size: 831 bytes --]

 QUOTA under linux with REISERFS Filesystem
 Fabien SALVI <fabien@cri74.org>
 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


[-- Attachment #3: howto_using_quotas.txt --]
[-- Type: text/plain, Size: 1569 bytes --]

 QUOTA FOR LINUX FILESYSTEMS (tested with ext2 and reiserfs)
 Fabien SALVI <fabien@cri74.org>
 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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Quota and reiserfs status
  2002-06-07 13:43 Quota and reiserfs status Fabien Salvi
@ 2002-06-07 13:54 ` Valdis.Kletnieks
  2002-06-07 16:20 ` Jan Kara
  1 sibling, 0 replies; 4+ messages in thread
From: Valdis.Kletnieks @ 2002-06-07 13:54 UTC (permalink / raw)
  To: Fabien Salvi; +Cc: reiserfs-list@namesys.com

[-- Attachment #1: Type: text/plain, Size: 603 bytes --]

On Fri, 07 Jun 2002 15:43:28 +0200, Fabien Salvi <fabien@cri74.org>  said:

> 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.
-- 
				Valdis Kletnieks
				Computer Systems Senior Engineer
				Virginia Tech


[-- Attachment #2: Type: application/pgp-signature, Size: 226 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Quota and reiserfs status
  2002-06-07 13:43 Quota and reiserfs status Fabien Salvi
  2002-06-07 13:54 ` Valdis.Kletnieks
@ 2002-06-07 16:20 ` Jan Kara
  2002-06-17 22:16   ` Chris Mason
  1 sibling, 1 reply; 4+ messages in thread
From: Jan Kara @ 2002-06-07 16:20 UTC (permalink / raw)
  To: Fabien Salvi; +Cc: reiserfs-list@namesys.com

  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.
  The text is nice :)
  
> 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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Quota and reiserfs status
  2002-06-07 16:20 ` Jan Kara
@ 2002-06-17 22:16   ` Chris Mason
  0 siblings, 0 replies; 4+ messages in thread
From: Chris Mason @ 2002-06-17 22:16 UTC (permalink / raw)
  To: Jan Kara; +Cc: Fabien Salvi, reiserfs-list@namesys.com

On Fri, 2002-06-07 at 12:20, Jan Kara wrote:
>   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.
>   The text is nice :)
>   
> > 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).

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



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2002-06-17 22:16 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-06-07 13:43 Quota and reiserfs status Fabien Salvi
2002-06-07 13:54 ` Valdis.Kletnieks
2002-06-07 16:20 ` Jan Kara
2002-06-17 22:16   ` Chris Mason

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.