Hi Greg Openvz do not handle filesystems mounted winthin the root of the vz in a good way currently. The problem you report below is just one of many examples why that do not work very well. Actually if you try to create a VE where you have something mounted within the root of the VE, that process will fail.
Please file a bug report against vzctl about this and I will forward it upstream. However I think it should have wishlist priority as this is really something that is out of the scope of the current features of vzctl. Just for your knowledge. This problem is not specific to Debian. Hope this was a good enough answer to your question. Best regards, // Ola On Sun, Jan 10, 2010 at 12:57:41PM +0100, Greg wrote: > Hi, > > When i'm stop VE (were some mount with bind option), after ve stop, > host df commande report bad size for www & home ! (see size below) > > i'll try both 202.umount & 202.stop batch without any change for volume > size after ve stopped > > > Good size before ve stop : > ------------------------- > # df -h | grep mnt | grep sata > 10G 2,4G 7,7G 24% /mnt/satavol1/lvm-ftp > 20G 8,7G 12G 44% /mnt/satavol1/lvm-www > 80G 34G 47G 42% /mnt/satavol1/lvm-home > > Bad size after ve stop (look the 1.9G instead more than 20G !!) > ---------------------- > vzctl stop 202 ; df -h | grep mnt | grep sata > umount external directory into vps > umount: /vz/root/202/home: not found > umount: /vz/root/202/var/www: not found > Stopping VE ... > VE was stopped > umount external directory into vps > VE is unmounted > 10G 2,4G 7,7G 24% /mnt/satavol1/lvm-ftp > 1,9G 243M 1,6G 14% /mnt/satavol1/lvm-www > 1,9G 243M 1,6G 14% /mnt/satavol1/lvm-home > > So i'll try umount the two wrong size volume : > # umount /mnt/satavol1/lvm-www ; umount /mnt/satavol1/lvm-home > umount: /dev/mapper/satavol1-lvm--www: not mounted > umount: /dev/mapper/satavol1-lvm--www: not mounted > umount: /dev/mapper/satavol1-lvm--home: not mounted > umount: /dev/mapper/satavol1-lvm--home: not mounted > # umount /mnt/satavol1/lvm-www ; umount /mnt/satavol1/lvm-home > umount: /mnt/satavol1/lvm-www: not mounted > umount: /mnt/satavol1/lvm-home: not mounted > > i mount the two volume > # mount /mnt/satavol1/lvm-www ; mount /mnt/satavol1/lvm-home > > the two volume were had the good size back !: > # df -h | grep mnt | grep sata > 10G 2,4G 7,7G 24% /mnt/satavol1/lvm-ftp > 20G 8,7G 12G 44% /mnt/satavol1/lvm-www > 80G 34G 47G 42% /mnt/satavol1/lvm-home > > > > > > > > > # cd /etc/vz/conf ; for script in 202.mount 202.umount 202.stop ; do > echo ""; echo $script; echo "==========" ; cat $script | grep -v "^#" ; > done > > 202.mount > ========== > echo " $0 mount external directory into vps" > mount --bind /mnt/satavol1/lvm-home /vz/root/202/home > mount --bind /mnt/satavol1/lvm-www /vz/root/202/var/www > > 202.umount > ========== > > > echo "umount external directory into vps" > umount /vz/root/202/home > umount /vz/root/202/var/www > exit 0 > > 202.stop > ========== > > > echo "umount external directory into vps" > umount /vz/root/202/home > umount /vz/root/202/var/www > exit 0 > > > > # dpkg -l vzctl lvm2 mdadm | grep ii | awk ' { print $2" "$3 } ' > lvm2 2.02.39-7 > mdadm 2.6.7.2-3 > vzctl 3.0.22-14 > > # uname -srv > Linux 2.6.26-2-openvz-686 #1 SMP Wed Nov 4 22:06:32 UTC 2009 > > _______________________________________________ > Debian mailing list > deb...@openvz.org > https://openvz.org/mailman/listinfo/debian > -- --------------------- Ola Lundqvist --------------------------- / o...@debian.org Annebergsslingan 37 \ | o...@inguza.com 654 65 KARLSTAD | | http://inguza.com/ +46 (0)70-332 1551 | \ gpg/f.p.: 7090 A92B 18FE 7994 0C36 4FE4 18A1 B1CF 0FE5 3DD9 / --------------------------------------------------------------- _______________________________________________ Users mailing list Users@openvz.org https://openvz.org/mailman/listinfo/users