OpenNebula 5 beta - FS_LVM image datastore problem

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”

1 Like

That’s how it is supposed to work. From the documentation:

Images are stored as regular files (under the usual path: /var/lib/one/datastores/) in the Image Datastore, but they will be dumped into a Logical Volumes (LV) upon virtual machine creation. The virtual machines will run from Logical Volumes in the node.

The datastore that had both original images and system images in LVM was called lvm and is now an addon:

I have a same question.

Can you explain - why in documentation about LVM_FS we can read two paragraph - first about Image datastore and second about system datastore?

In total:

  1. creating Image datastore as a regular Shared volume;
  2. creating System datastore as LVM_FS volume - vg + non shared directory

It is correct?

Hi

The details are in the latest version of the documentation:

http://docs.opennebula.org/5.0/deployment/open_cloud_storage_setup/lvm_drivers.html

If you want to learn about datastore types, check this:

http://docs.opennebula.org/5.0/deployment/open_cloud_storage_setup/overview.html

Cheera