<?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>Fri, 06 Jan 2012 15:28:23 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
<meta xmlns="http://www.w3.org/1999/xhtml" name="robots" content="noindex,follow" />
		<item>
		<title>Configure Jumbo Frames on Hardware iSCSI HBA in ESX 4</title>
		<link>http://www.christiano.ch/wordpress/2012/01/06/configure-jumbo-frames-on-hardware-iscsi-hba-in-esx-4/</link>
		<comments>http://www.christiano.ch/wordpress/2012/01/06/configure-jumbo-frames-on-hardware-iscsi-hba-in-esx-4/#comments</comments>
		<pubDate>Fri, 06 Jan 2012 15:28:23 +0000</pubDate>
		<dc:creator>christian</dc:creator>
				<category><![CDATA[ESX Server]]></category>
		<category><![CDATA[VMware]]></category>
		<category><![CDATA[ESX]]></category>
		<category><![CDATA[iSCSI]]></category>
		<category><![CDATA[Jumbo Frames]]></category>

		<guid isPermaLink="false">http://www.christiano.ch/wordpress/?p=1274</guid>
		<description><![CDATA[Before you begin, check the names of the vmhba adapters on your ESX server. From the vSphere Client go to Configuration tab and click on Storage Adapters. Now, to set Jumbo Frame support (MTU 9000) on your hardware iSCSI HBA, &#8230; <a href="http://www.christiano.ch/wordpress/2012/01/06/configure-jumbo-frames-on-hardware-iscsi-hba-in-esx-4/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Before you begin, check the names of the vmhba adapters on your ESX server. From the vSphere Client go to Configuration tab and click on Storage Adapters. Now, to set Jumbo Frame support (MTU 9000) on your hardware iSCSI HBA, follow these steps: </p>
<p><span id="more-1274"></span>
<ol>
<li>Login as Root user on your ESX server.
<li>Type:<strong><em> #esxcfg-hwiscsi –j enable &lt;vmhba#&gt;</em></strong>
<li>If successful, you should get the “MTU size successfully set to : 9000” message.
<li>To verify the change type: <strong><em>#esxcfg-hwiscsi –l &lt;vmhba#&gt;</em></strong></li>
</ol>
<p>All done! </p>
<div class="tweetthis" style="text-align:left;"><p> <a class="tt" href="http://twitter.com/intent/tweet?text=Configure+Jumbo+Frames+on+Hardware+iSCSI+HBA+in+ESX+4+http%3A%2F%2Fchristiano.ch%2Fwordpress%2F%3Fp%3D1274" title="Post to Twitter"><img class="nothumb" src="http://www.christiano.ch/wordpress/wp-content/plugins/tweet-this/icons/en/twitter/tt-twitter.png" alt="Post to Twitter" /></a> <a class="tt" href="http://twitter.com/intent/tweet?text=Configure+Jumbo+Frames+on+Hardware+iSCSI+HBA+in+ESX+4+http%3A%2F%2Fchristiano.ch%2Fwordpress%2F%3Fp%3D1274" title="Post to Twitter">Tweet This Post</a></p></div>]]></content:encoded>
			<wfw:commentRss>http://www.christiano.ch/wordpress/2012/01/06/configure-jumbo-frames-on-hardware-iscsi-hba-in-esx-4/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>VMware: Updating / Patching ESX Server</title>
		<link>http://www.christiano.ch/wordpress/2010/10/31/vmware-updating-patching-esx-server/</link>
		<comments>http://www.christiano.ch/wordpress/2010/10/31/vmware-updating-patching-esx-server/#comments</comments>
		<pubDate>Sun, 31 Oct 2010 15:43:41 +0000</pubDate>
		<dc:creator>christian</dc:creator>
				<category><![CDATA[ESX Server]]></category>
		<category><![CDATA[VMware]]></category>
		<category><![CDATA[ESXUpdate]]></category>
		<category><![CDATA[Patching]]></category>
		<category><![CDATA[Updating]]></category>

		<guid isPermaLink="false">http://www.christiano.ch/wordpress/2010/10/31/vmware-updating-patching-esx-server/</guid>
		<description><![CDATA[Okay, VMware patch day .. or, patch weekend. There’s this VMware update Service.. but we’ll take esxupdate &#8211; ‘the long way home’? not necessarily! What we have: a few VMware ESX Servers. To find out what version we’re running we &#8230; <a href="http://www.christiano.ch/wordpress/2010/10/31/vmware-updating-patching-esx-server/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<table border="0" cellspacing="0" cellpadding="2" width="675">
<tbody>
<tr>
<td valign="top" width="678">Okay, VMware patch day .. or, patch weekend. There’s this VMware update Service.. but we’ll take esxupdate &#8211; ‘the long way home’? not necessarily!</td>
<td valign="top" width="10"><a href="http://www.christiano.ch/wordpress/wp-content/uploads/2010/10/Logo_VMware1.jpg"><img style="display: inline" title="Logo_VMware" alt="Logo_VMware" src="http://www.christiano.ch/wordpress/wp-content/uploads/2010/10/Logo_VMware_thumb1.jpg" width="240" height="62" /></a></td>
</tr>
</tbody>
</table>
<p>  <span id="more-1154"></span>
<p>What we have: a few VMware ESX Servers. To find out what version we’re running we type.</p>
<p><strong>[root@vmdesx001 root]# vmware -v     <br />VMware ESX Server 3.5.0 build-82663      <br /></strong></p>
<p>Ok, lets see what updates are already installed / which patch level we’re running: </p>
<p><strong>[root@vmdesx001 root]# esxupdate query -a     <br />Installed software bundles:      <br />&#160; &#8212;&#8212; Name &#8212;&#8212; &#8212; Install Date &#8212; &#8212; Summary &#8212;      <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; 3.5.0-64607&#160;&#160;&#160; 15:33:01 05/08/08 Full bundle of ESX 3.5.0-64607      <br /> ESX350-200802303-SG&#160;&#160;&#160; 15:33:02 05/08/08 util-linux security update      <br />&#8230;      <br />&#8230;      <br />&#8230;      <br /> ESX350-201008411-SG&#160;&#160;&#160; 12:43:52 10/31/10 Updates krb5      <br /> ESX350-201008412-SG&#160;&#160;&#160; 12:43:52 10/31/10 Updates perl      <br />&#160;&#160;&#160; ESX350-Update05a&#160;&#160;&#160; 12:43:52 10/31/10 ESX Server 3.5.0 Update 5      <br />For a differential list of rpms, use the -l/&#8211;listrpms option.      <br />[root@vmdesx001 root]#</strong></p>
<p>First, we need to read about <a title="Managing Patches for ESX Server 3.0.3 and ESX Server 3.5 Hosts" href="http://www.vmware.com/pdf/vi3_35/esx_3/r35/vi3_35_25_esxupdate.pdf" target="_blank">‘Managing Patches for ESX Server 3.0.3 and ESX Server 3.5 Hosts’</a></p>
<p>Then we navigate to: <a title="http://www.vmware.com/download/vi/" href="http://www.vmware.com/download/vi/" target="_blank">http://www.vmware.com/download/vi/</a> to select and download from the available updates.</p>
<p>We create the Repository on a NFS Share and later we’ll promote that share using FTP protocol. First, we’ll download Update Package 5 / 5a and put / extract that to the NFS / FTP Share.. </p>
<p>let’s see what can be installed .. </p>
<p><strong> esxupdate -d </strong><a href="ftp://172.16.88.194/nfsshare/VMware/PatchRepository/ESX3.5"><strong>ftp://172.16.88.194/nfsshare/VMware/PatchRepository/ESX3.5</strong></a><strong> &#8211;test update</strong></p>
<p><strong>ERROR: [Errno 4] IOError: [Errno ftp error] (111, &#8216;Connection refused&#8217;)</strong></p>
<p>oups, we need to allow outgoing traffic .. </p>
<p><strong>esxcfg-firewall &#8211;allowoutgoing</strong></p>
<p>see if it works now..</p>
<p><strong>[root@vmdesx002 root]# esxupdate -d </strong><a href="ftp://172.16.88.194/nfsshare/VMware/PatchRepository/ESX3.5"><strong>ftp://172.16.88.194/nfsshare/VMware/PatchRepository/ESX3.5</strong></a><strong> &#8211;test update     <br />INFO: No -b specified, selecting all bundles in depot.      <br />INFO: Configuring&#8230;      <br />INFO: The following bundles are being skipped.      <br />INFO: [ESX350-200904406-SG] requires ['ESX350-200904402-SG'] but these bundles cannot be found. Please make sure they are in the depot and specified in the bundle list.      <br /></strong></p>
<p>&#160;</p>
<p>nice, it’s not working .. google for that .. oh, we’re not the only one having this issue .. nice .. (as usual, the companies spend so much money for marketing .. they need to cut costs in the quality check department…!) it’s seems there’s a script which has a bug =&gt; <a title="Patch Installation Might Require Obsolete Bundles to be Included in the Patch Depot" href="http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&amp;cmd=displayKC&amp;externalId=1004363" target="_blank">Patch Installation Might Require Obsolete Bundles to be Included in the Patch Depot</a> – resolution =&gt; To work around this issue, make sure the patch bundle ESX350-200802403-BG is placed in the patch depot. BUT, I can’t find this ESX350-200802403-BG – think, read, study .. I swear, I could kill.. ok, <a title="View all Patches" href="http://www.vmware.com/patch/download/allpatches.html" target="_blank">View all Patches</a> – we’re on 3.5 .. let’s see if we find ESX350-200802403-BG – surprise this little (you know what word..) is part of: <strong>ESX350-Update05a – UPDATE – </strong>joke? The fix is part of the fix and how should I apply a fix which needs to be installed before I can apply the fix? cruel joke, cruel joke. Look further Christian – there you go: <strong>ESX350-200911202-UG – UPDATE</strong>&#160; includes ESX350-200802403-BG. </p>
<p>so let’s just apply (test first) this single fix using the esxupdate B parameter (bundle).. </p>
<p><strong>esxupdate -d </strong><a href="ftp://172.16.88.194/nfsshare/VMware/PatchRepository/ESX3.5"><strong>ftp://172.16.88.194/nfsshare/VMware/PatchRepository/ESX3.5</strong></a><strong> -b ESX350-200911202-UG&#160; &#8211;test update</strong></p>
<p><strong>INFO: Configuring&#8230;     <br />INFO: Preparing to install ['ESX350-200911202-UG']&#8230;      <br />INFO: Downloading VMware-esx-scripts-3.5.0-207095.i386.rpm&#8230;      <br />INFO: Checking disk space and running test transaction&#8230;      <br />INFO: &#8212; TOTALS: 0 packages installed, 1 pending or failed, 0 removed, 0 excluded &#8212;      <br />INFO: Test install of ['ESX350-200911202-UG'] succeeded.      <br />== The esxupdate &#8211;test report ==      <br />&#8212;&#8211; ESX350-200911202-UG&#160; &#8212;&#8211;: installed      <br />[root@vmdesx002 root]#      <br /></strong></p>
<p>&#160;</p>
<p>so we got green light: </p>
<p><strong>[root@vmdesx002 root]#&#160; esxupdate -d </strong><a href="ftp://172.16.88.194/nfsshare/VMware/PatchRepository/ESX3.5"><strong>ftp://172.16.88.194/nfsshare/VMware/PatchRepository/ESX3.5</strong></a><strong> -b ESX350-200911202-UG -n update     <br />INFO: Configuring&#8230;      <br />INFO: Preparing to install ['ESX350-200911202-UG']&#8230;      <br />INFO: Downloading VMware-esx-scripts-3.5.0-207095.i386.rpm&#8230;      <br />INFO: Checking disk space and running test transaction&#8230;      <br />INFO: Pre-installing ['VMware-esx-scripts.i386']&#8230;      <br />INFO: | Gathering header information file(s) from server(s)      <br />INFO: | Server: Bundle ESX350-200911202-UG      <br />INFO: | Finding updated packages      <br />INFO: | Downloading needed headers      <br />INFO: | VMware-esx-scripts-0-3.5. 100% |=========================| 6.3 kB&#160;&#160;&#160; 00:00      <br />INFO: | Resolving dependencies      <br />INFO: | Dependencies resolved      <br />INFO: | I will do the following:      <br />INFO: | [update: VMware-esx-scripts 3.5.0-207095.i386]      <br />INFO: | Downloading Packages      <br />INFO: | Getting VMware-esx-scripts-3.5.0-207095.i386.rpm      <br />INFO: | Running test transaction:      <br />INFO: | Test transaction complete, Success!      <br />INFO: | VMware-esx-scripts 100 % done 1/2      <br />INFO: | Completing update for VMware-esx-scripts&#160; &#8211; 2/2      <br />INFO: | Updated:&#160; VMware-esx-scripts 3.5.0-207095.i386      <br />INFO: | Transaction(s) Complete      <br />INFO: Pre-install packages up-to-date      <br />INFO: Restarting /usr/sbin/esxupdate&#8230;      <br />INFO: Configuring&#8230;      <br />INFO: Preparing to install ['ESX350-200911202-UG']&#8230;      <br />INFO: The following RPMs are already installed on the system and will be skipped: ['VMware-esx-scripts.i386']      <br />INFO: Checking disk space and running test transaction&#8230;      <br />INFO: Running esxcfg-boot to regenerate initrds&#8230;      <br />INFO: &#8212; TOTALS: 1 packages installed, 0 pending or failed, 0 removed, 0 excluded &#8212;      <br />INFO: Install of ['ESX350-200911202-UG'] succeeded.      <br />[root@vmdesx002 root]#      <br /></strong></p>
<p>Yess, strike, what a wonderful day .. patching succeeded. </p>
<p>let’s see if we can successfully patch to Update 5 / 5a.</p>
<p><strong>esxupdate -d </strong><a href="ftp://172.16.88.194/nfsshare/VMware/PatchRepository/ESX3.5"><strong>ftp://172.16.88.194/nfsshare/VMware/PatchRepository/ESX3.5</strong></a><strong> &#8211;test update</strong></p>
<p><strong>INFO: No -b specified, selecting all bundles in depot.     <br />INFO: Configuring&#8230;      <br />INFO: The following bundles are being skipped.      <br />INFO: [ESX350-200903209-UG] superseded by ['ESX350-201002411-BG', 'ESX350-Update05a'].      <br />INFO: [ESX350-200912401-BG] superseded by ['ESX350-201006401-SG', 'ESX350-201003401-BG', 'ESX350-201008409-BG', 'ESX350-201008403-BG', 'ESX350-201008401-SG'].      <br />INFO: [ESX350-200803213-UG] is already installed, nothing for esxupdate to do.      <br />INFO: [ESX350-200911202-UG] is already installed, nothing for esxupdate to do.      <br />&#8230;      <br />&#8230;      <br />&#8230;      <br />INFO: [ESX350-200911216-UG] superseded by ['ESX350-201002411-BG', 'ESX350-Update05a'].      <br />ERROR: This bundle requires the host to be in maintenance mode.&#160; Since the host is not in maintenance mode, esxupdate cannot proceed. The VMs need to be turned off or migrated to another host first.      <br /></strong></p>
<p><strong></strong></p>
<p>it asks for Maintenance Mode – of course. we shut down the virtual machines and put the system into maintenance mode .. </p>
<p><strong>[root@vmdesx002 root]# vimsh -n -e /hostsvc/maintenance_mode_enter     <br /></strong></p>
<p>no errors – we can proceed with the real command <img style="border-bottom-style: none; border-right-style: none; border-top-style: none; border-left-style: none" class="wlEmoticon wlEmoticon-smile" alt="Smile" src="http://www.christiano.ch/wordpress/wp-content/uploads/2010/10/wlEmoticon-smile.png" /></p>
<p><strong>esxupdate -d </strong><a href="ftp://172.16.88.194/nfsshare/VMware/PatchRepository/ESX3.5"><strong>ftp://172.16.88.194/nfsshare/VMware/PatchRepository/ESX3.5</strong></a><strong> -n update</strong></p>
<p>reboot your server after the updates / patches have been applied..</p>
<div class="tweetthis" style="text-align:left;"><p> <a class="tt" href="http://twitter.com/intent/tweet?text=VMware%3A+Updating+%2F+Patching+ESX+Server+http%3A%2F%2Fchristiano.ch%2Fwordpress%2F%3Fp%3D1154" title="Post to Twitter"><img class="nothumb" src="http://www.christiano.ch/wordpress/wp-content/plugins/tweet-this/icons/en/twitter/tt-twitter.png" alt="Post to Twitter" /></a> <a class="tt" href="http://twitter.com/intent/tweet?text=VMware%3A+Updating+%2F+Patching+ESX+Server+http%3A%2F%2Fchristiano.ch%2Fwordpress%2F%3Fp%3D1154" title="Post to Twitter">Tweet This Post</a></p></div>]]></content:encoded>
			<wfw:commentRss>http://www.christiano.ch/wordpress/2010/10/31/vmware-updating-patching-esx-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>VMware ESX / Virtual Center &#8211; Extend Virtual Disk</title>
		<link>http://www.christiano.ch/wordpress/2010/10/31/vmware-esx-virtual-center-extend-virtual-disk/</link>
		<comments>http://www.christiano.ch/wordpress/2010/10/31/vmware-esx-virtual-center-extend-virtual-disk/#comments</comments>
		<pubDate>Sun, 31 Oct 2010 08:08:12 +0000</pubDate>
		<dc:creator>christian</dc:creator>
				<category><![CDATA[ESX Server]]></category>
		<category><![CDATA[VMware]]></category>
		<category><![CDATA[VMware; Virtual Machine]]></category>

		<guid isPermaLink="false">http://www.christiano.ch/wordpress/2010/10/31/vmware-esx-virtual-center-extend-virtual-disk/</guid>
		<description><![CDATA[Ok, I’ve already written about extending a virtual disk in VMware ESX Server / Virtual Center here. I spent the last view hours exactly for that task… In the VMware Infrastructure Client GUI I selected the the virtual machine with &#8230; <a href="http://www.christiano.ch/wordpress/2010/10/31/vmware-esx-virtual-center-extend-virtual-disk/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<table border="0" cellspacing="0" cellpadding="2" width="675">
<tbody>
<tr>
<td valign="top" width="520">Ok, I’ve already written about extending a virtual disk in VMware ESX Server / Virtual Center <a title="Extending Virtual Disk in VMware ESX Server" href="http://www.christiano.ch/wordpress/2009/08/13/how-to-extend-expand-virtual-disk-on-esx-server-using-gui-or-command-line/" target="_blank">here</a>.          <br />I spent the last view hours exactly for that task…</td>
<td valign="top" width="154"><a href="http://www.christiano.ch/wordpress/wp-content/uploads/2010/10/Logo_VMware.jpg"><img style="display: inline" title="Logo_VMware" alt="Logo_VMware" src="http://www.christiano.ch/wordpress/wp-content/uploads/2010/10/Logo_VMware_thumb.jpg" width="240" height="62" /></a></td>
</tr>
</tbody>
</table>
<p>  <span id="more-1150"></span>
<p>In the VMware Infrastructure Client GUI I selected the the virtual machine with the right mouse button, selected <em>Edit Settings, </em>selected the Hard Disk Number 1, and under <em>Capacity </em>I entered a new value of 48 GB. I wanted to enlarge (the disk.. <img style="border-bottom-style: none; border-right-style: none; border-top-style: none; border-left-style: none" class="wlEmoticon wlEmoticon-winkingsmile" alt="Winking smile" src="http://www.christiano.ch/wordpress/wp-content/uploads/2010/10/wlEmoticon-winkingsmile.png" />) / extend the disk from 24 gigabytes to 48 gigabytes. Everything fine I thought. I clicked on OK and assumed that the change has been committed, because I the task pane, I got a green success ball that normally indicates: everything’s fine. </p>
<p><a href="http://www.christiano.ch/wordpress/wp-content/uploads/2010/10/VMware_ESX_VirtualMachine_Disk_extended_Size.png"><img style="display: inline" title="VMware_ESX_VirtualMachine_Disk_extended_Size" alt="VMware_ESX_VirtualMachine_Disk_extended_Size" src="http://www.christiano.ch/wordpress/wp-content/uploads/2010/10/VMware_ESX_VirtualMachine_Disk_extended_Size_thumb.png" width="689" height="547" /></a></p>
<p><a href="http://www.christiano.ch/wordpress/wp-content/uploads/2010/10/VMware_ESX_Task_Reconfigure_Virtual_Machine_Completed.png"><img style="display: inline" title="VMware_ESX_Task_Reconfigure_Virtual_Machine_Completed" alt="VMware_ESX_Task_Reconfigure_Virtual_Machine_Completed" src="http://www.christiano.ch/wordpress/wp-content/uploads/2010/10/VMware_ESX_Task_Reconfigure_Virtual_Machine_Completed_thumb.png" width="803" height="66" /></a></p>
<p>BUT, when I later booted Windows PE to extend the disk partition using diskpart, I realized, that the disk geometry hasn’t been changed. I check the Hard Disk Number 1 in the Virtual Machine Properties page and voila, the disk was still 24GB. I thought, ok no worries chris, there must be snapshot. Delete that bastard and try it again. WRONG, there was no snapshot. Ok, I the past I often had issues with the VMware Infrastructure Client GUI, and I’m an old DOS Batch guy anyway – I opened an Putty SSH Shell, connected to the ESX Host and tried to extend the partition using <em>VMKFSTOOLS </em>as documented <a title="Extending Virtual Disk in VMware ESX Server" href="http://www.christiano.ch/wordpress/2009/08/13/how-to-extend-expand-virtual-disk-on-esx-server-using-gui-or-command-line/" target="_blank">here</a>. </p>
<p><strong>[root@vmdesx001 VMDSRV004]# vmkfstools -X 48G VMDSRV004_C.vmdk     <br />Failed to extend disk : There is not enough space on the file system for the selected operation (13).      <br /></strong></p>
<p>&#160;</p>
<p>Failed to extend disk, not enough disk space .. wtf, there’s about a quarter terabyte free disk space. I rebooted the ESX Server just to be sure that it isn’t a temporary I don’t know ..failure or error. When I tried it again =&gt; still the same. </p>
<p>I found this <a title="vmware-vdiskmanager complains of lack of space" href="http://communities.vmware.com/thread/92826" target="_blank">article / post</a>. But that didn’t help me either. I started looking at the different files in the folder</p>
<p><strong>[root@vmdesx001 VMDSRV004]# ls -la</strong>    <br />total 184550784    <br />drwxr-xr-x&#160;&#160;&#160; 1 root&#160;&#160;&#160;&#160; root&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; 1540 Oct 30 15:07 .    <br />drwxr-xr-t&#160;&#160;&#160; 1 root&#160;&#160;&#160;&#160; root&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; 2240 Oct 31 07:21 ..    <br /><strong>-rw&#8212;&#8212;-&#160;&#160;&#160; 1 root&#160;&#160;&#160;&#160; root&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; 406 Oct 30 14:18 VMDSRV004_C.vmdk</strong>    <br />-rw&#8212;&#8212;-&#160;&#160;&#160; 1 root&#160;&#160;&#160;&#160; root&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; 408 Oct 30 14:18 VMDSRV004_D.vmdk    <br />-rw&#8212;&#8212;-&#160;&#160;&#160; 1 root&#160;&#160;&#160;&#160; root&#160;&#160;&#160;&#160; 137438953472 Oct 30 14:24 VMDSRV004-flat.vmdk    <br />-rw&#8212;&#8212;-&#160;&#160;&#160; 1 root&#160;&#160;&#160;&#160; root&#160;&#160;&#160;&#160; 25769803776 Oct 30 14:24 VMDSRV004 NEW_1-flat.vmdk    <br /><strong>-rw&#8212;&#8212;-&#160;&#160;&#160; 1 root&#160;&#160;&#160;&#160; root&#160;&#160;&#160;&#160; 25769803776 Oct 30 14:24 VMDSRV004 NEW-flat.vmdk</strong>    <br />-rw&#8212;&#8212;-&#160;&#160;&#160; 1 root&#160;&#160;&#160;&#160; root&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; 404 Oct 30 14:18 VMDSRV004.vmdk    <br />-rw&#8212;&#8212;-&#160;&#160;&#160; 1 root&#160;&#160;&#160;&#160; root&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; 0 Oct 30 15:07 VMDSRV004.vmsd    <br />-rwxr-xr-x&#160;&#160;&#160; 1 root&#160;&#160;&#160;&#160; root&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; 1544 Oct 31 08:33 VMDSRV004.vmx    <br />-rw&#8212;&#8212;-&#160;&#160;&#160; 1 root&#160;&#160;&#160;&#160; root&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; 264 Oct 31 08:33 VMDSRV004.vmxf    </p>
<p>I checked the <strong>VMDSRV004_C.vmdk </strong>using <em>cat.</em></p>
<p><strong><em>[root@vmdesx001 VMDSRV004]# cat&#160; VMDSRV004_C.vmdk</em></strong>    <br /># Disk DescriptorFile    <br />version=1    <br />CID=c010d074    <br />parentCID=ffffffff    <br />createType=&quot;vmfs&quot;</p>
<p># Extent description   <br />RW 50331648 VMFS <strong><em>&quot;VMDSRV004 NEW-flat.vmdk&quot;</em></strong></p>
<p># The Disk Data Base   <br />#DDB</p>
<p>ddb.virtualHWVersion = &quot;4&quot;   <br />ddb.uuid = &quot;60 00 C2 97 8f 60 80 19-1e 49 de 39 f4 48 9f 7d&quot;    <br />ddb.geometry.cylinders = &quot;3133&quot;    <br />ddb.geometry.heads = &quot;255&quot;    <br />ddb.geometry.sectors = &quot;63&quot;    <br />ddb.adapterType = &quot;lsilogic&quot;    <br />ddb.toolsVersion = &quot;7300&quot;    </p>
<p><em></em></p>
<p>Ok, there’s an # Extent description Section in that file. AND, a Filename defined with a SPACE in it!</p>
<p>Let’s change the Filename on disk to something without a space</p>
<p><strong>[root@vmdesx001 VMDSRV004]# mv &quot;VMDSRV004 NEW-flat.vmdk&quot; &quot;VMDSRV004_NEW-flat.vmdk&quot;</strong></p>
<p>and now let’s open the <strong>VMDSRV004_C.vmdk </strong>using vi or nano or whatever editor.</p>
<p><strong>[root@vmdesx001 VMDSRV004]# vi VMDSRV004_C.vmdk</strong></p>
<p>change the section </p>
<p># Extent description   <br />RW 50331648 VMFS &quot;VMDSRV004_NEW-flat.vmdk&quot;<strong> &lt;== new filename!</strong></p>
<p><strong></strong>:wq (write quit the editor)</p>
<p>and try to extend the partition again..</p>
<p><strong>[root@vmdesx001 VMDSRV004]# vmkfstools -X 48G VMDSRV004_C.vmdk     <br />[root@vmdesx001 VMDSRV004]#      <br /></strong></p>
<p>&#160;</p>
<p>And see, IT WORKS. Took me 3 hours and thought I’ll share that with the rest of the world. maybe it will help someone .. someday.</p>
<div class="tweetthis" style="text-align:left;"><p> <a class="tt" href="http://twitter.com/intent/tweet?text=VMware+ESX+%2F+Virtual+Center+%E2%80%93+Extend+Virtual+Disk+http%3A%2F%2Fchristiano.ch%2Fwordpress%2F%3Fp%3D1150" title="Post to Twitter"><img class="nothumb" src="http://www.christiano.ch/wordpress/wp-content/plugins/tweet-this/icons/en/twitter/tt-twitter.png" alt="Post to Twitter" /></a> <a class="tt" href="http://twitter.com/intent/tweet?text=VMware+ESX+%2F+Virtual+Center+%E2%80%93+Extend+Virtual+Disk+http%3A%2F%2Fchristiano.ch%2Fwordpress%2F%3Fp%3D1150" title="Post to Twitter">Tweet This Post</a></p></div>]]></content:encoded>
			<wfw:commentRss>http://www.christiano.ch/wordpress/2010/10/31/vmware-esx-virtual-center-extend-virtual-disk/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<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 &#8230; <a href="http://www.christiano.ch/wordpress/2009/08/13/how-to-extend-expand-virtual-disk-on-esx-server-using-gui-or-command-line/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></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>
<div class="tweetthis" style="text-align:left;"><p> <a class="tt" href="http://twitter.com/intent/tweet?text=How+to%3A+Extend+%2F+Expand+Virtual+Disk+on+ESX+Server+using+GUI+or+command+line+http%3A%2F%2Fchristiano.ch%2Fwordpress%2F%3Fp%3D344" title="Post to Twitter"><img class="nothumb" src="http://www.christiano.ch/wordpress/wp-content/plugins/tweet-this/icons/en/twitter/tt-twitter.png" alt="Post to Twitter" /></a> <a class="tt" href="http://twitter.com/intent/tweet?text=How+to%3A+Extend+%2F+Expand+Virtual+Disk+on+ESX+Server+using+GUI+or+command+line+http%3A%2F%2Fchristiano.ch%2Fwordpress%2F%3Fp%3D344" title="Post to Twitter">Tweet This Post</a></p></div>]]></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>1</slash:comments>
		</item>
	</channel>
</rss>

