View Full Version : Quota: any experiences?
Jerre
07-26-2005, 03:27 PM
I'm thinking of installing quota on my VPS, so that I can host a few domains for friends, but I can prevent them from cluttering my VPS with mp3s and such BS
I saw there was an apt package that contains a webmin interface for quota.
Does anybody have any experience with installing this?
Jerre
retep
07-27-2005, 02:14 AM
Here are my 'quota notes'. They may be of some help:
You need to have a usrquota and/or grpquota option on the file system on which you wish to use quotas. e.g. in /etc/fstab you would have something like:
/dev/ubd/1 / ext3 defaults,noatime,usrquota,grpquota 1 0
# reload the mount points with the quota settings enabled
mount -o remount /
#install quota (if not there already)
apt-get install quota
# will set up the quota files
quotacheck -acguvm
# -m is needed, else you may get:
# quotacheck: Cannot remount filesystem mounted on / read-only so counted values might not be right.
# Please stop all programs writing to filesystem or use -m flag to force checking.
# -c is needed, else you may get a
quotacheck: Can't find filesystem to check or filesystem not mounted with quota
edquota: Quota file not found or has wrong format.
quota: Quota file not found or has wrong format.
repquota -a # will show who is using what
To assign a quota to a user (http://www.tldp.org/HOWTO/Quota-4.html):
edquota -u ausername
themicah
09-02-2005, 12:00 AM
I got quotas to work by following the above directions. The only thing that wasn't clear to me on the first read (I'm a bit of a novice) was this part:
e.g. in /etc/fstab you would have something like:
/dev/ubd/1 / ext3 defaults,noatime,usrquota,grpquota 1 0
I eventually figured out that for my VPS this meant adding the usrquota,grpquota parameters to the first line in my fstab file (which mounts /dev/sda1, not /dev/ubd/1 like in the example above).
This may be obvious to experienced users, but in case there are other novices out there I thought I'd add...
vBulletin® v3.7.1, Copyright ©2000-2008, Jelsoft Enterprises Ltd.