OpenVZ Forum


Home » General » Support » cPanel Quota (openvz 6 cpanel quota)
cPanel Quota [message #52618] Sat, 12 November 2016 11:12
zambara is currently offline  zambara
Messages: 1
Registered: December 2013
Location: Arad
Junior Member

From: *activnet.info
Hello,

I can't find a solution for my problem, so I ask you guys for help.

I have OpenVZ installed on Centos 6.8 on 240GB SSD and 2TB SATA using simfs. I have one cPanel vm with two partitions, one is mounted by default from /vz/private/501 as / and the other is mounted by the script below from /vz2/storage/501/home2 as /home2.


How can I enable the grpquota and usrquota on the /home2 partition ?

[root@hn ~]# uname -a
Linux xxx.xxx.com 2.6.32-042stab117.16 #1 SMP Fri Sep 9 21:57:19 MSK 2016 x86_64 x86_64 x86_64 GNU/Linux


#!/bin/bash
. /etc/vz/vz.conf
. ${VE_CONFFILE}
# Home2
SRC=/vz2/storage/501/home2
DST=/home2
if [ ! -e ${VE_ROOT}${DST} ]; then mkdir -p ${VE_ROOT}${DST}; fi
mount -n  -t simfs ${SRC} ${VE_ROOT}${DST} -o ${SRC}


root@cpanel [/]# mount
/dev/simfs on / type simfs (rw,relatime,usrquota,grpquota)
/dev/simfs on /home2 type simfs (rw,relatime)
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@hn conf]# cat /etc/vz/conf/501.conf
#  Copyright (C) 2000-2011, Parallels, Inc. All rights reserved.
#
#  This program is free software; you can redistribute it and/or modify
#  it under the terms of the GNU General Public License as published by
#  the Free Software Foundation; either version 2 of the License, or
#  (at your option) any later version.
#
#  This program is distributed in the hope that it will be useful,
#  but WITHOUT ANY WARRANTY; without even the implied warranty of
#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#  GNU General Public License for more details.
#
#  You should have received a copy of the GNU General Public License
#  along with this program; if not, write to the Free Software
#  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
#

# This config is only valid for decent VSwap-enabled kernel
# (version 042stab042 or later).

# RAM
PHYSPAGES="0:16020M"

# Swap
SWAPPAGES="0:32040M"

# Disk quota parameters (in form of softlimit:hardlimit)
DISK_QUOTA="yes"
DISKSPACE="300G:300G"
DISKINODES="200000000:220000000"
QUOTATIME="0"
QUOTAUGIDLIMIT="1000"

# CPU fair scheduler parameter
CPUUNITS="16000"
# NETFILTER="stateless"
NETFILTER="full"
VE_ROOT="/vz/root/$VEID"
VE_PRIVATE="/vz/private/$VEID"
OSTEMPLATE="centos-6-x86_64-minimal"
ORIGIN_SAMPLE="vswap-4g"
HOSTNAME="cpanel"
IP_ADDRESS="10.0.0.1"
CPULIMIT="1600"
CPUS="16"
ONBOOT="yes"
VE_LAYOUT="simfs"


Thnak you in advance.


---
Dani Radulescu
Previous Topic: Traffic accounting in OpenVZ 7
Next Topic: Yum Mirror List Typos
Goto Forum:
  


Current Time: Wed Dec 19 03:59:25 GMT 2018