Kirill Korotaev wrote:
chlivek:~# vzctl stop 192003
Stopping VE ...
VE was stopped
+ ls -l /staj/vz/root/192003/mnt
total 0
+ umount /staj/vz/root/192003/mnt
umount: /staj/vz/private/192003.mnt: not mounted
umount: /staj/vz/private/192003.mnt: not mounted
that's because VE distro specific init scripts do umount of everything on stop.
so you can ignore this warning (but leave umount just in case).
Ok. I modified my umount script to not show errors:
#!/bin/bash -x
umount /staj/vz/root/192003/mnt 2>/dev/null
vzquota off 10192003
Mount point /staj/vz/root/192003/mnt doesn't exist at moment of calling.
But when I do not call umout it hangs in system mount tab.
check -n option to mount.
Great. Thanks!
I'm also interested if it's posible to have inside VE df showing correct
info, instead of total HW node capacity.
[EMAIL PROTECTED]:/# df -h
Filesystem Size Used Avail Use% Mounted on
simfs 1.0G 370M 655M 37% /
/dev2/root2 1.1T 46G 1020G 5% /mnt
tmpfs 4.0G 0 4.0G 0% /lib/init/rw
tmpfs 4.0G 0 4.0G 0% /dev/shm
have you called vzquota on on this directory?
plz check vzquota init, on, off commands.
you will need to assign some numerical ID to this quota directory (should be
different from VEID),
setup vzquota on it and simply turn it on before bind mount.
Yes I did initialized quota by:
# vzquota init 10192003 -p /staj/vz/private/192003.mnt -b 1000 -B 1500
-i 100 -I 150 -e 0 -n 0
and I'm activating in mount script:
#!/bin/bash -x
vzquota on 10192003
mount -n --bind /staj/vz/private/192003.mnt /staj/vz/root/192003/mnt
It's working:
chlivek:~# vzctl enter 192003
entered into VE 192003
[EMAIL PROTECTED]:/# echo "test" >/mnt/test
-bash: echo: write error: Disk quota exceeded
but df still show it as
>> /dev2/root2 1.1T 46G 1020G 5% /mnt
which isn't very intuitive and for me as admin should be really better
to be able hide total system capacity from my users :)
Any idea how to solve this?
--
-----------------------
Jan Tomasek aka Semik
http://www.tomasek.cz/
_______________________________________________
Users mailing list
[email protected]
https://openvz.org/mailman/listinfo/users