Performing Oracle VM Server 3.2 Backups and Restores

Updated

Follow these procedures to back up and restore an Oracle VM 3.2 server.

Configuration

Back Up the Oracle VM Server

Restore Files for a Specific Guest

  1. From the proxy server, mount the snapshot.

    The snapshot is visible after you mount the snapshot.

    If you list the files that are on the mounted volume, the Oracle VM server repository files are present.

  2. After you mount the repository, mount the .img file so that you can view the guest VM files. Use the losetup command to configure and control the loop devices.

    1. Detect the available loop device. On the command line, type the following command:

      lookup -f
    2. Use the available loop device to mount the .img file. On the command line, type the following command:

      For this example, "loop1" is the available loop device.

      losetup /dev/loop1 <path_of_.img_file>
    3. Use the kpartx command to add partition mappings. On the command line, type the following command:

      For this example, "loop1" is the available loop device.

      kpartx –a /dev/loop1
    4. Use the kpartx command to list the partition mappings. On the command line, type the following command:

      For this example, "loop1" is the available loop device.

      kpartx –l /dev/loop1
    5. Create a mount point on the proxy sever for guest VM file system. On the command line, type the following command:

      mount /dev/mapper/loop1p2 /mountGuestfs

      The guest VM is visible and you can now recover the files.

  3. Restore the data.

  4. After the restore completes, unmount the guest file system. On the command line, type the following commands:

    umount /mountGuestfs

    losetup –d /dev/loop1

    kpartx –d /dev/loop1
  5. Use the losetup command to verify that loop device is free. On the command line, type the following command:

    losetup –a
  6. From the proxy server, unmount the snapshot.