<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>VirtuallyNil</title>
	<atom:link href="http://virtuallynil.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://virtuallynil.com</link>
	<description>Virtualisation, VMware, Linux and more</description>
	<lastBuildDate>Mon, 01 Nov 2010 13:55:47 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='virtuallynil.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>VirtuallyNil</title>
		<link>http://virtuallynil.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://virtuallynil.com/osd.xml" title="VirtuallyNil" />
	<atom:link rel='hub' href='http://virtuallynil.com/?pushpress=hub'/>
		<item>
		<title>Upgrading to vSphere vCenter 4.1 Experiencies</title>
		<link>http://virtuallynil.com/2010/11/01/upgrading-to-vsphere-vcenter-4-1-experiencies/</link>
		<comments>http://virtuallynil.com/2010/11/01/upgrading-to-vsphere-vcenter-4-1-experiencies/#comments</comments>
		<pubDate>Mon, 01 Nov 2010 13:54:11 +0000</pubDate>
		<dc:creator>vneil</dc:creator>
				<category><![CDATA[upgrade]]></category>
		<category><![CDATA[VMware]]></category>

		<guid isPermaLink="false">http://virtuallynil.com/?p=221</guid>
		<description><![CDATA[I&#8217;ve recently completed upgrading all our vSphere vCenter servers to 4.1 and as I came across a few issues I thought I would document them. We had several vSphere vCenter 4.0U2 servers running on Windows 2003 R2 32 bit virtual machines and seeing as we needed to move to 64bit for 4.1 I took the [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=virtuallynil.com&amp;blog=11728431&amp;post=221&amp;subd=virtuallynil&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve recently completed upgrading all our vSphere vCenter servers to 4.1 and as I came across a few issues I thought I would document them.</p>
<p>We had several vSphere vCenter 4.0U2 servers running on Windows 2003 R2 32 bit virtual machines and seeing as we needed to move to 64bit for 4.1 I took the opportunity to  switch to Windows 2008 R2 64bit. A test vCenter server has a MS-SQL Express database on the same server and two production vCenter servers (in Linked mode) have databases on separate MS-SQL 2005 servers.</p>
<p>We built new Windows 2008R2 64bit servers in preparation and I used the datamigration tool from the vCenter distribution to perform the migration of data and install of 4.1.</p>
<h3>Issues</h3>
<p></p>
<h3><span style="text-decoration:underline;">MS-SQL Express database with data migration</span></h3>
<p>This occurred with the MS-SQL Express migration, the <a title="http://kb.vmware.com/kb/1021635" href="http://kb.vmware.com/kb/1021635" target="_blank">datamigration</a> tool did not backup the data as expected but also did not log any error messages during the backup procedure. The install runs fine but just creates a new empty database. This is due to a MS-SQL Express database that has been upgraded and registry settings being set wrong. It is detailed in this <a title="http://kb.vmware.com/kb/1024380" href="http://kb.vmware.com/kb/1024380" target="_blank">KB article (1024380)</a> with the fix.</p>
<p>This is from the backup .log showing a good backup, if it says DB type of <strong>Custom</strong> it will not work:</p>
<p><kbd>[backup]  Backing up vCenter Server DB...<br />
[backup]  Checking vCenter Server DB configuration...<br />
[backup]  vCenter Server DB type: bundled</kbd></p>
<h3><span style="text-decoration:underline;">Running as Administrator</span></h3>
<p>As a non-Windows bod, one thing that keeps catching me out on Windows 2008R2 is that to do most things, you need to explicitly say to run them as an Administrator even if your userid is a local administrator. For example, when running the <em>install.cmd</em> from the datamigration tool, it <em>will</em> run as your normal userid but will fail fairly soon. Right click on the install.cmd and choose &#8220;Run as Adminstrator&#8221; for a simple life.</p>
<h3><span style="text-decoration:underline;">MS-SQL Express &#8211; transaction logging from bulk to simple</span></h3>
<p>Another issue with the MS-SQL Express upgrade path was with the database transaction log filling up after a few days. Again, not being that <em>au fait</em> with MS-SQL management I found the solution to this one <a title="http://pcloadletter.co.uk/2010/07/26/upgrading-to-vcenter-4-1/" href="http://pcloadletter.co.uk/2010/07/26/upgrading-to-vcenter-4-1/" target="_blank">here in a post by Patters</a>. It seems the upgrade process sometimes leaves the database logging mode as &#8216;<span style="text-decoration:underline;">bulk-logged</span>&#8216;, using the Management Studio Express tool I switched it to &#8216;<span style="text-decoration:underline;">Simple</span>&#8216;.</p>
<h3><span style="text-decoration:underline;">MS-SQL 2005 Server databases<br />
</span></h3>
<p>I also had a similar problem with just one of the production databases on the MS-SQL 2005 server which was left in &#8220;Bulk-logged&#8221; mode after the upgrade and the DBA had to switch it back to Simple.</p>
<h3><span style="text-decoration:underline;">Sysprep files &#8211; all in one directory</span></h3>
<p>As the server was a new install I also needed to repopulate the Sysprep files, following the instructions  in the KB article <a title="http://kb.vmware.com/kb/1005593" href="http://kb.vmware.com/kb/1005593" target="_blank">http://kb.vmware.com/kb/1005593</a> . One thing I missed was to expand the <em>deploy.cab</em> file from the downloaded file, what I ended up doing was to make sure there were no sub directories under the relevant sysprep directory (<kbd>srv2003</kbd> in this case) and put all the files from downloaded file and the files from <em>deploy.cab</em> in that directory.</p>
<p>So far we&#8217;ve done a few host upgrades of test ESXi hosts to 4.1 without problems, production yet to come.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/virtuallynil.wordpress.com/221/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/virtuallynil.wordpress.com/221/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/virtuallynil.wordpress.com/221/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/virtuallynil.wordpress.com/221/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/virtuallynil.wordpress.com/221/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/virtuallynil.wordpress.com/221/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/virtuallynil.wordpress.com/221/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/virtuallynil.wordpress.com/221/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/virtuallynil.wordpress.com/221/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/virtuallynil.wordpress.com/221/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/virtuallynil.wordpress.com/221/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/virtuallynil.wordpress.com/221/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/virtuallynil.wordpress.com/221/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/virtuallynil.wordpress.com/221/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=virtuallynil.com&amp;blog=11728431&amp;post=221&amp;subd=virtuallynil&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://virtuallynil.com/2010/11/01/upgrading-to-vsphere-vcenter-4-1-experiencies/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/df2a71ab6f7f22a4ae093dc0ad5f9eae?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">vneil</media:title>
		</media:content>
	</item>
		<item>
		<title>Linux VMs and OCFS2 shared physical RDM</title>
		<link>http://virtuallynil.com/2010/09/27/linux-vms-and-ocfs2-shared-physical-rdm/</link>
		<comments>http://virtuallynil.com/2010/09/27/linux-vms-and-ocfs2-shared-physical-rdm/#comments</comments>
		<pubDate>Mon, 27 Sep 2010 07:28:10 +0000</pubDate>
		<dc:creator>vneil</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[storage]]></category>
		<category><![CDATA[VMware]]></category>

		<guid isPermaLink="false">http://virtuallynil.com/?p=184</guid>
		<description><![CDATA[I had setup a couple of test virtual machines in this scenario, the first I setup with a physical RDM of the shared LUN and enabled SCSI bus sharing on the adapter. Then for the second test virtual machine I pointed it at the mapped VMDK file of the physical RDM from the first virtual machine, this seemed to be obvious way to setup sharing of the physical RDM between VMs. This all works and both Linux servers can use the LUN and the clustered filesystem. The problem I came across is that as soon as you enable SCSI bus sharing vMotion is disabled. I wanted the ability to migrate these virtual machines if I needed to so I looked into how to achieve this.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=virtuallynil.com&amp;blog=11728431&amp;post=184&amp;subd=virtuallynil&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>We&#8217;ve recently had the need to setup Linux virtual machines using large shared disks with the <a title="http://oss.oracle.com/projects/ocfs2/" href="http://oss.oracle.com/projects/ocfs2/" target="_blank">OCFS2 cluster filesystem</a>. To complicate matters some of these Linux servers in the cluster might run as zLinux servers on a mainframe under z/VM, all sharing the same LUNs.</p>
<p>I had setup a couple of test virtual machines in this scenario, the first I setup with a physical RDM of the shared LUN and enabled SCSI bus sharing on the adapter. Then for the second test virtual machine I pointed it at the mapped VMDK file of the physical RDM from the first virtual machine, this seemed to be obvious way to setup sharing of the physical RDM between VMs. This all works and both Linux servers can use the LUN and the clustered filesystem. The problem I came across is that as soon as you enable SCSI bus sharing vMotion is disabled. I wanted the ability to migrate these virtual machines if I needed to so I looked into how to achieve this.</p>
<div id="attachment_194" class="wp-caption alignleft" style="width: 281px"><a href="http://virtuallynil.files.wordpress.com/2010/09/vcenter_config_rdm.png"><img class="size-medium wp-image-194" title="vcenter_config_rdm" src="http://virtuallynil.files.wordpress.com/2010/09/vcenter_config_rdm.png?w=271&#038;h=251" alt="" width="271" height="251" /></a><p class="wp-caption-text">Adding config.vpxd.filter.rdmFilter in vCenter</p></div>
<p>If you only have one virtual machine and do not enable the SCSI bus sharing then vMotion is possible.  The solution I came up with was to setup each virtual machine the same, ie. each to have the LUN as a physical RDM but of course once you allocated the LUN to one virtual machine it is not visible to any other VM.  The easiest way to allow this to happen is with the <kbd>config.vpxd.filter.rdmFilter</kbd> configuration option, this is set in the vCenter settings under <strong>Administration</strong> &gt; <strong>vCenter Server Settings</strong> &gt; <strong>Advanced Settings</strong> and is detailed in this <a title="http://kb.vmware.com/kb/1010513" href="http://kb.vmware.com/kb/1010513" target="_blank">KB article</a>. If the setting is not in the list of Advanced Settings it can be added.</p>
<p>As <a title="http://www.yellow-bricks.com/2010/08/11/storage-filters/" href="http://www.yellow-bricks.com/2010/08/11/storage-filters/" target="_blank">Duncan Epping rightly describes here</a> it&#8217;s not really wise to leave this option set to false. What I did was to set the option to false, carefully allocate the LUN to the three Linux servers I was setting up and then set it back to true.</p>
<p>With the virtual machines setup like this the restriction is that they cannot run on the same host so I set anti-affinity rules to keep them apart.</p>
<p>It is also possible to do with via the command line without the need to set the Advanced Setting as described in this <a title="http://www.mail-archive.com/ocfs2-users@oss.oracle.com/msg03681.html" href="http://www.mail-archive.com/ocfs2-users@oss.oracle.com/msg03681.html" target="_blank">mail archive</a> I found. I haven&#8217;t tried this method.</p>
<p>I don&#8217;t know if this setup is supported or not but it seems to achieve the goal we need. I&#8217;d be interested to hear any opinions on this.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/virtuallynil.wordpress.com/184/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/virtuallynil.wordpress.com/184/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/virtuallynil.wordpress.com/184/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/virtuallynil.wordpress.com/184/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/virtuallynil.wordpress.com/184/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/virtuallynil.wordpress.com/184/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/virtuallynil.wordpress.com/184/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/virtuallynil.wordpress.com/184/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/virtuallynil.wordpress.com/184/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/virtuallynil.wordpress.com/184/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/virtuallynil.wordpress.com/184/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/virtuallynil.wordpress.com/184/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/virtuallynil.wordpress.com/184/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/virtuallynil.wordpress.com/184/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=virtuallynil.com&amp;blog=11728431&amp;post=184&amp;subd=virtuallynil&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://virtuallynil.com/2010/09/27/linux-vms-and-ocfs2-shared-physical-rdm/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/df2a71ab6f7f22a4ae093dc0ad5f9eae?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">vneil</media:title>
		</media:content>

		<media:content url="http://virtuallynil.files.wordpress.com/2010/09/vcenter_config_rdm.png?w=300" medium="image">
			<media:title type="html">vcenter_config_rdm</media:title>
		</media:content>
	</item>
		<item>
		<title>VMware and SLES: a good match?</title>
		<link>http://virtuallynil.com/2010/09/12/vmware-and-sles-a-good-match/</link>
		<comments>http://virtuallynil.com/2010/09/12/vmware-and-sles-a-good-match/#comments</comments>
		<pubDate>Sun, 12 Sep 2010 08:27:15 +0000</pubDate>
		<dc:creator>vneil</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[VMware]]></category>

		<guid isPermaLink="false">http://virtuallynil.com/?p=168</guid>
		<description><![CDATA[I&#8217;m afraid this is just a bit of a moan.I have seen a few posts lately regarding VMware&#8217;s partnership with Novell and SLES. I thought I would post my experience of running an ESXi cluster with SLES Linux virtual machines. We started running SLES 10 on a ESXi 3.5 cluster and for the VM tools [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=virtuallynil.com&amp;blog=11728431&amp;post=168&amp;subd=virtuallynil&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m afraid this is just a bit of a moan.I have seen a <a title="http://www.vcritical.com/2010/09/sles-for-vmware-first-look/" href="http://www.vcritical.com/2010/09/sles-for-vmware-first-look/">few</a> <a title="http://www.jasemccarty.com/blog/?p=1037" href="http://www.jasemccarty.com/blog/?p=1037">posts</a> lately regarding <a title="http://www.vmware.com/company/news/releases/novell-vmw-partnership.html" href="http://www.vmware.com/company/news/releases/novell-vmw-partnership.html">VMware&#8217;s partnership with Novell</a> and SLES. I thought I would post my experience of running an ESXi cluster with SLES Linux virtual machines.</p>
<p>We started running SLES 10 on a ESXi 3.5 cluster and for the VM tools we started using the <a title="http://www.vmware.com/download/packages.html" href="http://www.vmware.com/download/packages.html">RPMs packaged from VMware</a>. This was fine until we upgraded to ESXi 4.0 on the hosts, after that VM tools that are installed from the RPMs show up in vCenter with a status of &#8220;<em>unmanaged</em>&#8220;. This is as described in the <a title="http://www.vmware.com/pdf/osp_install_guide.pdf" href="http://www.vmware.com/pdf/osp_install_guide.pdf">documentation</a>. We decided then to switch to using the VM tools installed from the ESXi hosts and VUM, this meant that the status returned to &#8220;<em>OK</em>&#8221; in vCenter and we had the benefit of being able to upgrade the virtual machines&#8217;s VMtools with VUM.</p>
<p>The problem started when we started upgrading our Linux servers from SLES 10 SP3 to SLES 11 SP1, it seems the VM tools distributed with ESXi and downloaded via VUM do not distribute binary kernel modules for SP1 , they have SLES 11 GA but not SP1. This is fine if you have SLES11 SP1 virtual machines with compilers and kernel sources but our production servers do not have these for obvious reasons. The upshot of this is that we have switched back to the RPM distributed tools and will have to put up with the status saying &#8220;<em>unmanaged</em>&#8220;.</p>
<p>I have checked the VM tools that come on the ESXi4.1 installation and these also do not have the binary modules for SP1.</p>
<p>This is quite annoying as we had a small battle with the other Unix admins to switch to using VUM to upgrade VM tools and to now have to switch back to RPMs means it will be almost impossible to ever switch back to using VUM as and when SLES11 SP1 is properly supported with VMware ESXi.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/virtuallynil.wordpress.com/168/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/virtuallynil.wordpress.com/168/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/virtuallynil.wordpress.com/168/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/virtuallynil.wordpress.com/168/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/virtuallynil.wordpress.com/168/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/virtuallynil.wordpress.com/168/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/virtuallynil.wordpress.com/168/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/virtuallynil.wordpress.com/168/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/virtuallynil.wordpress.com/168/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/virtuallynil.wordpress.com/168/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/virtuallynil.wordpress.com/168/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/virtuallynil.wordpress.com/168/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/virtuallynil.wordpress.com/168/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/virtuallynil.wordpress.com/168/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=virtuallynil.com&amp;blog=11728431&amp;post=168&amp;subd=virtuallynil&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://virtuallynil.com/2010/09/12/vmware-and-sles-a-good-match/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/df2a71ab6f7f22a4ae093dc0ad5f9eae?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">vneil</media:title>
		</media:content>
	</item>
		<item>
		<title>Using Hyperic to monitor vSphere</title>
		<link>http://virtuallynil.com/2010/08/12/using-hyperic-to-monitor-vsphere/</link>
		<comments>http://virtuallynil.com/2010/08/12/using-hyperic-to-monitor-vsphere/#comments</comments>
		<pubDate>Thu, 12 Aug 2010 07:55:59 +0000</pubDate>
		<dc:creator>vneil</dc:creator>
				<category><![CDATA[monitoring]]></category>
		<category><![CDATA[VMware]]></category>

		<guid isPermaLink="false">http://virtuallynil.com/?p=145</guid>
		<description><![CDATA[I&#8217;ve looked at Hyperic before as our application team were already using it to monitor their JBoss applications running on Linux and they already have it configured to push alerts to our main enterprise monitoring software. I thought I could use it also to push alerts from vCenter but earlier version of Hyperic didn&#8217;t support [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=virtuallynil.com&amp;blog=11728431&amp;post=145&amp;subd=virtuallynil&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve looked at Hyperic before as our application team were already using it to monitor their JBoss applications running on Linux and they already have it configured to push alerts to our main enterprise monitoring software. I thought I could use it also to push alerts from vCenter but earlier version of Hyperic didn&#8217;t support vSphere so well or only supported  host servers and not vCenter. On seeing news on the Hyperic site of a<a title="http://www.hyperic.com/blog/announcing-hyperic-4-4-dramatically-simplified-monitoring-of-virtualized-application-infrastructure/" href="http://www.hyperic.com/blog/announcing-hyperic-4-4-dramatically-simplified-monitoring-of-virtualized-application-infrastructure/" target="_blank"> new release of Hyperic with improved vSphere support</a> I decided to give it a test.</p>
<p>I <a title="http://www.springsource.com/landing/hyperic-enterprise-edition-download" href="http://www.springsource.com/landing/hyperic-enterprise-edition-download" target="_blank">signed up and downloaded the demo</a> installer of Hyperic 4.4  which included the server and agent for Linux. I installed the in a standard SLES server and started the server. This was all quite straight forward and it also installed a copy of PostgreSQL to use as it&#8217;s database. When started the server it was accessible from a browser on port 7080. I signed in with the default user of hqadmin.</p>
<div id="attachment_153" class="wp-caption alignnone" style="width: 310px"><a href="http://virtuallynil.files.wordpress.com/2010/08/hyperic-signin.png"><img class="size-medium wp-image-153 " title="hyperic-signin" src="http://virtuallynil.files.wordpress.com/2010/08/hyperic-signin.png?w=300&#038;h=205" alt="Initial screen after install" width="300" height="205" /></a><p class="wp-caption-text">Initial screen after install</p></div>
<div id="attachment_152" class="wp-caption alignnone" style="width: 310px"><a href="http://virtuallynil.files.wordpress.com/2010/08/hyperic-initial.png"><img class="size-medium wp-image-152" title="hyperic-initial" src="http://virtuallynil.files.wordpress.com/2010/08/hyperic-initial.png?w=300&#038;h=211" alt="Starting dashboard" width="300" height="211" /></a><p class="wp-caption-text">Starting dashboard</p></div>
<p>As with most monitoring software it needs agents. I installed an agent on the Windows server running VMware vSphere Server by downloading the win32 agent from the website and unpacking it on the W2003 server</p>
<p>Then it&#8217;s just a case of running <em>hq-agent.bat install</em> and  <em>hq-agent.bat start</em></p>
<div id="attachment_154" class="wp-caption alignnone" style="width: 310px"><a href="http://virtuallynil.files.wordpress.com/2010/08/hyperic-win-agent-install.png"><img class="size-medium wp-image-154" title="hyperic-win-agent-install" src="http://virtuallynil.files.wordpress.com/2010/08/hyperic-win-agent-install.png?w=300&#038;h=136" alt="Install and start of Windows HQ agent" width="300" height="136" /></a><p class="wp-caption-text">Install and start of Windows HQ agent</p></div>
<p>Answer the questions, I took the defaults. When it starts it goes off and registers itself with the HQ server using the details given.</p>
<p>The agent should discover application details from the  system it is on and appear after a refresh in the Auto-Discovery pane on the Dashboard of the HQ server. It should show VMware vCenter,  select Add to Inventory.</p>
<div id="attachment_150" class="wp-caption alignnone" style="width: 310px"><a href="http://virtuallynil.files.wordpress.com/2010/08/hyperic-autodiscovery.png"><img class="size-medium wp-image-150" title="hyperic-autodiscovery" src="http://virtuallynil.files.wordpress.com/2010/08/hyperic-autodiscovery.png?w=300&#038;h=167" alt="HQ agent auto-discovery" width="300" height="167" /></a><p class="wp-caption-text">HQ agent auto-discovery</p></div>
<p>Unfortunately there seems to be a problem with the Windows HQ agent and vSphere as mentioned <a title="http://forums.hyperic.com/jiveforums/thread.jspa?messageID=32604&amp;#32604" href="http://forums.hyperic.com/jiveforums/thread.jspa?messageID=32604&amp;#32604" target="_blank">here </a></p>
<p>You need to edit the <em>agent.properties</em> file in the <em>conf</em> directory of the HQ agent with the details you gave when it was installed. Then restart the agent with hq-agent restart<br />
<code>agent.setup.camIP=10.14.0.35<br />
agent.setup.camPort=7080<br />
agent.setup.camSSLPort=7443<br />
agent.setup.camSecure=yes<br />
agent.setup.camLogin=hqadmin<br />
agent.setup.camPword=hqadmin<br />
agent.setup.agentIP=10.14.0.79<br />
agent.setup.agentPort=2144<br />
agent.setup.resetupTokens=no<br />
#<br />
agent.setup.unidirectional=yes</code></p>
<p>To allow the agent to discover vSphere details, select the <span style="text-decoration:underline;">Resources tab -&gt; <em>windows server</em> -&gt; <em>hostname</em> VMware vCenter -&gt; Inventory tab</span>. Edit the Configurations Properties (near the bottom of the page) add a username and password that can access the vCenter sdk. After a few minutes a refresh of the Dashboard should start to show discovered ESX/ESXi hosts and VMs  in the Recently Added pane.</p>
<p>The ESXi hosts will show up under the Resources tab under Platforms, along with your agents. Under <em>Resources -&gt; HQ VSphere </em>you get a topology view of vCenter/Host/VM</p>
<p>There seems to be a lot of options for monitoring and alerting which I haven&#8217;t really looked into yet but it looks quite promising.</p>
<p>A big issue is that it doesn&#8217;t seem all that stable at the moment (it could be because this was a quick demo install and I haven&#8217;t really tuned it at all) for example once or twice I deleted one agent in the Resources tab and several resources disappeared. If an agent disappears from view it seems one way to get it back is to stop the agent and then delete the contents of the data directory and then when the agent is restarted (with <em>hq-agent.bat start</em>) it then registers again on the server.</p>
<p>The next problem I encountered was adding a second vSphere server, the view under <em>Resources-&gt;HQ vSphere</em> got very confused. First off both vCenter servers were listed but the host servers were under  the wrong vCenter server , then one of the vCenter servers disappeared completely.</p>
<p>I&#8217;ll continue to test it and search<a title="http://forums.hyperic.com/jiveforums/index.jspa" href="http://forums.hyperic.com/jiveforums/index.jspa"> forums</a> to see if there are any solutions to these problems.</p>
<p>If agents are installed in the running VMs as well it seems that you can drill down from your running vSphere server, to host server, to VM and then down to applications running in that VM. This could prove quite useful in problem solving any particular issues with performance.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/virtuallynil.wordpress.com/145/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/virtuallynil.wordpress.com/145/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/virtuallynil.wordpress.com/145/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/virtuallynil.wordpress.com/145/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/virtuallynil.wordpress.com/145/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/virtuallynil.wordpress.com/145/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/virtuallynil.wordpress.com/145/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/virtuallynil.wordpress.com/145/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/virtuallynil.wordpress.com/145/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/virtuallynil.wordpress.com/145/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/virtuallynil.wordpress.com/145/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/virtuallynil.wordpress.com/145/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/virtuallynil.wordpress.com/145/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/virtuallynil.wordpress.com/145/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=virtuallynil.com&amp;blog=11728431&amp;post=145&amp;subd=virtuallynil&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://virtuallynil.com/2010/08/12/using-hyperic-to-monitor-vsphere/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/df2a71ab6f7f22a4ae093dc0ad5f9eae?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">vneil</media:title>
		</media:content>

		<media:content url="http://virtuallynil.files.wordpress.com/2010/08/hyperic-signin.png?w=300" medium="image">
			<media:title type="html">hyperic-signin</media:title>
		</media:content>

		<media:content url="http://virtuallynil.files.wordpress.com/2010/08/hyperic-initial.png?w=300" medium="image">
			<media:title type="html">hyperic-initial</media:title>
		</media:content>

		<media:content url="http://virtuallynil.files.wordpress.com/2010/08/hyperic-win-agent-install.png?w=300" medium="image">
			<media:title type="html">hyperic-win-agent-install</media:title>
		</media:content>

		<media:content url="http://virtuallynil.files.wordpress.com/2010/08/hyperic-autodiscovery.png?w=300" medium="image">
			<media:title type="html">hyperic-autodiscovery</media:title>
		</media:content>
	</item>
		<item>
		<title>Too many interruptions</title>
		<link>http://virtuallynil.com/2010/06/07/too-many-interruptions/</link>
		<comments>http://virtuallynil.com/2010/06/07/too-many-interruptions/#comments</comments>
		<pubDate>Mon, 07 Jun 2010 08:06:50 +0000</pubDate>
		<dc:creator>vneil</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[VMware]]></category>

		<guid isPermaLink="false">http://virtuallynil.com/?p=122</guid>
		<description><![CDATA[We had a strange problem that I noticed the other day, a few of our Linux virtual machines had High CPU alarms in vCenter. Looking into the servers themselves they were completely idle, they had been installed but no applications were running. The CPU stats in Linux showed 99% idle but the performance tab in vCenter for the virtual machine showed over 95% CPU busy.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=virtuallynil.com&amp;blog=11728431&amp;post=122&amp;subd=virtuallynil&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>We had a strange problem that I noticed the other day, a few of our Linux virtual machines had High CPU alarms in vCenter. Looking into the servers themselves they were completely idle, they had been installed but no applications were running. The CPU stats in Linux showed 99% idle but the performance tab in vCenter for the virtual machine showed over 95% CPU busy. Then I looked at the interrupts per second counter from mpstat:</p>
<pre class="brush: plain; gutter: false; highlight: [4]; wrap-lines: false;"># mpstat 5 5
Linux 2.6.16.60-0.21-smp (xxxx) 	05/31/10
CPU   %user   %nice    %sys   %steal   %idle    intr/s
all    0.00    0.00    0.60    0.00   99.40   154596.40
</pre>
<p>A lot of interrupts (intr/s) for an idle system, compare this to a &#8216;normal&#8217; busy system:</p>
<pre class="brush: plain; gutter: false; highlight: [4]; wrap-lines: false;">$ mpstat 5
Linux 2.6.16.60-0.21-smp (xxxx) 	06/03/2010
CPU   %user   %nice    %sys   %steal   %idle    intr/s
all   81.24    0.00   18.36    0.00    0.00     9832.73
</pre>
<p>We have around 120 Linux virtual machines and I was only seeing this on about 5 systems. Looking at the output from procinfo it easy to see the interrupts are timer interrupts:</p>
<pre class="brush: plain; gutter: false; highlight: [19]; wrap-lines: false;"># procinfo
Linux 2.6.16.60-0.21-smp (geeko@buildhost) (gcc 4.1.2 20070115) #1 SMP Tue May 6 12:41:02 UTC 2008 1CPU [xxxxx]

Memory:      Total        Used        Free      Shared     Buffers
Mem:       3867772      494576     3373196           0       11228
Swap:      4194296           0     4194296

Bootup: Mon May 31 14:24:38 2010    Load average: 0.00 0.16 0.18 2/152 5427

user  :       0:00:19.94   2.8%  page in :    1054996  disk 1:    26937r    7117w
nice  :       0:00:05.30   0.7%  page out:      28856  disk 2:      124r       0w
system:       0:00:20.78   2.9%  page act:      30744
IOwait:       0:01:28.12  12.2%  page dea:          0
hw irq:       0:00:01.38   0.2%  page flt:    1514598
sw irq:       0:00:01.32   0.2%  swap in :          0
idle  :       0:09:32.81  79.6%  swap out:          0
uptime:       0:11:59.66         context :     297632

irq  0: 101039309 timer                 irq  9:         0 acpi
irq  1:         9 i8042                 irq 12:       114 i8042
irq  3:         1                       irq 14:      5660 ide0
irq  4:         1                       irq169:     30998 ioc0
irq  6:         5                       irq177:      1113 eth0
irq  8:         0 rtc                   irq185:      2480 eth1 </pre>
<p>I picked one and just rebooted it from the command line in Linux. After the reboot it still showed the same symptoms, a very high intr/s. Shutting down all services and daemons still didn&#8217;t help. I then shutdown and powered off the VM and then after the power on it was ok, the high interrupts per second had stopped.</p>
<p>We then experimented with trying a vmotion with one of these systems which had a high intr/s, this also seemed to work. &#8220;Good!&#8221; we thought a non-interruptive fix but when we tried with vmotion on another server it didn&#8217;t fix the problem. Then trying a vmotion again on the same server fixed it ?!</p>
<p>It seems that there is no pattern in fixing this, a cold reboot works or multiple vmotions sometimes helps. All these systems were SLES servers with SP2 running the SMP Linux kernel even though most only had one vCPU (but not all).</p>
<p>Definitely a strange one. I&#8217;ll keep an eye on this.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/virtuallynil.wordpress.com/122/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/virtuallynil.wordpress.com/122/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/virtuallynil.wordpress.com/122/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/virtuallynil.wordpress.com/122/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/virtuallynil.wordpress.com/122/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/virtuallynil.wordpress.com/122/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/virtuallynil.wordpress.com/122/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/virtuallynil.wordpress.com/122/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/virtuallynil.wordpress.com/122/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/virtuallynil.wordpress.com/122/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/virtuallynil.wordpress.com/122/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/virtuallynil.wordpress.com/122/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/virtuallynil.wordpress.com/122/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/virtuallynil.wordpress.com/122/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=virtuallynil.com&amp;blog=11728431&amp;post=122&amp;subd=virtuallynil&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://virtuallynil.com/2010/06/07/too-many-interruptions/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/df2a71ab6f7f22a4ae093dc0ad5f9eae?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">vneil</media:title>
		</media:content>
	</item>
		<item>
		<title>Network changes</title>
		<link>http://virtuallynil.com/2010/04/29/network-changes/</link>
		<comments>http://virtuallynil.com/2010/04/29/network-changes/#comments</comments>
		<pubDate>Thu, 29 Apr 2010 09:18:31 +0000</pubDate>
		<dc:creator>vneil</dc:creator>
				<category><![CDATA[ESXi]]></category>
		<category><![CDATA[network]]></category>
		<category><![CDATA[scripts]]></category>
		<category><![CDATA[VMware]]></category>

		<guid isPermaLink="false">http://virtuallynil.com/?p=7</guid>
		<description><![CDATA[When our environment was first setup it was difficult to get all the necessary buy-in from different departments, for example, the network team. This meant doing things like VLAN tagging / trunking was not feasible, we had to provide connections to 4 different virtual machine networks so we had a lot of network connections and [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=virtuallynil.com&amp;blog=11728431&amp;post=7&amp;subd=virtuallynil&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>When our environment was first setup it was difficult to get all the necessary buy-in from different departments, for example, the network team.</p>
<p><a href="http://virtuallynil.files.wordpress.com/2010/04/vise_network_v1.png"><img class="alignleft size-medium wp-image-105" title="Network Before" src="http://virtuallynil.files.wordpress.com/2010/04/vise_network_v1.png?w=300&#038;h=210" alt="network pre reconfig" width="300" height="210" /></a>This meant doing things like VLAN tagging / trunking was not feasible, we had to provide connections to 4 different virtual machine networks so we had a lot of network connections and did not have redundancy on all. The servers had 8 network connections but to allow for ESXi / vMotion networks and the VM networks, the maintenance networks for the VMs did not get redundancy plus we had to drop one production network which wasn&#8217;t required straight away.</p>
<p>Later we organised an in-house VMware training (given by the excellent <a title="http://www.ntpro.nl/blog/" href="http://www.ntpro.nl/blog/">Eric Sloof</a>) and invited a couple of the key guys from the network team who we had been working with. This had the great affect of allowing them to see how VMware handled it&#8217;s internal network and gave us all a chance to brainstorm ways of changing the network connections as we had also started getting pressure to provide connections to the mainframe production network we had left out. </p>
<p><a href="http://virtuallynil.files.wordpress.com/2010/04/vise_network_v2.png"><img class="alignright size-medium wp-image-106" title="Network After" src="http://virtuallynil.files.wordpress.com/2010/04/vise_network_v2.png?w=300&#038;h=210" alt="network after reconfig" width="300" height="210" /></a>The result was a much better architecture and reorganisation of how the adapters were used by VMware and incorporatation of 802.1Q VLAN tagging, proving the benefit of spreading the word and getting buy-in from other departments you deal with.</p>
<p>Seeing as I had 20 ESXi servers in the cluster to change I created a script to do the definition for me. This wasn&#8217;t my own work but cobbled together from scripts from Powershell heroes like <a title="http://www.virtu-al.net/" href="http://www.virtu-al.net/">Alan Renouf</a> and <a title="http://www.lucd.info/" href="http://www.lucd.info/">Luc Dekens</a>.</p>
<p>Here is the script to create everything except the Management Network:</p>
<pre class="brush: bash; collapse: true; light: false; toolbar: true;">
$esxserver= Get-VMHost esxserver4.vmware.in
$vmoip = &quot;172.1.101.4&quot;

# Add vmnic4,vmnci6 to vSwitch0
$vSwitch0 = get-virtualswitch -vmhost $esxserver -name vSwitch0
Set-VirtualSwitch -VirtualSwitch $vSwitch0 -Nic vmnic4,vmnic6 -NumPorts 128

# add serverfarm portgroup to vSwitch0
New-VirtualPortGroup -Name &quot;serverfarm&quot; -VirtualSwitch $vSwitch0

# Configure portgroup policies for vSwitch0
$hostview = $esxserver | Get-View
$ns = Get-View -Id $hostview.ConfigManager.NetworkSystem

# set failover policy for serverfarm portgroup
$pgspec = New-Object VMware.Vim.HostPortGroupSpec
$pgspec.vswitchName = &quot;vSwitch0&quot;
$pgspec.Name = &quot;serverfarm&quot;
$pgspec.Policy = New-Object VMware.Vim.HostNetworkPolicy
# create object for nic teaming in port group
$pgspec.Policy.NicTeaming = New-Object VMware.Vim.HostNicTeamingPolicy
$pgspec.Policy.NicTeaming.nicOrder = New-Object VMware.Vim.HostNicOrderPolicy
$pgspec.Policy.NicTeaming.nicOrder.activeNic = @(&quot;vmnic4&quot;,&quot;vmnic6&quot;)
$pgspec.Policy.NicTeaming.nicOrder.standbyNic = @(&quot;vmnic1&quot;)
# load balancing
$pgspec.policy.NicTeaming.policy = &quot;loadbalance_srcid&quot;
# link failure
$pgspec.policy.NicTeaming.failureCriteria = New-Object vmware.vim.HostNicFailureCriteria
$pgspec.policy.NicTeaming.failureCriteria.checkBeacon = $false
# Failback
$pgspec.policy.NicTeaming.RollingOrder = $false
# notify switches
$pgspec.policy.NicTeaming.notifySwitches = $true
$ns.UpdatePortGroup($pgspec.Name,$pgspec)

# set failover policy for Management Network portgroup
$pgspec = New-Object VMware.Vim.HostPortGroupSpec
$pgspec.vswitchName = &quot;vSwitch0&quot;
$pgspec.Name = &quot;Management Network&quot;
$pgspec.Policy = New-Object VMware.Vim.HostNetworkPolicy
# create object for nic teaming in port group  (opposite failover to other port group)
$pgspec.Policy.NicTeaming = New-Object VMware.Vim.HostNicTeamingPolicy
$pgspec.Policy.NicTeaming.nicOrder = New-Object VMware.Vim.HostNicOrderPolicy
$pgspec.Policy.NicTeaming.nicOrder.activeNic = @(&quot;vmnic1&quot;)
$pgspec.Policy.NicTeaming.nicOrder.standbyNic = @(&quot;vmnic4&quot;,&quot;vmnic6&quot;)
# load balancing
$pgspec.policy.NicTeaming.policy = &quot;failover_explicit&quot;
# link failure
$pgspec.policy.NicTeaming.failureCriteria = New-Object vmware.vim.HostNicFailureCriteria
$pgspec.policy.NicTeaming.failureCriteria.checkBeacon = $false
# Failback
$pgspec.policy.NicTeaming.RollingOrder = $false
# notify switches
$pgspec.policy.NicTeaming.notifySwitches = $true
$ns.UpdatePortGroup($pgspec.Name,$pgspec)

# create vSwitch1 for mainframe
New-VirtualSwitch -VMhost $esxserver -Nic vmnic3,vmnic5 -NumPorts 128 -Name &quot;vSwitch1&quot;
$vSwitch1= Get-VirtualSwitch -vmhost $esxserver -Name &quot;vSwitch1&quot;
New-VirtualPortGroup -Name &quot;mainframe&quot; -VirtualSwitch $vSwitch1

# create vSwitch2 for server mgmt and vmotion
New-VirtualSwitch -VMhost $esxserver -Nic vmnic0,vmnic2 -NumPorts 128 -Name &quot;vSwitch2&quot;
$vSwitch1= Get-VirtualSwitch -vmhost $esxserver -Name &quot;vSwitch2&quot;

# create servermgmt_linux (vlan3001)
New-VirtualPortGroup -Name &quot;servermgmt_linux&quot; -VLanId 3001  -VirtualSwitch $vSwitch2

# create servermgmt_win (vlan3002)
New-VirtualPortGroup -Name &quot;servermgmt_win&quot; -VLanId 3002  -VirtualSwitch $vSwitch2

# create vmotion (vlan3099)
New-VMHostNetworkAdapter -VMHost $esxserver -PortGroup vmotion -VirtualSwitch $vSwitch2 -IP $vmoip -SubnetMask 255.255.255.0 -VMotionEnabled $true -EA Stop

$hostview = $esxserver | Get-View
$ns = Get-View -Id $hostview.ConfigManager.NetworkSystem

# set failover policy for vmotion portgroup
$pgspec = New-Object VMware.Vim.HostPortGroupSpec
$pgspec.vswitchName = &quot;vSwitch2&quot;
$pgspec.Name = &quot;vmotion&quot;
$pgspec.vlanId = &quot;3099&quot;
$pgspec.Policy = New-Object VMware.Vim.HostNetworkPolicy
# create object for nic teaming in port group
$pgspec.Policy.NicTeaming = New-Object VMware.Vim.HostNicTeamingPolicy
$pgspec.Policy.NicTeaming.nicOrder = New-Object VMware.Vim.HostNicOrderPolicy
$pgspec.Policy.NicTeaming.nicOrder.activeNic = @(&quot;vmnic2&quot;)
$pgspec.Policy.NicTeaming.nicOrder.standbyNic = @(&quot;vmnic0&quot;)
# load balancing
$pgspec.policy.NicTeaming.policy = &quot;failover_explicit&quot;
# link failure
$pgspec.policy.NicTeaming.failureCriteria = New-Object vmware.vim.HostNicFailureCriteria
$pgspec.policy.NicTeaming.failureCriteria.checkBeacon = $false
# Failback
$pgspec.policy.NicTeaming.RollingOrder = $false
# notify switches
$pgspec.policy.NicTeaming.notifySwitches = $true
$ns.UpdatePortGroup($pgspec.Name,$pgspec)

# set failover policy for servermgmt_linux portgroup
$pgspec = New-Object VMware.Vim.HostPortGroupSpec
$pgspec.vswitchName = &quot;vSwitch2&quot;
$pgspec.Name = &quot;servermgmt_linux&quot;
$pgspec.vlanId = &quot;3001&quot;
$pgspec.Policy = New-Object VMware.Vim.HostNetworkPolicy
# create object for nic teaming in port group
$pgspec.Policy.NicTeaming = New-Object VMware.Vim.HostNicTeamingPolicy
$pgspec.Policy.NicTeaming.nicOrder = New-Object VMware.Vim.HostNicOrderPolicy
$pgspec.Policy.NicTeaming.nicOrder.activeNic = @(&quot;vmnic0&quot;)
$pgspec.Policy.NicTeaming.nicOrder.standbyNic = @(&quot;vmnic2&quot;)
# load balancing
$pgspec.policy.NicTeaming.policy = &quot;failover_explicit&quot;
# link failure
$pgspec.policy.NicTeaming.failureCriteria = New-Object vmware.vim.HostNicFailureCriteria
$pgspec.policy.NicTeaming.failureCriteria.checkBeacon = $false
# Failback
$pgspec.policy.NicTeaming.RollingOrder = $false
# notify switches
$pgspec.policy.NicTeaming.notifySwitches = $true
$ns.UpdatePortGroup($pgspec.Name,$pgspec)

# set failover policy for servermgmt_win portgroup
$pgspec = New-Object VMware.Vim.HostPortGroupSpec
$pgspec.vswitchName = &quot;vSwitch2&quot;
$pgspec.Name = &quot;servermgmt_win&quot;
$pgspec.vlanId = &quot;3002&quot;
$pgspec.Policy = New-Object VMware.Vim.HostNetworkPolicy
# create object for nic teaming in port group
$pgspec.Policy.NicTeaming = New-Object VMware.Vim.HostNicTeamingPolicy
$pgspec.Policy.NicTeaming.nicOrder = New-Object VMware.Vim.HostNicOrderPolicy
$pgspec.Policy.NicTeaming.nicOrder.activeNic = @(&quot;vmnic0&quot;)
$pgspec.Policy.NicTeaming.nicOrder.standbyNic = @(&quot;vmnic2&quot;)
# load balancing
$pgspec.policy.NicTeaming.policy = &quot;failover_explicit&quot;
# link failure
$pgspec.policy.NicTeaming.failureCriteria = New-Object vmware.vim.HostNicFailureCriteria
$pgspec.policy.NicTeaming.failureCriteria.checkBeacon = $false
# Failback
$pgspec.policy.NicTeaming.RollingOrder = $false
# notify switches
$pgspec.policy.NicTeaming.notifySwitches = $true
$ns.UpdatePortGroup($pgspec.Name,$pgspec)
</pre>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/virtuallynil.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/virtuallynil.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/virtuallynil.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/virtuallynil.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/virtuallynil.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/virtuallynil.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/virtuallynil.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/virtuallynil.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/virtuallynil.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/virtuallynil.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/virtuallynil.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/virtuallynil.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/virtuallynil.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/virtuallynil.wordpress.com/7/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=virtuallynil.com&amp;blog=11728431&amp;post=7&amp;subd=virtuallynil&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://virtuallynil.com/2010/04/29/network-changes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/df2a71ab6f7f22a4ae093dc0ad5f9eae?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">vneil</media:title>
		</media:content>

		<media:content url="http://virtuallynil.files.wordpress.com/2010/04/vise_network_v1.png?w=300" medium="image">
			<media:title type="html">Network Before</media:title>
		</media:content>

		<media:content url="http://virtuallynil.files.wordpress.com/2010/04/vise_network_v2.png?w=300" medium="image">
			<media:title type="html">Network After</media:title>
		</media:content>
	</item>
		<item>
		<title>Upgrading to vSphere on ESXi</title>
		<link>http://virtuallynil.com/2010/03/22/upgrading-to-vsphere-on-esxi/</link>
		<comments>http://virtuallynil.com/2010/03/22/upgrading-to-vsphere-on-esxi/#comments</comments>
		<pubDate>Mon, 22 Mar 2010 09:13:07 +0000</pubDate>
		<dc:creator>vneil</dc:creator>
				<category><![CDATA[ESXi]]></category>
		<category><![CDATA[upgrade]]></category>
		<category><![CDATA[VMware]]></category>

		<guid isPermaLink="false">http://virtuallynil.com/?p=87</guid>
		<description><![CDATA[We&#8217;ve recently gone through the process of upgrading our complete VMware infrastucture to vSphere and this is a short summary of how the process went. We needed to upgrade 2 vCenter Servers, 2 Update Managers and 30 ESXi hosts servers not including any test clusters. We had been running vSphere4 on our test servers for [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=virtuallynil.com&amp;blog=11728431&amp;post=87&amp;subd=virtuallynil&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>We&#8217;ve recently gone through the process of upgrading our complete VMware infrastucture to <a title="http://www.vmware.com/products/vsphere/" href="http://www.vmware.com/products/vsphere/">vSphere</a> and this is a short summary of how the process went. We needed to upgrade 2 vCenter Servers, 2 Update Managers and 30 ESXi hosts servers not including any test clusters. We had been running vSphere4 on our test servers for a while and didn&#8217;t come across any problems so planned to upgrade our production environment. Luckily <a title="http://www.vmware.com/support/vsphere4/doc/vsp_esxi40_u1_rel_notes.html" href="http://http://www.vmware.com/support/vsphere4/doc/vsp_esxi40_u1_rel_notes.html">vSphere 4.0 Update 1</a> come out shortly before we were to deploy in production so after testing this on the test servers we were able to go straight to Update 1 for our production servers.<br />
The plan was:</p>
<ul>
<li> Upgrade vcenter
<p style="padding-left:30px;">which included the following :</p>
<ul>
<li>stop vCenter services</li>
<li>backup vcenter db</li>
<li>backup ssl certs</li>
<li>snapshot vCenter VM</li>
<li>upgrade vCenter Server</li>
<li>Run vCenter upgrade</li>
</ul>
</li>
<li>Upgrade VUM
<p style="padding-left:30px;">which included:</p>
<ul>
<li>stop VUM service</li>
<li>backup VUM db</li>
<li>upgrade Update Manager</li>
</ul>
</li>
<li>Upgrade converter/guided consolidation</li>
<li>Configure new licenses in vCenter</li>
<li>Configure VUM with host upgrade ISO/zip file for ESXi4.0 U1 (more on this later)</li>
<li>Backup ESXi host server configurations with vicfg-cfgbackup on the vMA server</li>
<li>Put host into maintenance mode and reboot into a network boot rescue Linux image to update Bios, nic firmware, fc firmware</li>
<li>Reboot host and remediate host with VUM to upgrade ESXi</li>
</ul>
<p>This was mostly planned with the <a title="http://www.vmware.com/pdf/vsphere4/r40_u1/vsp_40_u1_upgrade_guide.pdf" href="http://www.vmware.com/pdf/vsphere4/r40_u1/vsp_40_u1_upgrade_guide.pdf">upgrade guide PDF</a> and on the whole it went very well, there were a few things which I would probably add to this plan if I were to do it again.</p>
<p><span style="text-decoration:underline;"><strong>vCenter upgrade</strong></span><br />
This went very smoothly and we didn&#8217;t come across any big problems. The only issue was with the added roles and permissions for the datastores and networks, which meant that our Windows and Linux admins couldn&#8217;t provision new disks or add networks to VMs. This was quickly resolved by clone and adding the new roles of Datastore consumer and Network consumer for each of the VM admin groups to the folders of the respective datastores and networks which were created as part of the upgrade. This is documented in the PDF (which I must have missed) on page 65.</p>
<p><a href="http://virtuallynil.files.wordpress.com/2010/03/upgrade_new_roles.png"><img class="alignnone size-medium wp-image-84" title="New Roles" src="http://virtuallynil.files.wordpress.com/2010/03/upgrade_new_roles.png?w=300&#038;h=178" alt="New Roles" width="300" height="178" /></a></p>
<p>I really like this new feature of permissions for datastores, it means we can  have much better control with giving different datastores to different VM admins.</p>
<p><span style="text-decoration:underline;"><strong>VUM / Hardware</strong></span><br />
Since upgrading all the hosts we have started to see various strange hardware error alarms being displayed in vCenter. The errors are things like &#8220;Host Battery Status : I2C errors&#8221; or &#8220;System Memory&#8221; errors on no particular hardware device.  Upon looking into it I thought this might have something to do with the updated CIM implementation and realised that we had loaded the standard ESXi4.0 U1 ISO image from the VMware site into VUM, maybe we should have used an IBM specific image as all our servers are the same xSeries models from IBM and came with ESXi installed on internal USB sticks. The errors we see, come and go on different servers which means it&#8217;s difficult to see if there are any real problems.</p>
<p>I opened a service call with IBM (who provide our VMware support) to ask if there was a customised version of ESXi for xSeries servers or if there were any known problems with ESXi4 on IBM hardware. After quite a bit of internal communication within IBM it seems there is an &#8220;IBM recovery CD&#8221; for ESXi but it doesn&#8217;t seem to come with any customisation apart from a message somewhere saying to report problems to IBM support rather than VMware support.</p>
<p>Now I am waiting for the CD to be sent just to see if it makes any difference while I also have open service calls with IBM for the individual problems we see. It seems the problem is to do with a &#8220;handshake problem between VMware and the IPMI&#8221; according to the service call and they are working on fixing the issue but it basically means we are stuck with these false alarms.</p>
<p>This is what we see:</p>
<div id="attachment_85" class="wp-caption alignnone" style="width: 310px"><a href="http://virtuallynil.files.wordpress.com/2010/03/sys_mem_error.jpg"><img class="size-medium wp-image-85" title="System Memory Error" src="http://virtuallynil.files.wordpress.com/2010/03/sys_mem_error.jpg?w=300&#038;h=166" alt="System Memory Error image" width="300" height="166" /></a><p class="wp-caption-text">The System Memory alarm in vCenter</p></div>
<div id="attachment_86" class="wp-caption alignnone" style="width: 310px"><a href="http://virtuallynil.files.wordpress.com/2010/03/host_batt_err.jpg"><img class="size-medium wp-image-86" title="Host Battery Alarm" src="http://virtuallynil.files.wordpress.com/2010/03/host_batt_err.jpg?w=300&#038;h=113" alt="Host Battery Alarm" width="300" height="113" /></a><p class="wp-caption-text">The Host Battery Alarm in vCenter</p></div>
<p><span style="text-decoration:underline;"><strong>Upgrading Firmware on ESXi</strong></span></p>
<p>As ESXi does not have the Service Console it is harder to do things like upgrading the BIOS or changing settings on FC adapters. For this I setup our SLES Autoyast server to network boot the SLES Rescue image on the ESXi server. This allowed me to NFS mount a share with Linux versions of the BIOS update, Broadcom adapters firmware and the scli program to updated the Qlogic cards and check their settings.</p>
<p><span style="text-decoration:underline;"><strong>Virtual Machine Upgrading</strong></span><br />
You may have noticed this missing from the upgrade plan, which is kind of true, all of the previous steps were down without any outage of applications or services (apart from vCenter but this is a controlled set of users). The next step of upgrading VM Tools and the virtual machine hardware will require further planning by the respective Windows and Linux admins (and follow in another post <img src='http://s2.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> )</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/virtuallynil.wordpress.com/87/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/virtuallynil.wordpress.com/87/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/virtuallynil.wordpress.com/87/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/virtuallynil.wordpress.com/87/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/virtuallynil.wordpress.com/87/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/virtuallynil.wordpress.com/87/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/virtuallynil.wordpress.com/87/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/virtuallynil.wordpress.com/87/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/virtuallynil.wordpress.com/87/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/virtuallynil.wordpress.com/87/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/virtuallynil.wordpress.com/87/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/virtuallynil.wordpress.com/87/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/virtuallynil.wordpress.com/87/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/virtuallynil.wordpress.com/87/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=virtuallynil.com&amp;blog=11728431&amp;post=87&amp;subd=virtuallynil&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://virtuallynil.com/2010/03/22/upgrading-to-vsphere-on-esxi/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/df2a71ab6f7f22a4ae093dc0ad5f9eae?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">vneil</media:title>
		</media:content>

		<media:content url="http://virtuallynil.files.wordpress.com/2010/03/upgrade_new_roles.png?w=300" medium="image">
			<media:title type="html">New Roles</media:title>
		</media:content>

		<media:content url="http://virtuallynil.files.wordpress.com/2010/03/sys_mem_error.jpg?w=300" medium="image">
			<media:title type="html">System Memory Error</media:title>
		</media:content>

		<media:content url="http://virtuallynil.files.wordpress.com/2010/03/host_batt_err.jpg?w=300" medium="image">
			<media:title type="html">Host Battery Alarm</media:title>
		</media:content>
	</item>
		<item>
		<title>Logging in ESXi</title>
		<link>http://virtuallynil.com/2010/03/03/logging-in-esxi/</link>
		<comments>http://virtuallynil.com/2010/03/03/logging-in-esxi/#comments</comments>
		<pubDate>Wed, 03 Mar 2010 13:13:37 +0000</pubDate>
		<dc:creator>vneil</dc:creator>
				<category><![CDATA[ESXi]]></category>
		<category><![CDATA[logging]]></category>
		<category><![CDATA[VMware]]></category>

		<guid isPermaLink="false">http://virtuallynil.com/?p=62</guid>
		<description><![CDATA[After listening to the VMware Communities Roundtable podcast of last week I thought I would create a short post on ESXi logging. It was episode #83 which focused on ESXi and was very interesting, it was geared towards administrators who are familiar with ESX and the pros and cons of moving to ESXi. One thing [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=virtuallynil.com&amp;blog=11728431&amp;post=62&amp;subd=virtuallynil&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>After listening to the <a title="http://www.talkshoe.com/tc/19367" href="http://www.talkshoe.com/tc/19367">VMware Communities Roundtable</a> podcast of last week I thought I would create a short post on ESXi logging. It was <a title="http://www.yellow-bricks.com/2010/02/24/vmtn-podcast-83" href="http://www.yellow-bricks.com/2010/02/24/vmtn-podcast-83">episode #83</a> which focused on ESXi and was very interesting, it was geared towards administrators who are familiar with ESX and the pros and cons of moving to ESXi.</p>
<p>One thing that was mentioned by the main guest VMware&#8217;s Charu, which I haven&#8217;t tried before, was to setup persistent logging for an ESXi host. As he mentioned, although there is logging in ESXi which gets stored in the <em>/var/log/</em> directory it is all in memory so if the host crashes, all logs are lost. While I already had the remote syslog setup it seems this local logging is a different log file.</p>
<p>On one of our test servers I went into <em>Configuration-&gt;Advanced Settings (Software) -&gt; Syslog -&gt; Local</em> and entered a directory and filename on a VMFS datastore and it started logging immediately to the specified file.</p>
<p>I then tried to see if it was a copy of a log that was already being created somewhere on the host and while it looks similar to the <em>/var/log/vmware/hostd.log</em> file it seems to be more verbose.</p>
<p>The other logs that I am aware of that are useful are:<br />
<code>/var/log/messages<br />
/var/log/vmware/hostd.log<br />
/var/log/vmware/vpx/vpxa.log<br />
</code><br />
These are available via the browser interface (<em>http://hostname/host</em>). The <em>messages</em> file is what is sent via to the remote syslog if configured. There are also logs in <code>/var/log/vmware/aam/</code>that relate to the HA agent on the host and if there problems with a host enabling the agent it is sometimes fruitful to look in here at the latest files.</p>
<p>I would say that setting up both local persistent and remote syslog logging as a very good recommendation in configuring ESXi hosts especially in a production environment.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/virtuallynil.wordpress.com/62/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/virtuallynil.wordpress.com/62/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/virtuallynil.wordpress.com/62/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/virtuallynil.wordpress.com/62/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/virtuallynil.wordpress.com/62/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/virtuallynil.wordpress.com/62/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/virtuallynil.wordpress.com/62/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/virtuallynil.wordpress.com/62/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/virtuallynil.wordpress.com/62/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/virtuallynil.wordpress.com/62/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/virtuallynil.wordpress.com/62/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/virtuallynil.wordpress.com/62/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/virtuallynil.wordpress.com/62/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/virtuallynil.wordpress.com/62/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=virtuallynil.com&amp;blog=11728431&amp;post=62&amp;subd=virtuallynil&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://virtuallynil.com/2010/03/03/logging-in-esxi/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/df2a71ab6f7f22a4ae093dc0ad5f9eae?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">vneil</media:title>
		</media:content>
	</item>
		<item>
		<title>VMware PEX 2010: a short comment on DRS IO</title>
		<link>http://virtuallynil.com/2010/02/14/vmware-pex-2010-a-short-comment-on-drs-io/</link>
		<comments>http://virtuallynil.com/2010/02/14/vmware-pex-2010-a-short-comment-on-drs-io/#comments</comments>
		<pubDate>Sun, 14 Feb 2010 21:18:51 +0000</pubDate>
		<dc:creator>vneil</dc:creator>
				<category><![CDATA[Virtualisation]]></category>
		<category><![CDATA[VMware]]></category>

		<guid isPermaLink="false">http://virtuallynil.com/?p=51</guid>
		<description><![CDATA[There has been a good amount of coverage from the VMware Partner Exchange in Las Vegas last week but one bit of news that caught my attention was the mention of DRS for IO.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=virtuallynil.com&amp;blog=11728431&amp;post=51&amp;subd=virtuallynil&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>There has been a <a title="http://vmetc.com/2010/02/13/vmware-pex-2010-my-wrap-up/" href="http://vmetc.com/2010/02/13/vmware-pex-2010-my-wrap-up/">good</a> <a title="http://virtualgeek.typepad.com/virtual_geek/2010/02/vmware-partner-exchange-2010-from-where-i-sat.html" href="http://virtualgeek.typepad.com/virtual_geek/2010/02/vmware-partner-exchange-2010-from-where-i-sat.html">amount</a> of <a title="http://www.doublecloud.org/2010/02/11/vmware-pex-2010-%E2%80%93-day-four/" href="http://www.doublecloud.org/2010/02/11/vmware-pex-2010-%E2%80%93-day-four/">coverage</a> from the VMware Partner Exchange in Las Vegas last week but one bit of news that caught my attention was the mention of DRS for IO. The only blog post I saw it mentioned was in <a title="http://www.yellow-bricks.com/2010/02/13/vmware-partner-exchange-2010/" href="http://www.yellow-bricks.com/2010/02/13/vmware-partner-exchange-2010/">this post by Duncan Epping</a>. After a quick google I found <a title="http://itsjustanotherlayer.com/2009/09/ta3461-io-drs-tech-preview-for-vm-performance-isolation/" href="http://itsjustanotherlayer.com/2009/09/ta3461-io-drs-tech-preview-for-vm-performance-isolation/">this great post by Ian Koenig</a> over on his blog from last September.</p>
<p>It looks like if it was mentioned at PEX it might be coming soon, I had kind of hoped it might have been in vSphere as the next logical extension of DRS after CPU and Memory resource scheduling.</p>
<p>The way we run our current cluster  is one big cluster with test and production VMs spread across all the host servers with their VMDKs also mixed on datastores. They are distributed into appropriate  resource groups and all this helps to even the workload and make full use of all resources.</p>
<p>The cluster is not heavily burdened at the moment and we are continuing to P2V Windows servers and deploy new Linux servers onto it. I see IO DRS as an extremely helpful tool with the growth of the number of VMs in the cluster to keep the necessary prioritising of production over testing.</p>
<p>In the meantime I&#8217;ll keep an eye out for any more news on IO DRS.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/virtuallynil.wordpress.com/51/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/virtuallynil.wordpress.com/51/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/virtuallynil.wordpress.com/51/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/virtuallynil.wordpress.com/51/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/virtuallynil.wordpress.com/51/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/virtuallynil.wordpress.com/51/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/virtuallynil.wordpress.com/51/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/virtuallynil.wordpress.com/51/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/virtuallynil.wordpress.com/51/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/virtuallynil.wordpress.com/51/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/virtuallynil.wordpress.com/51/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/virtuallynil.wordpress.com/51/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/virtuallynil.wordpress.com/51/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/virtuallynil.wordpress.com/51/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=virtuallynil.com&amp;blog=11728431&amp;post=51&amp;subd=virtuallynil&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://virtuallynil.com/2010/02/14/vmware-pex-2010-a-short-comment-on-drs-io/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/df2a71ab6f7f22a4ae093dc0ad5f9eae?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">vneil</media:title>
		</media:content>
	</item>
		<item>
		<title>Setting preferred paths in ESXi</title>
		<link>http://virtuallynil.com/2010/02/12/setting-preferred-paths-in-esxi/</link>
		<comments>http://virtuallynil.com/2010/02/12/setting-preferred-paths-in-esxi/#comments</comments>
		<pubDate>Fri, 12 Feb 2010 20:54:46 +0000</pubDate>
		<dc:creator>vneil</dc:creator>
				<category><![CDATA[ESXi]]></category>
		<category><![CDATA[scripts]]></category>
		<category><![CDATA[VMware]]></category>

		<guid isPermaLink="false">http://virtuallynil.com/?p=28</guid>
		<description><![CDATA[Quite a while ago, when I was setting up our current production environment, I had to think about how to set up the multipathing for the SAN LUNs. We have an FC SAN fabric connected to a couple of HDS storage systems and each of our ESXi host servers has 2 dual port FC HBAs. [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=virtuallynil.com&amp;blog=11728431&amp;post=28&amp;subd=virtuallynil&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Quite a while ago, when I was setting up our current production environment, I had to think about how to set up the multipathing for the SAN LUNs. We have an FC SAN fabric connected to a couple of HDS storage systems and each of our ESXi host servers has 2 dual port FC HBAs. All LUNs would be visible on all four HBAs so each LUN ends up with 4 paths.</p>
<p>To make this simple when setting up the cluster we went for a standard 500GB size for the LUNs and had about 8 LUNs allocated to start with. We needed to somehow level the usage of these LUNs across the 4 paths.</p>
<p>These servers were running ESXi 3.5 and the round robin path policy was still experimental this left a decision of either Fixed or Most Recently Used (MRU) as the multipath policy to use. After some investigation I chose to use Fixed multipath as with MRU you could possibly end up with all LUNs on one path if several path failures go unnoticed.</p>
<p>To simplify the spreading of LUNs over the multiple paths the LUNs were each allocated a path in order, for example LUN 1 to path 1 , LUN 2 to path 2 ..etc and then LUN 5 would go to path 1 again. Then of course this needed to be set on 20 ESXi servers in the cluster and if any new LUNs were added this would have to be set as well.</p>
<p>Nowadays I would maybe look at doing this with Powershell but back then I was still quite new to it and as I was more comfortable in Unix I used the <a title="http://searchvmware.techtarget.com/tip/0,289483,sid179_gci1340611,00.html" href="http://searchvmware.techtarget.com/tip/0,289483,sid179_gci1340611,00.html">Vima appliance</a> and setup a simple shell script and the <em>vicfg-mpath</em> command to do the work for me.</p>
<p>Here is the script (click on <em>view source</em> for a better view):</p>
<pre class="brush: bash;">
#!/bin/bash
#
# Script to set preferred paths in rotational method
# Set VI_USERNAME and VI_PASSWORD environment variables before running.
#
esxhosts=&quot;esxhost1 esxhost2 esxhost3 esxhost4 esxhost5 esxhost6 esxhost7 esxhost8&quot;
echo &quot;===================== Start `date` ==========================&quot;
for esxhost in $esxhosts
do
   LUNs=`vicfg-mpath --server $esxhost -b | grep &quot;vmfs/devices/disks&quot; | cut -d\  -f1 | sort -u`
      if [ -z &quot;$LUNs&quot;  ] ; then
         echo &quot;Error getting luns/paths for $esxhost&quot;
      else
         echo &quot;Setting preferred paths for $esxhost &quot;
         for LUN in $LUNs
         do
             lunid=$( echo $LUN | cut -d: -f3)
             pathToSet=$(( $(($lunid % 4)) + 2 ))
             preferredPath=$(echo $LUN | sed &quot;s/vmhba./vmhba${pathToSet}/&quot;)
# #debug#       echo Lun = $LUN  lunid = $lunid  path = $pathToSet preferredPath = $preferredPath
             echo Executing vicfg-mpath --server ${esxhost} --policy fixed --lun ${LUN} --path ${preferredPath} --preferred
             vicfg-mpath --server ${esxhost} --policy fixed --lun ${LUN} --path ${preferredPath} --preferred
         done
      fi
echo &quot;----------------------------------------------------------------------------------------&quot;
done
</pre>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/virtuallynil.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/virtuallynil.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/virtuallynil.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/virtuallynil.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/virtuallynil.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/virtuallynil.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/virtuallynil.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/virtuallynil.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/virtuallynil.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/virtuallynil.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/virtuallynil.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/virtuallynil.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/virtuallynil.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/virtuallynil.wordpress.com/28/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=virtuallynil.com&amp;blog=11728431&amp;post=28&amp;subd=virtuallynil&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://virtuallynil.com/2010/02/12/setting-preferred-paths-in-esxi/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/df2a71ab6f7f22a4ae093dc0ad5f9eae?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">vneil</media:title>
		</media:content>
	</item>
	</channel>
</rss>
