Archive

Posts Tagged ‘VCB’

Move to the Ghetto

September 25, 2009 1 comment

So,

After ‘playing’ around in the VMWare backup world for a little while, I stumbled across this page:

http://communities.vmware.com/docs/DOC-8760

This is the page of the rather excellent ghettoVCB.sh script, written by William Lam.

Here you’ll find complete instructions on how to execute VCB-style backups from either ESX or ESXi (including the free version). The logic is essentially the same as the normal VCB ‘fullvm’ backup:

  • Snapshot the Guest VM
  • Copy all of the VM data to another location
  • Delete the Guest VM snapshot

The process is also insanely quick. One of my clients wanted to see how it would perform in their environment, so we did a little testing.

Currently, they are using the VCB Framework, installed on a Windows XP machine, to backup VM Guests to a CIFS share. This is essentially using the vcbMounter.exe like this:

VCBMOUNTER.EXE -h [ESX Server IP] –u [ESX Username] -p [ESX User Password] -a name:”[Name of VM Guest]” -r “[Destination Path]” -t fullvm -m nbd

They are using the ‘nbd’ method, as the VM Guests are stored on local disk in the ESXi Server, so there’s no option to use the ‘san’ mode. Their normal destination is a small single disk NAS, which whilst cheap, is a bit limited in performance terms. But it’s OK for their current needs.

For testing purposes, we changed the destination to an 8-disk SATA NAS (a QNAP TS-809U-RP). This is because previous testing has shown that it’s got some good raw performance:

QNAP Performance

This is recorded from the perspective of the switchport, so ‘Outbound’ (leaving the switch) is write performance. It’s around:

  • 700 Mbits/s Write
  • 950 Mbits/s Read

Which should mean that it’s good enough for our testing purposes…

So running their normal backup (of all their Guest VMs) to this location gives us a network profile that looks like this:

VCB-Backup

The section highlighted in red is a 200GB vmdk of one of the VM Guests.

  • 200GB in 4 hours = 50GB / Hour

So what did we get when we ran the ghettoVCB.sh script?

Well, this graph shows the backup of just one Guest VM:

ghettoVCB-Backup

The red highlight section is the same 200GB vmdk file.

  • 200GB in 40 minutes = 300GB / Hour

The performance was (*cough*) slightly better. In fact, 600% better!

They were certainly pleased.

I should say that there is a little gotcha in all of this. The CPU on the ESX server can still be a limiting factor. These tests were performed using an HP DL380 G6 (1 x Quad-Core Intel 5530 2.4GHz).

I repeated some similar tests in our office lab using a Sun Fire X4100 (2 x Dual-Core AMD Opteron 285 2.53GHz) and the maximum speeds I could get were in the 300 Mbits/s (135GB / Hour) range. It’s not the number of cores or the CPU speed, it’s simply the fact that the latest generation of Intel Processors appear to be rather good…

What’s the conclusion?

All of this testing was done on ESXi (and ESX) 4.0, where is appears that VMWare may have introduced ‘some issues’ when it comes to ‘nbd’ / Service Console backups:

http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=1012159

If you’re using VCB in the ‘nbd’ mode, then maybe it’s time to think about some other strategies. Especially if you’re about to upgrade from ESX 3.5 to ESX 4.0

Your backup strategy may be influenced by other factors, but for my money, maybe it’s time we all moved to the Ghetto?

G.

Categories: VMware Tags: , ,

VMWare, Backup and VCB

