Veeam has recently published a new version of its Backup Software: Veeam Backup & Replication Version 6.1. The last version I evaluated was around 2010. Back then it was definitely a great tool, but as my main environment is Linux based and veeam was lacking some features there I decided to stick with my old backup strategy.
Today I want to renew my view and test their current product. Please note that this review is focused on backing up Linux guests. Nevertheless if you are a Windows Admin, feel free to read on if you want to know why it sometimes could be a pain to backup Linux guests with VMware.
The first thing I am going to do is to just download the software and check out how intuitive the installation and configuration process will be. Later I am going to dig deeper into the functionality.
Part 1 – First Backup Job
Before we can start the installation we need to download the software. Downloading is very easy as veeam only provides one package, so the only decision is whether you need the 32-bit or the 64-bit version. Go to www.veam.com > Products > Veeam Backup & Replication > Download and select your architecture. You need to register to download anything, but it is free and quite quick.
To start the Installation you need to unzip the package which contains three files. The setup file we need is: Veeam_B&R_Setup_x64.exe. You should also get a license file sent by mail. This key is required during the installation. I am going to install the Backup client on my vCenter Server, so I copy both Files on my desktop and start the installation process. The installation is pretty straight forward. You just have to select the .lic file and enter your credentials. I leave everything else at its standard.
Before I start to prepare my guest I want to have a short look at veeams user interface. There is only one central interface, so I start Veeam Backup & Replication which is automatically placed on my desktop. First impressions can be quite important, right? The surface is absolutely neat. I remember other backup products which are full of buttons which might decrease the usability. Without knowing the software or reading any documentation I can anticipate what happens with every button. Make yourself a picture:
As mentioned earlier I want to backup Linux guests, so I create a new virtual machine and install a current Ubuntu Server 12.04. I am using the following configuration:
- Standard Installation
- One large partition (no LVM)
- One user with encrypted homedir
- VMware Tools with default configuration
- OpenSSH for remote access
For now I am not going to install any application because I want to test filesystem backups only. To make the backup more challenging I add a couple of virtual disks to the VM and create several filesystems:
- /dev/sda: System Disk (Swap and ext4)
- /dev/sdb with ext3 filesystem
- /dev/sdc with ext2 filesystem
- /dev/sdd: LVM (VG01)
- /dev/sde: LVM (VG01)
- Two Volumes inside VG01: lvmext3 & lvmext4
- /dev/sdf + /dev/sdg: Softraid (/dev/md0) with ext4 filesystem
Each filesystem is added to the fstab and mounted. To verify the restore I simply create a textfile on each mountpoint containing a small note. This is my final setup:
Back to veeam and create the first backup job. The first step is to add a server. This window automatically pops ups when clicking Backup Job without having anything configured. I select VMware vSphere which can be a vCenter server, or a standalone ESXi host.
Skip the next two steps. On the final Page, select Run the job when I click Finish and click Finish. You should end up at the main screen with a new backup job which has already started. Right-Click the Backup Job and select Statistics.
Backup finished. That was quite easy…
Part 2 – Restore the entire Virtual Machine
Having a Backup is nice. But a backup is worth nothing if you can’t restore it. Veeam inspires confidence due to its simplicity. So I don’t bother checking any backup logs. I just delete the entire virtual machine from my datastore and try to restore it:
After checking each mount I can confirm: The restore was successfull. This is what I expected, as doing snapshot backup is the same as just copying the entire virtual disk. It doesn’t matter what’s inside the virtual machine. From OS perspective it is like pulling the plug. And exactly this fact is what pulls my attention:
root@ubuntu:~# dmesg |grep EXT [ 10.740852] EXT4-fs (sda1): INFO: recovery required on readonly filesystem [ 10.741094] EXT4-fs (sda1): write access will be enabled during recovery [ 11.453016] EXT4-fs (sda1): recovery complete [ 11.482490] EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts: (null) [ 16.490773] EXT4-fs (sda1): re-mounted. Opts: errors=remount-ro [ 16.849404] EXT3-fs (sdb): using internal journal [ 16.849412] EXT3-fs (sdb): recovery complete [ 16.849417] EXT3-fs (sdb): mounted filesystem with ordered data mode [ 16.924447] EXT2-fs (sdc): warning: mounting unchecked fs, running e2fsck is recommended [ 17.526825] EXT3-fs (dm-0): using internal journal [ 17.526831] EXT3-fs (dm-0): recovery complete [ 17.526836] EXT3-fs (dm-0): mounted filesystem with ordered data mode [ 17.589590] EXT4-fs (dm-1): recovery complete [ 17.589598] EXT4-fs (dm-1): mounted filesystem with ordered data mode. Opts: (null) [ 18.394491] EXT4-fs (md127): recovery complete [ 18.418387] EXT4-fs (md127): mounted filesystem with ordered data mode. Opts: (null)
All filesystems need to recover their journal, which means that the filesystem was not in a consistent state. But the backup should be consistent, as we had activated the “Enable VMware Tools quiescence” option. So what happened?
Part 3 – Creating filesystem consistent backups
The “Enable VMware Tools quiescence” option we set is a standard snapshot switch which actually does nothing because the vmsync driver has to be manually activated. This is where the Windows guys can rely on VSS. Linux does not have anything comparable. To enable vmsync run the VMware Tools Configuration (vmware-config-tools.pl) again and enter yes when it asks for the VMware FileSystem Sync Driver.
If the config utility asks for gcc and make, just install these packages (apt-get install gcc make)
Please note that this driver is, as stated, in an experimental state. This feature is not documented at VMware. I also could not find this VMware Knowledge Base entry. So if you want to use it, do it at your own risk.
As you can see the filesystem can be mounted without recovering the journal, which means that it was backuped in a consistent state. There is only one warning with the ext2 volume. This is because ext2 does not have the journaling feature and cannot be quiesced. This is only a small disadvantage as ext2 is not state of the art. Ext3, the successor to ext2 is on the market since 2001.
Part 4 – File-Level Restore
The last thing I want to check out is the file level restore, which is definitely an important feature as most restores are files, not entire systems. To start the file-level restore I open the Restore Wizard again and select Guest files (other OS).
Which filesystems can be restored? Absolutely no issues with ext3 and ext4. Both filesystems are mounted in a consistent state and can be copied. The ext2 filesystem can also be restored, but the filesystem requires an fsck. I want to point out that even the LVM volumes can be restored, which is a really great feature. I didn’t expect that, as other backup vendors or older versions did not have this ability.
Only one filesystem cannot be restored. There was a softraid containing 2 virtual disks in a RAID0 stripe. This volume is gone. But is that bad? Ask yourself: Does it make sense to use a softraid inside a virtual machine? No. This is a really bad design idea and was only done to check whether it works or not. Don't worry about it!
Veeam Backup & Replication 6.1 is definitely a valid solution for creating Linux guests backups. But you have to familiarize yourself with the new backup style. One fact is what might be an issue: You do not have a backup agent inside your virtual machine to restore files. But exactly this fact is the new backup style.