Hello Yves,<div><br></div><div>do you have in /var/log/one/429.log more information on the error?</div><div><br></div><div>BTW, the fact that the LV has master in it it's pretty strange. Have you registered it using oneimage create <image.tpl> -d <lvm_datastore_id></div>
<div><br></div><div>And does the image.tpl have a PATH pointing to a file that holds the image?</div><div><br></div><div>cheers,<br>Jaime<br><br><div class="gmail_quote">On Fri, May 11, 2012 at 12:47 PM, Vogl, Yves <span dir="ltr"><<a href="mailto:vogl@adesso-mobile.de" target="_blank">vogl@adesso-mobile.de</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Jamie,<br>
<br>
thanks for you answer.<br>
<br>
I did the steps you suggested and fail with an error - it seems that there's something messed up when deploying a vm.<br>
The error occures on cloning.<br>
<br>
Error executing image transfer script: Error cloning /dev//dev/vg01/master//dev/vg01/master to /dev//dev/vg01/master//dev/vg01/master-429-0<br>
<br>
I intended to clone /dev/vg01/master to /dev/vg01/master-429-0<br>
<br>
<br>
I'll have a look at the drivers - but maybe I'm doing something wrong?<br>
<br>
Thanks,<br>
Yves<br>
<br>
<br>
<br>
Thats my datastore:<br>
<br>
DATASTORE 105 INFORMATION<br>
ID : 105<br>
NAME : kvm02<br>
USER : oneadmin<br>
GROUP : oneadmin<br>
CLUSTER : -<br>
DS_MAD : lvm<br>
TM_MAD : lvm<br>
BASE PATH : /var/lib/one/datastores/105<br>
<br>
PERMISSIONS<br>
OWNER : um-<br>
GROUP : u--<br>
OTHER : ---<br>
<br>
DATASTORE TEMPLATE<br>
DS_MAD="lvm"<br>
HOST="<a href="http://kvm02.example.org" target="_blank">kvm02.example.org</a>"<br>
TM_MAD="lvm"<br>
VG_NAME="vg1"<br>
<br>
<br>
That my image:<br>
<br>
<br>
IMAGE 20 INFORMATION<br>
ID : 20<br>
NAME : Master<br>
USER : oneadmin<br>
GROUP : oneadmin<br>
DATASTORE : kvm02<br>
TYPE : OS<br>
REGISTER TIME : 05/11 12:32:10<br>
PERSISTENT : No<br>
SOURCE : /dev/vg01/master<br>
SIZE : 0<br>
STATE : used<br>
RUNNING_VMS : 1<br>
<br>
PERMISSIONS<br>
OWNER : um-<br>
GROUP : ---<br>
OTHER : ---<br>
<br>
IMAGE TEMPLATE<br>
BUS="virtio"<br>
DEV_PREFIX="hd"<br>
DRIVER="raw"<br>
<br>
<br>
That's my template:<br>
<br>
TEMPLATE 23 INFORMATION<br>
ID : 23<br>
NAME : kvm02<br>
USER : oneadmin<br>
GROUP : oneadmin<br>
REGISTER TIME : 05/11 12:32:56<br>
<br>
PERMISSIONS<br>
OWNER : um-<br>
GROUP : ---<br>
OTHER : ---<br>
<br>
TEMPLATE CONTENTS<br>
CPU="100"<br>
DISK=[<br>
BUS="virtio",<br>
DRIVER="raw",<br>
IMAGE="Master",<br>
IMAGE_UNAME="oneadmin" ]<br>
FEATURES=[<br>
PAE="no" ]<br>
MEMORY="1024"<br>
NAME="kvm02"<br>
NIC=[<br>
NETWORK="kvm02",<br>
NETWORK_UNAME="oneadmin" ]<br>
OS=[<br>
ARCH="x86_64",<br>
BOOT="hd" ]<br>
RAW=[<br>
TYPE="kvm" ]<br>
TEMPLATE_ID="23"<br>
VCPU="1"<br>
<br>
<br>
That's my instantiated template_<br>
<br>
VIRTUAL MACHINE 429 INFORMATION<br>
ID : 429<br>
NAME : one-429<br>
USER : oneadmin<br>
GROUP : oneadmin<br>
STATE : FAILED<br>
LCM_STATE : LCM_INIT<br>
START TIME : 05/11 12:34:53<br>
END TIME : 05/11 12:35:51<br>
DEPLOY ID : -<br>
<br>
VIRTUAL MACHINE MONITORING<br>
NET_TX : 0<br>
USED CPU : 0<br>
USED MEMORY : 0<br>
NET_RX : 0<br>
<br>
PERMISSIONS<br>
OWNER : um-<br>
GROUP : ---<br>
OTHER : ---<br>
<br>
VIRTUAL MACHINE TEMPLATE<br>
CPU="100"<br>
DISK=[<br>
BUS="virtio",<br>
CLONE="YES",<br>
DATASTORE="kvm02",<br>
DATASTORE_ID="105",<br>
DISK_ID="0",<br>
DRIVER="raw",<br>
IMAGE="Master",<br>
IMAGE_ID="20",<br>
IMAGE_UNAME="oneadmin",<br>
READONLY="NO",<br>
SAVE="NO",<br>
SOURCE="/dev/vg01/master",<br>
TARGET="hda",<br>
TM_MAD="lvm",<br>
TYPE="DISK" ]<br>
ERROR=[<br>
MESSAGE="Error executing image transfer script: Error cloning /dev//dev/vg01/master//dev/vg01/master to /dev//dev/vg01/master//dev/vg01/master-429-0",<br>
TIMESTAMP="Fri May 11 12:35:50 2012" ]<br>
FEATURES=[<br>
PAE="no" ]<br>
MEMORY="1024"<br>
NAME="one-429"<br>
NIC=[<br>
BRIDGE="br0",<br>
IP="176.9.163.37",<br>
MAC="02:00:b0:02:a3:04",<br>
NETWORK="kvm02",<br>
NETWORK_ID="10",<br>
NETWORK_UNAME="oneadmin",<br>
VLAN="NO" ]<br>
OS=[<br>
ARCH="x86_64",<br>
BOOT="hd" ]<br>
RAW=[<br>
TYPE="kvm" ]<br>
TEMPLATE_ID="23"<br>
VCPU="1"<br>
VMID="429"<br>
<br>
VIRTUAL MACHINE HISTORY<br>
SEQ HOSTNAME REASON START TIME PTIME<br>
0 kvm02.ams-cloud erro 05/11 12:35:46 0d 00:00 0d 00:00<br>
<div class="HOEnZb"><div class="h5"><br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
On 10.05.2012, at 20:01, Jaime Melis wrote:<br>
<br>
> Hello Yves,<br>
><br>
> there was a big change from OpenNebula 3.2 to 3.4, and we pulled out the LVM drivers temporarily. The new LVM drivers are already in place for the next OpenNebula release 3.6 [1][2][3].<br>
><br>
> However, those new drivers will not work for as-is OpenNebula 3.4, you will need to apply the following patch:<br>
><br>
> --- a/src/tm_mad/lvm/clone<br>
> +++ b/src/tm_mad/lvm/clone<br>
> -VM_ID=$3<br>
> +VM_DIR=$(basename `dirname $DST`)<br>
><br>
> Note that I haven't tested it with OpenNebula 3.4, but they should work like that. If it doesn't, please let me know and I'll be glad to help.<br>
><br>
> [1] <a href="http://opennebula.org/documentation:rel3.6:lvm_ds" target="_blank">http://opennebula.org/documentation:rel3.6:lvm_ds</a><br>
> [2] <a href="https://github.com/OpenNebula/one/tree/master/src/datastore_mad/remotes/lvm" target="_blank">https://github.com/OpenNebula/one/tree/master/src/datastore_mad/remotes/lvm</a><br>
> [3] <a href="https://github.com/OpenNebula/one/tree/master/src/tm_mad/lvm" target="_blank">https://github.com/OpenNebula/one/tree/master/src/tm_mad/lvm</a><br>
><br>
> Cheers,<br>
> Jaime<br>
><br>
> On Thu, May 10, 2012 at 7:06 PM, Vogl, Yves <<a href="mailto:vogl@adesso-mobile.de">vogl@adesso-mobile.de</a>> wrote:<br>
> Hi,<br>
><br>
> I've setup OpenNebula 3.4 together with 5 KVM hosts.<br>
> Those 6 hosts are member of a clustered LVM.<br>
><br>
> The OpenNebula host holds the „Master“ image in form of a logical volume "/dev/vg1/master".<br>
> Every KVM host synchronizes with this image and therefore has a local copy of this image represented by its own "/dev/vg1/master" volume.<br>
><br>
> Now I'd like OpenNebula to deploy a virtual machine by creating a new logical volume as LVM snapshot from /dev/vg1/master - manually it'll look like this on the KVM host:<br>
><br>
> # lvcreate -n vm01 -L40G -s /dev/vg1/master<br>
><br>
> When the virtual machine is removed, I just need a:<br>
><br>
> # lvremove -f /dev/vg1/vm01<br>
><br>
><br>
> I've read in the change logs of OpenNebula 3.2 that the tm_lvm driver was removed and superseded by the iSCSI driver.<br>
> I'm clueless… iSCSI simply is not LVM…<br>
><br>
><br>
> My next step would be to create a custom transfer manage to realize the steps I need.<br>
> But… do I really need to do this?<br>
><br>
><br>
> Help from someone who's running the same setup is greatly appreciated :-)<br>
><br>
><br>
> Thanks so far,<br>
><br>
> Yves<br>
><br>
><br>
><br>
><br>
> _______________________________________________<br>
> Users mailing list<br>
> <a href="mailto:Users@lists.opennebula.org">Users@lists.opennebula.org</a><br>
> <a href="http://lists.opennebula.org/listinfo.cgi/users-opennebula.org" target="_blank">http://lists.opennebula.org/listinfo.cgi/users-opennebula.org</a><br>
><br>
><br>
><br>
><br>
> --<br>
> Jaime Melis<br>
> Project Engineer<br>
> OpenNebula - The Open Source Toolkit for Cloud Computing<br>
> <a href="http://www.OpenNebula.org" target="_blank">www.OpenNebula.org</a> | <a href="mailto:jmelis@opennebula.org">jmelis@opennebula.org</a><br>
<br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br>Jaime Melis<br>Project Engineer<br>OpenNebula - The Open Source Toolkit for Cloud Computing<br><a href="http://www.OpenNebula.org" target="_blank">www.OpenNebula.org</a> | <a href="mailto:jmelis@opennebula.org" target="_blank">jmelis@opennebula.org</a><br>
</div>