# Local Storage Datastore Configuration

**URL:** <https://forum.opennebula.io/t/local-storage-datastore-configuration/1336>\
**Category:** Product Support\
**Created:** [October 14, 2015, 6:05pm UTC](https://forum.opennebula.io/t/local-storage-datastore-configuration/1336 "2015-10-14T18:05:20Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![publiccert](https://avatars.discourse-cdn.com/v4/letter/p/9fc29f/32.png) [@publiccert](https://forum.opennebula.io/u/publiccert)\
**Post date:** [October 14, 2015, 6:05pm UTC](https://forum.opennebula.io/t/local-storage-datastore-configuration/1336/1 "2015-10-14T18:05:20Z")

</div>

Hi all,

I was wondering if someone could clarify the configuration process of setting up a local HDD datastore?

We are exploring a tiered storage architecture with Ceph. However, in some cases, the workload is better suited to a local SSD/HDD on a particular host.

I’ve setup a ‘System’ target for ‘Images’ on one of my hosts. I setup the base path to be /tmp and it appears to be getting capacity information correctly.

Here are the attributes of the datastore I setup for local use:

BASE\_PATH /tmp/  
BRIDGE\_LIST 10.175.71.160  
CLONE\_TARGET SYSTEM  
DISK\_TYPE FILE  
DS\_MAD fs   
LN\_TARGET SYSTEM  
TM\_MAD ssh  
TYPE IMAGE\_DS

Logs from the VM I tried to launch:

Tue Oct 13 17:15:10 2015 [Z0][DiM][I]: New VM state is ACTIVE.  
Tue Oct 13 17:15:13 2015 [Z0][LCM][I]: New VM state is PROLOG.  
Tue Oct 13 17:15:14 2015 [Z0][TM][I]: Command execution fail: /var/lib/one/remotes/tm/ssh/clone opennebula-01:/tmp/103/923a58161f57ef623849e7f74cf4559c 10.175.71.160:/var/lib/one//datastores/0/2244/disk.0 2244 103  
Tue Oct 13 17:15:14 2015 [Z0][TM][I]: clone: Cloning opennebula-01:/tmp/103/923a58161f57ef623849e7f74cf4559c in /var/lib/one/datastores/0/2244/disk.0  
Tue Oct 13 17:15:14 2015 [Z0][TM][E]: clone: Command “scp -r opennebula-01:/tmp/103/923a58161f57ef623849e7f74cf4559c 10.175.71.160:/var/lib/one//datastores/0/2244/disk.0” failed: Warning: Permanently added ‘opennebula-01,10.175.71.120’ (ECDSA) to the list of known hosts.  
Tue Oct 13 17:15:14 2015 [Z0][TM][I]: Warning: Permanently added ‘10.175.71.160’ (ECDSA) to the list of known hosts.  
Tue Oct 13 17:15:14 2015 [Z0][TM][I]: /tmp/103/923a58161f57ef623849e7f74cf4559c: No such file or directory  
Tue Oct 13 17:15:14 2015 [Z0][TM][E]: Error copying opennebula-01:/tmp/103/923a58161f57ef623849e7f74cf4559c to 10.175.71.160:/var/lib/one//datastores/0/2244/disk.0  
Tue Oct 13 17:15:14 2015 [Z0][TM][I]: ExitCode: 1  
Tue Oct 13 17:15:14 2015 [Z0][TM][E]: Error executing image transfer script: Error copying opennebula-01:/tmp/103/923a58161f57ef623849e7f74cf4559c to 10.175.71.160:/var/lib/one//datastores/0/2244/disk.0  
Tue Oct 13 17:15:15 2015 [Z0][DiM][I]: New VM state is FAILED

Thanks for any clarification that can be offered!

---

<div class="post-metadata">

**Author:** ![ruben](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/ruben/32/19_2.png) [@ruben](https://forum.opennebula.io/u/ruben)\
**Post date:** [October 15, 2015, 8:16am UTC](https://forum.opennebula.io/t/local-storage-datastore-configuration/1336/2 "2015-10-15T08:16:18Z")

</div>

Hi Jeff

It seems it’s complaining about a missing file, could you check that both the original file (opennebula-01:/tmp/103/923a58161f57ef623849e7f74cf4559c) and target dir 10.175.71.160:/var/lib/one//datastores/0/2244 exists?

Cheers

---

<div class="post-metadata">

**Author:** ![publiccert](https://avatars.discourse-cdn.com/v4/letter/p/9fc29f/32.png) [@publiccert](https://forum.opennebula.io/u/publiccert)\
**Post date:** [October 15, 2015, 6:22pm UTC](https://forum.opennebula.io/t/local-storage-datastore-configuration/1336/3 "2015-10-15T18:22:00Z")

</div>

Hi Ruben,

The directory exists in /var/lib/one and /tmp.

Thanks!

---

<div class="post-metadata">

**Author:** ![MaxAlmeida](https://avatars.discourse-cdn.com/v4/letter/m/54ee81/32.png) [@MaxAlmeida](https://forum.opennebula.io/u/MaxAlmeida)\
**Post date:** [December 6, 2015, 2:04am UTC](https://forum.opennebula.io/t/local-storage-datastore-configuration/1336/4 "2015-12-06T02:04:32Z")

</div>

I had the same problem. is there some solution?

---

<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:** [December 10, 2015, 1:18pm UTC](https://forum.opennebula.io/t/local-storage-datastore-configuration/1336/5 "2015-12-10T13:18:57Z")

</div>

Hi,

I would like just to clarify:

opennebula-01 is the host where the front end (sunstone) is working?

what do you get if you run as oneadmin (on the frontend)

> su - oneadmin  
> ssh opennebula-01 ls -la /tmp/103/923a58161f57ef623849e7f74cf4559c

Cheers,  
Anton Todorov

---

<div class="post-metadata">

**Author:** ![cesarufmt](https://avatars.discourse-cdn.com/v4/letter/c/58f4c7/32.png) [@cesarufmt](https://forum.opennebula.io/u/cesarufmt)\
**Post date:** [March 17, 2016, 12:32pm UTC](https://forum.opennebula.io/t/local-storage-datastore-configuration/1336/6 "2016-03-17T12:32:14Z")

</div>

I created one datastore, type IMAGE, TM\_MAD ssh. I don’t created other datastore type system. My goal is to use node’s space and not frontend. Soul, I try with TM\_MAD ssh and BRIDGE\_LIST my node(host1) IP. Everything OK when I downloaded images in Marketplace and created templates, but when I try create virtual machines using that templates occurs errors below:

Tue Mar 15 18:59:48 2016 [Z0][VM][I]: New state is ACTIVE  
Tue Mar 15 18:59:48 2016 [Z0][VM][I]: New LCM state is PROLOG  
Tue Mar 15 18:59:49 2016 [Z0][TM][I]: Command execution fail: /var/lib/one/remotes/tm/ssh/clone frontend:/storage/105/49dc9f4ade78bbcc6d858d71214f7300 host1:/var/lib/one//datastores/0/29/disk.0 29 105  
Tue Mar 15 18:59:49 2016 [Z0][TM][I]: clone: Cloning frontend:/storage/105/49dc9f4ade78bbcc6d858d71214f7300 in /var/lib/one/datastores/0/29/disk.0  
Tue Mar 15 18:59:49 2016 [Z0][TM][E]: clone: Command “scp -r frontend:/storage/105/49dc9f4ade78bbcc6d858d71214f7300 host1:/var/lib/one//datastores/0/29/disk.0” failed: Warning: Permanently added ‘frontend’ (ECDSA) to the list of known hosts.  
Tue Mar 15 18:59:49 2016 [Z0][TM][I]: Warning: Permanently added ‘host1,192.5.0.40’ (ECDSA) to the list of known hosts.  
Tue Mar 15 18:59:49 2016 [Z0][TM][I]: /storage/105/49dc9f4ade78bbcc6d858d71214f7300: No such file or directory  
Tue Mar 15 18:59:49 2016 [Z0][TM][E]: Error copying frontend:/storage/105/49dc9f4ade78bbcc6d858d71214f7300 to host1:/var/lib/one//datastores/0/29/disk.0  
Tue Mar 15 18:59:49 2016 [Z0][TM][I]: ExitCode: 1  
Tue Mar 15 18:59:49 2016 [Z0][TM][E]: Error executing image transfer script: Error copying frontend:/storage/105/49dc9f4ade78bbcc6d858d71214f7300 to host1:/var/lib/one//datastores/0/29/disk.0  
Tue Mar 15 18:59:49 2016 [Z0][VM][I]: New LCM state is PROLOG\_FAILURE

Obs:

- My infrastructure is: one frontend and one node(host1).
- /var/lib/one is default datastore by examples (NFS).
- /storage is share in Host1.
- frontend log in node1 without password ssh.

I need to create virtual machines using /storage (node1) and not /var/lib/one (frontend).

Someone can I help me?  
Thanks.
