On Friday 19 December 2003 10:18, Dudley F. Ca�as wrote:
> we use edquota to our users but its applicable to whole home directory
> (i think) and that includes its mailbox ...... hope this helps :)

right.  quotas.  http://www.tldp.org/HOWTO/Quota.html

i just had to do this (get quotas set up) on a server and i had to 
reboot more times than i wanted to :). herewith, the saga.

0.  one drive was EXT3.  quota works there with the standard quota tools.

1.  the other partition i wanted to quota was reiser. reiser doesn't 
    support quotas (I think spike said that there are patches, but backing
    up, mkfs, and restore are faster than a kernel compile, so i'll give
    up on reiser, particularly since none of those partitions are going
    to be home to maildir directories anyway or anything that can take
    advantage of reiser's superior behavior with many small files and
    better handling of very many files in a directory).  

    ok, try XFS (wrogn mistaek.  next time, read some docs :).

2.  XFS has a different quotafile filename, maybe different format, and
    definitely different quota management tools (xfsdq, xfsrq).  ok, i
    don't want to deal with *two* different quota systems on one box :).
    backup, mkfs to EXT3 and restore AGAIN.

3.  you can't do quotacheck (to create the quota files in the root) or
    quotaon (to turn quotas on) on a busy partition.  the partition has
    to be unused (no files opened by anything).  since our server is 
    always busy when it's running, the only time to do quotacheck 
    and quotaon is right after the root has been mounted and before 
    the other filesystems are mounted. reboot a few times trying to do
    this at a shell prompt :). finally learn the lesson, bite the bullet
    and edit rc.sysinit.

4.  i use mandrake.  it would be nice if "urpmi quota" on mandrake also
    created the appropriate entry in /etc/rc.d/init.d (e.g., quota :),  and
    that you could then turn quota support on or off with chkconfig (and
    then a reboot, or at least telinit 1 and then telinit 3, so service quota
    reload won't work since the disk will be busy in multiuser mode :).  
    but no, there's no quota script there.  so i had to modify rc.sysinit
    manually instead (can't do it in rc.local either, since by that time
    filesystems have been mounted and daemons started).

so my question is, did i miss something?  maybe there's some other 
rpm that provides that quota script for init.d? 

i don't think there is one, since "urpmf quota | grep rc.d" shows nothing.

i'll probably make up my own script and move my mods out of rc.sysinit 
(the howto shows a simple one).  i got stuck on how to figure out what the 
## in /etc/rc.d/rc<runlevel>.d/S##<daemon> comes from.  i figured it
out by reading the init.d scripts and waiting for enlightenment to
dawn.  next time, i should just do:  man chkconfig :).  it's all in there
under "RUNLEVEL FILES". hahay.

oh, and to billy, who brought this all up.  i hope this helps you.
it helped me a bit, getting this off my chest :).  hehe.

tiger

-- 
Gerald Timothy Quimpo  gquimpo*hotmail.com tiger*sni*ph
http://bopolissimus.sni.ph
Public Key: "gpg --keyserver pgp.mit.edu --recv-keys 672F4C78"

    The early monastics were distrustful of religious experiences
     because of the human ability to make subjective needs and 
     desires into truths about the universe.
                                Roberta Bondi, "To Love as God Loves".

--
Philippine Linux Users' Group (PLUG) Mailing List
[EMAIL PROTECTED] (#PLUG @ irc.free.net.ph)
Official Website: http://plug.linux.org.ph
Searchable Archives: http://marc.free.net.ph
.
To leave, go to http://lists.q-linux.com/mailman/listinfo/plug
.
Are you a Linux newbie? To join the newbie list, go to
http://lists.q-linux.com/mailman/listinfo/ph-linux-newbie

Reply via email to