<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman,new york,times,serif;font-size:12pt"><div>Hi,<br><br>I migrated my server from vserver to openvz. All seems to work well but I had a problem with quota 2nd level.<br>I've aldeady readed many articles (and tutorials) founded on google, but I doing someting wrong... Please give me advice what I have doing wrong :(<br><br>On my machine:<br>marvin:/# cat /proc/version<br>Linux version 2.6.32-5-openvz-amd64 (Debian 2.6.32-26) (dannf@debian.org) (gcc version 4.3.5 (Debian 4.3.5-4) ) #1 SMP Wed Oct 20 00:52:29 UTC 2010<br><br>marvin:/proc# mount |grep "101"<br>/dev/mapper/vg0-v1 on /vhost/101 type ext3 (rw,usrquota,grpquota)<br><br>I had set in vz.conf:<br>VE_ROOT=/var/lib/vz/root/$VEID<br>VE_PRIVATE=/vhost/$VEID<br><br>marvin:/etc/vz/conf# cat 101.conf <br>[....]<br># Disk quota parameters (in form of
softlimit:hardlimit)<br>DISK_QUOTA="yes"<br><br># Disk quota parameters (in form of softlimit:hardlimit)<br>DISKSPACE="139456348:139456348"<br>DISKINODES="139456348:139456348"<br>QUOTATIME="0"<br>QUOTAUGIDLIMIT="190"<br><br>Now I try start a 101 vhost:<br><br>marvin:/etc/vz/conf# vzctl start 101<br>Starting container ...<br>Container is mounted<br>Adding IP address(es): [...]<br>Running container script: /etc/vz/dists/scripts/debian-add_ip.sh<br>Setting CPU units: 1000<br>Configuring meminfo: 9223372036854775807<br>Set hostname: [....]<br>Running container script: /etc/vz/dists/scripts/debian-set_hostname.sh<br>Setting quota ugidlimit: 190<br>Running container script: /etc/vz/dists/scripts/set_ugid_quota.sh<br>Container start in progress...<br><br>marvin:/etc/vz/conf# vzquota stat 101<br> resource usage softlimit
hardlimit grace<br> 1k-blocks 898572 139456348 139456348<br> inodes 28118 139456348 139456348<br><br>marvin:/etc/vz/conf# vzctl enter 101<br>entered into CT 101<br><br>s1:/# ls -la /etc |grep mtab<br>lrwxrwxrwx 1 root root 12 Oct 31 15:41 mtab -> /proc/mounts<br><br>s1:/# cat /etc/mtab<br>/dev/simfs / simfs rw,relatime 0 0<br>proc /proc proc rw,relatime 0 0<br>sysfs /sys sysfs rw,relatime 0 0<br>tmpfs /lib/init/rw tmpfs rw,nosuid,relatime,mode=755 0 0<br>tmpfs /dev/shm tmpfs rw,nosuid,nodev,relatime 0 0<br>devpts /dev/pts devpts rw,nosuid,noexec,relatime,gid=5,mode=620 0 0<br>s1:/# cat /etc/fstab<br># /etc/fstab: static file system
information.<br>#<br># <file system> <mount point> <type> <options> <dump> <pass><br>proc /proc proc defaults 0 0<br><br>s1:/# repquota --version<br>Quota utilities version 4.00-pre1.<br>Compiled with: USE_LDAP_MAIL_LOOKUP EXT2_DIRECT HOSTS_ACCESS ALT_FORMAT RPC RPC_SETQUOTA BSD_BEHAVIOUR<br>Bugs to jack@suse.cz<br><br>s1:/# edquota root<br>No filesystems with quota detected.<br><br>s1:/# exit<br>logout<br>exited from CT 101<br><br><br>So magic question
is what I need to change to change /etc/mtab entry to mount FS with quota ?<br>Sorry for simple (?) question but my ideas was over :(<br><br>Greetings<br>Barbara<br><br></div>
</div><br>
</body></html>