WHM showing diskquota
unlimited for all users in OpenVZ VPS
# vi /etc/vz/vz.conf ( Should contain the following parameters to make sure that quota is enabled in Hardware node.)
## Disk quota parameters
DISK_QUOTA=yes
VZFASTBOOT=no
# vi /etc/fstab
none /dev/pts devpts rw 0 0 // fstab entry is like this in case of VPS
# /scripts/fixquotas
Error obtained running the above command: No filesystems with quota detected.
# quotacheck -vagum
quotacheck: Can't find filesystem to check or filesystem not mounted with quota option
SOLUTION:
Let the openVZ ID be 100
( In Hardware node) # vzquota off 100
( In Hardware node) # vzquota on 100 -s 1
Setting the "quotaugidlimit" parameter is a must for 2nd level quota activation. However, not enough. The key point is the "s" parameter in the "vzquota on 10 -s 1" command.
# vzctl restart 100 // restart the vps
No comments:
Post a Comment