Virtually Prepared

…leaving your physical world virtually behind

The default action with VMware ESX(i) when applying a snapshot is to create the relevant snapshot files in the working directory of the virtual machine. In an environment using VMFS datastores with a single block size across all LUNs this works fine however; where datastores exist for specific applications requiring large VMDK files an issue can occur.

Scenario

datastore-1 formatted with 1mb block size for VMDKs < 256gb hosting a virtual machine ‘C:’ drive, circa 40gb.

datastore-2 formatted with 2mb block size for VMDKs > 256gb & < 512gb hosting a virtual machine ‘E:’ drive, circa 350gb.

VMware VCB or an administrator (in this case Mr Snappy) issues a snapshot.

Snap Happy Crocodile

Mr Snappy with the VMware Admin handbook

The snapshot will fail to apply and return an error to the VI client console or to VCB.

The resolution

A new datastore will need to be created and formatted with a block size equal to the datastore where the large VMDK file resides. Power down the guest operating system / virtual machine then add an additional line to the virtual machine VMX file, this being:

workingDir=”/vmfs/datastore-name/”

Finally, the virtual machine will require re-registering. Either remove it from the inventory then browse the datastore to add it back in or use the vmware-cmd -s at the command line. Whichever way you feel more comfortable with. If you’re not using the vMA but need the command line for ESXi see this article to get an SSH console.

Further reading can be found within VMware KB article 1002929.

There’s a lot of discussion in the community regarding the new VCAP Beta exam. If you’re not sure what this VCP potential step up is here’s a 3 page headline review.

JPEGS or PDF at the bottom.

VCAP Page 1 of 3

VCAP Page 2 of 3

VCAP Page 3 of 3

PDF version HERE

The 100mb Windows 7 and Windows 2008 System Recovery Partition typically sits as the first partition on a disk which is enough to confuse VCB and cause it to fail, so it needs to moved (not removed) and here’s how.

Before running this in the live environment the virtual machine should be powered off AND backed up, of course I know you’d do that anyway.

Steps to follow:

  1. Power on the virtual machine and log in with an administrative account.
  2. Open a Command Prompt.
  3. Type diskpart and press ENTER.
  4. Type select vol c and press ENTER.
  5. Type shrink desired=100 and press ENTER.
  6. Type list vol to verify that volume C is still selected and press ENTER.
  7. Type Create Part Primary and press ENTER.
  8. Type List vol to verify that the new 100mb volume is selected and press ENTER.
  9. Type Format fs=ntfs quick and press ENTER.
  10. Type Assign letter r and press ENTER.
  11. Type Select vol 1 (1 is typically the existing boot partition