TheStig wrote on Fri, 26 August 2011 05:28actually that works without any problems here (using debian5 with 2.6.26-2-openvz-amd64 kernel). just recently moved an old server to an openvz-container for which i mounted a newly created lvm to /vz/private/#ID ...
Your saying if you create and mount your new lvm partition under say /vz/private/10
You can then do a vzctl create 10 --ostemplate yourtemplate
and it works fine??
This is what I get:
# lvcreate -L8G -n 6 rootvg
# mkfs.ext4 /dev/rootvg/6
# mkdir /vz/private/6
# mount /dev/rootvg/6 /vz/private/6
# vzctl create 6 --ostemplate scientific-6-x86_64
Private area already exists in /vz/private/6
Creation of container private area failed
OR
# vzctl create 6 --ostemplate scientific-6-x86_64 --private /vz/private/6 --root /vz/private/6
Private area already exists in /vz/private/6
Creation of container private area failed
Using:
# uname -a
Linux custvm0.sonic.net 2.6.32-042stab029.1 #1 SMP Sun Aug 7 19:35:21 MSD 2011 x86_64 x86_64 x86_64 GNU/Linux
# cat /etc/redhat-release
Scientific Linux release 6.0 (Carbon)
# rpm -qa |grep vzctl
vzctl-lib-3.0.28.3-1.x86_64
vzctl-3.0.28.3-1.x86_64