Hi Jaime, <div>thanks for the reply. /images is not a path it is the name of the VG, first I tried /dev/images and it did not work, when I change to /images it works. But it can not delete the snapshots afterwards.</div><div>
<br></div><div>Cheers</div><div><br></div><div>Italo<br><br><div class="gmail_quote">On 2 September 2010 15:59, Jaime Melis <span dir="ltr"><<a href="mailto:j.melis@fdi.ucm.es">j.melis@fdi.ucm.es</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hi Italo,<br>
<br>
it looks like $VG_NAME contains "/images", but it shouldn't be a path,<br>
it should be the name of the volume group that LVM uses to create LVs.<br>
<br>
Try changing that to "images", by editing tm_lvmrc.<br>
<br>
cheers,<br>
Jaime<br>
<div><div></div><div class="h5"><br>
On Wed, Sep 1, 2010 at 5:30 PM, Italo Madalozo <<a href="mailto:italo.madalozo@gmail.com">italo.madalozo@gmail.com</a>> wrote:<br>
> Hi,<br>
> I have been trying Open Nebula for a couple of weeks now and so far it<br>
> works great, one of the complex steps of building the cloud is the storage.<br>
> After reading about LVM on the website and then from the mailing list I<br>
> managed to get it working , VG_NAME=/images, and now I can instance many<br>
> virtual machines to the pool within seconds or minutes without having to<br>
> clone (wasting storage) the images or wasting bandwidth transferring from<br>
> the front end to the nodes.<br>
> Now the problem I am facing is that the lvm/tm_delete.sh script can't manage<br>
> to delete the snapshots created by lvm/clone.sh. I have tried onevm $ID<br>
> delete,shutdown and cancel as recommended in a previous thread but none of<br>
> them worked.<br>
> This is the log output:<br>
> Wed Sep 1 16:20:47 2010 [InM][I]: Monitoring host 192.168.1.4 (5)<br>
> Wed Sep 1 16:20:47 2010 [VMM][D]: Message received: LOG - 62 Driver command<br>
> for 62 cancelled<br>
> Wed Sep 1 16:20:47 2010 [TM][D]: Message received: LOG - 62 Command<br>
> execution fail: /srv/cloud/one/lib/tm_commands/lvm/tm_delete.sh<br>
> 192.168.1.4:/srv/cloud/one/var/62/images<br>
> Wed Sep 1 16:20:47 2010 [TM][D]: Message received: LOG - 62 STDERR follows.<br>
> Wed Sep 1 16:20:47 2010 [TM][D]: Message received: LOG - 62 ERROR MESSAGE<br>
> --8<------<br>
> Wed Sep 1 16:20:47 2010 [TM][D]: Message received: LOG - 62 "/images":<br>
> Invalid path for Logical Volume<br>
> Wed Sep 1 16:20:47 2010 [TM][D]: Message received: LOG - 62 "/images/":<br>
> Invalid path for Logical Volume<br>
> Wed Sep 1 16:20:47 2010 [TM][D]: Message received: LOG - 62 ERROR MESSAGE<br>
> ------>8--<br>
> Wed Sep 1 16:20:47 2010 [TM][D]: Message received: LOG - 62 ExitCode: 5<br>
> Wed Sep 1 16:20:47 2010 [TM][D]: Message received: LOG - 62 tm_delete.sh:<br>
> Deleting remote LVs<br>
> Wed Sep 1 16:20:47 2010 [TM][D]: Message received: LOG - 62 tm_delete.sh:<br>
> ERROR: Command "ssh 192.168.1.4 sudo lvremove -f $(echo /images/$(sudo lvs<br>
> --noheadings /images|awk '{print $1}'|grep lv-one-62))" failed.<br>
> Wed Sep 1 16:20:47 2010 [TM][D]: Message received: LOG - 62 tm_delete.sh:<br>
> ERROR: "/images": Invalid path for Logical Volume<br>
> Wed Sep 1 16:20:47 2010 [TM][D]: Message received: LOG - 62 "/images/":<br>
> Invalid path for Logical Volume<br>
> Wed Sep 1 16:20:47 2010 [TM][D]: Message received: TRANSFER FAILURE 62<br>
> "/images": Invalid path for Logical Volume<br>
> Wed Sep 1 16:20:47 2010 [TM][D]: Message received: "/images/": Invalid<br>
> path for Logical Volume<br>
> Wed Sep 1 16:20:48 2010 [VMM][D]: Message received: CANCEL SUCCESS 62 -<br>
> Wed Sep 1 16:20:51 2010 [InM][D]: Host 5 successfully monitored.<br>
><br>
> After checking the script tm_delete.sh I see everything is fine , so I don't<br>
> understand why instead of /dev/images one is looking for /images/.<br>
> Italo<br>
</div></div>> _______________________________________________<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>
</blockquote></div><br></div>