OpenVZ Forum


Home » Mailing lists » Users » Split VE disk space between / and /var?
Re: Split VE disk space between / and /var? [message #26691 is a reply to message #26680] Wed, 30 January 2008 20:11 Go to previous messageGo to previous message
Jan Tomasek is currently offline  Jan Tomasek
Messages: 44
Registered: December 2006
Member
Kirill Korotaev wrote:
> it's possible to do the following:
> - create some directory, say /vz/private/ID.2
> - turn on vzquota on this directory (quota ID maybe VEID+some bug number, say 1000000)
> - bind (u)mount /vz/private/ID.2 to /vz/root/ID/var in VE.(u)mount scripts.

That is quite interesting thanks! But I need bit more help.

Start of VE is fine:

chlivek:~# vzctl start 192003
Starting VE ...
+ mount --bind /staj/vz/private/192003.mnt /staj/vz/root/192003/mnt
VE is mounted
Adding IP address(es): 192.168.0.3
Setting CPU units: 1000
Configure meminfo: 65536
Set hostname: dns
VE start in progress...

But stop not:

chlivek:~# vzctl enter 192003
entered into VE 192003
root@dns:/# ls /mnt
big  x  xx

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
+ exit 0
VE is unmounted

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.

I'm also interested if it's posible to have inside VE df showing correct
info, instead of total HW node capacity.

root@dns:/# 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


Thanks
-- 
-----------------------
Jan Tomasek aka Semik
http://www.tomasek.cz/
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Samba core dump after live migration
Next Topic: IPv6 ??
Goto Forum:
  


Current Time: Tue Sep 16 22:25:45 GMT 2025

Total time taken to generate the page: 0.68562 seconds