September 23, 2009 Leave a comment
VMWare, Backup and VCB
(The Good, The Bad and The Ugly)
I hate Backup.
Actually, that’s not entirely true. I hate having to ‘do’ backups. After too many years in IT, I know the value of having good backups. But it doesn’t change the fact that I hate having to perform and manage them.
I love VMWare.
Without a shadow of doubt, I love working with VMWare for the simple fact that it makes my life easier.
So now I find myself in the dubious position of having the reconcile my love / hate relationship between VMWare and Backup. In my role as a Consultant as Scale Abilities, I’m often asked by clients what they should do with regards to VMWare backups. How long is that piece of sting..?
The problem is that there are almost too many ways to address the question. Agents in the VM Guest? Tape or disk? D2D2T? SAN Snapshots? Fibre attached or iSCSI? Vendor A vs Vendor B? What’s the recommended ‘Best Practice’?
As a company, we’ve banned the use of the phrase ‘Best Practice’, because at the end of the day, every client’s situation is different. What you should be asking is, what’s the ‘Right Practice’.
The ‘Right Practice’ is a lot of cases is the balance between cost vs functionality. I like to keep the costs low, as do the majority of our clients. So this is why VMWare’s Consolidated Backup (VCB) is often the backup choice in many situations.
I like it, because one of the tools, vcbMounter, is included in ESX and it lets me take backups. This seems like a good start for a backup tool…
For myself, I like the simplicity of just taking a full image-based backup of my VMs. Then I’ve got everything I need should a want to restore them. You can keep your incremental / differential backups; I’m sure they have their place, but I want the whole thing, every time.
I also don’t like tape (picky aren’t I?). The stuff always keeps going wrong, which isn’t a good recommendation for a backup technology. It’s also really, really expensive.
LTO4 tapes, which hold about 800GB native, are about £50 each. Doesn’t sound like much right? But what about the cost of the LTO drive? Or more normally, the cost of an autoloader as no-one want to be swapping tapes at midnight…
So say you had to backup 2TB of data, you’d probably need something like:
3 x LTO4 Tapes = £150.00
1 x 1/8 HP LTO4 Autoloader = £3200.00
1 x SAS HBA = £100.00
1 x NBD Hardware Support = £300.00
Total = £3750.00
That’s your initial investment to backup 2TB data. If you want to keep historical backups, it’s £150 each time for another set of 3 LTO4 Tapes.
So what’s the alternative? Well, I’m a big fan of disk. You can now pickup a small 2TB NFS NAS for less than £400.
So with disk, what do we need to backup 2TB of data?:
1 x 2TB NFS NAS = £400
Total = £400
Hummmm… I’d struggle to justify the tape solution to a client!
Need to keep historical backups? Cool, buy another NAS. Buy another 8 and you’ll still be better off!
Want to keep monthly backups? Well, that’s 36 LTO4 Tapes (3 per month), so now your backup costs are:
36 x LTO4 Tapes = £1800.00
1 x 1/8 HP LTO4 Autoloader = £3200.00
1 x SAS HBA = £100.00
1 x NBD Hardware Support = £300.00
Total = £5400.00
The disk / NAS costs are still less than that of tape:
12 x 2TB NFS NAS = £4800.00
Total = £4800.00
Oh yes, and that’s just hardware costs… Backup to tape almost certainly means that you need some backup software at some stage, so just throw another £500-£1000 in there. And of course, we all know how reliable those tapes are… They never break do they?
Why is all of this important? (Besides the cost saving aspect) Well, it means that with tape out of the equation, we can just use vcbMounter to make our backups straight to disk. Yay!
Again, there are still plenty of ways to skin the cat, but my preference is:
1. Mount the NAS as an NFS datastore
2. Run your vcbMounter backups
3. Unmount the NAS
All of this is easily scriptable and can be done on the ESX Server.
The performance is dependant on a combination of your NAS and ESX Server CPU.
As an example, I know that our NetApp SAN will happily do 900 Mbit/s without breaking a sweat. So using this for testing, means that we can eliminate NAS performance. So backing up a 20GB VM Guest, the network performance looks like this:
Although it’s not a very scientific test, checking out the CPU performance on ESX server, shows that the ‘host’ process is hammering the CPU. But interesting, it seems to be limited to one core, so actually may not impact VM Guest performance as much as you might think…
The key to all of this is to make sure that you get the ‘right’ NAS, that supports NFS at the performance levels you need.
Some cheaper NAS devices, which claim to support NFS, are sadly limited in their performance. Make sure that you do some testing first to ensure that you get what you need.
And remember, there’s no ‘Best Practice’, only ‘Right Practice’.
Simples.
G.

(The Good, The Bad and The Ugly)

I hate Backup.

Actually, that’s not entirely true. I hate having to ‘do’ backups. After too many years in IT, I know the value of having good backups. But it doesn’t change the fact that I hate having to perform and manage them.

I love VMWare.

Without a shadow of doubt, I love working with VMWare for the simple fact that it makes my life easier.

So now I find myself in the dubious position of having the reconcile my love / hate relationship between VMWare and Backup. In my role as a Consultant as Scale Abilities, I’m often asked by clients what they should do with regards to VMWare backups. How long is that piece of sting..?

