Archive for August, 2007

Multiple full VM backups using VCB, rsync, OpenSSH and VSS

Friday, August 31st, 2007

The problem

Our shiny new VI3 setup works really well, but the backup chapter still needs work. I P2V-ed all our Linux boxes to VM’s, so the existing rsnapshot file level backups still run. So far so good.
But, in addition to file level backups, I also want full VM backups, each day, both on-site and off-site. As a matter of fact, I also want some sort of versioning system, to have multiple, full VM, off-site backups. I don’t want to install some mega expensive disk array that contains X times the ~900 Gb of space all my raw VM’s suck up.
What I want is a very simple, efficient and elegant setup, without all kinds of fancy stuff and graphical bells and whistles. I’m running UNIX systems for a living so I’m not afraid of console utilities.

After doing some research I was unable to find any existing solutions, and the ones that come close are commercial and expensive, or require too much complicated crap to be installed.

The solution

Our VMware license includes a license for VMware Consolidated Backup (VCB). Being a great company, VMware has plugins and manuals for all the major closed source, expensive, buggy black boxes enterprise backup suites, but documentation about their command line tools is pretty lame and comes down to one louzy console screen of help text.
Luckily, it seems that in order to make full VM backups you actually need just one command (vcbMounter.exe).

Since the open source program rsync has served me really well in the past, I decided to use it again for our VMware backups.
My setup uses two machines (Windows 2003 Server, as VCB runs only on Windows), one machine hooked up to our SAN, running the VCB software, and one off-site machine housing the archive. Both machines are modest 1U Supermicro boxes, with 4 x 1 Tb SATA in RAID5, on Areca controllers. They are connected via our dedicated WAN link at 100Mb/s.

It basically comes down to:

  1. Full VM backups are created locally with VCB; old backups are first deleted (because VCB refuses to overwrite old backups)
  2. The new backups are transferred to the remote site efficiently and securely using rsync and OpenSSH
  3. The off-site server uses Volume Shadow Copy to create a history of full VM backups

Steps 1 and 2 are done using this batchfile (rename to .bat/cmd).
By using the ––inplace option, we actually update the old backup files on the remote server. This is an important details, because without it the file would be deleted and recreated, thereby killing the efficiency of the VSS part later.
The rsync algorithm will cause only the diffs to go over the line. The backup of all our VM’s together here is about 500 Gb (VCB strips out redundant unused space, saving about 400 Gb already at this stage.
The link to our remote site is 100 Mbit/s, so in the theoretic, most optimistic approach this can transport 36 Gb/hour, which would make the synchronization take at least 13-14 hours. In practice it will be even longer, and thus impratical to use.
Using rsync, only the diffs are sent over the line.
Our situation, with 10 VM’s running website, e-mail, database, fileservers, applications etc, the first results show that the daily diffs are somewhere between 20 and 30 Gb. This would theoretically take less than a hour to transport.
The practical situation is alot different. Although the actual amount of data is reasonably small, running rsync with its sliding checksums on half a terabyte of binary chunks takes also hours.
My real-world example show that the VCB backups themselves take about 1.5 hours to execute, yielding a directory with ~500 Gb of backups. This then gets rsync-ed to the remote site, which takes 5-8 hours (a seen during the last week). This is a workable solution for a daily schedule.

The partition that houses the data on the remote server has Volume Shadow Copy enabled, and creates Shadow Copies daily at the appropriate time (30 minutes before the other site initiates the rsync step).
The following picture shows that we now have 5 full copies available of our 500 Gb directory, but instead of an extra 5 x 500 Gb = 2.5 Tb, it merely takes up an extra 120 Gb:
shadow copies dailog box on w2k3

At this stage we’ve got:

  • Daily full backups of our VM’s on-site
  • Multiple full backups of our VM’s off-site

Caveats

  • To prepare everything, I need a full copy of the 500 Gb tree on both machines. Initially I planned on using rsync and OpenSSH, but it turned out that the OpenSSH daemon on Windows is very slow. With my systems (dual Xeon 3 GHz etc) connected via gigabit, the throughput maxed out at about 6-7 Mb/sec (Linux to Linux: > 30 Mb/sec).
    Instead of using rsync/OpenSSH, I simply mounted the disk with CIFS and copied over the whole tree.
    Subsequent tranfers are already limited to about 12 Mb/sec because of our uplink speed, but that is not a poblem in the real world scenario.
  • I have used the cwRsync package to install rsync and OpenSSH on Windows. OpenSSH with public key authentication between two Windows systems is possible and runs perfectly fine, but setting things up can be a bit hairy, especially if you’re used to UNIX systems…
  • To secure things, you should restrict access to the OpenSSH daemon; I have used the buildin Windows Firewall to accomplish this, and it works fine.
  • This article describes only half of the story. The other half is called restore. The Vcb utility to restore VM’s that comes with VCB (vcbRestore.exe) is pretty buggy and inflexible. It is hard to restore VM’s to a different place or with a different name. As some people have found out, it is possible to use VMware Converter to convert restore VCB backups to a different system (VMware ESX, server, Workstation, etc), but even despite VMware now claiming Converter can do it, this step still requires manual fiddling with vmx and vmdk files.
    I have recently updated VMware Converter to 3.0.2u1 build 62456, and now everything works like a charm :-)
    It is installed on the same machine as VCB, so Converter has direct access to the backups. The restoration process is very straighforward and easy to understand. The software allows you to change the disksize of the restore VM, the datastore where the VM will be put, and the name. This name is then reflected at low-level, so not only the ‘friendly name’, but also the VMDK files have this new name. I have restored several machines and it worked without glitch. The only downside is that the restoration process takes places over the network, which is a bit slower than the backup process, which is done over fibre channel. But with gigabit ethernet restoring a small VM of 4Gb only took a few minutes.
    This way of restoring also allows you to restore a VM onto a totally different system. This might come in handy for Disaster Recovery, where you might be forced to revive a VM onto VMware server or even on VMware Workstation.

