<?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>devtrends.com &#187; VMware</title>
	<atom:link href="http://www.devtrends.com/index.php/tag/vmware/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.devtrends.com</link>
	<description>developing trends in information technology</description>
	<lastBuildDate>Tue, 06 Sep 2011 19:27:42 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>VCB Backup Script, vcbMounter</title>
		<link>http://www.devtrends.com/index.php/vcb-backup-script-vcbmounter/</link>
		<comments>http://www.devtrends.com/index.php/vcb-backup-script-vcbmounter/#comments</comments>
		<pubDate>Wed, 25 Nov 2009 06:13:22 +0000</pubDate>
		<dc:creator>aaron</dc:creator>
				<category><![CDATA[Batch Files]]></category>
		<category><![CDATA[VCB]]></category>
		<category><![CDATA[zFeatured]]></category>
		<category><![CDATA[Backup]]></category>
		<category><![CDATA[vcbMounter]]></category>
		<category><![CDATA[VMware]]></category>

		<guid isPermaLink="false">http://www.devtrends.com/?p=474</guid>
		<description><![CDATA[Although the VMware Consolidated Backup (VCB) software receives considerable flack for lacking features or functionality, the fact that it provides you with access to the raw VMDK files is enough...]]></description>
			<content:encoded><![CDATA[<p>Although the VMware Consolidated Backup (VCB) software receives considerable flack for lacking features or functionality, the fact that it provides you with access to the raw VMDK files is enough to alleviate all the missing functionality. As a side note, with Windows VMs, you can also use the vcbMounter program to mount the VM at a file level &#8212; which eliminates the need for backup client software on the VMs.</p>
<p><strong>Full VMDK Backups</strong></p>
<p>The first thing I&#8217;d like to point out is that the vcbMounter does not &#8220;mount&#8221; the datastore of the VM as one might imagine. When using the vcbMounter program to access the VMDK files, vcbMounter only copies the files to your VCB server. For smaller VMs, 30GB or so, this really isn&#8217;t much of an issue; however, for the larger VMs, say 300GB, this could pose a problem.</p>
<p>At first, you may be frustrated as the vcbMounter program is a quirky program. Unless you are lucky or brilliant, give yourself some time to play with the command options.</p>
<p>For my purposes, I use the following vcbMounter statement:</p>
<pre style="padding-left: 30px;">vcbmounter -h [VC or HOST] -u [USERNAME] -p [PASSWORD] -M 1 -a name:[VM NAME] -r [LOCATION]\%1_vmdk</pre>
<p><strong>vmdkbkp.bat</strong></p>
<p>As expected, I am backing up many VMs; who would have an ESX(i) host with only one VM? (that is an entirely different subject I may address another day). Instead of scheduling the full vcbMounter command with each backup script or scheduled task, I created a batch file I use to extract the VMDK files. If you are interested in my script, <a href="http://www.devtrends.com/downloads/vmdkbkp.zip">download here</a>.</p>
<pre style="padding-left: 30px;">@ECHO OFF
rem ----------------------------------------------------------------
rem Batch file to create a "mount" dump of a VM, as specified in %1.
rem Created, 11/23/2009, Aaron Gilbert, www.devtrends.com
rem
rem Usage: vmdkbkp.bat [server name]
rem  e.g.: vmdkbkp MYSERVERNAMEINESX
rem
rem ----------------------------------------------------------------

rem check to make sure the user supplied an argument
if "%1"=="" goto error

rem format date in yyyy-mm-dd to apply to a directory, use is %today%
For /f "tokens=2-4 delims=/ " %%a in ('date /t') do (set today=%%c-%%a-%%b)

rem update the path statement so we can use vcbmounter
PATH=%PATH%;"C:\Program Files\VMware\VMware Consolidated Backup Framework\"

rem begin vcbmounter to copy the VMDK files down in file size (no 2GB split)
vcbmounter -h [VC or HOST] -u [USERNAME] -p [PASSWORD] -M 1 -a name:%1 -r [LOCATION]\%1_vmdk_%today%

rem lets finish up without error!
goto done

rem fail...
:error
echo.
echo Please provide one argument in the form of a VM server name, such as MYSERVERNAMEINESX
echo.

rem clean complete
:done</pre>
<p>The batch file requires only one argument, the name of the VM server you wish to backup. I use the batch file in conjunction with a non-traditional vcbMounter &#8220;mounting&#8221; approach. I &#8220;mount&#8221; with the intent of keeping that &#8220;mount&#8221; for an extended period of time. In addition to the vmdkbkp.bat file, I use another batch file to clean out the backup directory of all &#8220;mounted&#8221; directories older than a specific date. This allows me to keep the VMDK files on my backup-to-disk server for multiple weeks, while rotating out the older files.</p>
<pre style="padding-left: 30px;">@ECHO OFF
rem -------------------------------------------------------------
rem Batch file to remove all directories that are older than %1.
rem Created, 11/24/2009, Aaron Gilbert, www.devtrends.com
rem
rem Usage: clndir.bat [negative days]
rem  e.g.: clndir -3
rem
rem -------------------------------------------------------------

rem check to make sure the user supplied an argument
if "%1"=="" goto error

rem clean up the directory from all directories older than 3 days
forfiles.exe /p c:\backup\ /m *.* /d %1 /c "cmd /c if @isdir==TRUE rmdir /s /q @path"

rem lets finish up without error!
goto done

rem fail...
:error
echo.
echo Please provide one argument in the form of a negative number, such as -3
echo.

rem clean complete
:done</pre>
<p>Aaron Gilbert</p>
]]></content:encoded>
			<wfw:commentRss>http://www.devtrends.com/index.php/vcb-backup-script-vcbmounter/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Using the DroboPro with VMware ESX and ESXi</title>
		<link>http://www.devtrends.com/index.php/using-the-drobopro-with-vmware-esx-and-esxi/</link>
		<comments>http://www.devtrends.com/index.php/using-the-drobopro-with-vmware-esx-and-esxi/#comments</comments>
		<pubDate>Thu, 29 Oct 2009 03:14:10 +0000</pubDate>
		<dc:creator>aaron</dc:creator>
				<category><![CDATA[Drobo]]></category>
		<category><![CDATA[iSCSI]]></category>
		<category><![CDATA[DroboPro]]></category>
		<category><![CDATA[ESX]]></category>
		<category><![CDATA[ESXi]]></category>
		<category><![CDATA[VMware]]></category>

		<guid isPermaLink="false">http://www.devtrends.com/?p=424</guid>
		<description><![CDATA[Regardless of the fact that I am a fan of engineering my own products, such as the OpenSolaris iSCSI custom SAN, I have always been attracted to the Data Robotics...]]></description>
			<content:encoded><![CDATA[<p>Regardless of the fact that I am a fan of engineering my own products, such as the <a href="http://www.devtrends.com/index.php/opensolaris-iscsi-target/" target="_blank">OpenSolaris iSCSI custom SAN</a>, I have always been attracted to the Data Robotics product line, the Drobo. I am not much of a Apple fan either, however, similar to Apple, the Drobo product is well designed and marketed. For those that are wondering how well the DroboPro works with VMware, I am right here with you, wondering the same thing. So, let&#8217;s get started&#8230;</p>
<p><strong>Getting Your DroboPro Online!</strong></p>
<p>Obviously you should follow the guides provided to you by Data Robotics for initially setting up your DroboPro. If you seem to be blinded by consumer user guides, the initial seup is easy: (a) insert drives; (b) power on; (c) install Drobo Dashboard; and (d) connect via USB to a workstation. Yes &#8211; we start with configuring the device through USB&#8230;</p>
<p><strong>Configuring Volumes on DroboPro</strong></p>
<p>Now that your DroboPro is accessible through the Drobo Dashboard, we will start with configuring the volumes. For those that are not familar with iSCSI, these volumes will become iSCSI LUNs from the VMware host perspective. Do not worry about the fact that you have to create the volumes in NTFS as that filesystem will be destroyed when we begin to utilize the volumes for VMware ESX(i). Also worthy of mentioning, the drive letter that DroboPro is assigning to each volume has no value once VMware ESX(i) takes ownership of the volume.</p>
<p>As you may be aware, VMware does not understand LUNs larger than 2 TB, so if your DroboPro has a large disk capacity, you will need to create multiple 2TB volumes. My DroboPro has 8x 1TB hard drives installed. This is accomplished in the Drobo Dashboard software application as shown in the screenshot below:</p>
<p><a href="http://www.developingtrends.net/wp-content/uploads/2009/10/1.jpg"><img class="alignnone size-medium wp-image-425" title="1" src="http://www.devtrends.com/wp-content/uploads/2009/10/1-300x257.jpg" alt="1" width="300" height="257" /></a></p>
<p><a href="http://www.developingtrends.net/wp-content/uploads/2009/10/4.jpg"><img class="alignnone size-medium wp-image-429" title="4" src="http://www.devtrends.com/wp-content/uploads/2009/10/4-300x147.jpg" alt="4" width="300" height="147" /></a></p>
<p><strong>Configuring iSCSI on DroboPro</strong></p>
<p>The next step is to configure the DroboPro with an IP address for iSCSI connectivity. Not that anyone would want to route iSCSI traffic, however, you will notice that the iSCSI IP address designation does not allow you to configure a gateway IP address. You must use the DroboPro in the same subnet/VLAN as the ESX(i) hosts. This configuration change will require a reboot.</p>
<p><a href="http://www.developingtrends.net/wp-content/uploads/2009/10/3.jpg"><img class="alignnone size-medium wp-image-426" title="3" src="http://www.devtrends.com/wp-content/uploads/2009/10/3-300x210.jpg" alt="3" width="300" height="210" /></a></p>
<p><strong>Connecting ESX(i) and DroboPro</strong></p>
<p>If you have an existing SAN, you will want to follow the same configuration, connecting your DroboPro into the Storage Area Network (SAN). Separate networks requires additional VMware configuration, such as another Virtual Switch and VMKernel. If you are a small shop and have the DroboPro on the same network as your production environment, then the only modification will be adding the iSCSI IP address to the VMware iSCSI Software Initiator and performing a Rescan on the adapter.</p>
<p><em>Note: The DroboPro seems to have a difficult time being an iSCSI target while also connected via the USB port. Now would be a good time to disconnect the DroboPro from the USB cable and visa versa.</em></p>
<p>On the Configuration tab of your ESX(i) host, choose Storage Adapters and click on the Properties… link within the iSCSI Software Adapter (vmhba32). First, within the iSCSI Initator (vmhba32) window, General tab, ensure that the Software Initiator Properties states Status Enabled. Second, on the Dynamic Discovery tab, add a new iSCSI server and enter the same IP address as you configured on the DroboPro.</p>
<p><em>In addition, ENSURE that you use port <strong>3261</strong>.</em></p>
<p><a href="http://www.developingtrends.net/wp-content/uploads/2009/10/9.jpg"><img class="alignnone size-medium wp-image-427" title="9" src="http://www.devtrends.com/wp-content/uploads/2009/10/9-299x300.jpg" alt="9" width="299" height="300" /></a></p>
<p>The standard iSCSI port 3260 may work; I ran into connection issues when I tried to add another ESX host in the mix. According to DroboPro VMware best practices, the DroboPro can handles up to 4 ESX(i) hosts and they recommend port 3261. Perform a rescan of the HBAs and you should see the LUNs appear, matching the volumes you created earlier.</p>
<p><a href="http://www.developingtrends.net/wp-content/uploads/2009/10/8.jpg"><img class="alignnone size-medium wp-image-428" title="8" src="http://www.devtrends.com/wp-content/uploads/2009/10/8-300x171.jpg" alt="8" width="300" height="171" /></a></p>
<p><strong>Adding Storage on ESX(i)</strong></p>
<p>If you have ever worked with iSCSI and VMware, and hopefully you have if you are using VMware in a production environment, then you understand the next step. You will need to create the VMFS volumes from the iSCSI LUNs. If you are confused with iSCSI LUNs, think of an iSCSI LUN as a SCSI LUN, for even though it is software based in our environment, it is utilized as though it is a hardware device or array.</p>
<p>At this point, VMware will destroy the current file system (NTFS) that we created when we create the volumes earlier.</p>
<p>Now you can use the storage to offload test/production VMs, create new VMs, et cetera.</p>
<p><strong>Performance</strong></p>
<p>I did some simple performance testing on the DroboPro using two methods, one with Windows and VMware file copies and the other using <a href="http://www.iometer.org/" target="_blank">iometer</a>.</p>
<table style="border: 1px dashed #999999;" border="0">
<tbody>
<tr>
<td>Microsoft iSCSI Software Initiator<br />
(Windows file copy)</td>
<td>2GB file copy</td>
<td>42MB/sec write</td>
<td>38MB/sec read</td>
</tr>
<tr>
<td>VMware Software Initiator<br />
(using Datastore browser upload)</td>
<td>2GB file copy</td>
<td>7MB/sec write</td>
<td>(I/O error) read</td>
</tr>
<tr>
<td>VMware Software Initiator<br />
(using VM Windows share of iSCSI LUN)</td>
<td>2GB file copy</td>
<td>&lt;5MB/sec write</td>
<td>&lt;5MB/sec read</td>
</tr>
<tr>
<td>iometer</td>
<td>32KB 100% Sequential</td>
<td>14 MB/sec write</td>
<td>30 MB/sec read</td>
</tr>
<tr>
<td>iometer</td>
<td>1MB 100% Sequential</td>
<td>19 MB/sec write</td>
<td>40 MB/sec read</td>
</tr>
<tr>
<td>iometer</td>
<td>8MB 100% Sequential</td>
<td>52 MB/sec write</td>
<td>61 MB/sec read</td>
</tr>
</tbody>
</table>
<p>Before we get too much into the performance I gathered, I want to state two things: (a) my lab environment has fairly old Dell servers and workstations, however, even iometer can produce 57MB/sec on the IDE workstation hard drive; and (b) the VMware results are too low to believe, especially considering that the DroboPro is now VMware certified. To be honest, I am not even certain I set up the test appropriately in iometer. My goal with the configuration was to simulate a file copy with 100% sequential write or read. Click <a href="http://www.developingtrends.net/wp-content/uploads/2009/10/Drobo.zip">here to download the iometer configuration</a> I used for this test.</p>
<p>Overall, I am fairly pleased with the performance using the Microsoft iSCSI software. As with VMware, the performance is lacking. <strong>I will be doing a more thorough performance test with VMware in the near future.</strong></p>
<p>As a final note, be sure to review the Data Robotics document on <a href="http://www.drobo.com/pdf/VMware_Best_Practices_1009.pdf" target="_blank">DroboPro VMware best practices</a>.</p>
<p>-Aaron Gilbert</p>
]]></content:encoded>
			<wfw:commentRss>http://www.devtrends.com/index.php/using-the-drobopro-with-vmware-esx-and-esxi/feed/</wfw:commentRss>
		<slash:comments>14</slash:comments>
		</item>
		<item>
		<title>Custom iSCSI (IET) with VMware ESX</title>
		<link>http://www.devtrends.com/index.php/custom-iscsi-with-vmware-esx-no-go/</link>
		<comments>http://www.devtrends.com/index.php/custom-iscsi-with-vmware-esx-no-go/#comments</comments>
		<pubDate>Wed, 05 Aug 2009 20:17:58 +0000</pubDate>
		<dc:creator>aaron</dc:creator>
				<category><![CDATA[ESX 4.0]]></category>
		<category><![CDATA[iSCSI]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Storage]]></category>
		<category><![CDATA[VMware]]></category>
		<category><![CDATA[ESX]]></category>
		<category><![CDATA[IET]]></category>
		<category><![CDATA[RedHat]]></category>

		<guid isPermaLink="false">http://www.devtrends.com/?p=163</guid>
		<description><![CDATA[As mentioned in my articles on building a custom server case and the iSCSI Enterprise Target on RedHat Enterprise Linux 5.3, sometimes there is the need to facilitate stiff project...]]></description>
			<content:encoded><![CDATA[<p>As mentioned in my articles on building a custom server case and the iSCSI Enterprise Target on RedHat Enterprise Linux 5.3, sometimes there is the need to facilitate stiff project requirements while spending nearly nothing. In a booming economy, it is unlikely that you would need to create your own production/enterprise worthy SAN environment. There is a reason a SAN is so expensive, even without the expensive SAS drives; it&#8217;s called engineering and manufacturing!</p>
<p>This article discusses issues I have come across while building or testing opensource iSCSI target software with various iSCSI initiators. I began testing the IET product on Ubuntu Server 8.04 with VMware ESXi 3.5, which worked well in a segregated lab. Then I moved forward to testing a &#8220;production&#8221; IET target with Microsoft&#8217;s iSCSI Software Initiator, which also worked exceptionally well. Finally, I moved into the VMware ESX 3.5 realm, which did not go well at all, initially.</p>
<p><strong>Test 1: VMware ESXi 3.5 and Ubuntu Server 8.04, iSCSI Enterprise Target (IET)</strong></p>
<p>The test was a combination of feasibility and reliability, with an emphasis on the feasibility aspect. For the Ubuntu Server that served as an iSCSI target, I used an older 1U Dell PowerEdge 850 server. The network fabric was a HP ProCurve 48 port switch, which was used for both the standard network environment in the lab and the iSCSI network.</p>
<p>The test went well with a new VM build to the iSCSI target of Windows Server 2003. Heck yes. The feasibility was there as it took an afternoon to make it happen. The reliability was also there, especially since everyone touts Linux as the most solid operating system in the world.</p>
<p><strong>Test 2: Microsoft iSCSI Initiator and IET</strong></p>
<p><a href="http://iscsitarget.sourceforge.net/">http://iscsitarget.sourceforge.net/</a><br />
<a href="http://www.microsoft.com/windowsserver2003/technologies/storage/iscsi/default.mspx">http://www.microsoft.com/windowsserver2003/technologies/storage/iscsi/default.mspx</a></p>
<p>Although I am a Microsoft guy by trade, when it comes to new technology I am generally weary of Microsoft&#8217;s implementation as a solid product. However, during my testing of the iSCSI Enterprise Target (IET) opensource target software (0.4.17), I have had absolutely no issues or concerns. After testing in a production lab environment, we moved to testing with our backup to disk project. In this instance, the iSCSI target is used for backups to disk and is hammered almost 24/7 by EMC Retrospect through the Microsoft iSCSI Software Initiator. The product has been running strong for 3 months as of 8/1/2009.</p>
<p><strong>Test 3: VMware ESX 3.5 to 4.0 and IET</strong></p>
<p>If you notice the title of this third test, you may gather that the initial testing did not go as well as was anticipated. In fact, I had a heck of a time getting the ESX 3.5 software iSCSI to even see the IET target from the start. At first I though the configuration was invalid, however, the Microsoft iSCSI Software Initiator worked exceptionally well with the same target with no reconfigurations.</p>
<p>To FINALLY get to a semi-solid state, I began with simplification&#8230;</p>
<p><em><span style="text-decoration: underline;">Simplify</span></em></p>
<p>As this was the third test, following two successful tests, I decided that I would enter the test with more features enabled, such as multipathing or bonding. This ended up over-complicating the project as there are some known issues with multipathing IET with VMware. To help resolve the issues with connectivity and failures, I went back to one gigabit link, no bonding or multipathing.</p>
<p><em><span style="text-decoration: underline;">Upgrade ESX host from 3.5 to 4.0</span></em></p>
<p>Following a technical support call with VMware, I decided to upgrade ESX to vSphere 4. The technical support person wanted me to update ESX 3.5 to the latest build, so I figured, let&#8217;s jump to the next level (should I have revisited &#8220;simplify&#8221;??).</p>
<p>Immediately following the ESX 4.0 installation, I was able to see the iSCSI LUNS. However, I was not able to use them as I kept receiving an error message about not being able to get disk information. If I remember correctly, this was resolved by using &#8220;blockio&#8221; type on the IET LUNs instead of &#8220;fileio&#8221;.</p>
<p><span style="text-decoration: underline;"><em>Modify IETd.conf to match ESX iSCSI settings</em></span></p>
<p>This change was to ensure that the VMware iSCSI software initiator shared the same &#8220;mindset&#8221; as the IET target. If I remember correctly, only ESX 4 hosts can modify the iSCSI initiator settings.</p>
<p><strong>Conclusion</strong></p>
<p>After running into a list of complexities getting IET to work well with VMware, I finally got it to play nicely for almost 2 weeks. And then&#8230;I received the an &#8220;unknown command&#8221; error in /var/log/messages and the IET target software jammed up causing the VMware virtual machines to lock up.</p>
<p>From my perspective, enough time has been given to IET and I do not feel as though it is ready for VMware &#8211; or that VMware is ready for it. I am, therefore, moving forward with OpenSolaris for two reasons, built in iSCSI target and ZFS. More to come&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.devtrends.com/index.php/custom-iscsi-with-vmware-esx-no-go/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

