Configure User/Group quotas on a CT [message #52203] |
Tue, 15 September 2015 18:03 ![Go to next message Go to previous message](/theme/ovz3/images/down.png) |
Bazcor
Messages: 4 Registered: February 2013
|
Junior Member |
|
|
Hi,
I created a CT (Centos 6.7) and later I mounted a new FS called /home.
# df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/ploop51602p1 4512976 3288656 1014784 77% /
/dev/simfs 1998672 41308 1852508 3% /home
none 524288 12 524276 1% /dev
none 524288 0 524288 0% /dev/shm
I am trying to set disk quotas per user/group under /home and I am getting:
# quotaon /dev/simfs
quotaon: Cannot stat() given mountpoint /dev/simfs: No such file or directory
Skipping...
quotaon: No correct mountpoint specified.
# quotaon /home
quotaon: Mountpoint (or device) /home not found or has no quota enabled.
Disk quota is enable on vz.conf and ct.conf.
CT > QUOTAUGIDLIMIT="100"
I mounted the FS on VZ.
/dev/mapper/openvz_ct-homedir_205 on /mnt/homedir_205 type ext4 (rw,usrquota,grpquota)
My script to mount the FS is:
#!/bin/bash
. /etc/vz/vz.conf
. ${VE_CONFFILE}
SRC=/mnt/homedir_205
DST=/home
if [ ! -e ${VE_ROOT}${DST} ]; then mkdir -p ${VE_ROOT}${DST}; fi
mount -n -t simfs ${SRC} ${VE_ROOT}${DST} -o ${SRC}
Any ideas what is wrong?
Thanks in advance.
|
|
|