Loading

×Sorry to interrupt
CSS Error

Refresh

Cookie Preference Center

General Information on cookies

When you visit our website, we use cookies to ensure that we give you the best experience. This information does not usually directly identify you, but it can give you a more personalized web experience. Because we respect your right to privacy, you can choose not to allow some types of cookies by clicking on the different category headings to find out more and change your settings. However, blocking some types of cookies may impact your experience on the site and the services we are able to offer. Further information can be found in our

Cookie Policy.

Strictly Necessary

Strictly Necessary

Always Active

Strictly Necessary

Strictly necessary cookies are always enabled since they are essential for our website to function. They enable core functionality such as security, network management, and website accessibility. You can set your browser to block or alert you about these cookies, but this may affect how the website functions. For more information please visit www.aboutcookies.org or www.allaboutcookies.org.

Cookie Details‎

Performance

Performance

Performance

Performance cookies are used to analyze the user experience to improve our website by collecting and reporting information on how you use it. They allow us to know which pages are the most and least popular, see how visitors move around the site, optimize our website and make it easier to navigate.

Cookie Details‎

Please confirm your settings by refreshing the page.

Functional

Functional

Functional

Functional cookies help us keep track of your past browsing choices so we can improve usability and customize your experience. These cookies enable the website to remember your preferred settings, language preferences, location and other customizable elements such as font or text size. If you do not allow these cookies, then some or all of these services may not function properly.

Cookie Details‎

Advertising

Advertising

Advertising

Advertising cookies are used to send you relevant advertising and promotional information. They may be set through our site by third parties to build a profile of your interests and show you relevant advertisements on other sites. These cookies do not directly store personal information, but their function is based on uniquely identifying your browser and internet device.

Cookie Details‎

Advertising Cookies

Consent Leg.Interest

Select All Vendors

Select All Vendors

Select All Hosts

Select All

Clear Filters

Information storage and access

Apply

Confirm My Choices Reject All Allow All

Skip to main content

Products and Accounts

Support

Knowledge

Communities

Success

Learning

My Subscriptions

Loading

Knowledge Base

Enabling clustering features for an existing virtual disk by converting while copying (1003491)

Last Updated: 12/16/2013Categories: How toTotal Views: 18596Language:
English

Subscribe to get an email
newsletter with new updates

Please provide article feedback:

Details

This article provides steps for conversion of a virtual disk to eagerzeroedthick to support clustering features while making a copy of the virtual disk. The new copy can be attached to a new or existing virtual machine.

Virtual disks can also be converted in place.

For more information, see:

Enabling clustering features for an existing virtual disk by converting in place (1035823)

Cloning and converting virtual machine disks with vmkfstools (1028042)

Solution

An existing VMDK virtual disk can be converted to a Thick disk with any unallocated blocks being allocated and zeroed out. This preserves any existing data in the virtual disk. This corresponds to the Enable Clustering Support option when creating a virtual disk using the vSphere Client.

It is necessary to repeat these steps after extending an existing eagerzeroedthick virtual disk with the vmkfstools -X command or by increasing the disk size using the vSphere Client.

Caution: Do not convert a virtual disk if the virtual machine has snapshots. If you want to convert a virtual disk with snapshots, ensure to delete the snapshots first. For more information, see Determining if a virtual machine is using snapshots (1004343).

To clone and convert a virtual disk to Eager Zeroed Thick from the vSphere Command Line Interface (vCLI) or VMware vSphere Management Assistant (vMA):

Open a console to the vMA or other location where the vCLI is installed. For more information, see the vSphere Command-Line Interface Documentation.

Locate the source VMDK virtual disk file using the vifs command. For example:

Retrieve a list of datastores:
vifs --server ESXHostnameOrIP --username root --listds
[DatastoreName]
[DatastoreName2]
[DatastoreName3]

Retrieve a directory listing within a datastore:
vifs --server ESXHostnameOrIP --username root --dir '[DatastoreName]'
VirtualMachineName
VirtualMachineName2

Retrieve a directory listing within a directory on a datastore:
vifs --server ESXHostnameOrIP --username root --dir '[DatastoreName] VirtualMachineName/'
VirtualMachineName.vmx
VirtualMachineName.vmdk
VirtualMachineName-flat.vmdk

Power down the virtual machine using the source VMDK virtual disk file.

Copy and convert the source virtual disk to a new Eager Zeroed Thick virtual disk using the vmkfstools command:

vmkfstools <connectoptions> -i <source.vmdk></source.vmdk> <destination.vmdk> -d eagerzeroedthick

For example:

vmkfstools --server ESXHostnameOrIP --username root -i "[DatastoreName] MyVM/MyVM.vmdk" "[DestinationDatastore] NewVM/NewVM.vmdk" -d eagerzeroedthick

Note: The clone command may take a few minutes, and reports the percentage of completion.

Power on the source virtual machine.

Attach the destination virtual disk to a new or existing virtual machine.

To clone and convert a virtual disk to Eager Zeroed Thick from the ESX host console:

Open a console to the ESX/ESXi host. For more information, see Unable to connect to an ESX host using Secure Shell (SSH) (1003807) or Using Tech Support Mode in ESXi 4.1 (1017910).

Locate the VMDK virtual disk file in the /vmfs/volumes/<DatastoreName>/<VMName>/ directory.

Power down the virtual machine using the source VMDK virtual disk file.

Copy and convert the virtual disk to Eager Zeroed Thick using the vmkfstools command:

vmkfstools -i <source.vmdk></source.vmdk> -d eagerzeroedthick <destination.vmdk>

For example:

vmkfstools -i /vmfs/volumes/DatastoreName/MyVM/MyVM.vmdk -d eagerzeroedthick /vmfs/volumes/DestinationDatastore/NewVM/NewVM.vmdk

Note: The clone command may take a few minutes, and does not report the percentage of completion.

Power on the source virtual machine.

Attach the destination virtual disk to a new or existing virtual machine.

Detectable by VMware SkylineTM

Actions

Copy

link to clipboard
copied!

Print

Language:
English

Attachments

Additional Resources

No results for undefined

Ask The Community

Get answers quickly from VMware experts in the community

Post Subject

CONTINUE IN COMMUNITIES

Related Products:

VMware vSphere ESXi

VMware ESX Server

Related Versions:

VMware vSphere ESXi 5.5

VMware vSphere ESXi 5.1

VMware vSphere ESXi 5.0

VMware ESX Server 3.0.x

Take Our Survey

Was this article helpful?

YES

NO

Copyright © 2005-2024 Broadcom. All Rights Reserved. The term “Broadcom” refers to Broadcom Inc. and/or its subsidiaries.

Terms of Use

Your California Privacy Rights

Privacy

Accessibility

Cookie Settings

Support Assistant