<div><span style="color:rgb(34,34,34);font-family:arial,sans-serif;line-height:normal">Hi Tao</span><div style="color:rgb(34,34,34);font-family:arial,sans-serif;line-height:normal"><br></div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;line-height:normal">The OpenNebula VM backup can be performed in  two different ways:</div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;line-height:normal"><br></div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;line-height:normal">1.- via disk snapshots. Note that these are copies of the VM disks, and they are stored in an Image Datastore. </div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;line-height:normal">  * The volume needs to be offline to guarantee FS consistency (e.g. poweroff the VM or umount it from the VM). No need to shutdown the VM, though: onevm disk-snapshot --live (onevm saveas is deprecated, use onevm disk-snapshot instead).</div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;line-height:normal">  * If needed the operation can be automated by a simple script or an scheduled action.</div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;line-height:normal">  * The VM can be recovered manually from OpenNebula (defining a new VM based on the saved disk). Note that the life-cycle of the saved disk is different from the original VM (no need to have it running for example)</div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;line-height:normal"><br></div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;line-height:normal">2.- via the underlying storage system. You can create a special system DS with its own backup policies (e.g. leveraging NAS features or FS features). Note:</div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;line-height:normal">  * You would probably require some kind of synchronization from the VM to prevent FS corruption.</div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;line-height:normal">  * The backup procedure is handled transparently to OpenNebula </div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;line-height:normal">  * The recovery process cannot be initiated from OpenNebula and need to be in place.</div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;line-height:normal"><br></div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;line-height:normal">In your case you could increase the reliability (different from backup)  by configuring some of the local volumes used for the SSH Datastore with DRDB or a RAID configuration. </div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;line-height:normal"><br></div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;line-height:normal">Cheers</div><span class="HOEnZb" style="color:rgb(34,34,34);font-family:arial,sans-serif;line-height:normal"><font color="#888888"><div><br></div><div>Ruben</div><div><br></div></font></span></div><br><div class="gmail_quote">On Mon Nov 10 2014 at 10:41:46 PM Tao Craig <<a href="mailto:tao@ispot.tv">tao@ispot.tv</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div lang="EN-US" link="#0563C1" vlink="#954F72"><div><p class="MsoNormal">Hi,<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">I have a question about backing up and restoring virtual machines.<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">I am using OpenNebula 4.8 and the SSH transfer drivers as a means to deploy virtual machines. My images are not persistent and I am using the qcow2 image format. All of my virtual machines and physical hosts are running CentOS 6.5 and using ext3 file systems.<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">Is it possible in my current environment to back up a virtual machine without shutting it down?<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">I know I can snapshot a virtual machine, but what if that machine is suddenly deleted for some reason (i.e. physical host crashes and has to be rebuilt). I’m under the impression snapshots are only usable as long as the original virtual machine is still running.<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">I know I can also use the onevm saveas command, but that only works if you plan on shutting the virtual machine down at some point.<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">Ideally, I would like to do something like copy the (running) disk image to offline storage and then have the ability to swap that out with a new running virtual machine to restore the back up in case the original virtual machine is lost. Rebooting in the case of restoring is acceptable of course, but I can’t shut my machines down every time I want to back them up.<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">Is something like this possible?<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">Thanks.<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal"><u></u> <u></u></p></div></div>______________________________<u></u>_________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opennebula.org" target="_blank">Users@lists.opennebula.org</a><br>
<a href="http://lists.opennebula.org/listinfo.cgi/users-opennebula.org" target="_blank">http://lists.opennebula.org/<u></u>listinfo.cgi/users-opennebula.<u></u>org</a><br>
</blockquote></div>