<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">
Hi,
<div><br>
</div>
<div>thanks for you quick response.</div>
<div><br>
</div>
<div>Now there's something going on after creating an image. It fails with an error. I'll investigate this and get back to you soon with results :)</div>
<div><br>
</div>
<div><span class="Apple-style-span" style="border-collapse: collapse; color: rgb(53, 55, 53); font-family: Arial, Verdana, Geneva, Helvetica, sans-serif; font-size: 13px; -webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px; ">Error
 copying image in the repository: Datastore driver 'lvm' not available</span><br>
<div><br>
</div>
<div><br>
</div>
<div><br>
<br>
<div>
<div>On 11.05.2012, at 17:14, Jaime Melis wrote:</div>
<br class="Apple-interchange-newline">
<blockquote type="cite">
<div>Hi Yves,<br>
<br>
in the image template (im.conf) do PATH =  /var/lib/one/Master.raw,<br>
instead of SOURCE =  /var/lib/one/Master.raw<br>
<br>
The rest looks fine.<br>
<br>
cheers,<br>
Jaime<br>
<br>
On Fri, May 11, 2012 at 5:10 PM, Vogl, Yves <<a href="mailto:vogl@adesso-mobile.de">vogl@adesso-mobile.de</a>> wrote:<br>
<blockquote type="cite">Hi Jamie,<br>
</blockquote>
<blockquote type="cite"><br>
</blockquote>
<blockquote type="cite">thanks for you patience. I'm still failing :-( I've attached all steps I've done and simplified my setup for this example.<br>
</blockquote>
<blockquote type="cite"><br>
</blockquote>
<blockquote type="cite">Two servers:<br>
</blockquote>
<blockquote type="cite"><br>
</blockquote>
<blockquote type="cite">one01 => Running OpenNebula 3.4<br>
</blockquote>
<blockquote type="cite">kvm02 => Running Linux KVM<br>
</blockquote>
<blockquote type="cite"><br>
</blockquote>
<blockquote type="cite">Both systems have are member of an LVM cluster.<br>
</blockquote>
<blockquote type="cite"><br>
</blockquote>
<blockquote type="cite">Now my steps:<br>
</blockquote>
<blockquote type="cite"><br>
</blockquote>
<blockquote type="cite">1. Create a datastore on one01<br>
</blockquote>
<blockquote type="cite"><br>
</blockquote>
<blockquote type="cite">sudo -uoneadmin onedatastore create ds.conf<br>
</blockquote>
<blockquote type="cite"><br>
</blockquote>
<blockquote type="cite">NAME = kvm02<br>
</blockquote>
<blockquote type="cite">DS_MAD = lvm<br>
</blockquote>
<blockquote type="cite">TM_MAD = lvm<br>
</blockquote>
<blockquote type="cite">VG_NAME = vg1<br>
</blockquote>
<blockquote type="cite">HOST = kvm02<br>
</blockquote>
<blockquote type="cite"><br>
</blockquote>
<blockquote type="cite"><br>
</blockquote>
<blockquote type="cite">$ onedatastore list<br>
</blockquote>
<blockquote type="cite"> ID NAME            CLUSTER  IMAGES TYPE   TM<br>
</blockquote>
<blockquote type="cite">  0 system          -        0      fs     ssh<br>
</blockquote>
<blockquote type="cite">  1 default         -        0      fs     ssh<br>
</blockquote>
<blockquote type="cite"> 123 kvm02           -        0      lvm    lvm<br>
</blockquote>
<blockquote type="cite"><br>
</blockquote>
<blockquote type="cite"><br>
</blockquote>
<blockquote type="cite">DATASTORE 123 INFORMATION<br>
</blockquote>
<blockquote type="cite">ID             : 123<br>
</blockquote>
<blockquote type="cite">NAME           : kvm02<br>
</blockquote>
<blockquote type="cite">USER           : oneadmin<br>
</blockquote>
<blockquote type="cite">GROUP          : oneadmin<br>
</blockquote>
<blockquote type="cite">CLUSTER        : -<br>
</blockquote>
<blockquote type="cite">DS_MAD         : lvm<br>
</blockquote>
<blockquote type="cite">TM_MAD         : lvm<br>
</blockquote>
<blockquote type="cite">BASE PATH      : /var/lib/one/datastores/123<br>
</blockquote>
<blockquote type="cite"><br>
</blockquote>
<blockquote type="cite">PERMISSIONS<br>
</blockquote>
<blockquote type="cite">OWNER          : um-<br>
</blockquote>
<blockquote type="cite">GROUP          : u--<br>
</blockquote>
<blockquote type="cite">OTHER          : ---<br>
</blockquote>
<blockquote type="cite"><br>
</blockquote>
<blockquote type="cite">DATASTORE TEMPLATE<br>
</blockquote>
<blockquote type="cite">DS_MAD="lvm"<br>
</blockquote>
<blockquote type="cite">HOST="<a href="http://kvm02.example.org">kvm02.example.org</a>"<br>
</blockquote>
<blockquote type="cite">TM_MAD="lvm"<br>
</blockquote>
<blockquote type="cite">VG_NAME="vg1"<br>
</blockquote>
<blockquote type="cite"><br>
</blockquote>
<blockquote type="cite">IMAGES<br>
</blockquote>
<blockquote type="cite">23<br>
</blockquote>
<blockquote type="cite"><br>
</blockquote>
<blockquote type="cite"><br>
</blockquote>
<blockquote type="cite"><br>
</blockquote>
<blockquote type="cite">2. Create an image template<br>
</blockquote>
<blockquote type="cite"><br>
</blockquote>
<blockquote type="cite">sudo -uoneadmin oneimage create im.conf -d kvm02<br>
</blockquote>
<blockquote type="cite"><br>
</blockquote>
<blockquote type="cite"><br>
</blockquote>
<blockquote type="cite">im.conf<br>
</blockquote>
<blockquote type="cite"><br>
</blockquote>
<blockquote type="cite">NAME          = "kvm02<br>
</blockquote>
<blockquote type="cite">SOURCE        = /var/lib/one/Master.raw<br>
</blockquote>
<blockquote type="cite">TYPE          = OS<br>
</blockquote>
<blockquote type="cite">BUS                       = virtio<br>
</blockquote>
<blockquote type="cite">DRIVER            = raw<br>
</blockquote>
<blockquote type="cite">DESCRIPTION   = "CentOS 6.2 64-Bit LVM Snapshot Master"<br>
</blockquote>
<blockquote type="cite"><br>
</blockquote>
<blockquote type="cite"><br>
</blockquote>
<blockquote type="cite">Master.raw exists.<br>
</blockquote>
<blockquote type="cite"><br>
</blockquote>
<blockquote type="cite"><br>
</blockquote>
<blockquote type="cite">$ oneimage list<br>
</blockquote>
<blockquote type="cite"> ID USER     GROUP    NAME         DATASTORE     SIZE TYPE PER STAT  RVMS<br>
</blockquote>
<blockquote type="cite"> 23 oneadmin oneadmin kvm02        kvm02           0M   OS  No  rdy     0<br>
</blockquote>
<blockquote type="cite"><br>
</blockquote>
<blockquote type="cite"><br>
</blockquote>
<blockquote type="cite">$ oneimage show kvm02<br>
</blockquote>
<blockquote type="cite">IMAGE 23 INFORMATION<br>
</blockquote>
<blockquote type="cite">ID             : 23<br>
</blockquote>
<blockquote type="cite">NAME           : kvm02<br>
</blockquote>
<blockquote type="cite">USER           : oneadmin<br>
</blockquote>
<blockquote type="cite">GROUP          : oneadmin<br>
</blockquote>
<blockquote type="cite">DATASTORE      : kvm02<br>
</blockquote>
<blockquote type="cite">TYPE           : OS<br>
</blockquote>
<blockquote type="cite">REGISTER TIME  : 05/11 16:44:10<br>
</blockquote>
<blockquote type="cite">PERSISTENT     : No<br>
</blockquote>
<blockquote type="cite">SOURCE         : /var/lib/one/Master.raw<br>
</blockquote>
<blockquote type="cite">SIZE           : 0<br>
</blockquote>
<blockquote type="cite">STATE          : rdy<br>
</blockquote>
<blockquote type="cite">RUNNING_VMS    : 0<br>
</blockquote>
<blockquote type="cite"><br>
</blockquote>
<blockquote type="cite">PERMISSIONS<br>
</blockquote>
<blockquote type="cite">OWNER          : um-<br>
</blockquote>
<blockquote type="cite">GROUP          : ---<br>
</blockquote>
<blockquote type="cite">OTHER          : ---<br>
</blockquote>
<blockquote type="cite"><br>
</blockquote>
<blockquote type="cite">IMAGE TEMPLATE<br>
</blockquote>
<blockquote type="cite">BUS="virtio"<br>
</blockquote>
<blockquote type="cite">DESCRIPTION="CentOS 6.2 64-Bit LVM Snapshot Master"<br>
</blockquote>
<blockquote type="cite">DEV_PREFIX="hd"<br>
</blockquote>
<blockquote type="cite">DRIVER="raw"<br>
</blockquote>
<blockquote type="cite"><br>
</blockquote>
<blockquote type="cite"><br>
</blockquote>
<blockquote type="cite"><br>
</blockquote>
<blockquote type="cite">At this point, nothing has happened so far.<br>
</blockquote>
<blockquote type="cite">OpenNebula did neither create a volume nor it dumped the image. Eventhough the image is show as ready.<br>
</blockquote>
<blockquote type="cite"><br>
</blockquote>
<blockquote type="cite">Is that the correct behaviour?<br>
</blockquote>
<blockquote type="cite"><br>
</blockquote>
<blockquote type="cite">By the way... the same thing is true for virtual networks. When I created a virtual network in OpenNebula I also had to create the corresponding virtual network on the KVM host manually.<br>
</blockquote>
<blockquote type="cite"><br>
</blockquote>
<blockquote type="cite">Maybe there's something wrong at this point?<br>
</blockquote>
<blockquote type="cite"><br>
</blockquote>
<blockquote type="cite">Anyway... I tried to go on and created an VM image like this:<br>
</blockquote>
<blockquote type="cite"><br>
</blockquote>
<blockquote type="cite">sudo -uoneadmin onetemplate create vm.conf<br>
</blockquote>
<blockquote type="cite"><br>
</blockquote>
<blockquote type="cite">vm.conf<br>
</blockquote>
<blockquote type="cite"><br>
</blockquote>
<blockquote type="cite">CPU="100"<br>
</blockquote>
<blockquote type="cite">DISK=[<br>
</blockquote>
<blockquote type="cite"> BUS="virtio",<br>
</blockquote>
<blockquote type="cite"> DRIVER="raw",<br>
</blockquote>
<blockquote type="cite"> IMAGE="kvm02",<br>
</blockquote>
<blockquote type="cite"> IMAGE_UNAME="oneadmin" ]<br>
</blockquote>
<blockquote type="cite">FEATURES=[<br>
</blockquote>
<blockquote type="cite"> PAE="no" ]<br>
</blockquote>
<blockquote type="cite">MEMORY="1024"<br>
</blockquote>
<blockquote type="cite">NAME="kvm02"<br>
</blockquote>
<blockquote type="cite">NIC=[<br>
</blockquote>
<blockquote type="cite"> MODEL="virtio",<br>
</blockquote>
<blockquote type="cite"> NETWORK="kvm02",<br>
</blockquote>
<blockquote type="cite"> NETWORK_UNAME="oneadmin" ]<br>
</blockquote>
<blockquote type="cite">OS=[<br>
</blockquote>
<blockquote type="cite"> ARCH="x86_64",<br>
</blockquote>
<blockquote type="cite"> BOOT="hd" ]<br>
</blockquote>
<blockquote type="cite">RAW=[<br>
</blockquote>
<blockquote type="cite"> TYPE="kvm" ]<br>
</blockquote>
<blockquote type="cite">VCPU="1"<br>
</blockquote>
<blockquote type="cite"><br>
</blockquote>
<blockquote type="cite"><br>
</blockquote>
<blockquote type="cite">$ onetemplate list<br>
</blockquote>
<blockquote type="cite"> ID USER     GROUP    NAME                         REGTIME<br>
</blockquote>
<blockquote type="cite"> 27 oneadmin oneadmin kvm02                 05/11 16:59:15<br>
</blockquote>
<blockquote type="cite"><br>
</blockquote>
<blockquote type="cite">$ onetemplate show kvm02<br>
</blockquote>
<blockquote type="cite">TEMPLATE 27 INFORMATION<br>
</blockquote>
<blockquote type="cite">ID             : 27<br>
</blockquote>
<blockquote type="cite">NAME           : kvm02<br>
</blockquote>
<blockquote type="cite">USER           : oneadmin<br>
</blockquote>
<blockquote type="cite">GROUP          : oneadmin<br>
</blockquote>
<blockquote type="cite">REGISTER TIME  : 05/11 16:59:15<br>
</blockquote>
<blockquote type="cite"><br>
</blockquote>
<blockquote type="cite">PERMISSIONS<br>
</blockquote>
<blockquote type="cite">OWNER          : um-<br>
</blockquote>
<blockquote type="cite">GROUP          : ---<br>
</blockquote>
<blockquote type="cite">OTHER          : ---<br>
</blockquote>
<blockquote type="cite"><br>
</blockquote>
<blockquote type="cite">TEMPLATE CONTENTS<br>
</blockquote>
<blockquote type="cite">CPU="100"<br>
</blockquote>
<blockquote type="cite">DISK=[<br>
</blockquote>
<blockquote type="cite"> BUS="virtio",<br>
</blockquote>
<blockquote type="cite"> DRIVER="raw",<br>
</blockquote>
<blockquote type="cite"> IMAGE="kvm02",<br>
</blockquote>
<blockquote type="cite"> IMAGE_UNAME="oneadmin" ]<br>
</blockquote>
<blockquote type="cite">FEATURES=[<br>
</blockquote>
<blockquote type="cite"> PAE="no" ]<br>
</blockquote>
<blockquote type="cite">MEMORY="1024"<br>
</blockquote>
<blockquote type="cite">NAME="kvm02"<br>
</blockquote>
<blockquote type="cite">NIC=[<br>
</blockquote>
<blockquote type="cite"> MODEL="virtio",<br>
</blockquote>
<blockquote type="cite"> NETWORK="kvm02",<br>
</blockquote>
<blockquote type="cite"> NETWORK_UNAME="oneadmin" ]<br>
</blockquote>
<blockquote type="cite">OS=[<br>
</blockquote>
<blockquote type="cite"> ARCH="x86_64",<br>
</blockquote>
<blockquote type="cite"> BOOT="hd" ]<br>
</blockquote>
<blockquote type="cite">RAW=[<br>
</blockquote>
<blockquote type="cite"> TYPE="kvm" ]<br>
</blockquote>
<blockquote type="cite">TEMPLATE_ID="27"<br>
</blockquote>
<blockquote type="cite">VCPU="1"<br>
</blockquote>
<blockquote type="cite"><br>
</blockquote>
<blockquote type="cite"><br>
</blockquote>
<blockquote type="cite">Next I try to instantiate a vm with this:<br>
</blockquote>
<blockquote type="cite"><br>
</blockquote>
<blockquote type="cite">$ onetemplate instantiate kvm02<br>
</blockquote>
<blockquote type="cite">VM ID: 440<br>
</blockquote>
<blockquote type="cite"><br>
</blockquote>
<blockquote type="cite">$ onevm list<br>
</blockquote>
<blockquote type="cite">   ID USER     GROUP    NAME         STAT CPU     MEM        HOSTNAME        TIME<br>
</blockquote>
<blockquote type="cite">  440 oneadmin oneadmin one-440      pend   0      0K                    0d 00:00<br>
</blockquote>
<blockquote type="cite"><br>
</blockquote>
<blockquote type="cite"><br>
</blockquote>
<blockquote type="cite">$ onevm show 440<br>
</blockquote>
<blockquote type="cite">VIRTUAL MACHINE 440 INFORMATION<br>
</blockquote>
<blockquote type="cite">ID                  : 440<br>
</blockquote>
<blockquote type="cite">NAME                : one-440<br>
</blockquote>
<blockquote type="cite">USER                : oneadmin<br>
</blockquote>
<blockquote type="cite">GROUP               : oneadmin<br>
</blockquote>
<blockquote type="cite">STATE               : PENDING<br>
</blockquote>
<blockquote type="cite">LCM_STATE           : LCM_INIT<br>
</blockquote>
<blockquote type="cite">START TIME          : 05/11 17:03:11<br>
</blockquote>
<blockquote type="cite">END TIME            : -<br>
</blockquote>
<blockquote type="cite">DEPLOY ID           : -<br>
</blockquote>
<blockquote type="cite"><br>
</blockquote>
<blockquote type="cite">VIRTUAL MACHINE MONITORING<br>
</blockquote>
<blockquote type="cite">USED CPU            : 0<br>
</blockquote>
<blockquote type="cite">NET_RX              : 0<br>
</blockquote>
<blockquote type="cite">USED MEMORY         : 0<br>
</blockquote>
<blockquote type="cite">NET_TX              : 0<br>
</blockquote>
<blockquote type="cite"><br>
</blockquote>
<blockquote type="cite">PERMISSIONS<br>
</blockquote>
<blockquote type="cite">OWNER               : um-<br>
</blockquote>
<blockquote type="cite">GROUP               : ---<br>
</blockquote>
<blockquote type="cite">OTHER               : ---<br>
</blockquote>
<blockquote type="cite"><br>
</blockquote>
<blockquote type="cite">VIRTUAL MACHINE TEMPLATE<br>
</blockquote>
<blockquote type="cite">CPU="100"<br>
</blockquote>
<blockquote type="cite">DISK=[<br>
</blockquote>
<blockquote type="cite"> BUS="virtio",<br>
</blockquote>
<blockquote type="cite"> CLONE="YES",<br>
</blockquote>
<blockquote type="cite"> DATASTORE="kvm02",<br>
</blockquote>
<blockquote type="cite"> DATASTORE_ID="123",<br>
</blockquote>
<blockquote type="cite"> DISK_ID="0",<br>
</blockquote>
<blockquote type="cite"> DRIVER="raw",<br>
</blockquote>
<blockquote type="cite"> IMAGE="kvm02",<br>
</blockquote>
<blockquote type="cite"> IMAGE_ID="23",<br>
</blockquote>
<blockquote type="cite"> IMAGE_UNAME="oneadmin",<br>
</blockquote>
<blockquote type="cite"> READONLY="NO",<br>
</blockquote>
<blockquote type="cite"> SAVE="NO",<br>
</blockquote>
<blockquote type="cite"> SOURCE="/var/lib/one/Master.raw",<br>
</blockquote>
<blockquote type="cite"> TARGET="hda",<br>
</blockquote>
<blockquote type="cite"> TM_MAD="lvm",<br>
</blockquote>
<blockquote type="cite"> TYPE="DISK" ]<br>
</blockquote>
<blockquote type="cite">FEATURES=[<br>
</blockquote>
<blockquote type="cite"> PAE="no" ]<br>
</blockquote>
<blockquote type="cite">MEMORY="1024"<br>
</blockquote>
<blockquote type="cite">NAME="one-440"<br>
</blockquote>
<blockquote type="cite">NIC=[<br>
</blockquote>
<blockquote type="cite"> BRIDGE="br0",<br>
</blockquote>
<blockquote type="cite"> IP="176.1.1.1",<br>
</blockquote>
<blockquote type="cite"> MAC="02:00:b0:02:a3:01",<br>
</blockquote>
<blockquote type="cite"> MODEL="virtio",<br>
</blockquote>
<blockquote type="cite"> NETWORK="kvm02",<br>
</blockquote>
<blockquote type="cite"> NETWORK_ID="10",<br>
</blockquote>
<blockquote type="cite"> NETWORK_UNAME="oneadmin",<br>
</blockquote>
<blockquote type="cite"> VLAN="NO" ]<br>
</blockquote>
<blockquote type="cite">OS=[<br>
</blockquote>
<blockquote type="cite"> ARCH="x86_64",<br>
</blockquote>
<blockquote type="cite"> BOOT="hd" ]<br>
</blockquote>
<blockquote type="cite">RAW=[<br>
</blockquote>
<blockquote type="cite"> TYPE="kvm" ]<br>
</blockquote>
<blockquote type="cite">TEMPLATE_ID="27"<br>
</blockquote>
<blockquote type="cite">VCPU="1"<br>
</blockquote>
<blockquote type="cite">VMID="440"<br>
</blockquote>
<blockquote type="cite"><br>
</blockquote>
<blockquote type="cite"><br>
</blockquote>
<blockquote type="cite"><br>
</blockquote>
<blockquote type="cite"><br>
</blockquote>
<blockquote type="cite">Now deploy:<br>
</blockquote>
<blockquote type="cite"><br>
</blockquote>
<blockquote type="cite">$ onevm deploy 440 <a href="http://kvm02.example.org">kvm02.example.org</a><br>
</blockquote>
<blockquote type="cite"><br>
</blockquote>
<blockquote type="cite"><br>
</blockquote>
<blockquote type="cite">It fails instantly:<br>
</blockquote>
<blockquote type="cite"><br>
</blockquote>
<blockquote type="cite"> MESSAGE="Error executing image transfer script: Error cloning /dev//var/lib/one/Master/raw to /dev//var/lib/one/Master/raw-440-0"<br>
</blockquote>
<blockquote type="cite"><br>
</blockquote>
<blockquote type="cite"><br>
</blockquote>
<blockquote type="cite">That's the log file:<br>
</blockquote>
<blockquote type="cite"><br>
</blockquote>
<blockquote type="cite">Fri May 11 17:04:41 2012 [DiM][I]: New VM state is ACTIVE.<br>
</blockquote>
<blockquote type="cite">Fri May 11 17:04:42 2012 [LCM][I]: New VM state is PROLOG.<br>
</blockquote>
<blockquote type="cite">Fri May 11 17:04:42 2012 [VM][I]: Virtual Machine has no context<br>
</blockquote>
<blockquote type="cite">Fri May 11 17:04:42 2012 [TM][I]: Command execution fail: /var/lib/one/remotes/tm/lvm/clone one01:/var/lib/one/Master.raw kvm02.example.org:/var/lib/one//datastores/0/440/disk.0<br>
</blockquote>
<blockquote type="cite">Fri May 11 17:04:42 2012 [TM][I]: /var/lib/one/remotes/tm/lvm/../../datastore/xpath.rb: unrecognized option `--stdin'<br>
</blockquote>
<blockquote type="cite">Fri May 11 17:04:42 2012 [TM][E]: clone: Command "    set -e<br>
</blockquote>
<blockquote type="cite">Fri May 11 17:04:42 2012 [TM][I]: mkdir -p /var/lib/one/datastores/0/440<br>
</blockquote>
<blockquote type="cite">Fri May 11 17:04:42 2012 [TM][I]: sudo lvcreate -n raw-440-0 -L40960 -s /dev//var/lib/one/Master/raw<br>
</blockquote>
<blockquote type="cite">Fri May 11 17:04:42 2012 [TM][I]: ln -s "/dev//var/lib/one/Master/raw-440-0" "/var/lib/one/datastores/0/440/disk.0"" failed:   "/dev//var/lib/one/Master/raw": Invalid path for Logical Volume<br>
</blockquote>
<blockquote type="cite">Fri May 11 17:04:42 2012 [TM][I]: The origin name should include the volume group.<br>
</blockquote>
<blockquote type="cite">Fri May 11 17:04:42 2012 [TM][I]: Run `lvcreate --help' for more information.<br>
</blockquote>
<blockquote type="cite">Fri May 11 17:04:42 2012 [TM][E]: Error cloning /dev//var/lib/one/Master/raw to /dev//var/lib/one/Master/raw-440-0<br>
</blockquote>
<blockquote type="cite">Fri May 11 17:04:42 2012 [TM][I]: ExitCode: 3<br>
</blockquote>
<blockquote type="cite">Fri May 11 17:04:42 2012 [TM][E]: Error executing image transfer script: Error cloning /dev//var/lib/one/Master/raw to /dev//var/lib/one/Master/raw-440-0<br>
</blockquote>
<blockquote type="cite">Fri May 11 17:04:42 2012 [DiM][I]: New VM state is FAILED<br>
</blockquote>
<blockquote type="cite">[oneadmin@one01 ~]$<br>
</blockquote>
<blockquote type="cite"><br>
</blockquote>
<blockquote type="cite"><br>
</blockquote>
<blockquote type="cite"><br>
</blockquote>
<blockquote type="cite">First thing that's wrong:<br>
</blockquote>
<blockquote type="cite"><br>
</blockquote>
<blockquote type="cite"># sudo lvcreate -n raw-440-0 -L40960 -s /dev//var/lib/one/Master/raw<br>
</blockquote>
<blockquote type="cite"><br>
</blockquote>
<blockquote type="cite"><br>
</blockquote>
<blockquote type="cite">It should be:<br>
</blockquote>
<blockquote type="cite"><br>
</blockquote>
<blockquote type="cite">lvcreate -n raw-440-0 -L40960 -s /dev/vg1/master<br>
</blockquote>
<blockquote type="cite"><br>
</blockquote>
<blockquote type="cite"><br>
</blockquote>
<blockquote type="cite">The next issue:<br>
</blockquote>
<blockquote type="cite"><br>
</blockquote>
<blockquote type="cite"># ln -s "/dev//var/lib/one/Master/raw-440-0" "/var/lib/one/datastores/0/440/disk.0""<br>
</blockquote>
<blockquote type="cite"><br>
</blockquote>
<blockquote type="cite"><br>
</blockquote>
<blockquote type="cite">It should be:<br>
</blockquote>
<blockquote type="cite"><br>
</blockquote>
<blockquote type="cite">ln -s /dev/vg1/raw-440-0 /var/lib/one/datastores/0/440/disk.0<br>
</blockquote>
<blockquote type="cite"><br>
</blockquote>
<blockquote type="cite"><br>
</blockquote>
<blockquote type="cite"><br>
</blockquote>
<blockquote type="cite"><br>
</blockquote>
<blockquote type="cite"><br>
</blockquote>
<blockquote type="cite">Cheers, Yves<br>
</blockquote>
<blockquote type="cite"><br>
</blockquote>
<blockquote type="cite"><br>
</blockquote>
<blockquote type="cite"><br>
</blockquote>
<blockquote type="cite"><br>
</blockquote>
<blockquote type="cite">On 11.05.2012, at 14:19, Jaime Melis wrote:<br>
</blockquote>
<blockquote type="cite"><br>
</blockquote>
<blockquote type="cite">
<blockquote type="cite">Hi Yves,<br>
</blockquote>
</blockquote>
<blockquote type="cite">
<blockquote type="cite"><br>
</blockquote>
</blockquote>
<blockquote type="cite">
<blockquote type="cite">no sorry, I didn't explain myself correctly. The LVM workflow is as follows:<br>
</blockquote>
</blockquote>
<blockquote type="cite">
<blockquote type="cite"><br>
</blockquote>
</blockquote>
<blockquote type="cite">
<blockquote type="cite">You have an already existing file with an image (in your case Master.qcow2, although for these drivers it needs to be in RAW format). When you do 'oneimage create' with PATH (instead of SOURCE) pointing to the file, the drivers will
 do automatically what you did manually: create a new LV of the appropriate size, and dump it (using 'dd') to the new LV.<br>
