<?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>2vcps and a Truck &#187; powershell</title>
	<atom:link href="http://www.2vcps.com/category/powershell/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.2vcps.com</link>
	<description></description>
	<lastBuildDate>Mon, 23 Jan 2012 15:33:44 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
<atom:link rel="search"
           href="http://www.2vcps.com/opensearch"
           type="application/opensearchdescription+xml"
           title="Content Search" /><xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>Dynamic Cluster Pooling</title>
		<link>http://www.2vcps.com/2010/12/20/dynamic-cluster-pooling/</link>
		<comments>http://www.2vcps.com/2010/12/20/dynamic-cluster-pooling/#comments</comments>
		<pubDate>Mon, 20 Dec 2010 20:26:45 +0000</pubDate>
		<dc:creator>Jon Owings</dc:creator>
				<category><![CDATA[capacity]]></category>
		<category><![CDATA[performance]]></category>
		<category><![CDATA[powershell]]></category>

		<guid isPermaLink="false">http://www.2vcps.com/?p=473</guid>
		<description><![CDATA[Dynamic Cluster Pooling is an idea that Kevin Miller ( @captainstorage) and I came up with one day while we were just rapping out some ideas on the whiteboard. It is an incomplete idea, but may have the beginnings of &#8230; <a href="http://www.2vcps.com/2010/12/20/dynamic-cluster-pooling/">Continue reading <span class="meta-nav">&#8594;</span></a>
Related posts:<ol>
<li><a href='http://www.2vcps.com/2010/07/01/all-out-of-ha-slots/' rel='bookmark' title='All out of HA Slots'>All out of HA Slots</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Dynamic Cluster Pooling is an idea that Kevin Miller ( <a href="http://twitter.com/captainstorage">@captainstorage</a>) and I came up with one day while we were just rapping out some ideas on the whiteboard. <em>It is an incomplete idea, but may have the beginnings of something useful.</em> The idea is that clusters can be dynamically sized depending on expected workload. Today a VMware Cluster is sized based on capacity estimates from something like VMware Capacity Planner. The problem is this method requires you apply a workload profile across all time periods or situations. What if only a couple days of the month require the full capacity of a cluster. Could those resources be used elsewhere the rest of the month?</p>
<p><strong>Example Situation<br />
</strong>Imagine a scenario with a Virtual Infrastructure with multiple clusters. Cluster &#8220;Gold&#8221; has 8 hosts. Cluster &#8220;Bronze&#8221; has 8 hosts. Gold is going to require additionally resources on the last day of the month to process reports from a database (or something like that). In order to provide additional resources to Gold we will take an ESX host away from the Bronze cluster. This allows us to deploy additional Virtual Machines to crunch through the process or allow less contention for the existing machines.<br />
<a href="http://www.2vcps.com/wp-content/uploads/2010/12/DCPPIC1.png"><img class="alignright size-full wp-image-626" title="DCPPIC" src="http://www.2vcps.com/wp-content/uploads/2010/12/DCPPIC1.png" alt="" width="724" height="547" /></a><br />
You don&#8217;t have to be a powercli guru to figure out how to vMotion all the machines off of a ESX host and place it in maintenance mode. Once the host is in maintenance mode it can be moved to the new cluster, removed from maintenance mode and VM&#8217;s can be redistributed by DRS.</p>
<p>Sample Code more to prove the concept:<br />
<code>#Connect to the vCenter<br />
Connect-VIServer [vcenterserver]<br />
#indentify the host, you should pass the host or hosts you want to vacate into a variable<br />
Get-Cluster Cluster-Bronze | get-vmhost</p>
<p>#Find the least loaded host(skipping for now)</p>
<p>#Vmotion the machines to somewhere else in that cluster<br />
Get-VMHost lab1.domain.local | Get-VM| Move-VM -Destination [some other host in the bronze cluster]</p>
<p>#Move the host<br />
Set-VMHost lab1.domain.local -State Maintenance<br />
Move-VMHost lab1.domain.local -Destination Cluster-Gold<br />
Set-VMHost lab1.domain.local -State Connected</p>
<p>#Rebalance VM's<br />
Get-DrsRecommendation -Cluster Cluster-Gold | Apply-DrsRecommendation</code></p>
<p>I was able to manually make this happen in our lab. Maybe if this sparks any interest someone that is good with “the code” can make this awesome.</p>
<p>Related posts:<ol>
<li><a href='http://www.2vcps.com/2010/07/01/all-out-of-ha-slots/' rel='bookmark' title='All out of HA Slots'>All out of HA Slots</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.2vcps.com/2010/12/20/dynamic-cluster-pooling/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Virtual Twits Powershell Script</title>
		<link>http://www.2vcps.com/2009/01/20/virtual-twits-powershell-script/</link>
		<comments>http://www.2vcps.com/2009/01/20/virtual-twits-powershell-script/#comments</comments>
		<pubDate>Tue, 20 Jan 2009 19:05:00 +0000</pubDate>
		<dc:creator>Jon Owings</dc:creator>
				<category><![CDATA[powershell]]></category>
		<category><![CDATA[twitter]]></category>
		<category><![CDATA[vmware]]></category>

		<guid isPermaLink="false">http://2vcps.com/2009/01/20/virtual-twits-powershell-script/</guid>
		<description><![CDATA[I know, about 9 other people already posted Alan Renouf&#8217;s list of virtualization people to follow in twitter. The really cool thing is the powershell script to add everyone. I promise I was going to mention it even before I &#8230; <a href="http://www.2vcps.com/2009/01/20/virtual-twits-powershell-script/">Continue reading <span class="meta-nav">&#8594;</span></a>
Related posts:<ol>
<li><a href='http://www.2vcps.com/2008/09/12/virtual-switch-script/' rel='bookmark' title='Virtual Switch Script'>Virtual Switch Script</a></li>
<li><a href='http://www.2vcps.com/2011/12/22/a-year-later/' rel='bookmark' title='A Year Later'>A Year Later</a></li>
<li><a href='http://www.2vcps.com/2010/06/16/the-mini-esxi-4-portable-server/' rel='bookmark' title='The Mini ESXi 4 Portable Server'>The Mini ESXi 4 Portable Server</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>I know, about 9 other people already posted Alan Renouf&#8217;s<a href="http://teckinfo.blogspot.com/2009/01/virtual-twits.html"> list of virtualization people </a>to follow in twitter. The really cool thing is the powershell script to add everyone. I promise I was going to mention it even before I was added to the list. Now that @2vcps made the list it just seems like shameless self promotion. Oh well.</p>
<p>Great work Alan with help from <a href="http://www.mindofroot.com/powershell-twitterers/">MindofRoot</a> and thanks for making the list.</p>
<p>*Alan, thanks for pointing out my error&#8230;</p>
<p>Related posts:<ol>
<li><a href='http://www.2vcps.com/2008/09/12/virtual-switch-script/' rel='bookmark' title='Virtual Switch Script'>Virtual Switch Script</a></li>
<li><a href='http://www.2vcps.com/2011/12/22/a-year-later/' rel='bookmark' title='A Year Later'>A Year Later</a></li>
<li><a href='http://www.2vcps.com/2010/06/16/the-mini-esxi-4-portable-server/' rel='bookmark' title='The Mini ESXi 4 Portable Server'>The Mini ESXi 4 Portable Server</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.2vcps.com/2009/01/20/virtual-twits-powershell-script/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Virtual Switch Script</title>
		<link>http://www.2vcps.com/2008/09/12/virtual-switch-script/</link>
		<comments>http://www.2vcps.com/2008/09/12/virtual-switch-script/#comments</comments>
		<pubDate>Sat, 13 Sep 2008 03:21:00 +0000</pubDate>
		<dc:creator>Jon Owings</dc:creator>
				<category><![CDATA[powershell]]></category>
		<category><![CDATA[vmware]]></category>

		<guid isPermaLink="false">http://2vcps.com/2008/09/12/virtual-switch-script/</guid>
		<description><![CDATA[So I wanted to put a new script up every week. Hopefully I can be more persistent. I wanted a quick way to deploy network settings to a number of ESX hosts I would build for a client. Related posts: &#8230; <a href="http://www.2vcps.com/2008/09/12/virtual-switch-script/">Continue reading <span class="meta-nav">&#8594;</span></a>
Related posts:<ol>
<li><a href='http://www.2vcps.com/2011/12/22/a-year-later/' rel='bookmark' title='A Year Later'>A Year Later</a></li>
<li><a href='http://www.2vcps.com/2009/01/20/virtual-twits-powershell-script/' rel='bookmark' title='Virtual Twits Powershell Script'>Virtual Twits Powershell Script</a></li>
<li><a href='http://www.2vcps.com/2010/06/16/the-mini-esxi-4-portable-server/' rel='bookmark' title='The Mini ESXi 4 Portable Server'>The Mini ESXi 4 Portable Server</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>So I wanted to put a new script up every week. Hopefully I can be more persistent.</p>
<p><script src="http://PoshCode.org/embed/485"></script></p>
<p>I wanted a quick way to deploy network settings to a number of ESX hosts I would build for a client.</p>
<p>Related posts:<ol>
<li><a href='http://www.2vcps.com/2011/12/22/a-year-later/' rel='bookmark' title='A Year Later'>A Year Later</a></li>
<li><a href='http://www.2vcps.com/2009/01/20/virtual-twits-powershell-script/' rel='bookmark' title='Virtual Twits Powershell Script'>Virtual Twits Powershell Script</a></li>
<li><a href='http://www.2vcps.com/2010/06/16/the-mini-esxi-4-portable-server/' rel='bookmark' title='The Mini ESXi 4 Portable Server'>The Mini ESXi 4 Portable Server</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.2vcps.com/2008/09/12/virtual-switch-script/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

