All of lore.kernel.org
 help / color / mirror / Atom feed
From: Fabien Salvi <fabien@cri74.org>
To: "reiserfs-list@namesys.com" <reiserfs-list@namesys.com>
Subject: Quota and reiserfs status
Date: Fri, 07 Jun 2002 15:43:28 +0200	[thread overview]
Message-ID: <3D00B880.E3A7B770@cri74.org> (raw)

[-- 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

             reply	other threads:[~2002-06-07 13:43 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-06-07 13:43 Fabien Salvi [this message]
2002-06-07 13:54 ` Quota and reiserfs status Valdis.Kletnieks
2002-06-07 16:20 ` Jan Kara
2002-06-17 22:16   ` Chris Mason

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3D00B880.E3A7B770@cri74.org \
    --to=fabien@cri74.org \
    --cc=reiserfs-list@namesys.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.