Hello,
I created one new OpenVZ server under CentOS 6.5 x64 with ploop containers.
Everything working very good and I'm happy with performance and all new features of ploop, but unfortunately there is no complete happiness. So I have one problem - When create ploop container with CentOS 6 and cPanel control panel, the cPanel doesn't report disk usage per account.
In WHM/cPanel for Quota per account is see "unlimited" no matter of my quota configurations.
The configuration of the hardware node is as follows:
Quote:
# grep DISK_QUOTA /etc/vz/vz.conf
DISK_QUOTA=yes
|
I fulfilled this command according this article openvz.org/Ploop/Getting_started
Quote:
vzctl set CTID --quotaugidlimit 1000 --save
|
Second-level quotas are enabled too:
Quote:
[root@Ovz-02 ~]# grep -i QUOTAUGIDLIMIT /etc/sysconfig/vz-scripts/101.conf
QUOTAUGIDLIMIT="1000"
[root@Ovz-02 ~]#
|
Everything look like good.
The output from starting the container:
Quote:
[root@Ovz-02 ~]# vzctl start 101
Starting container...
Opening delta /vz/private/101/root.hdd/root.hdd
Adding delta dev=/dev/ploop15362 img=/vz/private/101/root.hdd/root.hdd (rw)
/dev/ploop15362p1: clean, 172612/1638400 files, 1350569/6553088 blocks
Mounting /dev/ploop15362p1 at /vz/root/101 fstype=ext4 data='balloon_ino=12,usrjquota=aquota.user,grpjquota=aquota.group,jqfmt=vfsv0,'
Container is mounted
Adding IP address(es): 94.31.53.29 94.31.53.14
Setting CPU limit: 44
Setting CPU units: 8
Setting CPUs: 1
Container start in progress...
[root@Ovz-02 ~]#
|
I've been looking for a solution but i can't find working one.
Inside the container I'm running a CentOS release 6.5 (Final), and my fstab says:
Quote:
oot@test [/]# cat /etc/fstab
none /dev/pts devpts rw,gid=5,mode=620 0 0
none /dev/shm tmpfs defaults 0 0
root@test [/]#
|
My Container mtab:
Quote:
root@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 [/]#
|
when i try to run /scripts/fixquotas i get the following
Quote:
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 tried these commands from wiki.openvz.org/Cpanel_quotas but results are the same - unlimited quota inside WHM/cPanel:
Quote:
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
|