Onedatastore issue

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

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

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