<?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>..::\\ www.christiano.ch //::.. &#187; VMware</title>
	<atom:link href="http://www.christiano.ch/wordpress/category/vmware/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.christiano.ch/wordpress</link>
	<description>christiano.ch blog - personal knowledge base, news, memoires et cetera</description>
	<lastBuildDate>Thu, 29 Jul 2010 06:18:00 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
<meta xmlns="http://www.w3.org/1999/xhtml" name="robots" content="noindex,follow" />
		<item>
		<title>How to: Extend / Expand Virtual Disk on ESX Server using GUI or command line</title>
		<link>http://www.christiano.ch/wordpress/2009/08/13/how-to-extend-expand-virtual-disk-on-esx-server-using-gui-or-command-line/</link>
		<comments>http://www.christiano.ch/wordpress/2009/08/13/how-to-extend-expand-virtual-disk-on-esx-server-using-gui-or-command-line/#comments</comments>
		<pubDate>Thu, 13 Aug 2009 08:29:56 +0000</pubDate>
		<dc:creator>christian</dc:creator>
				<category><![CDATA[ESX Server]]></category>
		<category><![CDATA[VMware]]></category>

		<guid isPermaLink="false">http://www.christiano.ch/wordpress/?p=344</guid>
		<description><![CDATA[Today, a virtual disk of one of my virtual servers running on VMware Virtual Infrastructure 2.5 / VMware ESX Server 3.5&#160; run out of diskspace. Why? Because 50GB are not enough to store all Patches, Microsoft Windows Server Update Service (WSUS) downloads and provides in the LAN&#8230; Since many people asked me about how to [...]]]></description>
			<content:encoded><![CDATA[<p>Today, a virtual disk of one of my virtual servers running on VMware Virtual Infrastructure 2.5 / VMware ESX Server 3.5&#160; run out of diskspace. Why? Because 50GB are not enough to store all Patches, Microsoft Windows Server Update Service (WSUS) downloads and provides in the LAN&#8230;</p>
<p>Since many people asked me about how to expand or extend a virtual disk on VMware ESX Server, i decided to post quick how to / tutorial here..</p>
<p><em><strong>First of all, always remember, doing a backup is always a good idea especially before changing a disk layout <img src='http://www.christiano.ch/wordpress/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </strong></em></p>
<h2><span id="more-344"></span>The required steps / the turorial is as follows:</h2>
<h3>To expand / extend a Virtual Disk on ESX Server using the GUI &amp; Diskpart</h3>
<p>Please read to the end before starting with the procedure!</p>
<ul>
<li>Shut down the Virtual Machine </li>
<li>In the VMware Infrastructure Client, <em>right click</em> the Virtual Machine, choose <em>Settings</em> </li>
<li>Select the Disk you want to extend / expand </li>
<li>Define<em> New Size</em> </li>
<li></li>
<li><strong>NOTE: this won’t work if you have any snapshots!</strong>
<img class="size-full wp-image-345" title="VMware_ESX_VirtualMachine_Disk_New_Size" alt="VMware_ESX_VirtualMachine_Disk_New_Size" src="http://www.christiano.ch/wordpress/wp-content/uploads/2009/08/VMware_ESX_VirtualMachine_Disk_New_Size.png" width="675" height="545" />
</li>
<li>Now start your Virtual Machine. If you extended / expanded the Boot Parition, i gets bit more complicated since the Volume is in use when the operating system is running. To extend a boot partition, additional steps are required.
<ul>
<li>Take a Windows 7 or Windows 2008 or even a Windows Vista Installation Medium. Boot the Virtual Machine using this media. When the Install Windows Window appears, press <em>Shift-F10</em>. This trick / shortcut opens a CMD. From there proceed with the next step using diskpart to extend the disk / partition
<img class="size-full wp-image-346" title="Shift-F10" alt="Shift-F10" src="http://www.christiano.ch/wordpress/wp-content/uploads/2009/08/Shift-F10.PNG" width="675" height="508" />
</li>
</ul>
</li>
<li>Now use Diskpart to extend the Volume
<img class="size-full wp-image-347" title="Microsoft_Diskpart_Extend_Partition" alt="Microsoft_Diskpart_Extend_Partition" src="http://www.christiano.ch/wordpress/wp-content/uploads/2009/08/Microsoft_Diskpart_Extend_Partition.png" width="546" height="623" />
</li>
</ul>
<p>Finally check your Disk or Partition in Explorer to see if it is expanded.</p>
<p>The graphical part can also be done using SSH. If you want to do it that way:</p>
<ul>
<li>Create an SSH Connection to your VMware ESX Server using Putty or some similiar SSH Client </li>
<li>Use <em>vmkfstools</em>      <br />The syntax to extend / expand a Virtual Disk is:      <br /><code>vmkfstools -X new_sizevmfs_name:disk_name</code>      <br />i.e. vmkfstools -X 8192m sanVOL12:ServerDrive_D.vmdk
<p><em>The syntax reference for vmkfstools is</em>        <br />vmkfstools -C &#8211;createfs vmfs3        <br />-b &#8211;blocksize #[mMkK]        <br />-S &#8211;setfsname fsName        <br />-Z &#8211;extendfs extension-partition        <br />deviceName</p>
<p>-P &#8211;queryfs -h &#8211;humanreadable       <br />-T &#8211;tovmfs3        <br />-x &#8211;upgradetype [zeroedthick|eagerzeroedthick|thin]        <br />-u &#8211;upgradefinish        <br />vmfsPath</p>
<p>OPTIONS FOR VIRTUAL DISKS:</p>
<p>vmkfstools -c &#8211;createvirtualdisk #[gGmMkK]       <br />-d &#8211;diskformat [zeroedthick|        <br />eagerzeroedthick|        <br />thick|        <br />thin]        <br />-a &#8211;adapterType [buslogic|lsilogic]        <br />-w &#8211;writezeros        <br />-j &#8211;inflatedisk        <br />-U &#8211;deletevirtualdisk        <br />-E &#8211;renamevirtualdisk srcDisk        <br />-i &#8211;clonevirtualdisk srcDisk        <br />-d &#8211;diskformat [rdm:|rdmp:|        <br />raw:|thin|2gbsparse|        <br />monoflat|monosparse]        <br />-X &#8211;extendvirtualdisk #[gGmMkK]        <br />-M &#8211;migratevirtualdisk        <br />-r &#8211;createrdm /vmfs/devices/disks/&#8230;        <br />-q &#8211;queryrdm        <br />-z &#8211;createrdmpassthru /vmfs/devices/disks/&#8230;        <br />-v &#8211;verbose #        <br />-g &#8211;geometry        <br />-J &#8211;miscop [setuuid | getuuid]        <br />vmfsPath</p>
<p>OPTIONS FOR DEVICES:</p>
<p>vmkfstools -s &#8211;scan adapterName       <br />-L &#8211;lock [reserve|release|lunreset|targetreset|busreset] /vmfs/devicees/disks/&#8230;</p>
</li>
</ul>
<p>Feel free to comment..</p>
]]></content:encoded>
			<wfw:commentRss>http://www.christiano.ch/wordpress/2009/08/13/how-to-extend-expand-virtual-disk-on-esx-server-using-gui-or-command-line/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
