[one-users] Open Nebula unable to delete the snapshot of a VM

Italo Madalozo italo.madalozo at gmail.com
Thu Sep 2 09:16:00 PDT 2010


Hi Jaime,
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.

Cheers

Italo

On 2 September 2010 15:59, Jaime Melis <j.melis at fdi.ucm.es> wrote:

> Hi Italo,
>
> it looks like $VG_NAME contains "/images", but it shouldn't be a path,
> it should be the name of the volume group that LVM uses to create LVs.
>
> Try changing that to "images", by editing tm_lvmrc.
>
> cheers,
> Jaime
>
> On Wed, Sep 1, 2010 at 5:30 PM, Italo Madalozo <italo.madalozo at gmail.com>
> wrote:
> > Hi,
> > I have been trying Open Nebula for a  couple of weeks now and so far it
> > works great, one of the complex steps of building the cloud is the
> storage.
> > After reading about LVM on the website and then from the mailing list I
> > managed to get it working , VG_NAME=/images, and now I can instance many
> > virtual machines to the pool within seconds or minutes without having  to
> > clone (wasting storage) the images or wasting bandwidth  transferring
> from
> > the front end to the nodes.
> > Now the problem I am facing is that the lvm/tm_delete.sh script can't
> manage
> > to delete the snapshots created by lvm/clone.sh. I have tried onevm $ID
> > delete,shutdown and cancel as recommended in a previous thread but none
> of
> > them worked.
> > This is the log output:
> > Wed Sep  1 16:20:47 2010 [InM][I]: Monitoring host 192.168.1.4 (5)
> > Wed Sep  1 16:20:47 2010 [VMM][D]: Message received: LOG - 62 Driver
> command
> > for 62 cancelled
> > Wed Sep  1 16:20:47 2010 [TM][D]: Message received: LOG - 62 Command
> > execution fail: /srv/cloud/one/lib/tm_commands/lvm/tm_delete.sh
> > 192.168.1.4:/srv/cloud/one/var/62/images
> > Wed Sep  1 16:20:47 2010 [TM][D]: Message received: LOG - 62 STDERR
> follows.
> > Wed Sep  1 16:20:47 2010 [TM][D]: Message received: LOG - 62 ERROR
> MESSAGE
> > --8<------
> > Wed Sep  1 16:20:47 2010 [TM][D]: Message received: LOG - 62 "/images":
> > Invalid path for Logical Volume
> > Wed Sep  1 16:20:47 2010 [TM][D]: Message received: LOG - 62 "/images/":
> > Invalid path for Logical Volume
> > Wed Sep  1 16:20:47 2010 [TM][D]: Message received: LOG - 62 ERROR
> MESSAGE
> > ------>8--
> > Wed Sep  1 16:20:47 2010 [TM][D]: Message received: LOG - 62 ExitCode: 5
> > Wed Sep  1 16:20:47 2010 [TM][D]: Message received: LOG - 62
> tm_delete.sh:
> > Deleting remote LVs
> > Wed Sep  1 16:20:47 2010 [TM][D]: Message received: LOG - 62
> tm_delete.sh:
> > ERROR: Command "ssh 192.168.1.4 sudo lvremove -f $(echo /images/$(sudo
> lvs
> > --noheadings /images|awk '{print $1}'|grep lv-one-62))" failed.
> > Wed Sep  1 16:20:47 2010 [TM][D]: Message received: LOG - 62
> tm_delete.sh:
> > ERROR:   "/images": Invalid path for Logical Volume
> > Wed Sep  1 16:20:47 2010 [TM][D]: Message received: LOG - 62 "/images/":
> > Invalid path for Logical Volume
> > Wed Sep  1 16:20:47 2010 [TM][D]: Message received: TRANSFER FAILURE 62
> > "/images": Invalid path for Logical Volume
> > Wed Sep  1 16:20:47 2010 [TM][D]: Message received:   "/images/": Invalid
> > path for Logical Volume
> > Wed Sep  1 16:20:48 2010 [VMM][D]: Message received: CANCEL SUCCESS 62 -
> > Wed Sep  1 16:20:51 2010 [InM][D]: Host 5 successfully monitored.
> >
> > After checking the script tm_delete.sh I see everything is fine , so I
> don't
> > understand why instead of /dev/images one is looking for /images/.
> > Italo
> > _______________________________________________
> > Users mailing list
> > Users at lists.opennebula.org
> > http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
> >
> >
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20100902/b0f7411f/attachment-0003.htm>


More information about the Users mailing list