<?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>motogobi &#187; system administration</title>
	<atom:link href="http://www.motogobi.com/tag/system-administration/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.motogobi.com</link>
	<description>gobi, mobilized</description>
	<lastBuildDate>Wed, 08 Sep 2010 13:37:58 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Update on a “failed” HA, split-brain event</title>
		<link>http://www.motogobi.com/2010/06/04/update-on-a-failed-ha-split-brain-event/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=update-on-a-failed-ha-split-brain-event</link>
		<comments>http://www.motogobi.com/2010/06/04/update-on-a-failed-ha-split-brain-event/#comments</comments>
		<pubDate>Fri, 04 Jun 2010 13:47:57 +0000</pubDate>
		<dc:creator>mike</dc:creator>
				<category><![CDATA[Virtualization]]></category>
		<category><![CDATA[system administration]]></category>
		<category><![CDATA[update]]></category>
		<category><![CDATA[VMWare]]></category>

		<guid isPermaLink="false">http://www.motogobi.com/?p=773</guid>
		<description><![CDATA[So some interesting stuff has fallen out of the investigation we&#8217;ve done regarding how VMware High Availability handled five of our hosts falling off the network last week. In speaking with VMware&#8217;s support staff I&#8217;ve learned a few things to keep in mind when planning architecture, as well as how to respond to something like [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignright size-thumbnail wp-image-774" title="vmwareresourcepool2" src="http://www.motogobi.com/wp-content/uploads/2010/06/vmwareresourcepool2-150x150.gif" alt="" width="150" height="150" />So some interesting stuff has fallen out of the investigation we&#8217;ve done regarding how <a href="http://www.motogobi.com/vsphere-high-availability-and-the-split-brain-scenario/">VMware High Availability handled five of our hosts falling off the network last week</a>. In speaking with VMware&#8217;s support staff I&#8217;ve learned a few things to keep in mind when planning architecture, as well as how to respond to something like this in the future (hint: don&#8217;t panic). Turns out, ESX didn&#8217;t really fail as much as it politely gave up, opting to take the route that seems to be the least harmful to our guest VMs&#8217; operating systems. Admit it, we&#8217;ve all been there: you&#8217;re working on a Windows machine, it&#8217;s not responding, and you get to the point where you just hit the reset button. Well, VMware will let you &#8211; and only you &#8211; take that final step towards OS recovery during an event like this.<br />
<span id="more-773"></span><br />
So our HA event was a little more in-depth than what High Availability is normally set up to handle. We had five hosts experience this in total but the same thing happened on each &#8211; so I&#8217;ll focus on only a single host for this post. When the host found itself isolated from the network, unable to reach any of the other hosts in the cluster via the ServiceConsole network connection, it correctly understood that it was isolated and started to gracefully shut down each of it&#8217;s running VMs. Basically this was a &#8220;<a href="http://www.yellow-bricks.com/2009/04/15/the-basics-how-to-kill-a-vm-thats-stuck-during-shutdown/" target="_blank">stop trysoft</a>&#8221; command sent to the VM. However, we also had problems with the network connections for the NFS datastore connections &#8211; so the ESX host had a running VM process in memory but no disk or lockfiles to work with on the back end of that VM.</p>
<p>According to VMware support, ESX will not  go any further in trying to shut down your VM &#8211; it will not just kill the process of that VM running in memory. If ESX can&#8217;t perform a graceful shutdown of a VM it will stop trying to get that VM process shut down.</p>
<p>That&#8217;s an important thing to understand and remember and directly speaks to what we saw: when some of our ESX hosts regained network connectivity, we had the <a href="http://www.motogobi.com/vsphere-high-availability-and-the-split-brain-scenario/" target="_blank">classic split-brain scenario</a>. We would open the console to a VM, see a <a href="http://en.wikipedia.org/wiki/Blue_Screen_of_Death" target="_blank">BSOD</a>, and power off the VM &#8211; and then almost immediately see the running operating system in that same console window. What we were watching was the BSOD process on the formerly-isolated ESX host being stopped, replaced by the healthy process of the VM when it was brought up on one of the surviving hosts.</p>
<p>So some take-away from this event?</p>
<ul>
<li>Once we realized that we had lost both the Service Console connection <em>and</em> the NFS datastore connection, we simply should have taken note of what VMs were still running in memory by using esxtop and then powered off the ESX host until the network outage was resolved. The other surviving hosts were already booting up the VMs. The key here, obviously, is that this is a manual process &#8211; if this outage occurred and resolved itself before we could get to the isolated hosts we&#8217;d still end up with a split-brain problem.</li>
<li>We might want to reconsider our use of NFS and it&#8217;s dependence on network connectivity to the datastores. This major outage interrupted TCP/IP traffic at many different layers of the network, to the point where NIC redundancy and failover did not occur. It&#8217;s been my experience that FC SAN, while more expensive, also has been more robust and less prone to outages &#8211; the vast majority of our outages involving ESX have been Ethernet-related problems.</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.motogobi.com/2010/06/04/update-on-a-failed-ha-split-brain-event/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>VirtualBox 3.2 – major update</title>
		<link>http://www.motogobi.com/2010/05/23/virtualbox-3-2-major-update/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=virtualbox-3-2-major-update</link>
		<comments>http://www.motogobi.com/2010/05/23/virtualbox-3-2-major-update/#comments</comments>
		<pubDate>Mon, 24 May 2010 00:43:08 +0000</pubDate>
		<dc:creator>mike</dc:creator>
				<category><![CDATA[Virtualization]]></category>
		<category><![CDATA[system administration]]></category>
		<category><![CDATA[VirtualBox]]></category>
		<category><![CDATA[virtualization]]></category>

		<guid isPermaLink="false">http://www.motogobi.com/?p=745</guid>
		<description><![CDATA[My favorite hypervisor just received some much-needed updates that really bring it into striking range of VMware&#8217;s Workstation or Parallels. Among the most notable additions to the best-priced (free!) product in desktop/workstation virtualization are: Support for deleting snapshots while the VM is running Support for multi-monitor guest setups in the GUI for Windows guests RDP [...]]]></description>
			<content:encoded><![CDATA[<p><img class="size-full wp-image-746 alignright" style="margin: 5px;" title="vbox_logo2_gradient" src="http://www.motogobi.com/wp-content/uploads/2010/05/vbox_logo2_gradient.png" alt="" width="140" height="180" />My favorite hypervisor just received some much-needed updates that really bring it into striking range of VMware&#8217;s <a href="http://www.vmware.com/products/workstation/" target="_blank">Workstation</a> or <a href="http://www.parallels.com/" target="_blank">Parallels</a>. Among the <a href="http://www.virtualbox.org/wiki/Changelog" target="_blank">most notable additions</a> to the best-priced (free!) product in desktop/workstation virtualization are:</p>
<ul>
<li>Support for deleting snapshots while the VM is running</li>
<li>Support for multi-monitor guest setups in the GUI for Windows guests</li>
<li>RDP video acceleration</li>
<li>Memory ballooning to dynamically in- or decrease the amount of RAM used by a VM (64-bit hosts only)</li>
</ul>
<p>As you might already know, <a href="http://www.motogobi.com/useful-tools/editors-and-development-tools/">VirtualBox is my favorite virtualization product</a> for the desktop because of it&#8217;s rich feature set and support for both Windows and Mac. I recently scored over a 90% on my VCP exam in no small part to the ability to run a Windows VM on my Mac, allowing me to mobilize my study environment with ease. If you&#8217;re looking to simply get into virtualization with ease, and for free, <a href="http://www.virtualbox.org/" target="_blank">VirtualBox is definitely worth the download</a> and minimal install footprint.</p>
<p><a href="http://www.virtualbox.org/">http://www.virtualbox.org/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.motogobi.com/2010/05/23/virtualbox-3-2-major-update/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Cancel a stuck VMTools installation from an ESX host</title>
		<link>http://www.motogobi.com/2010/03/26/cancel-a-stuck-vmtools-installation-from-an-esx-host/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=cancel-a-stuck-vmtools-installation-from-an-esx-host</link>
		<comments>http://www.motogobi.com/2010/03/26/cancel-a-stuck-vmtools-installation-from-an-esx-host/#comments</comments>
		<pubDate>Fri, 26 Mar 2010 14:06:11 +0000</pubDate>
		<dc:creator>mike</dc:creator>
				<category><![CDATA[Virtualization]]></category>
		<category><![CDATA[system administration]]></category>
		<category><![CDATA[Tech Tips]]></category>
		<category><![CDATA[VMWare]]></category>

		<guid isPermaLink="false">http://www.motogobi.com/?p=525</guid>
		<description><![CDATA[This little tidbit from The Lone Sysadmin saved our bacon this morning: if you&#8217;re finding it impossible to migrate a VM off of a host because of a stuck VMTools installation process, there&#8217;s a quick way to kill this process off via the command line to get things moving along. First, you need to know [...]]]></description>
			<content:encoded><![CDATA[<p>This little tidbit from <a href="http://lonesysadmin.net/2009/12/11/how-to-cancel-a-stuck-vmware-tools-install-from-the-esx-cli/" target="_blank">The Lone Sysadmin</a> saved our bacon this morning: if you&#8217;re finding it impossible to migrate a VM off of a host because of a stuck VMTools installation process, there&#8217;s a quick way to kill this process off via the command line to get things moving along. First, you need to know the process ID of the VM you&#8217;re working with (run this from the host where the VM is currently living):</p>
<p><code>/usr/bin/vmware-cmd /vmfs/volumes/datastore/vmname/vmname.vmx getid</code></p>
<p>This should return something like &#8220;getid() = 192&#8243;</p>
<p>Using that ID you can then cancel that tools install:</p>
<p><code>/usr/bin/vmware-vim-cmd vmsvc/tools.cancelinstall</code></p>
<p>Voila! No more tools install, and migration should work normally. Huge thanks, again, to <a href="http://lonesysadmin.net/2009/12/11/how-to-cancel-a-stuck-vmware-tools-install-from-the-esx-cli/" target="_blank">Bob over at The Lone Sysadmin</a>!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.motogobi.com/2010/03/26/cancel-a-stuck-vmtools-installation-from-an-esx-host/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Quick note on working with vmfsktools</title>
		<link>http://www.motogobi.com/2010/02/01/quick-note-on-working-with-vmfsktools/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=quick-note-on-working-with-vmfsktools</link>
		<comments>http://www.motogobi.com/2010/02/01/quick-note-on-working-with-vmfsktools/#comments</comments>
		<pubDate>Mon, 01 Feb 2010 22:11:55 +0000</pubDate>
		<dc:creator>mike</dc:creator>
				<category><![CDATA[Virtualization]]></category>
		<category><![CDATA[system administration]]></category>
		<category><![CDATA[Tech Tips]]></category>
		<category><![CDATA[VMWare]]></category>

		<guid isPermaLink="false">http://www.motogobi.com/?p=434</guid>
		<description><![CDATA[So I&#8217;ve been restoring some Windows servers from NetApp snapshots today, specifically single hard disks that had been having problems (long story involving Windows problems, etc). I found this pretty easy to do once I got the syntax down &#8211; basically, all I was looking to do was to restore the C: of a server, [...]]]></description>
			<content:encoded><![CDATA[<p>So I&#8217;ve been restoring some Windows servers from NetApp snapshots today, specifically single hard disks that had been having problems (long story involving Windows problems, etc). I found this pretty easy to do once I got the syntax down &#8211; basically, all I was looking to do was to restore the C: of a server, but keep it&#8217;s D: intact &#8211; that way I&#8217;d keep the most recent data, in this case some SQL files, but could roll back to a point where the Windows OS was a little less hosed up. Mostly for my own quick reference in the future, this is how I cranked a bunch of these out.</p>
<p><span id="more-434"></span>So, found my snapshot and all the files of the VM (one line):</p>
<blockquote><p>/vmfs/volumes/NFSSTORE/.snapshot/nightly.2010-01-31_0000/SERVERNAME</p></blockquote>
<p>I then found my destination, or where the VM currently lives:</p>
<blockquote><p>/vmfs/volumes/NFSSTORE/SERVERNAME</p></blockquote>
<p>I&#8217;m particularly interested in SERVERNAME.vmdk, which is the C: in this case. In order to not run into myself, I renamed the current, not-booting SERVERNAME.vmdk using vmfsktools while in the working directory of the current VM:</p>
<blockquote><p>vmkfstools -E SERVERNAME.vmdk SERVERNAME_old.vmdk</p></blockquote>
<p>Then, this is as simple as importing the .vmdk from the .snapshot directory to the current working directory of the VM. Yes, you can use cp to do this, but vmfsktools is hella faster (one line):</p>
<blockquote><p>vmkfstools -i /vmfs/volumes/NFSSTORE/.snapshot/nightly.2010-01-31_0000/SERVERNAME/SERVERNAME.vmdk /vmfs/volumes/NFSSTORE/SERVERNAME/SERVERNAME.vmdk</p></blockquote>
<p>Since the .vmx file is still configured with the <em>SERVERNAME.vmdk</em> and <em>SERVERNAME_1.vmdk</em> disk files, there shouldn&#8217;t be any need to reconfigure the VM before powering it on. Finally, I verified that the machine was booting normally and deleted the <em>_old</em> file to save disk space.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.motogobi.com/2010/02/01/quick-note-on-working-with-vmfsktools/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Imagine my surprise…</title>
		<link>http://www.motogobi.com/2010/02/01/imagine-my-surprise/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=imagine-my-surprise</link>
		<comments>http://www.motogobi.com/2010/02/01/imagine-my-surprise/#comments</comments>
		<pubDate>Mon, 01 Feb 2010 14:36:44 +0000</pubDate>
		<dc:creator>mike</dc:creator>
				<category><![CDATA[Virtualization]]></category>
		<category><![CDATA[system administration]]></category>
		<category><![CDATA[VMWare]]></category>

		<guid isPermaLink="false">http://www.motogobi.com/?p=425</guid>
		<description><![CDATA[&#8230;when I flipped the page over on my desk calendar this morning and noticed that the January 31st Virtualization Tip of the Day from the fine folks at PrintedOwl.com has this to say: It&#8217;s a best practice to keep the number of COS software installations to a minimum. Here&#8217;s a case that&#8217;s justified for some [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: center;"><a href="http://www.motogobi.com/wp-content/uploads/2010/02/virt_tip_of_day.png" rel="lightbox[425]"><img class="size-medium wp-image-428 aligncenter" title="virt_tip_of_day" src="http://www.motogobi.com/wp-content/uploads/2010/02/virt_tip_of_day-395x300.png" alt="" width="395" height="300" /></a></p>
<p>&#8230;when I flipped the page over on my desk calendar this morning and noticed that the January 31st <a href="http://www.printedowl.com/CalendarDetail.aspx?id=boche" target="_blank">Virtualization Tip of the Day</a> from the fine folks at <a href="http://www.printedowl.com" target="_blank">PrintedOwl.com</a> has this to say:</p>
<blockquote><p>It&#8217;s a best practice to keep the number of COS software installations to a minimum. Here&#8217;s a case that&#8217;s justified for some environments to ensure graceful host shutdowns. Mike at motogobi has done some leg work &amp; put up a procedure: <a href="http://www.motogobi.com/2008/11/13/setting-up-powerchute-network-shutdown-in-vmware-esx-35/">http://www.motogobi.com/2008/11/13/setting-up-powerchute-network-shutdown-in-vmware-esx-35/</a></p></blockquote>
<p>I&#8217;m flattered <img src='http://www.motogobi.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.motogobi.com/2010/02/01/imagine-my-surprise/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>5 best online backup tools (and the one I use)</title>
		<link>http://www.motogobi.com/2009/11/15/5-best-online-backup-tools-and-the-one-i-use/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=5-best-online-backup-tools-and-the-one-i-use</link>
		<comments>http://www.motogobi.com/2009/11/15/5-best-online-backup-tools-and-the-one-i-use/#comments</comments>
		<pubDate>Mon, 16 Nov 2009 01:28:12 +0000</pubDate>
		<dc:creator>mike</dc:creator>
				<category><![CDATA[GeekTech]]></category>
		<category><![CDATA[cool]]></category>
		<category><![CDATA[system administration]]></category>
		<category><![CDATA[Tech Tips]]></category>

		<guid isPermaLink="false">http://www.motogobi.com/?p=334</guid>
		<description><![CDATA[It&#8217;s good to see Lifehacker focusing on backup tools. After literally years of struggling with backing up various computers and laptops I&#8217;ve owned over the years, and having learned my disaster-recovery lesson the hard way when I lost the hard drive on my desktop in 1996 or something, I&#8217;ve recently settled into a very cozy [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: center;"><a href="http://www.motogobi.com/wp-content/uploads/2009/11/mozy.jpg" rel="lightbox[334]"><img class="size-medium wp-image-335 aligncenter" title="mozy" src="http://www.motogobi.com/wp-content/uploads/2009/11/mozy-400x288.jpg" alt="mozy" width="400" height="288" /></a></p>
<p>It&#8217;s good to see <a href="http://lifehacker.com/5405041/five-best-online-backup-tools">Lifehacker</a> focusing on backup tools. After literally years of struggling with backing up various computers and laptops I&#8217;ve owned over the years, and having learned my disaster-recovery lesson the hard way when I lost the hard drive on my desktop in 1996 or something, I&#8217;ve recently settled into a very cozy relationship with <a href="http://mozy.com/">Mozy</a>. I signed up for the yearly Home Unlimited plan ($50/yr per machine) and have been nothing short of pleased with it&#8217;s performance.</p>
<p>Check out other options over at Lifehacker, but whatever you do? Make sure you&#8217;re backing up your data&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.motogobi.com/2009/11/15/5-best-online-backup-tools-and-the-one-i-use/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>A Multivendor Post to help our mutual iSCSI customers using VMware</title>
		<link>http://www.motogobi.com/2009/01/27/a-multivendor-post-to-help-our-mutual-iscsi-customers-using-vmware/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=a-multivendor-post-to-help-our-mutual-iscsi-customers-using-vmware</link>
		<comments>http://www.motogobi.com/2009/01/27/a-multivendor-post-to-help-our-mutual-iscsi-customers-using-vmware/#comments</comments>
		<pubDate>Tue, 27 Jan 2009 15:17:54 +0000</pubDate>
		<dc:creator>mike</dc:creator>
				<category><![CDATA[Virtualization]]></category>
		<category><![CDATA[cool]]></category>
		<category><![CDATA[system administration]]></category>
		<category><![CDATA[VMWare]]></category>

		<guid isPermaLink="false">http://www.motogobi.com/?p=176</guid>
		<description><![CDATA[Click for larger, more confusing view Virtual Geek has an amazingly insightful post combining multiple presentations and points from representatives from EMC, MVWare, NetApp, Dell/Equalogic, HP/Lefthand, and some other folks in the business. As you can see by the names involved, we&#8217;re talking about most every major virtualization storage player in the industry today &#8211; [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.motogobi.com/wp-content/uploads/2009/01/esxiscsi.jpg" rel="lightbox[176]"><img class="aligncenter size-medium wp-image-177" title="esxiscsi" src="http://www.motogobi.com/wp-content/uploads/2009/01/esxiscsi-300x228.jpg" alt="esxiscsi" width="300" height="228" /></a></p>
<p style="text-align: center;"><em>Click for larger, more confusing view</em></p>
<p><a href="http://virtualgeek.typepad.com/virtual_geek/2009/01/a-multivendor-post-to-help-our-mutual-iscsi-customers-using-vmware.html" target="_blank">Virtual Geek has an amazingly insightful post</a> combining multiple presentations and points from representatives from EMC, MVWare, NetApp, Dell/Equalogic, HP/Lefthand, and some other folks in the business. As you can see by the names involved, we&#8217;re talking about most every major virtualization storage player in the industry today &#8211; and they&#8217;re here to help us make heads or tails of iSCSI storage. You&#8217;ll even be able to make sense of that diagram above after reading:</p>
<blockquote><p>As discussed earlier, the ESX 3.x software initiator really only works on a single TCP connection for each target ‚Äì so all traffic to a <strong><span style="text-decoration: underline;">single</span></strong> iSCSI Target will use a single logical interface. Without extra design measures, it does limit the amount of IO available to each iSCSI target to roughly 120 ‚Äì 160 MBs of read and write access.</p>
<p>This design does not limit the <strong><em><span style="text-decoration: underline;">total</span></em></strong> amount of I/O bandwidth available to an ESX host configured with multiple GbE links for iSCSI traffic (or more generally VMKernel traffic) connecting to multiple datastores across multiple iSCSI targets, but does for a single iSCSI target without taking extra steps.</p>
<p>Here are the questions that customers usually ask themselves:</p>
<p><strong>Question 1:</strong> How do I configure MPIO (in this case, VMware NMP) and my iSCSI targets and LUNs to get the most optimal use of my network infrastructure? How do I scale that up?</p>
<p><strong>Question 2</strong>: If I have a single LUN that needs really high bandwidth ‚Äì more than 160MBps and I can‚Äôt wait for the next major ESX version, how do I do that?</p>
<p><strong>Question 3</strong>: Do I use the Software Initiator or the Hardware Initiator?</p>
<p><strong>Question 4</strong>: Do I use Link Aggregation and if so, how?</p>
<p><a href="http://virtualgeek.typepad.com/virtual_geek/2009/01/a-multivendor-post-to-help-our-mutual-iscsi-customers-using-vmware.html" target="_blank"><strong>Here are the answers you seek‚Ä¶</strong></a></p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.motogobi.com/2009/01/27/a-multivendor-post-to-help-our-mutual-iscsi-customers-using-vmware/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Making do with less: Openfiler for networked storage</title>
		<link>http://www.motogobi.com/2008/12/16/making-do-with-less-openfile-for-networked-storage/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=making-do-with-less-openfile-for-networked-storage</link>
		<comments>http://www.motogobi.com/2008/12/16/making-do-with-less-openfile-for-networked-storage/#comments</comments>
		<pubDate>Tue, 16 Dec 2008 18:21:15 +0000</pubDate>
		<dc:creator>mike</dc:creator>
				<category><![CDATA[GeekTech]]></category>
		<category><![CDATA[system administration]]></category>
		<category><![CDATA[VMWare]]></category>

		<guid isPermaLink="false">http://www.motogobi.com/?p=92</guid>
		<description><![CDATA[It&#8217;s inevitable: hard drives just fall by the wayside. Even more so with the switch from IDE to SATA over the last couple of years. Where I work, large amounts of data had been stored on single spinning IDE disks (bad), so one of my goals was to migrate that data to redundant arrays for [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignleft size-full wp-image-100" title="openfiler1" src="http://www.motogobi.com/wp-content/uploads/2008/12/openfiler1.png" alt="openfiler1" width="181" height="63" />It&#8217;s inevitable: hard drives just fall by the wayside. Even more so with the switch from IDE to SATA over the last couple of years. Where I work, large amounts of data had been stored on single spinning IDE disks (bad), so one of my goals was to migrate that data to redundant arrays for better protection. OK, that&#8217;s fine. But what to do with the oddly-sized 500 and 750gig IDE hard drives that end up in a pile on your desk?</p>
<p>One word: <strong>NAS</strong>. (okay, so it&#8217;s an acronym for Network Attached Storage)</p>
<p><span id="more-92"></span>In our case, we need some large, fast, short-term backup space to handle convenience-backups, or backups that I think are not there for disaster-recovery, but are there to avoid having to re-download gigabytes of data from repositories like MSDN or Linux distros. Should irreplaceable data go to tape and get rotated offsite? Sure. Can I still offer several terabytes off disk-to-disk backups just in case? You bet. It was surprisingly easy, actually.</p>
<p>Since the vast majority of the administration on this network is at the Windows-comfort level, the three things I used were: old hardware, Windows 2003 Server, and the most recent distro of <a href="http://www.openfiler.com/">Openfiler</a>.</p>
<p><strong>Step one: wrangle your hardware</strong></p>
<p>Using an Optiplex GX270, I was able to mount three IDE drives in it &#8211; two 500gig and a 750gig. I booted the machine to make sure that the BIOS and pins were set correctly. On another Optiplex, I installed Server 2003, brought it up-to-date, and added it to our domain.</p>
<p><strong>Step two: install Openfiler</strong></p>
<p>Download the <a href="http://www.openfiler.com/community/download/">latest release of Openfiler from their website</a> and burn to CD. Boot the machine with all the disks to that CD and install Openfiler. Openfiler is an open-source product built on rPath linux. It&#8217;s it most complex setup, it can be deployed as a full-featured filer/file server, with useful things like NFS, CIFS, FTP, and rsync, as well as snapshots and software RAID. In this case, I enabled the iSCSI service in Openfiler, added all three disks in that old Optiplex as a single physical group, then created a single iSCSI volume on that group. That&#8217;s a <strong>1.67TB</strong> iSCSI target using disks that would have otherwise ended up spread around in desktops.</p>
<p><strong>Step three: mount the Openfiler iSCSI target in Windows, format, fill<br />
</strong><br />
<img class="alignleft size-full wp-image-98" title="wss-55x55-clustering" src="http://www.motogobi.com/wp-content/uploads/2008/12/wss-55x55-clustering.jpg" alt="wss-55x55-clustering" width="55" height="55" />On the second Optiplex, I installed the free <a href="http://www.microsoft.com/windowsserver2003/technologies/storage/iscsi/default.mspx">Microsoft iSCSI Software Initiator</a>, which comes installed by default in Server 2008. Without going into all the technical aspects of iSCSI (since I&#8217;m not fully aware of them, really), the iSCSI initiator is a simple Windows service that allows a Server 2003 machine to connect to an iSCSI target &#8211; in this case, the Openfiler machine. In it&#8217;s most basic setup, you simply add the IP address of the Openfiler in the iSCSI initiator setup to point to the Openfiler. It&#8217;ll find the target that&#8217;s presenting those physical disks, and Server 2003 will now believe it&#8217;s got one big additional hard drive to play with when you open up Disk Management. It&#8217;s cool.</p>
<p><strong>Some things I&#8217;ve learned about using this setup (and iSCSI in general):</strong></p>
<ul>
<li>DO NOT use an iSCSI target as a dynamic disk &#8211; only use it as a basic disk. If you create it as a dynamic disk, and then do something like, oh, set the flag that doesn&#8217;t allow Windows to fully start up until it&#8217;s reconnected all of it&#8217;s iSCSI targets&#8230; well, you&#8217;ll be waiting a long, long time. Ask me how I know this.</li>
<li>On your file server, or whatever is presenting the iSCSI target, it&#8217;s <em>highly</em> useful to have two gigabit NICs in use. In a basic setup like this with low traffic usage it&#8217;s not as noticeable. But as traffic increases, you want your file traffic to users going out through one interface, then your iSCSI traffic to your NAS going out another interface (and across a different switch or network segment).</li>
</ul>
<p>Finally, the flexibility of using something like Openfiler really creates a ton of pretty cool opportunities. Say you have the desktop hardware to present the disks but want to use a VMWare guest as the file server? Easy: since Openfiler can act as an iSCSI target, and since VMWare ESX can initiate sessions to iSCSI, you could add an Openfiler NAS as an additional datastore for your ESX server &#8211; and utilize all that disk space using a regular old VM setup.</p>
<p><strong>Some additional reading on iSCSI:</strong></p>
<p><a href="http://en.wikipedia.org/wiki/ISCSI">Wikipedia entry on iSCSI</a><br />
<a href="http://www.microsoft.com/WindowsServer2003/technologies/storage/iscsi/default.mspx">Microsoft Storage Technologies &#8211; iSCSI</a><br />
<a href="http://www.openfiler.com/">Openfiler.com</a><br />
<a href="http://www.petri.co.il/connect-vmware-esx-server-iscsi-san-openfiler.htm">Connect VMware ESX Server to a free iSCSI SAN using Openfiler</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.motogobi.com/2008/12/16/making-do-with-less-openfile-for-networked-storage/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Setting up PowerChute Network Shutdown in VMWare ESX 3.5</title>
		<link>http://www.motogobi.com/2008/11/13/setting-up-powerchute-network-shutdown-in-vmware-esx-35/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=setting-up-powerchute-network-shutdown-in-vmware-esx-35</link>
		<comments>http://www.motogobi.com/2008/11/13/setting-up-powerchute-network-shutdown-in-vmware-esx-35/#comments</comments>
		<pubDate>Thu, 13 Nov 2008 18:53:58 +0000</pubDate>
		<dc:creator>mike</dc:creator>
				<category><![CDATA[Virtualization]]></category>
		<category><![CDATA[system administration]]></category>
		<category><![CDATA[VMWare]]></category>

		<guid isPermaLink="false">http://www.motogobi.com/?p=79</guid>
		<description><![CDATA[I currently admin a sizable VMWare ESX deployment hosting a couple dozen domains and over a hundred Windows servers. Most are for testing and could be rebuilt pretty quickly, but some are for production deployment &#8211; at least one of which is fairly irreplaceable. This past summer our office suffered some extended outages due to [...]]]></description>
			<content:encoded><![CDATA[<p>I currently admin a sizable VMWare ESX deployment hosting a couple dozen domains and over a hundred Windows servers. Most are for testing and could be rebuilt pretty quickly, but some are for production deployment &#8211; at least one of which is fairly irreplaceable. This past summer our office suffered some extended outages due to city-wide power interruptions, so it was a no-brainer to approve the purchase of PowerChute services for these servers. Turns out, APC is lagging a little on getting an ESX 3.5-compatible current version of PCNS out there so I decided to get v2.2.1 running on my five ESX hosts.</p>
<p>Here&#8217;s how I did it &#8211; mostly for my own future reference:<span id="more-79"></span></p>
<p><strong>Step 1 &#8211; get the software</strong></p>
<p>Obtain the PCNS 2.2.1 rpm (<strong>not 2.2.3</strong>, which won&#8217;t install) from APC:</p>
<p><a href="ftp://ftp.apcc.com/apc/public/software/unix/linux/pcns/221vmware">ftp://ftp.apcc.com/apc/public/software/unix/linux/pcns/221vmware</a></p>
<p>Upload this to your ESX server using some utility like <a href="http://filezilla-project.org/">FileZilla</a> or <a href="http://winscp.net/eng/index.php">WinSCP</a> over port 22. I just placed it in <strong>/tmp</strong></p>
<p><strong>Step 2 &#8211; open ESX firewall for PCNS</strong></p>
<p>Now, open up some ports in the ESX firewall after opening up an SSH session to ESX (<strong>please note</strong> that the quotes in these statements will <em>not</em> copy over, it seems, in PuTTY. Make sure the config changes you submit have quotes in them):</p>
<blockquote><p>esxcfg-firewall -o 80,tcp,out,&#8221;APC PowerChute Port 80&#8243;<br />
esxcfg-firewall -o 3052,tcp,out,&#8221;APC PowerChute Port 3052&#8243;<br />
esxcfg-firewall -o 3052,tcp,in,&#8221;APC PowerChute Port 3052&#8243;<br />
esxcfg-firewall -o 3052,udp,out,&#8221;APC PowerChute Port 3052&#8243;<br />
esxcfg-firewall -o 3052,udp,in,&#8221;APC PowerChute Port 3052&#8243;</p></blockquote>
<p><strong>Step 3 &#8211; Install PNCS and configure</strong></p>
<p>Switch the to directory you placed the rpm in and install using the following command:</p>
<blockquote><p>rpm -ihv pcns-2.2.1-100.i386.rpm</p></blockquote>
<p>Start the PCNS configuration script using the following command:</p>
<blockquote><p>/usr/local/bin/PowerChute/PCNSConfig.sh</p></blockquote>
<p>Some things to look out for when setting up PCNS using that command-line wizard:</p>
<ul>
<li>I picked option 3 when running the script since I had 2 APCs to configure. Presumably you could pick option one for a single APC setup.</li>
<li>The script asks for the IP of the management card on the APC, the user name and password (I used the admin username/password) and then the Authentication Phrase. This phrase needs to be set up in the APC&#8217;s management interface prior to trying to connect this PCNS client &#8211; setup uses this phrase to register the client with the APC.</li>
<li>Once you finish the install script, it&#8217;ll ask you if you&#8217;d like to start the PCNS service &#8211; do so, then go to the URL of the PCNS web console for your ESX server: <a href="http://yourvmhostname:3052">http://yourvmhostname:3052</a> and log in using the admin credentials you specified prior.</li>
</ul>
<p><strong>Step 4 &#8211; disable UPS shutdown</strong></p>
<p>The final step that I chose <a href="http://vmetc.com/2007/11/18/how-to-use-apc-powerchute-to-shutdown-vmware-esx-3/">based on this excellent writeup of installing PCNS</a> was to disable the default behavior of shutting down the UPS once the client has shut down during a power event. Since I have several physical servers connected to these UPSes, I really didn&#8217;t want to mess with actually shutting down the APC itself automatically. To disable this, simply connect to the client web management console (the port 3052 link in step 3), navigate to &#8220;Configure Shutdown,&#8221; uncheck the box next to &#8220;Turn off the UPS after the shutdown finishes&#8221; and apply.</p>
<p>Further thanks for <a href="http://www.stefanschuller.com/index.php/2007/10/06/guide-how-to-setup-apc-powerchute-network-shutdown-in-vmware-esx-3/">Stefan Schuller&#8217;s post on setting up PCNS</a> and the commented link to the 2.2.1 rpm&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.motogobi.com/2008/11/13/setting-up-powerchute-network-shutdown-in-vmware-esx-35/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
	</channel>
</rss>
