sure Jaime.<br><br>I have attached the vm.log as well.<br><br>Vm.log:<br><br>Wed Feb 16 20:49:43 2011 [DiM][I]: New VM state is ACTIVE.<br>Wed Feb 16 20:49:43 2011 [LCM][I]: New VM state is PROLOG.<br>Wed Feb 16 20:49:43 2011 [VM][I]: Virtual Machine has no context<br>
Wed Feb 16 20:49:54 2011 [TM][I]: Command execution fail: /opt/cloud/one/lib/tm_commands/lvm/tm_clone.sh ast462:/opt/cloud/one/var//images/fd34675a5656d3b5b92e01b11dbae9c819e5f4c4 ast-wks-348:/opt/cloud/one/var//86/images/disk.0<br>
Wed Feb 16 20:49:54 2011 [TM][I]: STDERR follows.<br>Wed Feb 16 20:49:54 2011 [TM][I]: /bin/sed: -e expression #1, char 29: invalid reference \1 on `s' command's RHS<br>Wed Feb 16 20:49:54 2011 [TM][I]: ERROR MESSAGE --8<------<br>
Wed Feb 16 20:49:54 2011 [TM][I]: Logical volume "lv-one--0" already exists in volume group "vg00"<br>Wed Feb 16 20:49:54 2011 [TM][I]: ERROR MESSAGE ------>8--<br>Wed Feb 16 20:49:54 2011 [TM][I]: ExitCode: 5<br>
Wed Feb 16 20:49:54 2011 [TM][I]: tm_clone.sh: ast462:/opt/cloud/one/var//images/fd34675a5656d3b5b92e01b11dbae9c819e5f4c4 ast-wks-348:/opt/cloud/one/var//86/images/disk.0<br>Wed Feb 16 20:49:54 2011 [TM][I]: tm_clone.sh: DST: /opt/cloud/one/var//86/images/disk.0<br>
Wed Feb 16 20:49:54 2011 [TM][I]: tm_clone.sh: Creating directory /opt/cloud/one/var//86/images<br>Wed Feb 16 20:49:54 2011 [TM][I]: tm_clone.sh: Executed "/usr/bin/ssh ast-wks-348 mkdir -p /opt/cloud/one/var//86/images".<br>
Wed Feb 16 20:49:54 2011 [TM][I]: tm_clone.sh: Creating LV lv-one--0<br>Wed Feb 16 20:49:54 2011 [TM][I]: tm_clone.sh: ERROR: Command "/usr/bin/ssh ast-wks-348 /usr/bin/sudo /sbin/lvcreate -L20G -n lv-one--0 vg00" failed.<br>
Wed Feb 16 20:49:54 2011 [TM][I]: tm_clone.sh: ERROR: Logical volume "lv-one--0" already exists in volume group "vg00"<br>Wed Feb 16 20:49:54 2011 [TM][E]: Error excuting image transfer script: Logical volume "lv-one--0" already exists in volume group "vg00"<br>
Wed Feb 16 20:49:55 2011 [DiM][I]: New VM state is FAILED<br>Wed Feb 16 20:50:00 2011 [TM][W]: Ignored: LOG - 86 Command execution fail: /opt/cloud/one/lib/tm_commands/lvm/tm_delete.sh ast-wks-348:/opt/cloud/one/var//86/images<br>
<br>Wed Feb 16 20:50:00 2011 [TM][W]: Ignored: LOG - 86 STDERR follows.<br><br>Wed Feb 16 20:50:00 2011 [TM][W]: Ignored: LOG - 86 /bin/sed: -e expression #1, char 29: invalid reference \1 on `s' command's RHS<br>
<br>Wed Feb 16 20:50:00 2011 [TM][W]: Ignored: LOG - 86 ERROR MESSAGE --8<------<br><br>Wed Feb 16 20:50:00 2011 [TM][W]: Ignored: LOG - 86 Can't remove open logical volume "lv-one--0"<br><br>Wed Feb 16 20:50:00 2011 [TM][W]: Ignored: LOG - 86 ERROR MESSAGE ------>8--<br>
Wed Feb 16 20:50:00 2011 [TM][W]: Ignored: LOG - 86 ExitCode: 5<br><br>Wed Feb 16 20:50:00 2011 [TM][W]: Ignored: LOG - 86 tm_delete.sh: Deleting remote LVs<br><br>Wed Feb 16 20:50:00 2011 [TM][W]: Ignored: LOG - 86 tm_delete.sh: ERROR: Command "/usr/bin/ssh ast-wks-348 /usr/bin/sudo /sbin/lvremove -f $(echo vg00/$(/usr/bin/sudo /sbin/lvs --noheadings vg00|awk '{print $1}'|grep lv-one-))" failed.<br>
<br>Wed Feb 16 20:50:00 2011 [TM][W]: Ignored: LOG - 86 tm_delete.sh: ERROR: Can't remove open logical volume "lv-one--0"<br><br>Wed Feb 16 20:50:00 2011 [TM][W]: Ignored: TRANSFER FAILURE 86 Can't remove open logical volume "lv-one--0"<br>
<br>Thanks,<br>Anoop<br><br><br><div class="gmail_quote">On Wed, Feb 16, 2011 at 9:12 PM, Jaime Melis <span dir="ltr"><<a href="mailto:jmelis@opennebula.org">jmelis@opennebula.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Hi Anoop,<div><br></div><div>could you please send me the full vm.log of that VM?</div><div><br></div><div>cheers,</div><div>Jaime<div><div></div><div class="h5"><br><br><div class="gmail_quote">On Wed, Feb 16, 2011 at 4:31 PM, Anoop L <span dir="ltr"><<a href="mailto:anpl1980@gmail.com" target="_blank">anpl1980@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">Hi Jaime,<br><br>Thanks for the reply. My VM ID is 86 but still ONE uses 0 as identifier for LV. Even the working VM with ID is using lv-one--0.<br>
<br>I have already tried removing LV manually. I guess issue is that ONE is trying to create the LV of same name and some how VM ID is not appended to the LV_NAME.<br>
<br>One more things is when second VM fails it deletes the lv-one--0. Also any idea how can I force set a VM template that a swap space/disk to be created on LV.<br><br>Some more information:<br><br> onevm list<br> ID USER NAME STAT CPU MEM HOSTNAME TIME<br>
85 oneadmin centos55 runn 0 2G ast-wks-348 00 02:00:16<br> 86 oneadmin centos55 fail 0 0K ast-wks-348 00 00:00:42<br><br><br>onevm show 86 gives:<br><br>VIRTUAL MACHINE 86 INFORMATION <br>
ID : 86 <br>NAME : centos55 <br>STATE : FAILED <br>LCM_STATE : LCM_INIT <br>START TIME : 02/16 20:49:13 <br>END TIME : 02/16 20:49:55 <br>
DEPLOY ID: : - <br><br>VIRTUAL MACHINE MONITORING <br>NET_TX : 0 <br>NET_RX : 0 <br>USED MEMORY : 0 <br>
USED CPU : 0 <br><br>VIRTUAL MACHINE TEMPLATE <br>CPU=1<br>DISK=[<br> CLONE=YES,<br> DISK_ID=0,<br> IMAGE=centos5564_Base.img,<br> IMAGE_ID=8,<br>
READONLY=NO,<br> SAVE=NO,<br> SOURCE=/opt/cloud/one/var//images/fd34675a5656d3b5b92e01b11dbae9c819e5f4c4,<br> TARGET=hda,<br> TYPE=DISK ]<br>DISK=[<br> DISK_ID=1,<br> SIZE=5120,<br> TARGET=hdd,<br> TYPE=swap ]<br>
FEATURES=[<br> ACPI=no ]<br>GRAPHICS=[<br> LISTEN=0.0.0.0,<br> PORT=5916,<br> TYPE=vnc ]<br>MEMORY=2048<br>NAME=centos55<br>NIC=[<br> BRIDGE=xenbr0,<br> IP=10.20.30.1,<br> MAC=02:00:0a:14:1e:01,<br> NETWORK=LAN2,<br>
NETWORK_ID=2 ]<br>OS=[<br> BOOTLOADER=/usr/bin/pygrub ]<br>VMID=86<br><br><br><br>lvdisplay on node:<br><br> --- Logical volume ---<br> LV Name /dev/vg00/lv-one--0<br> VG Name vg00<br>
LV UUID 0ENQKV-L8qi-APmD-iGiv-uRfj-vVNv-nkWud4<br>
LV Write Access read/write<br> LV Status available<br> # open 2<br> LV Size 20.00 GB<br> Current LE 640<br> Segments 1<br> Allocation inherit<br>
Read ahead sectors auto<br> - currently set to 256<br> Block device 253:2<div><br><br><br>Any help would be appreciated.<br><br>Thanks,<br>Anoop<br><br><br><br></div><div><div></div><div>
<div class="gmail_quote">On Wed, Feb 16, 2011 at 8:44 PM, Jaime Melis <span dir="ltr"><<a href="mailto:jmelis@opennebula.org" target="_blank">jmelis@opennebula.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">Hello Anoop,<div><br></div><div>Is the ID of the VM you're trying to deploy '0' ? When you deploy a new vm the following LV volume will be created: lv-one-<ID>. If that LV already exists then it fails. My guess is that it's failing because for some reason OpenNebula didn't get the change to do a 'delete' removing the LV partition.</div>
<div><br></div><div>I suggest you remove manually all the LVM partitions. You can find out the existing ones with "lvs" and remove them with "lvremove" (do that as root in the Xen node).</div><div><br>
</div><div>Cheers,</div><div>Jaime</div><div><br></div><div><div class="gmail_quote"><div><div></div><div>On Wed, Feb 16, 2011 at 2:26 PM, Anoop L <span dir="ltr"><<a href="mailto:anpl1980@gmail.com" target="_blank">anpl1980@gmail.com</a>></span> wrote:<br>
</div></div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div><div></div><div>Hi,<br><br>I have successfully created a VM from Front-End to a Xen node However on creating the second VM I get an error:<br>
<br>Wed Feb 16 18:45:24 2011 [TM][I]: tm_clone.sh: Creating LV lv-one--0<br>Wed Feb 16 18:45:24 2011 [TM][I]: tm_clone.sh: ERROR: Command "/usr/bin/ssh node-1 /usr/bin/sudo /sbin/lvcreate -L20G -n lv-one--0 vg00" failed.<br>
<br>My VM template:<br>NAME = centos55<br>CPU = 1<br>MEMORY = 2048<br>OS = [ bootloader = "/usr/bin/pygrub" ]<br><br>DISK = [ image = "centos5564_Base.img"]<br><br>DISK = [<br> type = swap,<br>
size = 5120<br> #target = sdb<br>]<br><br><br>NIC = [ BRIDGE = "xenbr0", MAC = "00:16:3E:02:03:05" ]<br>FEATURES=[ acpi="no" ]<br><br>GRAPHICS = [<br> type = "vnc",<br> listen = "0.0.0.0",<br>
port = "5916" ]<br><br>The same template is used for creating first VM and it all was working fine. Except the swap is not created as an LV.<br><br>How can I change this template so as to create a new LV for swap partiotion. Please note that I have not created any LV manually. If I create a LV manually how can I specify this in the VM template.<br>
<br>I am stuck on this for some time and posted this multiple times with no answer.<br><br>Any help would be appreciated.<br><br>Thanks,<br><font color="#888888">Anoop<br>
</font><br></div></div>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opennebula.org" target="_blank">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></blockquote></div><br></div><br clear="all"><br>-- <br>Jaime Melis, Cloud Technology Engineer/Researcher<br>Major Contributor<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>
</blockquote></div><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Jaime Melis, Cloud Technology Engineer/Researcher<br>Major Contributor<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></div></div>
</blockquote></div><br>