Bobcares

How to backup and restore oVirt engine

by | Dec 16, 2015

In our recent post ‘How to configure VM backups in oVirt, we saw how we configured a VM backup system for a cloud service provider. We further went ahead and expanded the backup system with oVirt engine backups.

oVirt engine manages the centralized configuration of the cloud system. This engine manages provisioning of VMs, connection protocols, user sessions, VM images, VM environment configuration, etc. It also provides a graphical interface to view, create and manage VMs. The engine configuration is saved in oVirt engine database and configuration files.

See how our WHMCS oVirt plugin helps you!

oVirt engine can be hosted on a Red Hat Enterprise Linux, Fedora, Debian or CentOS server. Data loss in an oVirt server can happen due to hard disk crash, external hacks or human errors.

A complete server backup helps in the restoration of cloud settings, in case of data loss. It comes handy in reverting to a previous ‘working’ state, whenever any oVirt configuration change breaks the system.

We designed and implemented a backup system for the oVirt engine. The implementation included creation of oVirt engine backups, configuring the backup server, storing the backups, automating the backup process and restoring from the backups. Here is how we did it.

[ Looking for custom plugins to manage your portals? Contact us to get tailor-made plugins to serve your business purposes. ]

Creating oVirt engine backups

Backup was taken in the oVirt server from command line, as shown here in our demo server. We backed up the engine database and configuration files into a single file that could be easily stored.

 

oVirt-backup

oVirt engine backup

 

The backup file was in a compressed format and could be restored easily in the future. It contained all the information to configure oVirt in case a restore was required.

The engine-backup utility had 3 options – complete backup, ‘configuration files only’ backup and ‘engine database only’ backup. Depending on the disk space available and frequency of oVirt configuration changes, scope could be defined. We opted for a full daily backup, as storage space was not a concern for this customer.

Storing the backups

The backup file had to be saved in a location that would be accessible during restore. By default, the backups were stored in the folder ” /var/lib/ovirt-engine/backups ” in oVirt engine server. But if the oVirt engine server’s hard disk failed, the backups would also be lost. So we decided to move the backup files to the storage servers within the cloud setup.

We also configured an external NFS server at a different location to safely store the backup files. This helped us to restore the oVirt setup even in case of natural calamities. The external backup server was further secured with firewalls, to prevent unauthorized access and to safeguard our data.

[ Running a cloud hosting infrastructure doesn’t have to be hard, or costly, if you have the right support to assist you. Get 24/7 world class oVirt specialists and find peace of mind. ]

Automating the backups

Manual backups of the oVirt system was a time-consuming process that used up valuable man-hours. For efficient backup management, we automated the backup process with a custom API script. The script was configured in the oVirt engine server as a daily automated task to take regular backups.

 

backup ovirt engine

Backup oVirt engine

 

The API script backed up these main configuration files and folders of oVirt:

'/etc/ovirt-engine/' directory that contained oVirt configuration files
'/etc/pki/ovirt-engine/' directory that contained the security files
'/var/lib/ovirt-engine/backups/' directory with the backup files
'/usr/share/ovirt-engine-reports/' directory with configuration files fore reports
'/var/log/ovirt-engine/setup/' directory for oVirt configuration settings and logs
'versionlock.list' file for versions of all oVirt cloud components

 

The database which contained the configuration settings, was also backed up by this script. The backups were then exported to our external backup server over secure channels on a daily basis.

[ Looking for the WHMCS plugin to manage your oVirt interface? Get our WHMCS plugin for oVirt management here. ]

Restoring the backups

Before the oVirt system was made live, we did a trial run to verify if the backup and restore script functioned as intended. While the restoration process could be done with the same command utility, we identified a few dependencies that were involved in the process.

These dependencies included ensuring same oVirt versions in the backup and restore servers, configuring the PostgreSQL service and creating the engine database. Our script was tweaked to include these steps as well.

Backup management involves creating a backup and a recovery plan. The plan has to identify critical data, storage space requirements, frequency of data changes, best time to take the backup, etc.

Backups should be audited frequently to ensure its adequacy and rotated regularly to save storage space. Bobcares helps cloud providers minimize business downtime with our backup management services, which range from formulating the backup and recovery plan to restoring the data within no time.

If you’d like to know how to maintain and manage your oVirt cloud infrastructure with high uptime and stability, feel free to contact us.

 

LATEST - WHMCS PLUGIN FOR OVIRT

Efficient 2-in-1 WHMCS plugin for managing your oVirt VMs easily

CLICK HERE FOR WHMCS OVIRT PLUGIN

var google_conversion_label = "zWG9CLOojHIQ0aD71QM";

0 Comments

Submit a Comment

Your email address will not be published. Required fields are marked *

Never again lose customers to poor
server speed! Let us help you.

Privacy Preference Center

Necessary

Necessary cookies help make a website usable by enabling basic functions like page navigation and access to secure areas of the website. The website cannot function properly without these cookies.

PHPSESSID - Preserves user session state across page requests.

gdpr[consent_types] - Used to store user consents.

gdpr[allowed_cookies] - Used to store user allowed cookies.

PHPSESSID, gdpr[consent_types], gdpr[allowed_cookies]
PHPSESSID
WHMCSpKDlPzh2chML

Statistics

Statistic cookies help website owners to understand how visitors interact with websites by collecting and reporting information anonymously.

_ga - Preserves user session state across page requests.

_gat - Used by Google Analytics to throttle request rate

_gid - Registers a unique ID that is used to generate statistical data on how you use the website.

smartlookCookie - Used to collect user device and location information of the site visitors to improve the websites User Experience.

_ga, _gat, _gid
_ga, _gat, _gid
smartlookCookie
_clck, _clsk, CLID, ANONCHK, MR, MUID, SM

Marketing

Marketing cookies are used to track visitors across websites. The intention is to display ads that are relevant and engaging for the individual user and thereby more valuable for publishers and third party advertisers.

IDE - Used by Google DoubleClick to register and report the website user's actions after viewing or clicking one of the advertiser's ads with the purpose of measuring the efficacy of an ad and to present targeted ads to the user.

test_cookie - Used to check if the user's browser supports cookies.

1P_JAR - Google cookie. These cookies are used to collect website statistics and track conversion rates.

NID - Registers a unique ID that identifies a returning user's device. The ID is used for serving ads that are most relevant to the user.

DV - Google ad personalisation

_reb2bgeo - The visitor's geographical location

_reb2bloaded - Whether or not the script loaded for the visitor

_reb2bref - The referring URL for the visit

_reb2bsessionID - The visitor's RB2B session ID

_reb2buid - The visitor's RB2B user ID

IDE, test_cookie, 1P_JAR, NID, DV, NID
IDE, test_cookie
1P_JAR, NID, DV
NID
hblid
_reb2bgeo, _reb2bloaded, _reb2bref, _reb2bsessionID, _reb2buid

Security

These are essential site cookies, used by the google reCAPTCHA. These cookies use an unique identifier to verify if a visitor is human or a bot.

SID, APISID, HSID, NID, PREF
SID, APISID, HSID, NID, PREF