# How to migrate image datastore

**URL:** https://forum.opennebula.io/t/how-to-migrate-image-datastore/3785
**Category:** Product Support
**Created:** [February 14, 2017, 2:50pm UTC](https://forum.opennebula.io/t/how-to-migrate-image-datastore/3785 "2017-02-14T14:50:43Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![madko](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/madko/32/4195_2.png) [@madko](https://forum.opennebula.io/u/madko)
#### Post date: [February 14, 2017, 2:50pm UTC](https://forum.opennebula.io/t/how-to-migrate-image-datastore/3785/1 "2017-02-14T14:50:43Z")

</div>

Hello,

We have 2 datastores for images, but now we’d like to use only the second one. So we clone all the images from old datastore to the new one. But we have problems with images marked as USED. It’s seems that running VM with their DISK SOURCE pointing to the old image are preventing us to delete the image from the old datastore, even if they exist in the new one. How to deal with that ?  
I try to update vm configuration, changing disk source

> SOURCE = “/var/lib/one//datastores/1/e26f81bd52650965ca511a31aa4a2249”,

To the new location/hash. No success.
