Issue
You see this error:
Running: Storage API Call: PUT 10.0.0.16:8080/lvm/Datastore/onapp-qinfxvnzxlrski/VDisk/vxtxwwqirqwvxm "{\"state\":2}"
OnApp::Actions::Fatal Storage API Call failed: {"result"=>"FAILURE", "Error"=>"Error running lvchange: Device onapp--qinfxvnzxlrski-vxtxwwqirqwvxm-real (253:15) is used by another device.\n"}
Remote Server: 10.0.0.16
It's mostly likely caused by a stuck dmsetup
Pay attention to the bolded items since you'll need them later on
Resolution
From the hypervisor (in this case, it's 10.0.0.16) run
dmsetup --tree ls | less | grep -B5 vxtxwwqirqwvxm
Your output should look like this
[root@onapp-hv-06 ~]# dmsetup --tree ls | less | grep -B5 vxtxwwqirqwvxm
onapp--qinfxvnzxlrski-backup--dsgetihcdileos (253:78)
├─onapp--qinfxvnzxlrski-backup--dsgetihcdileos-cow (253:73)
│ └─mpathb (253:0)
│ ├─ (8:32)
│ └─ (8:16)
└─onapp--qinfxvnzxlrski-vxtxwwqirqwvxm-real (253:15)
Now, remove the bolded items:
[root@onapp-hv-06 ~]# dmsetup remove onapp--qinfxvnzxlrski-backup--dsgetihcdileos
[root@onapp-hv-06 ~]# dmsetup remove onapp--qinfxvnzxlrski-vxtxwwqirqwvxm-real
The VM should be fixed now.
Refer to [John's Ticket](https://onapp.zendesk.com/agent/#/tickets/236875)