LVM setup on opennebula?

Hi there,

I followed all the guides out there to set up but none worked.
Lastly, this seems to have worked -

  1. Created system datastore with below attributes
DATASTORE 112 INFORMATION                                                       
ID             : 112                 
NAME           : lvm-system          
USER           : oneadmin            
GROUP          : oneadmin            
CLUSTERS       : 0                   
TYPE           : SYSTEM              
DS_MAD         : -                   
TM_MAD         : fs_lvm              
BASE PATH      : /var/lib/one//datastores/112
DISK_TYPE      : FILE                
STATE          : READY               

DATASTORE CAPACITY                                                              
TOTAL:         : 10G                 
FREE:          : 9.8G                
USED:          : 200M                
LIMIT:         : -                   

PERMISSIONS                                                                     
OWNER          : um-                 
GROUP          : u--                 
OTHER          : ---                 

DATASTORE TEMPLATE                                                              
ALLOW_ORPHANS="NO"
BRIDGE_LIST="172.17.26.223"
DISK_TYPE="FILE"
DS_MIGRATE="YES"
RESTRICTED_DIRS="/"
SAFE_DIRS="/var/tmp"
SHARED="YES"
TM_MAD="fs_lvm"
TYPE="SYSTEM_DS"

IMAGES         
  1. Then created a VG in KVM Node with VG-one-112 as docs suggest
  2. Created Image datastore with below config
ID             : 113                 
NAME           : lvm-image           
USER           : oneadmin            
GROUP          : oneadmin            
CLUSTERS       : 0                   
TYPE           : IMAGE               
DS_MAD         : fs                  
TM_MAD         : fs_lvm              
BASE PATH      : /var/lib/one//datastores/113
DISK_TYPE      : FILE                
STATE          : READY               

DATASTORE CAPACITY                                                              
TOTAL:         : 31G                 
FREE:          : 26.7G               
USED:          : 4.3G                
LIMIT:         : -                   

PERMISSIONS                                                                     
OWNER          : um-                 
GROUP          : u--                 
OTHER          : ---                 

DATASTORE TEMPLATE                                                              
ALLOW_ORPHANS="NO"
CLONE_TARGET="SYSTEM"
CLONE_TARGET_SSH="SYSTEM"
DISK_TYPE="FILE"
DISK_TYPE_SSH="file"
DRIVER="raw"
DS_MAD="fs"
LN_TARGET="SYSTEM"
LN_TARGET_SSH="SYSTEM"
RESTRICTED_DIRS="/"
SAFE_DIRS="/"
TM_MAD="fs_lvm"
TM_MAD_SYSTEM="ssh"
TYPE="IMAGE_DS"

IMAGES         
11             
12             
13             
  1. Shared Image datastore to kvm node

And it is working.
Even though it is working, I copied the datastore configuration from a working production environment. And I don’t understand all of them. It failed when I created datastores from sunstone and I had to add new attributes from production env to the current one.
Can you direct me to the documentation of such configuration?