Friday, June 29, 2007

vps: quota

Other requirements to install ispconfig is quota. To install quota, run:

debian:~# apt-get install quota


Edit /etc/fstab:

debian:~# vim /etc/fstab


Add usrquota,grpquota to partition with the mount point "/", in my case: /dev/sda1.

/dev/sda1 / ext3 defaults,usrquota,grpquota 1 1


Enable quota by:
debian:~# touch /aquota.user /aquota.group
debian:~# chmod 600 /aquota.*

[this is from my experience, somehow it is best to turn quota off before doing checking
and use aquota.user and aquota.group, if we use quota.user and quota.group, sometimes the kernel unsupported error message will be appeared]

debian:~# quotaoff -a
debian:~# quotacheck -avugm
quotacheck: Scanning /dev/sda1 [/] done
quotacheck: Checked 9318 directories and 80043 files
debian:~# quotaon -avug

Finish, with the quota problem.

2 comments:

mic said...

Thanks for this tip.

but if your not contains kernel-modules on your system this not possible on vps.

modprobe quota_v2
FATAL: Could not load /lib/modules/2.6.18-4-xen-686/modules.dep: No such file or directory


first download kernel-modules and enable quota.

modprobe quota_v2 or quota_v1

quotaon -a :-)

mic said...

Thanks for this tip.

but if your not contains kernel-modules on your system this not possible on vps.

modprobe quota_v2
FATAL: Could not load /lib/modules/2.6.18-4-xen-686/modules.dep: No such file or directory


first download kernel-modules and enable quota.

modprobe quota_v2 or quota_v1

quotaon -a :-)