Knowledge Base

Search the Knowledge Base: |
Search the Knowledge Base: |
Taking Snapshots of Virtual Machines With Virtual Disks on Different Datastores Can Cause Datastores to Disappear From the VI Client
Details
When a virtual machine is attached to two or more virtual disks (.vmdk files) where the disks are not on the same datastore and a snapshot is taken of the virtual machine (VM), a datastore might disappear from the Virtual Infrastructure (VI) Client for that VM and other snapshot functionality might break. For example, one possible scenario is that there is a VM with two .vmdk files, one on datastore1 where the .vmx file is also located and one on datastore2. When the snapshot is initiated, datastore2 disappears from the Virtual Infrastructure client view for that VM and you will be unable to delete the snapshot from that VM.
Solution
This is a known issue for ESX Server 3.0.1, VMware Consolidated Backup 1.0.2,
This problem is not seen when the .vmdk files and .vmx are located on the same datastore. To work around this problem, move all .vmdk files onto the datastore on which the .vmx file (the virtual machine configuration file) is located before taking snapshots. The .vmdk files have to be renamed with vmkfstools –E before they can be moved to the same datastore.
Follow this procedure to rename one of the disks:
-
Make sure no snapshots of the virtual machine exist.
Note: If your virtual machine already has a snapshot, power off the virtual machine and delete the snapshot.
-
Power off the virtual machine.
-
Detach from the virtual machine the disk you plan to move, but do not delete the disk.
-
Log into the ESX Server system and use the following command to rename the disk:
vmkfstools -E <old_name> <new_name>
For example, to rename the disk foo.vmdk to bar.vmdk, enter vmkfstools -E foo.vmdk bar.vmdk.
-
From the VirtualCenter user interface (UI), add the renamed disk back to the virtual machine.
Feedback
- KB Article: 10043
- Updated: Aug 14, 2009
- Products:
VMware Consolidated Backup
VMware VirtualCenter - Product Versions:
VMware Consolidated Backup 1.0.x
VMware VirtualCenter 2.0.x

