[one-users] Shared datastore only to cluster
Gary S. Cuozzo
gary at isgsoftware.net
Thu Nov 28 08:47:10 PST 2013
Hi,
I believe you should be able to do this by creating a custom datastore driver.
I have a use case which is not too different than you. I created a 'localfs' datastore & transfer driver which is able to create images on a specific host, utilizing local disk storage (for performance reasons). While your storage is actually shared across hosts, it is similar to mine in that the filesystems only exist on host machines and not in the front-end.
All you should have to do is use a shared SYSTEM datastore and create a transfer driver which creates the proper symlinks in the system datastore over to the image in your ocfs2. I believe the iscsi drivers do something similar. You may want to take a look at them.
Hope that helps,
gary
----- Original Message -----
From: "Ruben S. Montero" <rsmontero at opennebula.org>
Hi Mário
I am not really sure I fully understand your question. So let me briefly summarize the use of clusters and datasotres:
* There are 2 datastore types. Images (to store VM disks) and System (to run the VMs from there). Stopped VMs (disks and checkpoint) are in stored in the System DS.
* DS can be either shared among all the clusters (assigned to CLUSTER_NONE) or assigned to a cluster.
So if you have a stopped guest that needs to be allocated to a different cluster you should be able to do it as long as all the files are accessible to both hosts. Otherwise it may not work (if the VM is using persistent images for example).
Hope it is more clear now, if not come back
Ruben
On Wed, Aug 28, 2013 at 7:09 PM, Mário Reis < mario.reis at ivirgula.com > wrote:
Hi all,
i'm trying to build a opennebula infrastructure, but i guess i'm missing something basic about datastores.
Currently i have 3 ubuntu hosts virtualizing several kvm guests. Created another guest and installed Opennebula 4.2 over a Gentoo in this new guest. Removed all VMs from the third host, created a cluster in sunstone interface, added to it this host. For far so good, the host is monitored and showing available CPU/RAM.
Next step was to "import" a qcow2 image from a stopped guest and use it in this host. This files and shared across all hosts using ocfs2 over fc luns (opennebula guest don't actually have access to them).
So, my problem here is:
Can I add this image files to a datastore that only exists in the cluster hosts? It seems that i can't do this without placing them in the frontend guest.
_______________________________________________
Users mailing list
Users at lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
--
--
Join us at OpenNebulaConf2013 in Berlin, 24-26 September, 2013
--
Ruben S. Montero, PhD
Project co-Lead and Chief Architect
OpenNebula - The Open Source Solution for Data Center Virtualization
www.OpenNebula.org | rsmontero at opennebula.org | @OpenNebula
_______________________________________________
Users mailing list
Users at lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20131128/d6940982/attachment.htm>
More information about the Users
mailing list