The problem is that there are almost too many ways to address the question. Agents in the VM Guest? Tape or disk? D2D2T? SAN Snapshots? Fibre attached or iSCSI? Vendor A vs Vendor B? What’s the recommended ‘Best Practice’?

As a company, we’ve banned the use of the phrase ‘Best Practice’, because at the end of the day, every client’s situation is different. What you should be asking is, what’s the ‘Right Practice’.

The ‘Right Practice’ is a lot of cases is the balance between cost vs functionality. I like to keep the costs low, as do the majority of our clients. So this is why VMWare’s Consolidated Backup (VCB) is often the backup choice in many situations.

I like it, because one of the tools, vcbMounter, is included in ESX and it lets me take backups. This seems like a good start for a backup tool…

For myself, I like the simplicity of just taking a full image-based backup of my VMs. Then I’ve got everything I need should a want to restore them. You can keep your incremental / differential backups; I’m sure they have their place, but I want the whole thing, every time.

I hate tape.

The stuff always keeps going wrong, which isn’t a good recommendation for a backup technology. It’s also really, really expensive. You don’t believe me?

LTO4 tapes, which hold about 800GB native, are about £50 each. Doesn’t sound like much right? But what about the cost of the LTO drive? Or more normally, the cost of an autoloader as no-one want to be swapping tapes at midnight…

So say you had to backup 2TB of data, you’d probably need something like:

  • 3 x LTO4 Tapes = £150.00
  • 1 x 1/8 HP LTO4 Autoloader = £3200.00
  • 1 x SAS HBA = £100.00
  • 1 x NBD Hardware Support = £300.00
  • Total = £3750.00

That’s your initial investment to backup 2TB data. If you want to keep historical backups, it’s £150 each time for another set of 3 LTO4 Tapes.

So what’s the alternative? Well, I’m a big fan of disk. You can now pickup a small 2TB NFS NAS for less than £400.

With disk, what do we need to backup 2TB of data?:

  • 1 x 2TB NFS NAS = £400
  • Total = £400

Hummmm… I’d struggle to justify the tape solution to a client!

Need to keep historical backups? Cool, buy another NAS. Buy another 8 and you’ll still be better off!

Want to keep monthly backups? Well, that’s 36 LTO4 Tapes (3 per month), so now your backup costs are:

  • 36 x LTO4 Tapes = £1800.00
  • 1 x 1/8 HP LTO4 Autoloader = £3200.00
  • 1 x SAS HBA = £100.00
  • 1 x NBD Hardware Support = £300.00
  • Total = £5400.00

The disk / NAS costs are still less than that of tape:

  • 12 x 2TB NFS NAS = £4800.00
  • Total = £4800.00

Oh yes, and that’s just hardware costs… Backup to tape almost certainly means that you need some backup software at some stage, so just throw another £500-£1000 in there. And of course, we all know how reliable those tapes are… They never break do they?

Why is all of this important? (Besides the cost saving aspect) Well, it means that with tape out of the equation, we can just use vcbMounter to make our backups straight to disk. Yay!

Again, there are still plenty of ways to skin the cat, but my preference is:

  • Mount the NAS as an NFS datastore
  • Run your vcbMounter backups
  • Unmount the NAS

All of this is easily scriptable and can be done on the ESX Server.

The performance is dependant on a combination of your NAS and ESX Server CPU.

As an example, I know that our NetApp SAN will happily do 900 Mbit/s without breaking a sweat. So using this for testing, means that we can eliminate NAS performance. So backing up a 20GB VM Guest, the network performance looks like this:

VCB - 20GB VM Guest Backup

VCB - 20GB VM Guest Backup

Although it’s not a very scientific test, checking out the CPU performance on ESX server, shows that the ‘host’ process is hammering the CPU. But interesting, it seems to be limited to one core, so actually may not impact VM Guest performance as much as you might think…

The key to all of this is to make sure that you get the ‘right’ NAS, that supports NFS at the performance levels you need.

Some cheaper NAS devices, which claim to support NFS, are sadly limited in their performance. Make sure that you do some testing first to ensure that you get what you need.

And remember, there’s no ‘Best Practice’, only ‘Right Practice’.

Simples.

G.

Categories: VMware Tags: , ,
Follow

Get every new post delivered to your Inbox.