# Onedatastore issue

**URL:** <https://forum.opennebula.io/t/onedatastore-issue/1479>\
**Category:** Product Support\
**Created:** [November 16, 2015, 3:59pm UTC](https://forum.opennebula.io/t/onedatastore-issue/1479 "2015-11-16T15:59:27Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![fileas](https://avatars.discourse-cdn.com/v4/letter/f/c57346/32.png) [@fileas](https://forum.opennebula.io/u/fileas)\
**Post date:** [November 16, 2015, 3:59pm UTC](https://forum.opennebula.io/t/onedatastore-issue/1479/1 "2015-11-16T15:59:27Z")

</div>

Hi,

I’m trying to have a remote LVM datastore to be added to my Opennebula config.  
The datastore is apprearing on the onedatastore list but with 0% capacity available:

oneadmin@AELHP:~$ onedatastore list  
ID NAME SIZE AVAIL CLUSTER IMAGES TYPE DS TM STAT  
0 system 5.5T 70% AEL-Labs1 0 sys - shared on  
1 default 5.5T 70% AEL-Labs1 15 img fs shared on  
2 files 5.5T 70% AEL-Labs1 0 fil fs ssh on  
134 ael2-lab\_lvm 34.3T 0% AEL-Labs1 0 img lvm ssh on

Another thing when rebooting the host that contain this datastore 134 it stay in “on” state on the frontend.  
This is my ds config:

BASE\_PATH="/datastore1/"  
BRIDGE\_LIST="ael2-lab"  
CLONE\_TARGET="SYSTEM"  
DISK\_TYPE="BLOCK"  
DS\_MAD="lvm"  
LN\_TARGET="SYSTEM"  
TM\_MAD="ssh"  
TYPE="IMAGE\_DS"  
VG\_NAME=“datastore1”

This is a df on the remote host:

/dev/mapper/datastore1-datastore1\_vg 35161032704 34252 35160998452 1% /datastore1  
10.0.0.65:/var/lib/one 5904132800 1487188920 4119369888 27% /var/lib/one

Any idea ?

Thanks a lot for your time.

David

---

<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:** [November 20, 2015, 9:50am UTC](https://forum.opennebula.io/t/onedatastore-issue/1479/2 "2015-11-20T09:50:03Z")

</div>

Hi  
The configuration of the datastore is not correct, please review the following guide (i.e. TM\_MAD needs to be fs\_lvm)

[http://docs.opennebula.org/4.14/administration/storage/fs\_lvm\_ds.html](http://docs.opennebula.org/4.14/administration/storage/fs_lvm_ds.html)

Monitorization is done through a script called monitor\_ds.sh in the hosts. (in /var/lib/one/remotes/im/kvm-probes.d), you can see the information sent to OpenNebula executing:

./monitor\_ds.sh kvm /var/lib/one/datastores 1234 12 0 dummy

You can debug any configuration issue by executing the previous command…

Cheers
