<div dir="ltr">Hi,<div><br>On Wed, Jan 15, 2014 at 4:41 PM, kiran ranjane <span dir="ltr"><<a href="mailto:kiran.ranjane@gmail.com" target="_blank">kiran.ranjane@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<div dir="ltr"><div><div><div><div><div>Hello Carlos,<br><br></div>Thanks for the explanation, But the disk was using an image. The above suggestion would be good for one or two vms, What if I deploy 10 or more vms using same image (non persistent) and using a single Template?<br>
<br></div>-- Each having their own Data-disk and each having different data in it, do you think the above suggestion would work?<br></div>-- If I use the above procedure then I think I have to make 10 different clones of the image and Also 10 different templates to deploy the VMs, Which in my opinion is not feasible.<br>
<br></div><div>If I am right, When I use non-persistent image a clone is created to system DS while deploying the VM, if this is correct then after the vm is deployed for such image it should keep the clone disk as persistent in the vm. This would help in deploying number of VMs from a single template and the data for that particular VM will also be persistent.<br>
</div></div></div></blockquote><div><br></div><div>I think this fits the scenario described in request #2048 [1]</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<div dir="ltr"><div><div></div><div>Well the VM disk should have 3 buttons<br><br>-- attach/detach (able to attach or detach same disk to the VM)<br></div><div>-- Snapshot (Take snapshot Deferred/Hot)<br></div><div>-- Delete (Delete the disk permanently from VM)<br>
<br>What do you think on this, any suggestions?<br><br></div>Thanks and reagrds<span><font color="#888888"><br></font></span></div><span><font color="#888888">Kiran Ranjane<br></font></span></div></blockquote>
<div><br></div></div><div>If you could "instantiate to persistent" as described in #2048, the disk would use an Image and the current attach+detach operations would not delete the disk. I think that ticket would solve your use case, or is there anything else missing?</div>
<div><br></div><div>Regards</div><div><br></div><div>PS: Please reply also to the mailing list.<br></div><div class="gmail_extra">[1] <a href="http://dev.opennebula.org/issues/2048" target="_blank">http://dev.opennebula.org/issues/2048</a><br clear="all">
<div><div dir="ltr">--<br><div>Carlos Martín, MSc<br>Project Engineer</div><div>OpenNebula - Flexible Enterprise Cloud Made Simple<br><div><span style="border-collapse:collapse;color:rgb(136,136,136);font-family:arial,sans-serif;font-size:13px"><a href="http://www.OpenNebula.org" target="_blank">www.OpenNebula.org</a> | <a href="mailto:cmartin@opennebula.org" target="_blank">cmartin@opennebula.org</a> | <a href="http://twitter.com/opennebula" target="_blank">@OpenNebula</a></span><span style="border-collapse:collapse;color:rgb(136,136,136);font-family:arial,sans-serif;font-size:13px"><a href="mailto:cmartin@opennebula.org" style="color:rgb(42,93,176)" target="_blank"></a></span></div>
</div></div></div>
<br><br><div class="gmail_quote">On Wed, Jan 15, 2014 at 4:41 PM, kiran ranjane <span dir="ltr"><<a href="mailto:kiran.ranjane@gmail.com" target="_blank">kiran.ranjane@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<div dir="ltr"><div><div><div><div><div><div>Hello Carlos,<br><br></div>Thanks for the explanation, But the disk was using an image. The above suggestion would be good for one or two vms, What if I deploy 10 or more vms using same image (non persistent) and using a single Template?<br>
<br></div>-- Each having their own Data-disk and each having different data in it, do you think the above suggestion would work?<br></div>-- If I use the above procedure then I think I have to make 10 different clones of the image and Also 10 different templates to deploy the VMs, Which in my opinion is not feasible.<br>
<br></div></div><div>If I am right, When I use non-persistent image a clone is created to system DS while deploying the VM, if this is correct then after the vm is deployed for such image it should keep the clone disk as persistent in the vm. This would help in deploying number of VMs from a single template and the data for that particular VM will also be persistent.<br>
<br></div><div>Well the VM disk should have 3 buttons<br><br>-- attach/detach (able to attach or detach same disk to the VM)<br></div><div>-- Snapshot (Take snapshot Deferred/Hot)<br></div><div>-- Delete (Delete the disk permanently from VM)<br>
<br>What do you think on this, any suggestions?<br><br></div>Thanks and reagrds<span><font color="#888888"><br></font></span></div><span><font color="#888888">Kiran Ranjane<br><br></font></span></div><div>
<div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Jan 15, 2014 at 8:22 PM, Carlos Martín Sánchez <span dir="ltr"><<a href="mailto:cmartin@opennebula.org" target="_blank">cmartin@opennebula.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr">Hi,<div><br></div><div>On Wed, Jan 15, 2014 at 2:08 PM, kiran ranjane <span dir="ltr"><<a href="mailto:kiran.ranjane@gmail.com" target="_blank">kiran.ranjane@gmail.com</a>></span> wrote:<div>
<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<div dir="ltr"><div><div><div><div><div><div><div>Hello,<br><br></div><div>Scenario :<br><br></div>-- I created a VM from a template which had 2 disk (OS, Datablock).<br></div>-- The VM was deployed properly in Running State and after that I tried the detach operation on Datablock disk. The disk was detached correctly without any errors but I want to attach the same disk again to the VM and there is no such way to do it in ONE.<br>
</div></div></div></div></div></div></blockquote><div><br></div></div><div>If the disk was volatile, it is lost. But if the disk was using an image, you can attach that same image again. So I'd say that the use case is supported, you just have to make sure that disks that may be used later need to be backed by Images.</div>
<div>
<div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><div><div><div><div><div></div>
-- The disk that are listed below in Storage tab under VM should be there even after you detach the disk from the VM so that in case we need it back we can attach the same disk again.<br></div></div></div></div></div></blockquote>
<div><br></div></div><div>This can be useful in some cases, but I'm not sure it is desirable in all situations. If the disk is using a persistent Image, I'd expect that image to be released, and ready to be used for another VM, as soon as the disk is detached.</div>
<div>
<div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><div><div><div><div></div>-- Also we should have the option to move/attach the data-disk of a particular VM to any other VM.<br>
</div></div></div></div></blockquote><div><br></div></div><div>It is possible, if the disk is backed by an Image. You can detach + detach to the other VM.</div><div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<div dir="ltr"><div><div>-- Now if I detach the disk the data that is stored in that particular disk is gone. Is there a way to get it back?<br></div></div></div></blockquote><div><br></div></div><div>If it was a volatile disk, it was deleted when it was detached.</div>
<div><br></div><div></div></div><div><br></div><div>Maybe the requirement to manage persistency with Images is not intuitive, but it is the OpenNebula model. First you define the storage, and then you use it in the VMs.</div>
<div><br></div><div>The only thing missing to fully support your use case may be a similar operation to detach, but less definitive. Maybe an "unmount" action could detach the disk without touching the files. I don't how useful it would be, since it can be done from the guest. What do you think of this?</div>
<div><br></div><div>Best regards</div><div class="gmail_extra"><div><div dir="ltr">--<br><div>Carlos Martín, MSc<br>Project Engineer</div><div>OpenNebula - Flexible Enterprise Cloud Made Simple<br><div><span style="border-collapse:collapse;color:rgb(136,136,136);font-family:arial,sans-serif;font-size:13px"><a href="http://www.OpenNebula.org" target="_blank">www.OpenNebula.org</a> | <a href="mailto:cmartin@opennebula.org" target="_blank">cmartin@opennebula.org</a> | <a href="http://twitter.com/opennebula" target="_blank">@OpenNebula</a></span><span style="border-collapse:collapse;color:rgb(136,136,136);font-family:arial,sans-serif;font-size:13px"><a href="mailto:cmartin@opennebula.org" style="color:rgb(42,93,176)" target="_blank"></a></span></div>
</div></div></div>
<br></div></div>
</blockquote></div><br></div>
</div></div></blockquote></div><br></div></div>