<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Bahramov's Personal Blog &#187; VMWare</title>
	<atom:link href="http://www.bahramov.com/tag/vmware/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.bahramov.com</link>
	<description>Computers, databases, networks and virtualization</description>
	<lastBuildDate>Fri, 24 Jun 2011 12:05:26 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Examples Using the VMware Virtual Disk Manager</title>
		<link>http://www.bahramov.com/2009/03/18/examples-using-the-vmware-virtual-disk-manager/#utm_source=feed&#038;utm_medium=feed&#038;utm_campaign=feed</link>
		<comments>http://www.bahramov.com/2009/03/18/examples-using-the-vmware-virtual-disk-manager/#comments</comments>
		<pubDate>Wed, 18 Mar 2009 10:52:59 +0000</pubDate>
		<dc:creator>Zaur Bahramov</dc:creator>
				<category><![CDATA[VMWare]]></category>
		<category><![CDATA[Virtual Disk Manager]]></category>

		<guid isPermaLink="false">http://www.bahramov.com/?p=12</guid>
		<description><![CDATA[From: VMWare KB
The following examples illustrate how to use the virtual disk manager. You run the virtual disk manager from a command prompt.
Creating a Virtual Disk
To create a new virtual disk, use a command like the following:
vmware-vdiskmanager -c -t 0 -s 40GB -a ide myDisk.vmdk
This creates a 40GB IDE virtual disk named myDisk.vmdk. The virtual [...]]]></description>
			<content:encoded><![CDATA[<p>From: <a title="VMWare Knowledgebase Article" href="http://www.vmware.com/support/ws45/doc/disks_vdiskmanager_eg_ws.html#1057652" target="_blank">VMWare KB</a></p>
<p>The following examples illustrate how to use the virtual disk manager. You run the virtual disk manager from a command prompt.</p>
<p><strong>Creating a Virtual Disk</strong><br />
To create a new virtual disk, use a command like the following:</p>
<pre class="brush: plain">vmware-vdiskmanager -c -t 0 -s 40GB -a ide myDisk.vmdk</pre>
<p>This creates a 40GB IDE virtual disk named myDisk.vmdk. The virtual disk is contained in a single .vmdk file. The disk space is not preallocated.</p>
<p><strong>Converting a Virtual Disk</strong></p>
<p>To convert a virtual disk from preallocated to growable, use a command like the following:</p>
<pre class="brush: plain">vmware-vdiskmanager -r sourceDisk.vmdk -t 0 targetDisk.vmdk</pre>
<p>This converts the disk from its original preallocated type to a growable virtual disk consisting of a single virtual disk file. The virtual disk space is no longer preallocated, and the virtual disk manager reclaims some disk space in the virtual disk so it is only as large as the data contained within it.</p>
<p><strong><span id="more-12"></span>Expand the Size of an Existing Virtual Disk</strong></p>
<p>To expand the size of a virtual disk, use a command like the following:</p>
<pre class="brush: plain">vmware-vdiskmanager -x 40GB myDisk.vmdk</pre>
<p>This increases the maximum capacity of the virtual disk to 40GB.</p>
<p><strong>Renaming a Virtual Disk</strong></p>
<p>To rename a virtual disk, first remove it from any virtual machine that contains the disk (choose <strong>VM </strong>&gt; <strong>Settings </strong>&gt; , then click <strong>Remove</strong>).</p>
<p>Then use the following:</p>
<pre class="brush: plain">vmware-vdiskmanager -n myDisk.vmdk myNewDisk.vmdk</pre>
<p>To rename the disk and locate it in a different directory, use:</p>
<pre class="brush: plain">vmware-vdiskmanager -n myDisk.vmdk ..\&lt;new&gt;\&lt;path&gt;\myNewDisk.vmdk
</pre>
<blockquote><p>Note: The paths used in these examples assume a Windows host.</p></blockquote>
<p>To locate the disk in a different directory but keep the same name, use:</p>
<pre class="brush: plain">vmware-vdiskmanager -n myDisk.vmdk ..\&lt;new&gt;\&lt;path&gt;\myDisk.vmdk
</pre>
<p>After you rename or relocate the virtual disk, add it back to any virtual machines that use it. Choose <strong>VM </strong>&gt; <strong>Settings</strong>, click <strong>Add</strong>, then follow the wizard to add this existing virtual disk.</p>
<p><strong>Defragmenting a Virtual Disk</strong></p>
<p>To defragment a virtual disk, use a command like the following:</p>
<pre class="brush: plain">vmware-vdiskmanager -d myDisk.vmdk</pre>
<blockquote><p>Remember, you cannot defragment a virtual disk if you allocated all the disk space when you created the virtual disk. You cannot defragment a physical disk.</p></blockquote>
<p><strong>Preparing a Virtual Disk for Shrinking</strong></p>
<p>Before you can shrink a virtual disk, you must prepare each volume on the disk (C: or D:, for example) for shrinking. To prepare a volume, it must be located on a Windows host. First you must mount the volume. To mount the volume, use the VMware DiskMount Utility, available as a free download from the VMware Web site. For information about downloading and using VMware DiskMount, see <a href="http://www.vmware.com/support/ws45/doc/disks_vdiskmanager_shrink_ws.html#1057614" target="_blank">Shrinking Virtual Disks with VMware Virtual Disk Manager</a>.</p>
<p>VMware DiskMount mounts individual volumes of a virtual disk. For the best results when you shrink a virtual disk, you should mount all the volumes and shrink them.</p>
<p>After you mount a virtual disk volume, use the virtual disk manager to prepare the disk for shrinking. To prepare the volume mounted as the M: drive for shrinking, use the following command:</p>
<pre class="brush: plain">vmware-vdiskmanager -p M:</pre>
<p>Once the preparations are complete, unmount the volume. Repeat this process for each volume of the virtual disk. After you prepare all the volumes for shrinking, you can shrink the virtual disk.</p>
<p><strong>Shrinking a Virtual Disk</strong></p>
<p>To shrink a virtual disk, it must be located on a Windows host. Before you can shrink the virtual disk, make sure you prepare all the volumes of the virtual disk for shrinking. Then use a command like the following:</p>
<pre class="brush: plain">vmware-vdiskmanager -k myDisk.vmdk</pre>
<p>Remember, you cannot shrink a virtual disk if you allocated all the disk space when you created the virtual disk. You cannot shrink a physical (raw) disk.</p>
<p>If the virtual disk has a snapshot, you cannot shrink the virtual disk. You must remove the snapshot before you shrink the virtual disk.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bahramov.com/2009/03/18/examples-using-the-vmware-virtual-disk-manager/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

