4 Replies Latest reply: Jun 4, 2013 2:52 PM by WadhahDaouehi RSS

    Re: OVM Repository and VM Guest Backups - Best Practice?


      I have also been looking into how to backup an OVM Repository, and I'm currently thinking of doing it with the OCFS2 reflink command, which is what it used by the OVMM 'Thin Clone' option to create a snapshot of the virtual disk's .img file. I thought I could create a script that reflink's all the virtual disks to sperate directory within the repository, then export the repository via OVMM and backup all the snapshots. All the snapshots can then be deleted once the backup was complete.

      The VirtualMachines directory could also be backed up in the same way, or I would have thought it would be safe to back this directory directly, as the files are very cfg files are very small and change infrequently.

      I would be interested to hear from anyone that has any experience of doing a similar thing, or has any advise about whether this would be doable.

        • 1. Re: OVM Repository and VM Guest Backups - Best Practice?
          Bjoern Rost
          yes, that is one common way to perform backups. Unfortunately, you'll have to script those things yourself. Some people also use the xm command to pause the VM for just the time it takes to create the reflinks (especially if there is more than one virtual disk in the machine and you want to make sure they are consistent).

          You can read a bit more about it here:
          VM Manager and VM Server - backup and recovery options
          great article (in german but you can understand the scripts) about this http://www.trivadis.com/fileadmin/user_upload/PDFs/Trivadis_in_der_Presse/120601_DOAG-News_Snapshot_einer_VM_mit_Oracle_VM_3.pdf

          and I have blogged about an alternative way where you clone a running machine and then backup that cloned (and stopped) machine


          • 2. Re: OVM Repository and VM Guest Backups - Best Practice?
            Can you do reflink snapshots of OVMs that contain Oracle DataBases ?

            I understand that after putting the DB in hot backup mode some of the hardware SANs can do snapshots but was curious if, with the new reflink, if this was possible with OVM VMs that contain Oracle DBs.
            • 3. Re: OVM Repository and VM Guest Backups - Best Practice?
              We back up our guests weekly by shutting down the the VMs by script using the OVM CLI and then copying the .img files to our media server where it's then backed up by tape. The script also turns them on again. I realize you can do clones then back the clones up, however I've already had some issues with that approach.
              • 4. Re: OVM Repository and VM Guest Backups - Best Practice?

                With Oracle VM Manager CLI 3.2.1 or later you can have all the featers like the GUI, so you can use a script to automate the bachup with the command.

                clone Vm .... to create a snapshot and the commande clone VirtualDisk .... to exporte the disk image to an other repository (NFS repository for example).

                or you can access to Oracle VM Server and use the commande reflink to create a snapshot and use the commande scp to create a backup and then remove the snapshot.

                I hipe this can help you :)
                Best Regards