LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud
User Name
Password
Linux - Virtualization and Cloud This forum is for the discussion of all topics relating to Linux Virtualization and Linux Cloud platforms. Xen, KVM, OpenVZ, VirtualBox, VMware, Linux-VServer and all other Linux Virtualization platforms are welcome. OpenStack, CloudStack, ownCloud, Cloud Foundry, Eucalyptus, Nimbus, OpenNebula and all other Linux Cloud platforms are welcome. Note that questions relating solely to non-Linux OS's should be asked in the General forum.

Notices


Reply
  Search this Thread
Old 05-12-2014, 07:31 AM   #1
Abadon_
LQ Newbie
 
Registered: Nov 2009
Posts: 2

Rep: Reputation: 0
Question Ploop and vzquota - cPanel doesn't show disk usage


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
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
totem-pps plugin doesn't seem to work (doesn't show up) prushik Linux - Software 1 07-29-2013 09:51 AM
gtkmm: show() doesn't show the window when adding windows from other places than main() Hvl Programming 0 06-21-2012 09:54 AM
Hard drive present at Disk Utility but doesn't show up at Gparted -after secure erase Nicle Linux - Hardware 7 10-22-2011 07:11 AM
external hard drive and flash disk connected to usb doesn't show algerinbeijing Linux - Newbie 8 11-07-2010 04:56 AM
Cpanel/WHM Died at /usr/local/cpanel/Cpanel/Hulk.pm line 92. liang3391 Linux - Software 1 06-22-2009 02:02 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud

All times are GMT -5. The time now is 04:04 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration