[one-users] tm_lvm, xen and VM delete/cancel commands

Rolandas Naujikas rolandas.naujikas at mif.vu.lt
Thu Jan 26 05:42:32 PST 2012


Hi,

I just got the same situation again. When doing "delete"/"cancel" for
running VM (in Xen) and using LVM for images there tm_delete.sh is
executed before destroying VM. Xen VM has LVM volumes opened and doesn't
allow them to be removed.

Regards, Rolandas Naujikas

P.S. The problem could not be solved in LVM driver, because driver
commands are executed by opennebula.

On 2012-01-24 11:39, Rolandas Naujikas wrote:
> Hi,
> 
> When I tried to do "delete" command from sunstone to running xen VM with
> tm_lvm and LVM volume, LVM volume is not removed from the host.
> LVM volume is tried to be removed, before running VM is removed.
> I thing in command "delete" the first step should be remove VM and only
> after remove files (volumes).
> 
> ...
> Tue Jan 24 11:18:07 2012 [TM][W]: Ignored: LOG I 168 tm_delete.sh:
> Deleting remote LVs
> 
> Tue Jan 24 11:18:07 2012 [TM][W]: Ignored: LOG E 168 tm_delete.sh:
> Command "ssh pvxen1 sudo lvremove -f $(echo vgone/$(sudo lvs
> --noheadings vgone|awk '{print $1}'|grep lv-one-168))" failed.
> 
> Tue Jan 24 11:18:07 2012 [TM][W]: Ignored: LOG E 168 tm_delete.sh:
> Can't remove open logical volume "lv-one-168-0"
> 
> Tue Jan 24 11:18:07 2012 [TM][W]: Ignored: LOG E 168 Can't remove open
> logical volume "lv-one-168-0"
> 
> Tue Jan 24 11:18:07 2012 [TM][W]: Ignored: LOG I 168 ExitCode: 5
> 
> Tue Jan 24 11:18:07 2012 [TM][W]: Ignored: TRANSFER FAILURE 168 Can't
> remove open logical volume "lv-one-168-0"
> 
> Tue Jan 24 11:18:08 2012 [VMM][W]: Ignored: LOG I 168 cancel: Executed
> "sudo /usr/sbin/xm destroy one-168".
> 
> Tue Jan 24 11:18:08 2012 [VMM][W]: Ignored: LOG I 168 ExitCode: 0
> ...
> 
> Regards, Rolandas Naujikas




More information about the Users mailing list