How to fix Quotas unlimited under OpenVZ?
-
Hello, On Virtuozzo servers, 2nd level quotas must be enabled on the host node. See Enabling Quotas on Virtuozzo. Hope that helps. 0 -
Quotas on OpenVZ and Virtuozzo require that second-level quota support be enabled for the VPS container in the hardware node. This is not a setting that you can change inside the VPS container. If you are not the administrator of the hardware node, ask your hosting provider to make certain that second-level quotas are enabled for your VPS container. The following documentation offers more information about this, including how the administrator of the hardware node can enable second-level quotas for a container: 0 -
Hello, I'm full administrator of VPS and hardware node. The hardware node OS is CentOS release 6.5 (Final), kernel 2.6.32-042stab088.4, virtualization technology is OpenVZ. I think that First-level quotas are enabled on hardware node: [QUOTE][root@Ovz-02 ~]# grep DISK_QUOTA /etc/vz/vz.conf DISK_QUOTA=yes [root@Ovz-02 ~]#
Second-level quotas are enabled too: [QUOTE][root@Ovz-02 ~]# grep -i QUOTAUGIDLIMIT /etc/sysconfig/vz-scripts/101.conf QUOTAUGIDLIMIT="1000" [root@Ovz-02 ~]#
checking that quota is off for Container 101: [QUOTE][root@Ovz-02 ~]# grep DISK_QUOTA /etc/vz/conf/101.conf [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 ~]#
What's wrong? [QUOTE][root@Ovz-02 ~]# vzquota show 101 vzquota : (error) Can't open quota file for id 101, maybe you need to reinitialize quota: No such file or directory vzquota : (error) Quota file must exist for show command [root@Ovz-02 ~]#
Thank you in advance!0 -
From the hardware node, try running: vzctl stop VEID vzquota drop VEID vzctl start VEID
Note this will restart the VPS. Thank you.0 -
Unfortunately this doesn't help also: [QUOTE][root@Ovz-02 ~]# vzctl stop 101 Stopping container ... Container was stopped Unmounting file system at /vz/root/101 Unmounting device /dev/ploop15362 Container is unmounted
[QUOTE][root@Ovz-02 ~]# vzquota drop 101 vzquota : (error) Can't open quota file for id 101, maybe you need to reinitialize quota: No such file or directory [root@Ovz-02 ~]#
[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, 172638/1638400 files, 1350534/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 ~]#
Any other suggestions?0 -
Instead of using the "drop" command, use the same steps but try: vzquota init 101
Note that this is an issue with your VPS software, and not with cPanel. Thank you.0 -
I run the command: [QUOTE][root@Ovz-02 ~]# vzquota init 101 Usage: vzquota init -p [-c ] [-R,--relative] [-s,--sub-quotas 1|0] [-u,--ugid-limit ] -b,--block-softlimit -B,--block-hardlimit -i,--inode-softlimit -I,--inode-hardlimit -e,--block-exptime -n,--inode-exptime [root@Ovz-02 ~]#
Here I found another example, but thus doesn't help me. Is it possible that the problem comes from the fact that for this container I used ploop file-system instead of default one simfs? Does cPanel is compatible with ploop?0 -
You may find posting on a forum that deals with discussions of the OpenVZ software for more user-feedback. The error messages you have provided are with vzquota, and not related to the cPanel software itself. Thank you. 0
Please sign in to leave a comment.
Comments
8 comments