Re: Disk Quotas

From: Jeff Vian (jvian10_at_charter.net)
Date: 07/12/04

  • Next message: Jeff Vian: "Re: /proc/acpi/sleep"
    To: For users of Fedora Core releases <fedora-list@redhat.com>
    Date: Sun, 11 Jul 2004 21:35:27 -0500
    
    

    On Sun, 2004-07-11 at 18:31, Robert Locke wrote:
    > On Sun, 2004-07-11 at 19:13, Kostas Sfakiotakis wrote:
    > > Robert Locke wrote:
    > > > On Sat, 2004-07-10 at 07:56, Kostas Sfakiotakis wrote:
    > > >
    > > >>I have a couple of questions regarding Disk Quotas .
    > > >>
    > > >>The First Question is , what is really happening when
    > > >>During the boot proccess the message "Enabling File System Quotas"
    > > >>is printed ?
    > > >
    > > >
    > > > if [ -x /sbin/quotaon ]; then
    > > > action $"Enabling local filesystem quotas: " /sbin/quotaon -aug
    > > > fi
    > >
    > > If i understand this well when the condition -x /sbin/quotaon is
    > > satisfied ( when really ?) it tries to execute the /sbin/quotaon -aug
    > > command
    >
    > Testing that the file /sbin/quotaon exists, then execute the command....
    >

    Kostas,
    this is part of the rc.sysinit script.
    and it says "if the file exists, then execute it"

    > >
    > > >
    > > >>Because in a Fedora Core 1 full installation , the only thing that is
    > > >>not happening is Enabling File system Quotas . That is repquota on any
    > > >>File system that i have will report , that Quotas are off ? So what is
    > > >>really going on there ?
    > > >
    > > >
    > > > It is turning on quotas on filesystems where quotas are enabled....
    > >
    > > Well that means exactly NOWHERE !!! UNLESS the superuser has
    > >
    > > a) modified the /etc/fstab
    > > b) placed proper files ( aquota.user for users , aquota.group for
    > > group quotas )
    >
    > Take another look at the procedure below.... The "quotacheck" command
    > with a -c option, will create the aquota files.... Take a look at "man
    > quotacheck" for more details....
    >
    > And yes, unless the whole procedure has been followed, there is no quota
    > limiting....
    >
    > >
    > > >
    > > >
    > > >>The Second Question would be who can someone create the
    > > >>aquota.user and aquota.group files for the very first time ?
    > > >>
    > > >>#requota -c will create the aquota.user file regardless if such
    > > >>a file previously existed , is corrupted or whatever happens to it.
    > > >>
    > > >>Finally the last question is how can someone enable file system
    > > >>Quotas on the root file system ?
    > > >>
    > > >>Am using Fedora Core 1 with kernel 2.4.26
    > > >
    > > >
    > > > Let's recap, step-by-step:
    > > >
    > > > 1) vi /etc/fstab
    > > > Modify the "filesystem" options to include either "usrquota" or
    > > > "grpquota" (usually has defaults).
    > > > 2) mount -o remount "filesystem"
    > > Am a little bit scared on running this command for the root
    > > filesystem .
    >
    > Of course your other choice is to reboot.... :-) But the remount option
    > has worked pretty good.
    >
    > > > 3) quotacheck -cM "filesystem"
    > > > 4) quotaon "filesystem"
    > > > 5) edquota "username" or look up setquota
    > >
    > > Yes, except my little remark on step 2 everything looks fine .
    > > Thanks
    > >
    > >
    > > Kind Regards,
    > > Kostas
    > >
    >
    > One last thought for you.... I generally do not find much need to set a
    > quota on the "/" filesystem. On a truly multi-user system (implying a
    > need for quotas), I ensure that the regular user writable filesystems do
    > not include "/". I generally have a separate /home, /tmp, etc.... I
    > can then place a quota on those filesystems only. I also never put a
    > limit on the user root......
    >
    > HTH,
    >
    > --Rob
    >

    -- 
    fedora-list mailing list
    fedora-list@redhat.com
    To unsubscribe: http://www.redhat.com/mailman/listinfo/fedora-list
    

  • Next message: Jeff Vian: "Re: /proc/acpi/sleep"

    Relevant Pages

    • RE: Quota Problem
      ... command to direct the "this command completed successfully" output to a file ... directory - thus the error if quota exceeded. ... On the client,we may start the problematic computer in safe mode to ... Edit all instances of the TMP and TEMP environment variables so ...
      (microsoft.public.windows.server.general)
    • Re: Disk Quotas
      ... On Sun, 2004-07-11 at 19:13, Kostas Sfakiotakis wrote: ... The "quotacheck" command ... And yes, unless the whole procedure has been followed, there is no quota ... quota on the "/" filesystem. ...
      (Fedora)
    • Re: Process Quota Tuning
      ... > I have one DCL command procedure in which you pass the PID of the process to ... It monitors a few quota levels retrievable through F$GETJPI, ... $ on control_y then exit ...
      (comp.os.vms)
    • Problem with chroot, uids and quota
      ... I have installed openssh-portable with the chroot option enabled. ... can login and execute the commands I supplied in their chroot'ed home ... If I login as the chrooted user and type the command quota by itself I get ... when executing the quota command with the user name appended I get: ...
      (freebsd-questions)