Dear all,
I have a problem with one of VPS servers which i created under my OpenVZ server. In cPanel (WHM 11.42.1 (build 12)), all accounts quota appears as unlimited.
I've been looking for a solution but i can't find working one. I found this old topic http://forums.cpanel.net/f5/quotas-unlimited-275061.html but I can not replay inside it.
The solution explained there doesn't working for me.
I'm running a CentOS release 6.5 (Final), and my fstab says:
I have a problem with one of VPS servers which i created under my OpenVZ server. In cPanel (WHM 11.42.1 (build 12)), all accounts quota appears as unlimited.
I've been looking for a solution but i can't find working one. I found this old topic http://forums.cpanel.net/f5/quotas-unlimited-275061.html but I can not replay inside it.
The solution explained there doesn't working for me.
I'm running a CentOS release 6.5 (Final), and my fstab says:
My mtab:root@test [/]# cat /etc/fstab
none /dev/pts devpts rw,gid=5,mode=620 0 0
none /dev/shm tmpfs defaults 0 0
root@test [/]#
when i try to run /scripts/fixquotas i get the followingroot@test [/]# mount
/dev/ploop15362p1 on / type ext4 (rw,relatime,barrier=1,data=ordered,balloon_ino=12,jqfmt=vfsv0,usrjquota=aquota.user,grpjquota=aquota.group)
proc on /proc type proc (rw,relatime)
sysfs on /sys type sysfs (rw,relatime)
none on /dev type devtmpfs (rw,relatime,mode=755)
none on /dev/pts type devpts (rw,relatime,gid=5,mode=620,ptmxmode=000)
none on /dev/shm type tmpfs (rw,relatime)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,relatime)
root@test [/]#
I tried these commands, but results are the same - unlimited quota inside WHM/cPanel:root@test [/]# /scripts/fixquotas
Installing Default Quota Databases......Done
Quota Mode: Linux
journaled quota support: not available with vzaquota (disabled)
checking out /backup
checking out /backup
Quotas have been enabled, however they may not be up to date as quotacheck has been skipped.
Reading package test
Resetting quota for kireto to 1024 M
edquota: Cannot open quotafile //aquota.user: No such file or directory
No filesystems with quota detected.
root@test [/]#
I Found this:
Cpanel quotas - OpenVZ Linux Containers Wiki
rm -rf /aquota.user 2>/dev/null
rm -rf /aquota.group 2>/dev/null
unlink /aquota.user 2>/dev/null
unlink /aquota.group 2>/dev/null
for x in `find /proc/vz/vzaquota/ | tail -2 `; do ln -s $x / ; done
after these commands, I run this:
/sbin/quotacheck -am
and returned to cPanel> Server Configuration> Initial Quota Setup
And, it's all right