As with all user-level data, it is important to back up the Oracle VDI database periodically. This is also a crucial step if you plan to reinstall an Oracle VDI host.
The following information should be used when backing up data for both the embedded Oracle VDI MySQL Server database and a remote MySQL database. To learn more about Oracle VDI configurations and the corresponding databases, refer to Section 2.1, “About Oracle VDI Centers and Hosts”.
This backup task archives only the content of the Oracle VDI database. The volumes of desktops and templates as well as configuration and settings values are not backed up.
Here is a list of important notes when backing up and restoring the Oracle VDI database.
For multi-host setups, the backup and restore process should only be done on one host. It does not need to be done on every host.
You can perform the backup and restore tasks on different hosts as long as the archived backup is accessible.
The backup job stops all other Oracle VDI jobs. Jobs are automatically started again after the backup finishes.
The restore job stops the entire Oracle VDI system, but active sessions will continue to run. When a restore job finishes, you must restart the Oracle VDI system (through the Common Agent Container (cacao) on all hosts.
Make a backup of the database.
From the CLI, run the vda-backup
command.
# /opt/SUNWvda/sbin/vda-backup [-p <path-to-directory>] [-o <output-file-name>]
While the backup job is running, all other jobs are
stopped or put in queue in all hosts. A zip archive is
created, that includes one file, with an
.db
extension and a timestamp-based
name.
For a detailed view of the backup
command syntax use the following command.
# /opt/SUNWvda/sbin/vda-backup -h
From Oracle VDI Manager:
Select the Settings category, then the VDI Center subcategory.
Select the Database tab, and click Backup in the VDI Database Backup section.
Restore the backed up database on the new Oracle VDI installation.
From the CLI, run the vda-restore
command.
# /opt/SUNWvda/sbin/vda-restore -i <path-to-backup.zip>
For a detailed view of the vda-restore
command syntax use the following command.
# /opt/SUNWvda/sbin/vda-restore -h
After the restore job finishes, restart Oracle VDI system on all hosts.
# cacaoadm stop -f -i vda # cacaoadm start -i vda
On Linux platforms, the cacaoadm command is
in /opt/sun/cacao2/bin
.