Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 18 Oct 1999 15:48:43 -0700
From:      me++ <notme@lvdi.net>
To:        Christopher Michaels <ChrisMic@clientlogic.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: quota not working properly
Message-ID:  <380BA3CB.EE151DA7@lvdi.net>
References:  <6C37EE640B78D2118D2F00A0C90FCB4401105D03@site2s1>

next in thread | previous in thread | raw e-mail | index | archive | help
Ended up it is the space.  When I read it from the page,
I though there was one... :)
But now there seems to be another problem.  I have
quota installed for /usr, does that effect the user's
quota for /usr/home?  (I was expecting it to, but it didn't
appear so when I set it up on my server.)
When I do a quota -v username as root, I can see the limit,
but it doesn't show me the amount used even after exceeding
the quota limit.

Once again, thanks a lot to all of you who helped! :)

Frankie

Christopher Michaels wrote:

> Just for the sake of argument, lets go through the steps 1 by 1 and makes
> sure we're at the same place.
>
> 1. Compiled a new kernel and installed it with "options QUOTA" in the config
> file?
> 2. Added "enable_quotas=YES" in /etc/rc.conf?
> 3. Added "check_quotas=YES" in /etc/rc.conf?
> 4. Added userquota and/or groupqouta to the device line in /etc/fstab?  ( I
> see you did that but I'm going through all the steps. )
>
>         AHH, I see one problem.  Your fstab.  Don't put spaces between the
> options and I'll bet that's your problem.
>
> # Device                Mountpoint      Fstype  Options         Dump
> Pass#
> /dev/wd0s1b             none            swap    sw                      0
> 0
> /dev/wd0s1a             /                       ufs             rw
> 1               1
> /dev/wd0s1e             /usr                    ufs
> rw,userquota,groupquota 2               2
> /dev/wcd0c              /cdrom          cd9660  ro,noauto       0
> 0
> proc                    /proc           procfs  rw                      0
> 0
>
> If this is something stupid your mailer did, than I'll move on.
>
> 5. Restart.
>
> Now, if the above 5 steps aren't working try the following (as root)
> quotaon /usr
> quotacheck -v /usr
>
> If it still doesn't work, report back.
>
> BTW, the quota.user and quota.group files are not in "/root" they are in the
> ROOT of the partition where the quotas are enabled.  In your case /usr
> directory is the root of that partition.
>
> Good luck,
> -Chris
> > -----Original Message-----
> > From: me++ [SMTP:notme@lvdi.net]
> > Sent: Sunday, October 17, 1999 7:23 PM
> > To:   Christopher Michaels
> > Cc:   freebsd-questions@freebsd.org
> > Subject:      Re: quota not working properly
> >
> > Thanks for the reply!
> > Actually, I have rebooted after editing /etc/rc.conf and
> > /etc/fstab.  I even checked the startup message and
> > confirmed that quota was turned on.  When I do edquota
> > as the web page said, it gave me a blank quota file, for
> > example:
> > edquota -u tester
> >
> > Quotas for user tester:
> > <blank file>
> >
> > I have tried tying in the settings (invalid or valid), and
> > save and exit, but when I do quota -v tester, the same
> > message popped up:
> >
> > Disk quotas for user tester (uid 1001): none
> >
> > I have also tried rebooting right after edquota, and same
> > time happen.  When I go back into edquota, the settings
> > are all gone regardless of rebooting.  I have tried touch
> > quota.user and quota.group in /root, /usr/ since I have seen
> > the man page talking about it.  (Actually, it just says that
> > the quota.user and quota.group are files that are supposed
> > to be in /root)
> >
> > I am sorta running out of ideas on things I could do.
> > Thank you in advance for any help!
> >
> >
> >
> > Frankie
> > Here's my /etc/fstab
> > <file starts here>
> > # Device            Mountpoint     Fstype     Options     Dump     Pass#
> > /dev/wd0s1b      none     swap       sw             0            0
> > /dev/wd0s1a       /            ufs          rw             1             1
> > /dev/wd0s1e       /usr       ufs          rw, userquota, groupquota 2
> > 2
> > /dev/wcd0c        /cdrom  cd9660   ro, noauto   0            0
> > proc                   /proc       procfs    rw              0
> > 0
> > <end of file>
> > I am running FreeBSD 3.2-Release
> >
> > Christopher Michaels wrote:
> >
> > > To quote the web page.
> > >
> > > "At this point you should reboot your system with your new kernel.
> > /etc/rc
> > > will automatically run the appropriate commands to create the initial
> > quota
> > > files for all of the quotas you enabled in /etc/fstab, so there is no
> > need
> > > to manually create any zero length quota files. "
> > >
> > > You have not does this.  You either rebooted before editing the
> > /etc/rc.conf
> > > and/or /etc/fstab file, or you just haven't rebooted at all.  :P
> > >
> > > -Chris
> > >
> > > > -----Original Message-----
> > > > From: Frankie Li [SMTP:notme@lvdi.net]
> > > > Sent: Friday, October 15, 1999 8:28 PM
> > > > To:   freebsd-questions@freebsd.org
> > > > Subject:      quota not working properly
> > > >
> > > > Hi,
> > > >     I have recompiled the kernel according to
> > > > the tutorial in www.freebsd.org to enable
> > > > quota, and also edited rc.conf as described.
> > > > However, when I edit /etc/fstab, and then
> > > > do edquota <username>, quota -v shows
> > > > that the user's quota is none.
> > > > i.e:
> > > > Disk quotas for user test (uid 1000): none
> > > >
> > > > Is the tutorial in www.freebsd.org outdated?
> > > >
> > > > I have a 486/33 with 2 hard drives, (250
> > > > MB on one and 200 on the other), with
> > > > 16MB of RAM, and FreeBSD 3.2-Release.
> > > >
> > > >
> > > > Thank you in advance for any help!
> > > > Please e-mail me if any additional information
> > > > is required.
> > > >
> > > > Frankie
>
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-questions" in the body of the message



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?380BA3CB.EE151DA7>