We trying to configure FS_LVM Datastore by follow this guide: http://docs.opennebula.org/5.0/deployment/open_cloud_storage_setup/lvm_drivers.html
For a System Datastore all things was created without problem:
- ONE can see shared VG size;
- ONE can create lv for VM’s;
When we tried to create image data store we take a problems:
- ONE CAN’T see shared VG actual size, only size from system disk.
- All Images fall directly to Images directory, like a files.
this is image datastore config
[root@node01 ~]# onedatastore show 125
DATASTORE 125 INFORMATION
ID : 125
NAME : lvm-img
USER : oneadmin
GROUP : oneadmin
CLUSTERS : 102
TYPE : IMAGE
DS_MAD : fs
TM_MAD : fs_lvm
BASE PATH : /var/lib/one/datastores/125
DISK_TYPE : BLOCK
STATE : READY
DATASTORE CAPACITY
TOTAL: : 399.8G
FREE: : 399.7G
USED: : 65M
LIMIT: : -
PERMISSIONS
OWNER : um-
GROUP : u–
OTHER : —
DATASTORE TEMPLATE
BRIDGE_LIST="node01 node02 node03 node04"
CLONE_TARGET="SYSTEM"
DISK_TYPE="BLOCK"
DS_MAD="fs"
LN_TARGET=“SYSTEM"
RESTRICTED_DIRS=”/“
SAFE_DIRS=”/var/tmp"
TM_MAD="fs_lvm"
TYPE="IMAGE_DS"
VG_NAME=“vg-one-125”
IMAGES
this is system
[root@node01 ~]# onedatastore show 126
DATASTORE 126 INFORMATION
ID : 126
NAME : sys-lvm
USER : oneadmin
GROUP : oneadmin
CLUSTERS : 102
TYPE : SYSTEM
DS_MAD : -
TM_MAD : fs_lvm
BASE PATH : /var/lib/one/datastores/126
DISK_TYPE : FILE
STATE : READY
DATASTORE CAPACITY
TOTAL: : 250G
FREE: : 180.6G
USED: : 69.4G
LIMIT: : -
PERMISSIONS
OWNER : um-
GROUP : u–
OTHER : —
DATASTORE TEMPLATE
BRIDGE_LIST="node01 node02 node03 node04"
DISK_TYPE="FILE"
DS_MIGRATE=“YES"
RESTRICTED_DIRS=”/“
SAFE_DIRS=”/var/tmp"
SHARED="YES"
TM_MAD="fs_lvm"
TYPE="SYSTEM_DS"
VG_NAME=“vg-one-126”