vividly nonsensical
it just makes nonsense
Black Green Blue Red Gold
RSS
  • Home PageHome
  • About
  • Pix
  • Useful Stuff
  • VMWare Sites

Posts Tagged ‘snapshot’

Cloning VM’s with multiple disks fail

tech, vmware 0 Comment »

So I’ve had the problem in the past where I need to remove very old snapshots for ESX virtual machines and eventually after hours of merging it fails with no apparent reason.  Recently I was looking into how I could get aroudn this.  The idea I was testing was to use Converter Enterprise to esentially do a V2V.  That way, if the conversion failed I will still have the original machine in its old working state.

After starting this process on a test VM, after 3 hours of converting it failed.  The logs gave me the following:

UNKNOWN_METHOD_FAULT(vim.fault.NotAuthenticated)

I stumbled upon a post on the vmware communities that suggested I try the following

When setting up the conversion, don’t use “convert all disks and leave current size”, use “select volumes…” and leave all volumes selected and the default options checked.

I gave it another try and voila! Conversion worked without error.

I wonder if multiple disks has anything to do with the snapshot merging problems I’ve had so many times.  As I attempt to remember specifics of all past failed attempts, I believe they’ve all had multiple disks.  Maybe that was the problem all along?  As long as this Plan B works I’m happy!

  • Share/Save

February 26th, 2009  
Tags: ESX, snapshot, VI, virtual infrastructure, vmdk, vmware



Your kernel was built with gcc version 4.2.3 while you are trying to use gcc version 4.2.4

linux, tech, vmware 0 Comment »

Strange VMware Tools issue while upgrading one of my Ubuntu 6.06.2 VMware Guests to Ubuntu 8.04.1.  The Ubuntu upgrade itself seemed to go just fine, but installing the updated VMware Tools gave me an error:

Your kernel was built with "gcc" version "4.2.3", while you are
trying to use "/usr/bin/gcc" version "4.2.4". This configuration
is not recommended and VMware Player may crash if you'll continue.
Please try to use exactly same compiler as one used for building
your kernel. Do you want to go with compiler "/usr/bin/gcc"
version "4.2.4" anyway? [no]

It didn’t take very long to find a thread about this – http://ge.ubuntuforums.com/showthread.php?t=963825.  I took the suggest of some of the users here and chose YES.  SNAPSHOT YOUR MACHINES BEFORE YOU TRY SOMETHING UNPROVEN!

Well now it complained that it couldnt locate the Linux C Header files:

The header files in /usr/include are generally for C libraries, not for the
running kernel. If you do not have kernel header files in your /usr/src
directory, you probably do not have the kernel-source package installed. Are yousure that /usr/include contains the header files associated with your running
kernel? [no]

Weird.  So now I had to manually install the Linux Headers.  I did this by issuing:

apt-get install linux-headers-`uname -r` build-essential

I now re-ran perl /usr/src/vmware-tools-distrib/vmware-install.pl.  I again of course had to tell the installer to continue compiling using gcc 4.2.4, but now it didnt complain about the C headers. The install completed successfully.

  • Share/Save

December 2nd, 2008  
Tags: gcc, linux, snapshot, Ubuntu, vmware



Backup ESX 3.5 with Asigra Televaulting

tech, vmware 0 Comment »

My approach to backing up guest VM’s from ESX3.5 is two-headed:

  • Backup the data like you would a normal machine by attaching via SMB, NFS, SQL, etc.  Just get the data
  • Backup the Guest VM via the ESX host (pull a bare metal snapshot of the entire system)

Why backup everything twice you ask?

Well fortunately for you and unfortunately for me I have a real world experience that will help answer this question. I had a vm guest failure and had to rebuilt a vm then restore data and settings.  Suffice to say this took forever. So here’s why you can do both…

  • If data is deleted you have backup sets that have just pure data – files that are used by applications and users. If a single file gets deleted, corrupted, or anything else _bad_ the restore for this file(s) is quick and easy.  Restoration of this file(s) doesn’t need to affect every other user connected to the system in question.
  • If the OS becomes unusable, system files fail, vmdk (virtual disk) files on the host get corrupted then you now have the full machine backup to simply turn back on from date X/Y/Z. Asigra actually takes a native ESX snapshot at the time of backup.

Using Asigra Televaulting (or a small handful of other backup systems) allows us to perform backups that are compressed and bit level.  So, if I have a VM that has a 20GB vmdk disk, but really only has 8GB of data in the guest system, then the backups will actually be less than 8 because all that free space will be compressed down to nothing and then the 8GB of real data will further be compressed down.

My schedules are now setup to backup real data each night, but backup the OS (again using the native ESX snapshot) once a week.  For the most part, system settings and configurations aren’t happening each day. So, if the guest VM dies, I can simply restore the VM to the last weekly backup (as of at the most 6 days) then restore the real data to to that machine (as of at the most the night before).

  • A note for Asigra users – I’ve had a lot of problems backing up via VI.  So far attaching directly to the ESX hosts seems to be working great.  The one fallback for this is you need to setup rules to ensure that VM’s stay on the same ESX host.  Asigra only knows that a guest VM is on the host you originally configured it to be backed up from.
  • Share/Save

November 11th, 2008  
Tags: ESX, snapshot, VI, vmdisk, vmdk, vmware



32 vmware snapshots debacle

tech, vmware 0 Comment »

So I was having some pretty significant performance problems with a vm running Windows Server 2003.  I thought it might be due to the fact that I had so many snapshots.  Fellow ESX admins over at the VMWare communities confirmed this to be the case.

