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">On Wed, Feb 16, 2011 at 2:26 PM, Anoop L <span dir="ltr"><<a href="mailto:anpl1980@gmail.com">anpl1980@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">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>_______________________________________________<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></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>