View Full Version : quota
cflhosting
2003-11-03, 18:04 PM
Being somewhat new to debian, I'm slightly uncomfortable installing quota.
I know I need to add a script to the system init, and that I need to modify etc/fstab
First, I don't know which listing in etc/fstab to change. . .it's lists three.
Secondly, the script to put into the system init. I've found an example, but I guess I'm looking for a second opinion.
Any help is greatly appreciated.
Thanks,
C.F.L
cflhosting
2003-11-04, 15:33 PM
Okay, I poked around long enough and talked to enough people that I got quota turned on, but now I'm having trouble setting quotas.
Using edquota -u <username>
(with quotaoff -av)
I get the following error trying to save
edquota: WARNING - /dev/hda3: cannot change current block allocation
And then, if I try to start quota(quotaon -av), I get
quotaon: using //quota.user on /dev/hda3 [/]: Invalid argument
quotaon: Maybe create new quota files with quotacheck(8)?
That file is present, and I tried running quotacheck again, same thing.
Quota is turned on on /dev/hda3
Thanks.
Well, to build the quota file you have to do this:
# quotaoff -a
# quotacheck -am
then:
# quotaon -a
to turn them on.
cflhosting
2003-11-04, 16:38 PM
Hrm. Tried that, same result.
# quotaoff -a
quotaoff: quotactl on /dev/hda3 [/]: No such process
# quotacheck -am
# quotaon -a
quotaon: using //quota.user on /dev/hda3 [/]: Invalid argument
quotaon: Maybe create new quota files with quotacheck(8)?
Originally posted by cflhosting
Hrm. Tried that, same result.
# quotaoff -a
quotaoff: quotactl on /dev/hda3 [/]: No such process
# quotacheck -am
# quotaon -a
quotaon: using //quota.user on /dev/hda3 [/]: Invalid argument
quotaon: Maybe create new quota files with quotacheck(8)?
What kernel version and quota version do you have?
# uname -a
# quota -V
cflhosting
2003-11-04, 16:48 PM
# uname -a
Linux server.cflhosting.net 2.4.22 #1 Fri Oct 10 13:30:39 UTC 2003 i686 unknown
# quota -V
Quota utilities version 3.04.
Compiled with RPC
Bugs to mvw@planets.elm.net, jack@suse.cz
knightfoo
2003-11-04, 17:28 PM
It looks like this is something that is broken by default. The quota package in Debian "stable" doesn't seem to like the quota interface in the 2.4.22 kernel. I put up a test server and installed the quota utilities from Debian "unstable" and it worked fine. I'm going to make sure the quota package will install cleanly on a "stable" system without upgrading glibc before I say it is good to use. Then again, if you want to upgrade to "unstable" then the problem will fix itself.
-knightfoo
cflhosting
2003-11-04, 17:33 PM
So, what your saying is I'm out of luck unless I upgrade to an unstable ver. of debian? :P
knightfoo
2003-11-04, 17:50 PM
Originally posted by cflhosting
So, what your saying is I'm out of luck unless I upgrade to an unstable ver. of debian? :P
Not necessarily, you just need a newer version of quota. I'm trying to get a package built for this, but you could download the latest source for quota and compile it if you're in a hurry. Either no one has ever configured quotas on a Debian server here or everyone who uses Debian upgrades to "sid" as soon as they get the box ..
-knightfoo
knightfoo
2003-11-04, 18:00 PM
If you install e2fslibs-dev then install this package:
http://66.139.79.168/linux/debian/quota_3.09-5_i386.deb
You will be able to use quotas without upgrading to unstable. You will need to do dpkg --force-depends when installing the quota package .. it whines about debconf being too old, but it still works without it. When you build your quota files, make sure you use "quotacheck -acmug" to force it to check and overwrite any old quota files. It worked fine on my own server, so you shouldn't have any problems with it.
-knightfoo
cflhosting
2003-11-04, 20:48 PM
Got it!
Rock on.
Thanks,
C.F.L.
cflhosting
2003-11-05, 13:08 PM
I went to install a different package today, but apt-get yells at me.
You might want to run `apt-get -f install' to correct these:
Sorry, but the following packages have unmet dependencies:
quota: Depends: debconf (>= 1.2.9) but 1.0.32 is to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
If I do that, will quota stop working?
And if I'm not to do it, how can I install new packages?
knightfoo
2003-11-05, 13:16 PM
I should have known that would happen. Redownload that file I posted, I fixed the dependency on debconf.
-knightfoo
cflhosting
2003-11-05, 18:01 PM
Roger that, thanks.
C.F.L.
This is just a confirmation that quotas work with sarge. Here's how to turn them on:
Add usrquota,grpquora to the options for / in /etc/fstab
Turn off every single service that was writing to disk by looking at the output of lsof (this includes syslogd, do that one last)
Sync any buffers back to disk with 'sync;sync;sync'
Run quotacheck -mcug /
Reboot.
-lee
vBulletin® v3.6.8, Copyright ©2000-2009, Jelsoft Enterprises Ltd.