</blockquote>
</blockquote>
<blockquote type="cite">
<blockquote type="cite"><br>
</blockquote>
</blockquote>
<blockquote type="cite">
<blockquote type="cite">Once it's created, you can instantiante vms with that image. If the image is persistent, the VM will access the LV  directly. If it's not persistent, the drivers will create a new LV, a snapshot of the original image, and the VM will
 access it. Thus creating a copy almost instantaneously. If you execute saveas on that image, it will be saved to a new image so that you don't lose your changes.<br>
</blockquote>
</blockquote>
<blockquote type="cite">
<blockquote type="cite"><br>
</blockquote>
</blockquote>
<blockquote type="cite">
<blockquote type="cite">I hope I explained it better this time.<br>
</blockquote>
</blockquote>
<blockquote type="cite">
<blockquote type="cite"><br>
</blockquote>
</blockquote>
<blockquote type="cite">
<blockquote type="cite">Cheers,<br>
</blockquote>
</blockquote>
<blockquote type="cite">
<blockquote type="cite">Jaime<br>
</blockquote>
</blockquote>
<blockquote type="cite">
<blockquote type="cite"><br>
</blockquote>
</blockquote>
<blockquote type="cite">
<blockquote type="cite">On Fri, May 11, 2012 at 1:37 PM, Vogl, Yves <<a href="mailto:vogl@adesso-mobile.de">vogl@adesso-mobile.de</a>> wrote:<br>
</blockquote>
</blockquote>
<blockquote type="cite">
<blockquote type="cite">Hi Jamie,<br>
</blockquote>
</blockquote>
<blockquote type="cite">
<blockquote type="cite"><br>
</blockquote>
</blockquote>
<blockquote type="cite">
<blockquote type="cite">thanks for pointing out  a solution to the sudo error. This was clear to me because of the well documented instructions - I think there's no need to improve it. I just forgot to do this step.<br>
</blockquote>
</blockquote>
<blockquote type="cite">
<blockquote type="cite"><br>
</blockquote>
</blockquote>
<blockquote type="cite">
<blockquote type="cite">On 11.05.2012, at 13:31, Jaime Melis wrote:<br>
</blockquote>
</blockquote>
<blockquote type="cite">
<blockquote type="cite"><br>
</blockquote>
</blockquote>
<blockquote type="cite">
<blockquote type="cite">
<blockquote type="cite">About the way you registered the image, it's not usually the way it's meant to be done. You should use PATH=/path/to/Master.raw<br>
</blockquote>
</blockquote>
</blockquote>
<blockquote type="cite">
<blockquote type="cite">
<blockquote type="cite">instead of using directly the SOURCE.<br>
</blockquote>
</blockquote>
</blockquote>
<blockquote type="cite">
<blockquote type="cite"><br>
</blockquote>
</blockquote>
<blockquote type="cite">
<blockquote type="cite">So if I do not want to deal with images at all I've to create a "pure snapshot" driver by myself?<br>
</blockquote>
</blockquote>
<blockquote type="cite">
<blockquote type="cite"><br>
</blockquote>
</blockquote>
<blockquote type="cite">
<blockquote type="cite">The idea is to populate a master image as clustered LVM volume and to have faster deployment by just snapshotting the logical volume.<br>
</blockquote>
</blockquote>
<blockquote type="cite">
<blockquote type="cite">If I have to use an image after creating a logical volume - there's no need to snapshot anything before.<br>
</blockquote>
</blockquote>
<blockquote type="cite">
<blockquote type="cite"><br>
</blockquote>
</blockquote>
<blockquote type="cite">
<blockquote type="cite">Yves<br>
</blockquote>
</blockquote>
<blockquote type="cite">
<blockquote type="cite"><br>
</blockquote>
</blockquote>
<blockquote type="cite">
<blockquote type="cite"><br>
</blockquote>
</blockquote>
<blockquote type="cite">
<blockquote type="cite"><br>
</blockquote>
</blockquote>
<blockquote type="cite">
<blockquote type="cite"><br>
</blockquote>
</blockquote>
<blockquote type="cite">
<blockquote type="cite"><br>
</blockquote>
</blockquote>
<blockquote type="cite">
<blockquote type="cite"><br>
</blockquote>
</blockquote>
<blockquote type="cite">
<blockquote type="cite">--<br>
</blockquote>
</blockquote>
<blockquote type="cite">
<blockquote type="cite">Jaime Melis<br>
</blockquote>
</blockquote>
<blockquote type="cite">
<blockquote type="cite">Project Engineer<br>
</blockquote>
</blockquote>
<blockquote type="cite">
<blockquote type="cite">OpenNebula - The Open Source Toolkit for Cloud Computing<br>
</blockquote>
</blockquote>
<blockquote type="cite">
<blockquote type="cite"><a href="http://www.OpenNebula.org">www.OpenNebula.org</a> |
<a href="mailto:jmelis@opennebula.org">jmelis@opennebula.org</a><br>
</blockquote>
</blockquote>
<blockquote type="cite"><br>
</blockquote>
<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">www.OpenNebula.org</a> | <a href="mailto:jmelis@opennebula.org">
jmelis@opennebula.org</a><br>
</div>
</blockquote>
</div>
<br>
</div>
</div>
</body>
</html>