<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">Yes, I think that your disk speed it
doesn't depend on the image datastore type but on the system
datastore type. <br>
This is caused because all the images are copied to your default
system datastore and the VM's run from there. Then, if you want
different disk speed you need different system datafiles, but I
don't know how you can specify a different destination datastore
for a disk or for a vm.<br>
<br>
Does anybody know if I'm right and how to specify this? Maybe the
solution is to create 2 clusters, one with the local system
datastore by default and the other one with the NFS system
datastore. But in this case I'll need to have the images
duplicated in two image datastores and I think that this is not a
good solution.<br>
<br>
Thanks!<br>
<br>
On 12/18/2012 10:23 AM, André Monteiro wrote:<br>
</div>
<blockquote
cite="mid:CAG+nK=pwzg2aAaDS-a-1TB=0-6hSFCbycUyofVd4bEDMMG+6Fw@mail.gmail.com"
type="cite">
<div>Hi Oriol, </div>
<div> </div>
<div>I guess you're right, I had a few problems with disk speed
(small block size) and I tested other disk:</div>
<div>- mounted the disk on /mnt/new_disk</div>
<div>- copied the image.raw and image.qcow2 to new disk</div>
<div>- created new Datastore (ID=100) and new symbolic link on
.../datastores/100 pointing to /mnt/new_disk</div>
<div>- registered new images on Opennebula specifying datastore
100</div>
<div>- updated template </div>
<div>
- instantiated new VMs<br clear="all">
</div>
<div> This allowed me to test the new disk with better results,
but I guess it would be extremelly useful to input on
REQUIREMENTS var the wanted datastore.</div>
<div><br>
--<br>
André Monteiro<br>
<br>
</div>
<br>
<br>
<br>
<div class="gmail_quote">On Tue, Dec 18, 2012 at 9:09 AM, Oriol
Martí <span dir="ltr"><<a moz-do-not-send="true"
href="mailto:omarti@cesca.cat" target="_blank">omarti@cesca.cat</a>></span>
wrote:<br>
<blockquote style="margin:0px 0px 0px
0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid"
class="gmail_quote">
Hi Gary,<br>
<br>
I've read the docs, but I think I'm not understanding
something, when you create vm's all the images are copied in
the /var/lib/one/datastores/0, then all your virtual machines
are running from an NFS system datastore and it's impossible
to run the virtual machines from local storage....<br>
Have you tried to create virtual machines from different
datastores and see if the disk speed is really different?
<div class="HOEnZb">
<div class="h5"><br>
<br>
On 12/17/2012 06:37 PM, Gary S. Cuozzo wrote:<br>
<blockquote style="margin:0px 0px 0px
0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid"
class="gmail_quote">
I do exactly what you reference below, use NFS for
shared storage and also localfs for high performance
local storage. But, I only have 1 system datastore.
When you use shared storage such as NFS or iSCSI, the
system datastore also has to be shared. I think the
system datastore is typically datastore ID 0. That's
what it is in my system as it's created by ONE.<br>
<br>
In your case, you will need to share the system DS to
each host in the cluster. For example, I have
/var/lib/one/datastores/0 NFS exported from ONE
controller to each vm host and mounted there in the same
place.<br>
<br>
Then, you just use each other DS as you wish and ONE
handles copying, linking, etc as needed.<br>
<br>
Hope that makes some sense. Read up on the storage
docs, they are very good as describing all this.<br>
<br>
gary<br>
<br>
<br>
----- Original Message -----<br>
From: "Oriol Martí" <<a moz-do-not-send="true"
href="mailto:omarti@cesca.cat" target="_blank">omarti@cesca.cat</a>><br>
To: "Gary S. Cuozzo" <<a moz-do-not-send="true"
href="mailto:gary@isgsoftware.net" target="_blank">gary@isgsoftware.net</a>><br>
Cc: "Users OpenNebula" <<a moz-do-not-send="true"
href="mailto:users@lists.opennebula.org"
target="_blank">users@lists.opennebula.org</a>><br>
Sent: Monday, December 17, 2012 12:17:47 PM<br>
Subject: Re: [one-users] Two System Datafiles in the
same cluster<br>
<br>
Hi Gary,<br>
<br>
thank you for your fast response,<br>
my idea is to have an NFS and a local datastore, which
are system<br>
datastores, to store the images of the running vms. Then
you can create<br>
vms with faster disk (local) or slower disk (NFS). I've
tried to have<br>
two systems datastores in the same cluster and it's
possible.<br>
From what I understood, when you create a vm, the
image is copied from<br>
the image datastore to the default system datastore,
which you define in<br>
the cluster as SYSTEM_DS. I don't know if its possible
to create a vm in<br>
a different datastore than the cluster's default.<br>
<br>
I don't know if I'm missing something about the copy
process or<br>
something.... Basically I would like to decide, when I
create a vm, to<br>
give it faster or slower disk depending on what I need.
In my point of<br>
view I think that if you use image datastores faster,
you only will take<br>
advantage of the speed when is copying, one time copied
it's going to be<br>
slower if its copied in a slower NFS datastore.<br>
<br>
Best regards,<br>
<br>
<br>
On 12/17/2012 04:42 PM, Gary S. Cuozzo wrote:<br>
<blockquote style="margin:0px 0px 0px
0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid"
class="gmail_quote">
Hello Oriol,<br>
I don't think you can have more than one system
datastore, but I could be wrong about that. But,
unless I misunderstand your goal, I don't think you
need to have more than one. You should simply be able
to define 2 datastores and associate each with the
cluster. I have a similar setup to what you describe,
I have a cluster that has 2 different NFS datastores,
a local file datastore, and an iSCSI datastore. I can
use images from any/all datastores in a single vm
(though I actually don't).<br>
<br>
Hope that helps,<br>
gary<br>
<br>
<br>
----- Original Message -----<br>
From: "Oriol Martí" <<a moz-do-not-send="true"
href="mailto:omarti@cesca.cat" target="_blank">omarti@cesca.cat</a>><br>
To: <a moz-do-not-send="true"
href="mailto:users@lists.opennebula.org"
target="_blank">users@lists.opennebula.org</a><br>
Sent: Monday, December 17, 2012 9:53:43 AM<br>
Subject: [one-users] Two System Datafiles in the same
cluster<br>
<br>
Hi,<br>
<br>
somebody knows if it is possible to have two system
datastores in a cluster and create VM in the same host
but in different datastores?<br>
I've my default SYSTEM_DS="101" in the cluster, I've
tried to add to the MV template to change the
datastore which the vm is created:<br>
REQUIREMENTS= "DATASTORE_ID = \"103\""<br>
(I don't know if this is correct)<br>
But the VM does not boot, and is in pending state.
Somebody know if is possible or I have to create two
clusters one with the datastore 101 and another one
with the datastore 103?<br>
<br>
My idea is to have one cluster with one NFS datastore
and another local-file datastore.<br>
<br>
Thanks!<br>
<br>
</blockquote>
<br>
</blockquote>
<br>
<br>
-- <br>
<br>
......................................................................<br>
__<br>
/ / Oriol Martí Bonvehí<br>
C E / S / C A Administrador de Sistemes<br>
/_/ Centre de Supercomputació de
Catalunya<br>
<br>
Gran Capità, 2-4 (Edifici Nexus) · 08034 Barcelona<br>
T. 93 551 6212 · F. 93 205 6979 · <a
moz-do-not-send="true" href="mailto:omarti@cesca.cat"
target="_blank">omarti@cesca.cat</a><br>
......................................................................<br>
<br>
_______________________________________________<br>
Users mailing list<br>
<a moz-do-not-send="true"
href="mailto:Users@lists.opennebula.org" target="_blank">Users@lists.opennebula.org</a><br>
<a moz-do-not-send="true"
href="http://lists.opennebula.org/listinfo.cgi/users-opennebula.org"
target="_blank">http://lists.opennebula.org/listinfo.cgi/users-opennebula.org</a><br>
</div>
</div>
</blockquote>
</div>
<br>
</blockquote>
<br>
</body>
</html>