# How can I deploy disk images of the same VM to different system datastores?

**URL:** <https://forum.opennebula.io/t/how-can-i-deploy-disk-images-of-the-same-vm-to-different-system-datastores/2823>\
**Category:** Product Support\
**Created:** [August 25, 2016, 2:32pm UTC](https://forum.opennebula.io/t/how-can-i-deploy-disk-images-of-the-same-vm-to-different-system-datastores/2823 "2016-08-25T14:32:52Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![wah2016](https://avatars.discourse-cdn.com/v4/letter/w/ee59a6/32.png) [@wah2016](https://forum.opennebula.io/u/wah2016)\
**Post date:** [August 25, 2016, 2:32pm UTC](https://forum.opennebula.io/t/how-can-i-deploy-disk-images-of-the-same-vm-to-different-system-datastores/2823/1 "2016-08-25T14:32:52Z")

</div>

Hi,  
I have deployed OpenNebula 4.14 and wonder if and how it is possible to deploy the disk images of a VM to more than one system datastore.

This is my scenario: We have setup 2 Gluster FS storage clusters. One big one that is built on SAS disks and a smaller one built on fast SSDs. The clusters are visible in OpenNebula as two system datastores. For VMs running applications with higher performance requirements I would like to locate one smaller disk image on the SSD-based system datastore for data that is frequently read and written. The bulk of the data I would like to store on a disk image located on the 2nd slower system datastore.

Thanks,  
Walter

---

<div class="post-metadata">

**Author:** ![VURoland](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/vuroland/32/7682_2.png) [@VURoland](https://forum.opennebula.io/u/VURoland)\
**Post date:** [August 26, 2016, 10:01pm UTC](https://forum.opennebula.io/t/how-can-i-deploy-disk-images-of-the-same-vm-to-different-system-datastores/2823/2 "2016-08-26T22:01:01Z")

</div>

hi, I tried this before (using 4.12) - OS image on local disk and the data disk from remote NFS.  
so VDA was on datastore 1 and VDB was on datastore 2, as long as both datastores are useable and monitored, that should work.  
When editing the template, under tab called “storage”, add the first disk from the datastore. Then click “add another disk” and select the second disk from the other datastore. save & deploy VM

---

<div class="post-metadata">

**Author:** ![wah2016](https://avatars.discourse-cdn.com/v4/letter/w/ee59a6/32.png) [@wah2016](https://forum.opennebula.io/u/wah2016)\
**Post date:** [August 30, 2016, 6:50am UTC](https://forum.opennebula.io/t/how-can-i-deploy-disk-images-of-the-same-vm-to-different-system-datastores/2823/3 "2016-08-30T06:50:57Z")

</div>

Hello Roland,  
Thanks for your hints. Unfortunately in my case this does not seem to work. During deployment the 2 disk images are drawn from the same image datastore and are placed in the same system DS. I don’t find a possibility to define on a per disk basis which system datastore shall be selected. Also the DS placement policies only seem to work on a per VM basis.

---

<div class="post-metadata">

**Author:** ![atodorov\_storpool](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/atodorov_storpool/32/5327_2.png) [@atodorov\_storpool](https://forum.opennebula.io/u/atodorov_storpool)\
**Post date:** [August 30, 2016, 7:14am UTC](https://forum.opennebula.io/t/how-can-i-deploy-disk-images-of-the-same-vm-to-different-system-datastores/2823/4 "2016-08-30T07:14:22Z")

</div>

Hi Walter,

The SYSTEM datastore is the “home” of the VMs. A VM can’t have two home directories. When using shared/clustered/ storage for the images you should define them as IMAGES data stores with proper DS\_MAD and TM\_MAD. Your target is to have only symlinks to the disk files on the desired storage clusters in the VM’s SYSTEM datastore.

Kind Regards,  
Anton Todorov

---

<div class="post-metadata">

**Author:** ![wah2016](https://avatars.discourse-cdn.com/v4/letter/w/ee59a6/32.png) [@wah2016](https://forum.opennebula.io/u/wah2016)\
**Post date:** [August 30, 2016, 3:32pm UTC](https://forum.opennebula.io/t/how-can-i-deploy-disk-images-of-the-same-vm-to-different-system-datastores/2823/5 "2016-08-30T15:32:12Z")

</div>

Hi Anton,

thanks for the clarification. I guess I missunderstood some of the Open Nebula concepts. I will try out this as soon as possible.

best regards,  
Walter
