January 1, 2010

Enable Disk Quota in VPS

If you are experiencing an issue with OpenVZ VPS disk quota, please make sure that the following values are set in the VPS conf.

VPS conf Location : /etc/vz/conf/VEId.conf

In the main node, do the following steps.

1) #grep DISK_QUOTA /etc/vz/conf/VEId.conf

If no disk quota value has found ot it is disabled, change the value to

DISK_QUOTA=yes

2) Check that disk quota is enabled in the main server itself.

grep DISK_QUOTA /etc/sysconfig/vz

If not enable the value to yes in the conf.

DISK_QUOTA=yes

3) Check for the value quotaugidlimit .

#grep -i quotaugidlimit /etc/vz/conf/veid.conf


4) Check the quota module "vzdquota" is loaded or notin main node.

# lsmod |grep -i vzdquota

5) You can set the value quotaugidlimit from the main node using the below command.

vzctl set veid –quotaugidlimit 500 –save

6) Make sure to reboot the mentioned node from the main node.

vzctl restart veid

7) Enter the the node for which you are experiencing the problem.

vzctl enter veid

Type the command 'mount'. It should give a similar output.

# mount
/dev/simfs on / type reiserfs (rw,usrquota,grpquota)
/proc on /proc type proc (rw)
/sys on /sys type sysfs (rw)
none on /dev type tmpfs (rw)
none on /dev/pts type devpts (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)

Also make sure that symbolic links are existing from aquota.group and aquota.user to their respectve physical locations.


# ll
total 64
lrwxrwxrwx 1 root root 39 Oct 19 11:41 aquota.group -> /proc/vz/vzaquota/00000030/aquota.group
lrwxrwxrwx 1 root root 38 Oct 19 11:41 aquota.user -> /proc/vz/vzaquota/00000030/aquota.user
--

No comments:

Post a Comment