Kees de Kort

Friday, August 17th, 2007

Kees de KortKees de Kort, een financieel analist van AFS Vermogensbeheer, wordt dagelijks om kwart voor twaalf aan de tand gevoeld op het radiostation BNR (Business New Radio) over de situatie op de beurzen. Het audio archief van zijn column staat hier.

Zijn stijl is realistisch, maar wordt ook vaak betiteld als negatief. Ooit werd hij door een interviewer aangekondigd als “het pessimistisch geweten van beleggend Nederland”. Misschien is de waarheid niet altijd leuk.
Volgens BNR is het met Kees de Kort als met schimmelkaas: je houdt er van of je vindt het vreselijk.
Het cynisme van De Kort wordt door diverse BNR-medewerkers wel gewaardeerd, te horen aan het ingehouden gegniffel van ze tijdens de dagelijkse interviews.

Kees laat zich nooit uit zijn tent lokken, hoewel diverse presentatoren dat proberen. In het bijzonder Paul van Liempt wil nog wel eens een poging wagen, zoals te horen in de uitzending van 16 mei 2011.

Sinds maart 2010 heeft hij ook een weblog.

Zijn stijl kan het best aan de hand van enkele gevleugelde uitspraken worden geïllustreerd:

  • Rien ne va plus, het geld is niet meer van U
  • Je kunt geen tegel oplichten of er hebben mannetjes onder gezeten om prijsafspraken te maken
  • De beleggers hebben weer allemaal een roze bril op vandaag
  • Hoe goed gaat het in de chipmarkt als Intel zijn prijzen moet halveren? Mij lijkt het extreem slecht nieuws, maar ik ben maar een eenvoudig econoom
  • Het gaat niet slecht, dus goed
  • Begrijp niet hoe het kan, maar profiteer ervan
  • Dit doet me een beetje denken aan Bhagwan, als je het honderd keer zegt ga je het zelf nog geloven
  • Door dat hete weer hebben de beleggers zo te zien massaal een zonnesteek gekregen
  • Er zijn maar twee oplossingen mogelijk: verlies nemen, en verlies nemen
  • Als je bereid bent om op basis van dit soort cijfers te geloven dat het leed voorbij is, dan geloof je ook dat de baby’s door de ooievaar gebracht worden
  • Als je gewoon de krant leest kun je dat zelf zien – dus ik heb het idee dat de aandelenmensen niet verder komen dan de stripverhalen, en dat de rente- en valutamensen de krant echt lezen
  • Een “grote belegger” is een particulier met meer nullen
  • Niet beleggen is ook beleggen
  • Bij mensen die NU nog kopen zit er niets meer tussen hun ogen en de achterkant van hun hoofd
  • Die beleggers zijn als ze slapen slimmer dan als ze wakker zijn
  • In de ogen van de aandelenmannetjes zijn hoop en realiteit synoniemen
  • Extend and pretend, delay and pray
  • Aandelenporno
  • Nout en Wout doen alles fout
  • If you panic, panic first

Een andere Kortiaanse typering is het zogenaamde “kakkerlak-effect”, wat de laatste tijd van toepassing is op de omvallende Amerikaanse hypotheek verstrekkers: je ziet er een, maar je weet zeker dat er nog veel meer zijn.

Een ander ding waar De Kort zich, in tegenstelling tot een hoop beleggers, zorgen over maakt is de koers van de Amerikaanse dollar. Die gaat langzaam maar zeker omhoog. De reden waarom dit zo weinig aandacht van beleggers krijgt is dat deze beweging bijzonder langzaam is. Langzaam maar zeker, zoals onderstaand meerjarig grafiekje laat zien:

Dollar koers afgelopen 5 jaar

2008-11-17 De koers gaat door de kredietcrisis weer flink omlaag…

De problemen op de Amerikaanse vastgoedmarkt werden geruime tijd geleden al voorspeld door Kees. Bijvoorbeeld in zijn column van 27 april 2006:

“Mijn schatting is dat er in de loop van 2006 in de Amerikaanse huizenmarkt enorme schandalen bekend gaat worden, want daar hebben creatieve financiers de gekst mogelijke dingen uitgehaald. Bijvoorbeeld mensen die niet kunnen lezen fijn leningen laten afsluiten. [...] Zolang de rente laag blijft kan iedereen dat behappen, maar zodra die omhoog gaat komen de verhalen over huisuitzettingen, oma’s die in auto’s moeten gaan wonen, en kinderen die op straat gezet worden. Nu is dat nog net niet zover maar als die korte rente doorstijgt gaat dat wel gebeuren.”

Het heeft wat langer geduurd dan eind 2006, maar nu lijkt het helaas toch waarheid te worden.

Google Mini rack rails

Friday, August 3rd, 2007

Google Mini v.2Recently we decided to ditch the Mnogosearch search-engine and go for a Google Mini.

We haven’t configured it so I have no idea if or how it works. What I do know, is that you don’t get any rails to put it into a 19 inch rack. Since Google does not sell separate rails, you’re left with sticking it in the rack by its ears (example here). Since the box is small and light (hence the term “mini”) you could pull this off, but I found this rather unprofessional and crappy. I wanted to have rails, also because all the other servers have them too ;)

I went to my local hardware shop (Magna Computers) and tried several sets of rails. None of them would fit without modification, but eventually I found one that needed only 1 extra hole in each rail. These rails ship with 19 inch Chenbro server cases, and have product-id 84-210710-024.

Google mini mounted in rack rails

The rails are 26 inch deep, and fit very nicely into our Dell rack.