# Failure on VM stop

**URL:** <https://forum.opennebula.io/t/failure-on-vm-stop/7489>\
**Category:** Installation & Configuration\
**Created:** [July 25, 2019, 12:52pm UTC](https://forum.opennebula.io/t/failure-on-vm-stop/7489 "2019-07-25T12:52:44Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![wt75](https://avatars.discourse-cdn.com/v4/letter/w/ecc23a/32.png) [@wt75](https://forum.opennebula.io/u/wt75)\
**Post date:** [July 25, 2019, 12:52pm UTC](https://forum.opennebula.io/t/failure-on-vm-stop/7489/1 "2019-07-25T12:52:44Z")

</div>

Hi,

I have FE (front-end vps - no Volume Group)  
and kvm NODE with volume group.

VMs get created from images (files on NODE) into logical volumes (also on NODE) as I wanted.

For unknown reason - after clicking STOP on a VM - Nebula tries to move the LV to frontend VPS (no volume group there - it is only for management)  
and reports FAILURE “Error executing image transfer script: Error activating disk /var/lib/one/datastores/110/31/disk.0”

Log for the VM reads:

Thu Jul 25 05:19:03 2019 [Z0][TM][I]: Command execution failed (exit code: 5): /var/lib/one/remotes/tm/fs\_lvm/mv NODE:/var/lib/one//datastores/110/31/disk.0 FE:/var/lib  
/one//datastores/110/31/disk.0 31 111  
Thu Jul 25 05:19:03 2019 [Z0][TM][E]: mv: Command " set -ex -o pipefail  
Thu Jul 25 05:19:03 2019 [Z0][TM][I]: sudo sync  
Thu Jul 25 05:19:03 2019 [Z0][TM][I]: sudo lvscan  
Thu Jul 25 05:19:03 2019 [Z0][TM][I]: sudo lvchange -ay “/dev/vg-one-110/lv-one-31-0”  
Thu Jul 25 05:19:03 2019 [Z0][TM][I]:  
Thu Jul 25 05:19:03 2019 [Z0][TM][I]: hostname -f \>“/var/lib/one/datastores/110/31/.host” || :" failed: + sudo sync  
Thu Jul 25 05:19:03 2019 [Z0][TM][I]: + sudo lvscan  
Thu Jul 25 05:19:03 2019 [Z0][TM][I]: + sudo lvchange -ay /dev/vg-one-110/lv-one-31-0  
Thu Jul 25 05:19:03 2019 [Z0][TM][I]: Volume group “vg-one-110” not found  
Thu Jul 25 05:19:03 2019 [Z0][TM][I]: Cannot process volume group vg-one-110  
Thu Jul 25 05:19:03 2019 [Z0][TM][E]: Error activating disk /var/lib/one/datastores/110/31/disk.0  
Thu Jul 25 05:19:03 2019 [Z0][TM][E]: Error executing image transfer script: Error activating disk /var/lib/one/datastores/110/31/disk.0  
Thu Jul 25 05:19:03 2019 [Z0][VM][I]: New LCM state is EPILOG\_STOP\_FAILURE

1. Why ONE tries to move 8GB LV from kvm NODE to management frontend?
2. How to prevent it?

My Datastores are:

ID Name Owner Group Capacity Cluster Type Status  
111 lvm\_image\_1 oneadmin oneadmin 5.3GB / 31.3GB (17%)0 IMAGE ON  
110 lvm\_system\_1 oneadmin oneadmin 20.5GB / 767GB (3%)0 SYSTEM ON  
2 files oneadmin oneadmin 2.9GB / 9.8GB (30%)0 FILE ON  
1 default oneadmin oneadmin 2.9GB / 9.8GB (30%)0 IMAGE ON

Datastore 0 already deleted in hope it solves the problem but no change.

Thank you
