I just get into opennebula not long, I would like to use lvm as storage backend. but didn’t have SAN, any possible to use the host’s local lvm as storage backend? I don’t need the migrated-live or other else HA function. according to the official doc, there are alway suggest to use a shared lun for lvm’s backend.
I got 3 host, each has 2x300G sas and 3x1T sata, running centos 7.5, the one’s version is 5.6.0
There is no necessary to have SAN to use LVM as storage backend, but in production with High Load it’s strongly reccomended.
You should to do following:
On the ONE node:
create System and Image datastores. Don’t forget to set BRIDGET_LIST (space separated list of all yours hypervisor nodes). Examples of mentioned datastores configs present in the LVM drivers documentation.
put your VM image in the just created Image datastore as regular file.
create template that uses this image.
On the hypervisor node:
initialize 31T SATA as PV (physical volume) via pvcreate command.
initialize VG (Volume Group) with the name vg-one-<system_ds_id_got_in_ONE_node.
satisfy all requirements for the node (it’s need to allow oneadmin to create/destroy LV (Logical Volume).
thank you @Yurij_Goncharuk
I will try and report back. that would be fantastic if fs_lvm dm/tm can use local host’s lvm instead of a shared storage/LUN.