<?xml version="1.0" encoding="UTF-8"?><rss
version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
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/"
> <channel><title>Comments on: How to Shrink a VMDK file in ESX</title> <atom:link href="http://professionalvmware.com/2009/09/how-to-shrink-a-vmdk-file-in-esx/feed/" rel="self" type="application/rss+xml" /><link>http://professionalvmware.com/2009/09/how-to-shrink-a-vmdk-file-in-esx/</link> <description>How Many Turtles Can You Fit On A Rock?</description> <lastBuildDate>Fri, 10 Feb 2012 16:09:00 +0000</lastBuildDate> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.2.1</generator> <item><title>By: vmuserdude</title><link>http://professionalvmware.com/2009/09/how-to-shrink-a-vmdk-file-in-esx/comment-page-1/#comment-2176</link> <dc:creator>vmuserdude</dc:creator> <pubDate>Sat, 07 Jan 2012 20:41:00 +0000</pubDate> <guid
isPermaLink="false">http://professionalvmware.com/?p=861#comment-2176</guid> <description>Ok, so I have a vm that has 100GB allocated to it. I&#039;ve already shrunk the filesystem on the vm-os to 50GB, now I need to run the procedure you have here to reduce the size of the .vmdk as needed. Here&#039;s the problem: the datastore only has about 781MB free. Will I be able to run the procedure in this article, or do I need to have 50GB free for the clone?</description> <content:encoded><![CDATA[<p>Ok, so I have a vm that has 100GB allocated to it. I&#8217;ve already shrunk the filesystem on the vm-os to 50GB, now I need to run the procedure you have here to reduce the size of the .vmdk as needed. Here&#8217;s the problem: the datastore only has about 781MB free. Will I be able to run the procedure in this article, or do I need to have 50GB free for the clone?</p> ]]></content:encoded> </item> <item><title>By: Villa Federico</title><link>http://professionalvmware.com/2009/09/how-to-shrink-a-vmdk-file-in-esx/comment-page-1/#comment-2134</link> <dc:creator>Villa Federico</dc:creator> <pubDate>Tue, 06 Dec 2011 10:46:00 +0000</pubDate> <guid
isPermaLink="false">http://professionalvmware.com/?p=861#comment-2134</guid> <description>Nice shot man! It&#039;s quite insane but when you have someone hanged by his balls this is very usefull!</description> <content:encoded><![CDATA[<p>Nice shot man! It&#8217;s quite insane but when you have someone hanged by his balls this is very usefull!</p> ]]></content:encoded> </item> <item><title>By: Guest</title><link>http://professionalvmware.com/2009/09/how-to-shrink-a-vmdk-file-in-esx/comment-page-1/#comment-2078</link> <dc:creator>Guest</dc:creator> <pubDate>Mon, 10 Oct 2011 21:28:00 +0000</pubDate> <guid
isPermaLink="false">http://professionalvmware.com/?p=861#comment-2078</guid> <description>This method works like a champ!  Just be double-triple sure to resize the Guest OS partition smaller before starting this.  I also rounded the partition size up by 0.1GB to allow for calculation variances, e.g., 20GB = 20.1GB.  Don&#039;t forget to multiply by 1024 to get from GB to MB to KB to B then divide by 512 to get the value.  20.1GB x 1024 = 20582.4MB x 1024 = 21076377.6KB X 1024 = 21582210662.4B / 512 = 42152755.2, round up to 42152756 (value to use in VMDK file.  CP your VMDK file first in case you mess up with VI!  Also, the &#039;cold migrate&#039; method shown above moves the VMDK file and deletes the original, so if you mis-calcuated and corrupted your Guest OS then you are out of luck.  The VMKFSTOOLS method is safer, just connect the cloned disk to the VM, that way if it doesn&#039;t boot you can go back to the original VMDK file and descriptor (that you copied before modifying, remember?)  **This information is provided &quot;AS IS&quot; WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, OR NON-INFRINGEMENT.**</description> <content:encoded><![CDATA[<p>This method works like a champ!  Just be double-triple sure to resize the Guest OS partition smaller before starting this.  I also rounded the partition size up by 0.1GB to allow for calculation variances, e.g., 20GB = 20.1GB.  Don&#8217;t forget to multiply by 1024 to get from GB to MB to KB to B then divide by 512 to get the value.  20.1GB x 1024 = 20582.4MB x 1024 = 21076377.6KB X 1024 = 21582210662.4B / 512 = 42152755.2, round up to 42152756 (value to use in VMDK file.  CP your VMDK file first in case you mess up with VI!  Also, the &#8216;cold migrate&#8217; method shown above moves the VMDK file and deletes the original, so if you mis-calcuated and corrupted your Guest OS then you are out of luck.  The VMKFSTOOLS method is safer, just connect the cloned disk to the VM, that way if it doesn&#8217;t boot you can go back to the original VMDK file and descriptor (that you copied before modifying, remember?)  **This information is provided &#8220;AS IS&#8221; WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, OR NON-INFRINGEMENT.**</p> ]]></content:encoded> </item> <item><title>By: Daimus</title><link>http://professionalvmware.com/2009/09/how-to-shrink-a-vmdk-file-in-esx/comment-page-1/#comment-2028</link> <dc:creator>Daimus</dc:creator> <pubDate>Tue, 23 Aug 2011 08:26:00 +0000</pubDate> <guid
isPermaLink="false">http://professionalvmware.com/?p=861#comment-2028</guid> <description>The procedure described is very dangerous, indeed. If you have not shrunk your partition within the operating system, you will be left with a corrupt filesystem. Any data that existed outside of the new extent size will be gone. Windows has a habit of scattering &quot;immovable&quot; system files well away from the start of the partition. If any of these file existed outside the extent, these will be lost and the system will most likely left unbootable.
Play it safe. Use Vmware converter to clone out to a new machine with your desired disk sizes. This is the only supported method of reducing the size of thick provisioned vDisks. If the operation fails, you still have your source VM to fall back on.</description> <content:encoded><![CDATA[<p>The procedure described is very dangerous, indeed. If you have not shrunk your partition within the operating system, you will be left with a corrupt filesystem. Any data that existed outside of the new extent size will be gone. Windows has a habit of scattering &#8220;immovable&#8221; system files well away from the start of the partition. If any of these file existed outside the extent, these will be lost and the system will most likely left unbootable.</p><p>Play it safe. Use Vmware converter to clone out to a new machine with your desired disk sizes. This is the only supported method of reducing the size of thick provisioned vDisks. If the operation fails, you still have your source VM to fall back on.</p> ]]></content:encoded> </item> <item><title>By: Moep</title><link>http://professionalvmware.com/2009/09/how-to-shrink-a-vmdk-file-in-esx/comment-page-1/#comment-1988</link> <dc:creator>Moep</dc:creator> <pubDate>Tue, 31 May 2011 06:15:00 +0000</pubDate> <guid
isPermaLink="false">http://professionalvmware.com/?p=861#comment-1988</guid> <description>Online Storage vMotion made my Windows 2008 VM crash and then the vMotion failed. Offline works fine.</description> <content:encoded><![CDATA[<p>Online Storage vMotion made my Windows 2008 VM crash and then the vMotion failed. Offline works fine.</p> ]]></content:encoded> </item> <item><title>By: jas</title><link>http://professionalvmware.com/2009/09/how-to-shrink-a-vmdk-file-in-esx/comment-page-1/#comment-1985</link> <dc:creator>jas</dc:creator> <pubDate>Thu, 26 May 2011 14:03:00 +0000</pubDate> <guid
isPermaLink="false">http://professionalvmware.com/?p=861#comment-1985</guid> <description>yes you are spot on about shrinking the filesystem. with win2k8 there is buildin tool in server management under storage &#124; disk management, right click and shrink.. we shrinked the thick 40G to thin 12G.</description> <content:encoded><![CDATA[<p>yes you are spot on about shrinking the filesystem. with win2k8 there is buildin tool in server management under storage | disk management, right click and shrink.. we shrinked the thick 40G to thin 12G.</p> ]]></content:encoded> </item> <item><title>By: jas</title><link>http://professionalvmware.com/2009/09/how-to-shrink-a-vmdk-file-in-esx/comment-page-1/#comment-1984</link> <dc:creator>jas</dc:creator> <pubDate>Thu, 26 May 2011 14:00:00 +0000</pubDate> <guid
isPermaLink="false">http://professionalvmware.com/?p=861#comment-1984</guid> <description>Thanks for sharing, this works great!</description> <content:encoded><![CDATA[<p>Thanks for sharing, this works great!</p> ]]></content:encoded> </item> <item><title>By: professionalvmware</title><link>http://professionalvmware.com/2009/09/how-to-shrink-a-vmdk-file-in-esx/comment-page-1/#comment-1978</link> <dc:creator>professionalvmware</dc:creator> <pubDate>Sun, 15 May 2011 19:48:00 +0000</pubDate> <guid
isPermaLink="false">http://professionalvmware.com/?p=861#comment-1978</guid> <description>The technique seemed to work fine. Did you happen to shrink the filesystem within the guest OS first?
&quot;The reason for this probably stems from those few customers that were not familiar with using the command properly and ended up cutting off too much of the disk and corrupted their Guest OS file system as a result.&quot;
Basically, from the sound of it, you chopped the end off your windows filesystem. Unfortunately there is not much I can do to help you out of that one. If you still have a copy of the VM or a good set of backups, try using gparted to shrink NTFS first, then use the above method to shrink the VMDK. </description> <content:encoded><![CDATA[<p>The technique seemed to work fine. Did you happen to shrink the filesystem within the guest OS first?</p><p>&#8220;The reason for this probably stems from those few customers that were not familiar with using the command properly and ended up cutting off too much of the disk and corrupted their Guest OS file system as a result.&#8221;</p><p>Basically, from the sound of it, you chopped the end off your windows filesystem. Unfortunately there is not much I can do to help you out of that one. If you still have a copy of the VM or a good set of backups, try using gparted to shrink NTFS first, then use the above method to shrink the VMDK.</p> ]]></content:encoded> </item> <item><title>By: TofTof06</title><link>http://professionalvmware.com/2009/09/how-to-shrink-a-vmdk-file-in-esx/comment-page-1/#comment-1977</link> <dc:creator>TofTof06</dc:creator> <pubDate>Sat, 14 May 2011 22:23:00 +0000</pubDate> <guid
isPermaLink="false">http://professionalvmware.com/?p=861#comment-1977</guid> <description>Hi all
Been trying this on a Windows 2008 R2 VM on a vSphere 4.1.0 host but the VM refuses to start.
I was reducing a thick 40 Go vmdk to a thick 25 Go (only 10 Go used in the original VMDK).
I have changed the information in the descriptor file and used vSphere Client to cold migrate it to another VMFS datastore.
The destination file was indeed doing 25 Go but the result is : unable to load operating system.
Any idea to help me making this work in vSphere 4.1 are welcomed.
I don&#039;t really want to import those VMs
Thanks for your help</description> <content:encoded><![CDATA[<p>Hi all<br
/> Been trying this on a Windows 2008 R2 VM on a vSphere 4.1.0 host but the VM refuses to start.<br
/> I was reducing a thick 40 Go vmdk to a thick 25 Go (only 10 Go used in the original VMDK).<br
/> I have changed the information in the descriptor file and used vSphere Client to cold migrate it to another VMFS datastore.<br
/> The destination file was indeed doing 25 Go but the result is : unable to load operating system.<br
/> Any idea to help me making this work in vSphere 4.1 are welcomed.<br
/> I don&#8217;t really want to import those VMs<br
/> Thanks for your help</p> ]]></content:encoded> </item> <item><title>By: Cgchen</title><link>http://professionalvmware.com/2009/09/how-to-shrink-a-vmdk-file-in-esx/comment-page-1/#comment-1812</link> <dc:creator>Cgchen</dc:creator> <pubDate>Wed, 08 Dec 2010 04:12:00 +0000</pubDate> <guid
isPermaLink="false">http://professionalvmware.com/?p=861#comment-1812</guid> <description>my vmdk is 40gb but only 5gb was used so I tried to shrink it to 6gb (RW  12582912). The vmdk was cloned but grub bootloader failed to locate the boot partition (this is a linux VM)
Any idea why this is happening?</description> <content:encoded><![CDATA[<p>my vmdk is 40gb but only 5gb was used so I tried to shrink it to 6gb (RW  12582912). The vmdk was cloned but grub bootloader failed to locate the boot partition (this is a linux VM)</p><p>Any idea why this is happening?</p> ]]></content:encoded> </item> </channel> </rss>