So my next step would be to combine all the snapshots and get rid of my delta’s by committing them all. I was going to run some guest updates first, so I again as always, made a snapshot. Something either guest or host related happened and the guest powered off.  When I went to turn it back on VI complained:

too many levels of redo logs

uh oh! the guest wouldn’t turn on!  it turns out that this snapshot was in fact the 35th snapshot taken for this machine. This 35th snapshot didn’t complete correctly and was corrupted. it also turns out there is a 32 snapshot limit for VM guests.  Good to know VI tells you about this! <sarcasm included>

After frantically searching the web and forums for a solutions someone pointed me in the direction of a post here: http://zealkabi.blogspot.com/2008/10/virtualcenter-shows-no-snapshot-but-it.html which clearly shows the process i need to use to commit my snapshots, specifically Solution B:

If solution A did not work then next step to follow is: use vmkfstools -i to consolidate snapshots.
1. You can export the disk with vmkfstools to recreate the virtual machine:
2. Execute the following command to create a directory for the new disk:\
# mkdir /vmfs/volumes/UUID/new_RHEL5
3. Execute the following command to point vmkfstools at the last snapshot file:
# vmkfstools -i RHEL5-000001.vmdk /vmfs/volumes/UUID/new_RHEL5/new_RHEL5.vmdk

Three hours later, snapshots 32 through 1 committed and a single vmdk.  While this commit process was running I realized i could have simply told VI to run vmdisk00032.vmdk instead of the final (and corrupt) vmdisk00035.vmdk.  this would have been the quick resolution to get me back up and running, and I could have don the snapshot committal at a better time.

Huge thanks to patrickds from the VMWare communities and SANJAT KABI (http://zealkabi.blogspot.com) for their knowledge!

  • Share/Save

November 3rd, 2008  
Tags: ESX, snapshot, VI, vmdisk, vmdk, vmware





  • Recent Tweets

    • New post from Kishmish - Social Media - The hammer and nail syndrome -> http://digs.by/dydjhP 4 hrs ago
    • an automated phone system just told me "an unrecoverable application error just occurred. goodbye." #fail 1 day ago
    • planning a route between DC, Laurel and Baltimore via rail is proving to be a challenge :/ 1 day ago
    • RT @BreakingNews: Rodney King is engaged 2 a member of jury that awarded him a $3.8m settlement in police beating case http://bit.ly/a7zdjF 1 day ago
    • What's the point of an error code if that code doesn't actually mean anything at all? 1 day ago
    • jirc.com update to WP 3.0.1 went smoothly 1 day ago
    • XM's method to retain cancelling customers: Put on hold for 15 minutes, transfer 3 times, and don't speak english. Their #WIN my #FAIL 1 day ago
    • is today's google logo really necessary? Thanks for halting my machine with your AJAX 1 day ago
    • A lady just walked into the restaurant that looks just like Viigo from ghostbusters 2 4 days ago
    • RT @tinkugallery: Common sense is not actually that common. < true dat 5 days ago
    • unknown errors are the best 5 days ago
    • Why did microsoft make it such an order to import/export mailboxes in exchange 2010? #wasteoftime 5 days ago
    • More updates...
  • My Links

    • asigraforums.com
    • kishmish.com
    • robibanerjee.com
    • webdevmatt.com
  • Recent Posts

    • Exchange 2010 SP1 Install – Setup previously failed while performing the action “Install”
    • Asigra DS-Client on Ubuntu 10.04 LTS
    • Thanks for screwing us Sirius / XM
    • 4 must have Firefox Add-ons for the Sys Admin
    • Running 32bit applications on a 64bit IIS7.5 platform
    • Where did all the ODBC Drivers go from Windows Server 2008 64bit
    • Digsby and Ubertwitter – People just love to complain about free stuff
    • Outlook 2007 Active Directory account lockout (resolved)
    • The painful irony that is a Twitter outage
    • Pix
  • Tag Cloud

    32bit windows appliance Asigra bes blackberry calendar CallLogger Cymphonix DS-Client DSN dsuser ESX firewall firmware update firmware upgrade FreeBSD gcc Hardy Heron Ibex IIS linux microsoft ODBC Outlook patches professional server rim rsyslog Shuttleworth snapshot Social syslog Televaulting Twitter Ubuntu VI virtual infrastructure vmdisk vmdk vmware web edition web servers Windows Windows Server 2008
  • Categories

    • backup (1)
    • blackberry (3)
    • linux (4)
    • microsoft (7)
    • ramblings (11)
    • tech (26)
    • vmware (10)
  • Archives

    • August 2010
    • June 2010
    • February 2010
    • January 2010
    • December 2009
    • September 2009
    • August 2009
    • July 2009
    • June 2009
    • April 2009
    • February 2009
    • January 2009
    • December 2008
    • November 2008
    • October 2008
  • User Stuff

    • Register
    • Log in
    • Entries RSS
    • Comments RSS
    • WordPress.org
Avatars by Sterling Adventures
Categories
  • backup
  • ramblings
  • tech
    • blackberry
    • linux
    • microsoft
    • vmware
About Me

My name is Michael Varre and I'm a Systems Administrator for a small company in Syracuse, NY.

You'll find a variety of Technology related rants, raves, how-to's and general thoughts here at jirc.com.Read more

Copyright © 2010 vividly nonsensical All Rights Reserved XHTML CSS THEME by I SOFTWARE REVIEWS