[Users] Quota 2nd level problem
Barbara Nowak
basiamnowak at yahoo.co.uk
Tue Nov 2 13:23:57 EDT 2010
Hi,
I migrated my server from vserver to openvz. All seems to work well but I had a
problem with quota 2nd level.
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 :(
On my machine:
marvin:/# cat /proc/version
Linux version 2.6.32-5-openvz-amd64 (Debian 2.6.32-26) (dannf at debian.org) (gcc
version 4.3.5 (Debian 4.3.5-4) ) #1 SMP Wed Oct 20 00:52:29 UTC 2010
marvin:/proc# mount |grep "101"
/dev/mapper/vg0-v1 on /vhost/101 type ext3 (rw,usrquota,grpquota)
I had set in vz.conf:
VE_ROOT=/var/lib/vz/root/$VEID
VE_PRIVATE=/vhost/$VEID
marvin:/etc/vz/conf# cat 101.conf
[....]
# Disk quota parameters (in form of softlimit:hardlimit)
DISK_QUOTA="yes"
# Disk quota parameters (in form of softlimit:hardlimit)
DISKSPACE="139456348:139456348"
DISKINODES="139456348:139456348"
QUOTATIME="0"
QUOTAUGIDLIMIT="190"
Now I try start a 101 vhost:
marvin:/etc/vz/conf# vzctl start 101
Starting container ...
Container is mounted
Adding IP address(es): [...]
Running container script: /etc/vz/dists/scripts/debian-add_ip.sh
Setting CPU units: 1000
Configuring meminfo: 9223372036854775807
Set hostname: [....]
Running container script: /etc/vz/dists/scripts/debian-set_hostname.sh
Setting quota ugidlimit: 190
Running container script: /etc/vz/dists/scripts/set_ugid_quota.sh
Container start in progress...
marvin:/etc/vz/conf# vzquota stat 101
resource usage softlimit hardlimit grace
1k-blocks 898572 139456348 139456348
inodes 28118 139456348 139456348
marvin:/etc/vz/conf# vzctl enter 101
entered into CT 101
s1:/# ls -la /etc |grep mtab
lrwxrwxrwx 1 root root 12 Oct 31 15:41 mtab -> /proc/mounts
s1:/# cat /etc/mtab
/dev/simfs / simfs rw,relatime 0 0
proc /proc proc rw,relatime 0 0
sysfs /sys sysfs rw,relatime 0 0
tmpfs /lib/init/rw tmpfs rw,nosuid,relatime,mode=755 0 0
tmpfs /dev/shm tmpfs rw,nosuid,nodev,relatime 0 0
devpts /dev/pts devpts rw,nosuid,noexec,relatime,gid=5,mode=620 0 0
s1:/# cat /etc/fstab
# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump>
<pass>
proc /proc proc defaults 0
0
s1:/# repquota --version
Quota utilities version 4.00-pre1.
Compiled with: USE_LDAP_MAIL_LOOKUP EXT2_DIRECT HOSTS_ACCESS ALT_FORMAT RPC
RPC_SETQUOTA BSD_BEHAVIOUR
Bugs to jack at suse.cz
s1:/# edquota root
No filesystems with quota detected.
s1:/# exit
logout
exited from CT 101
So magic question is what I need to change to change /etc/mtab entry to mount FS
with quota ?
Sorry for simple (?) question but my ideas was over :(
Greetings
Barbara
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://openvz.org/pipermail/users/attachments/20101102/e528a122/attachment.html
More information about the Users
mailing list