Posts Tagged ‘VMware’

My Favourite Topic (or Yet Another Lesson in Snapshot-ology)

Thursday, April 29th, 2010

Another snapshot post. Who new snapshots could be this awesome.

Again, the situation is VCB failing to remove the snapshot it took of a VM when the backup job that kicked it off failed (because of lack of disk space in this case).

First, vcbSnapshot was used to try and remove it via the VCB proxy manually. For one reason or another, this failed and a Consolidate Helper- 0 snapshot is left behind. In the VI Client, it will show no snapshots in Snapshot Manager but a check of the VMDK targets show that the VM is indeed pointing to delta disks.

Tried taking a new snapshot manually to confirm the .vmsd file is not corrupt. The chain appeared good. Used:
vmare-cmd .vmx removesnapshots
and received the error:
unable to access file since it is locked

While looking into the problem, found these excellent resources for the undocumented vmkfstools -D switch which dumps file info to /var/log/vmkernel. It can be used to identify the owner of a file lock which could be causing the above error when trying to commit back the snapshot delta files:

http://vi3.org/download/guides/english/vi3/StoppingaVMandReleasingFiles.pdf
http://blog.core-it.com.au/?p=477

In this case, however, I didn’t go through the process – instead took the coward’s way out and used: service mgmt-vmware restart on the host that the VM was running on and then used vmware-cmd to commit the snapshots – worked fine this time.

So, I would expect that if I had used the -D switch on the VMDK’s attached to the VM, the owner would have eventually been the ESX Host Agent which would be locking the file on behalf of the VCB request. Must remember to go through the process next time to find out for sure…

Popularity: 7% [?]

VMware Consolidated Backup (VCB) 1.5 Update 2 / U2 Released

Saturday, March 20th, 2010

VMware Consolidate Backup (VCB) 1.5 U2 was released March 11, 2010. Release notes here. The release looks to be only fixes / resolved issues. Most (all?) known issues remain, didn’t take a look at it in depth.

Since data protection vendors are starting to release vStorage API for Data Protection products (Veeam Backup & Replication, Symantec NetBackup 7), VCB would likely begin to be phased out in many environments. Not that the vStorage API is a replacement for VCB as such, but it could be a good fit in many environments.

Popularity: 88% [?]

VMware vSphere Converter 4.0 U1 Cold Clone

Sunday, February 14th, 2010

This is my first look at the current release of converter (4.0.1), release notes here. Some of the new features in this version include support for Windows Server 2008 and RHEL, Ubuntu and SUSE, also a few good things around hot cloning.

The conversion I’m doing was of a Windows Server 2003 Ent 32-bit physical server running on an HP DL380 G5 into a VM running on vSphere 4.0 U1, virtual hardware version 7. The process is almost identical to the previous cold clone version, the livery has been changed to reflect vSphere and vCenter in all the relevant places but it flowed the same. As with all conversions, it’s a good idea to prepare the server before conversion by disabling hardware agents (e.g. HP Insight Agents) and anything not absolutely necessary for the server to boot the first couple of times

Two good things: firstly configuring network settings seemed more robust (could be just me). I’d had problems with the previous version of the cold clone image where the network settings either didn’t take or would for whatever reason just not connect. Secondly, the conversion of this particular server was really fast. The server itself had two very small disks but both were resized (72GB partition into a 20GB partition and a ~570GB partition into a tiny 10GB partition), but the process did seem to run much faster than previous servers of similar size that I’ve converted with the old cold clone CD.

Only one odd thing with the end result was the amount of memory the virtual machine was assigned. The server itself had 4GB physical memory of which Windows sees 3.75GB. The virtual machine was allocated 3220MB during he creation process, not sure why this would happen.

Popularity: 33% [?]

VMware ESX 4.0 U1 – Storage Pathing Policy Issue

Thursday, January 7th, 2010

While fixing up storage pathing through redundant FC adapters, noticed that one ESX 4.0 U1 host using Fixed (VMware) path selection policy had an Active (I/O) path for each presented LUN but did not have a Preferred adapter highlighted. Also, received the following error when trying to set the preferred adapter (under Datastore Properties -> Manage Paths -> right-click in Paths, select Preferred):

Unable to cast object of type ‘LogicalUnitPolicy’ to type ‘FixedLogicalUnitPolicy’

This was only happening on one host and was happening for every datastore and every type of storage presented to the host (local and remote).

To fix, selected the only local storage presented to this host (where ESX was installed) and briefly changed the Path Selection Policy to Most Recently Used (VMware), which causes a Set logical unit policy action on the host. After doing so and then switching back to Fixed (VMware), the preffered path is then highlighted and the other LUN’s were able to be successfully set as well.

I expect that a rescan of the storage adapters may also resolve it but didn’t get the chance to try it.

Popularity: 85% [?]

VMware ESX 3.5 to vSphere (ESX 4.0 U1) Upgrade In A Nutshell

Thursday, January 7th, 2010

The intention for this upgrade was to use the VMware Host Update Utility included with the vSphere Client. However, an upgrade was in the end not possible. The reason being because the existing ESX 3.5 installation had customized partitions (specifically to fill out the local storage with /, /var, swap, etc). This was fine for ESX 3.5 but for ESX 4.0, these partitions are inside the service console VMDK stored on the local VMFS. There was only 2.5GB of space left over for VMFS on the ESX 3.5 installation.

So, the upgrade was effectively a per host rebuild to ESX 4.0. The process, however, is still simple:

  • vMotion all guests off of the host to be rebuilt
  • Put the host into maintenance mode
  • Remove the host from the cluster
  • Reboot the host and install from the ESX 4.0 media (selecting local storage to create the VMFS for the service console VMDK)
  • Add the host back to the cluster

After upgrading the first host, adding it to the cluster and ensuring that it’s configuration was good, I then created a Host Profile of it and used that profile to attach to the remaining hosts and apply it’s settings to ensure full compliance. This process saved plenty of time configuring the hosts post-install. A scripted installation may have been a better option but for <5 hosts, the Host Profile utility is a very fast way to configure hosts and ensure compliance. Further, for management purposes going forward, the Host Profile utility is an excellent tool to ensure compliance of hosts.

Popularity: 9% [?]