Multiple storage types per host

Hey All,

Can I have a situation where two storage types coexist on two hosts?

For example, let’s say I have this:

host01

  • 4TB Local LUN
  • 4TB Gluster FS (brick w/ host02)

host02

  • 4TB Local LUN
  • 4TB Gluster FS (brick w/ host01)

Can I define each local LUN as a separate datastore in ON while at the same time add Gluster FS as a shared LUN? I understand ON will tread GFS as any other path, so appears this ‘might’ be possible?

So for example, for redundancy, I would like to keep some VM’s (ie critical ones) on the GlusterFS despite the slower speed. While providing the 4TB LUN on each host for local, non critical VM’s where they can benefit from higher IO rates.

Cheers,
TK

Yes, the described scenario can be achieved by creating an SSH datastore for the LUNs and a shared datastore for the Gluster.

Once the datastores are set up you can choose where the VMs are deployed by using the TM_MAD_SYSTEM attribute inside the VM template. You can find more info here: http://docs.opennebula.org/5.8/deployment/open_cloud_storage_setup/fs_ds.html#combining-the-shared-ssh-transfer-modes

Thanks again Christian!

Question about the SSH datastore. Can you elaborate a bit how this SSH datastore for the LUN’s is created?

Cheers,
TK

Hello @TomK,

Sure, first you need to create an SSH datastore in ONE (or use the default one), after that you will need to make the datastore path (/var/lib/one/datastores/<ds_id> by default) to point the LUN. For that, you can directly mount the LUN on that path or make a symbolic link to the path where the LUN is mounted.