<?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; Storage</title>
	<atom:link href="http://www.devtrends.com/index.php/category/storage/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>Configure iSCSI in CentOS 4/5 REHL 4/5</title>
		<link>http://www.devtrends.com/index.php/configure-iscsi-in-centos-45-rehl-45/</link>
		<comments>http://www.devtrends.com/index.php/configure-iscsi-in-centos-45-rehl-45/#comments</comments>
		<pubDate>Sun, 27 Feb 2011 17:27:51 +0000</pubDate>
		<dc:creator>aaron</dc:creator>
				<category><![CDATA[iSCSI]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.devtrends.com/?p=702</guid>
		<description><![CDATA[Since I don&#8217;t have an article on configuring Linux with iSCSI Initiator software, I thought I&#8217;d share this quick howto: http://linuxbites.wordpress.com/2010/03/26/configure-iscsi-in-centos-45-rehl-45/ -Aaron]]></description>
			<content:encoded><![CDATA[<p>Since I don&#8217;t have an article on configuring Linux with iSCSI Initiator software, I thought I&#8217;d share this quick howto:</p>
<p><a href="http://linuxbites.wordpress.com/2010/03/26/configure-iscsi-in-centos-45-rehl-45/" target="_blank">http://linuxbites.wordpress.com/2010/03/26/configure-iscsi-in-centos-45-rehl-45/</a></p>
<p>-Aaron</p>
]]></content:encoded>
			<wfw:commentRss>http://www.devtrends.com/index.php/configure-iscsi-in-centos-45-rehl-45/feed/</wfw:commentRss>
		<slash:comments>0</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>OpenSolaris iSCSI Initiator</title>
		<link>http://www.devtrends.com/index.php/opensolaris-iscsi-initiator/</link>
		<comments>http://www.devtrends.com/index.php/opensolaris-iscsi-initiator/#comments</comments>
		<pubDate>Fri, 11 Sep 2009 20:36:54 +0000</pubDate>
		<dc:creator>aaron</dc:creator>
				<category><![CDATA[iSCSI]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[OpenSolaris]]></category>
		<category><![CDATA[Storage]]></category>
		<category><![CDATA[zFeatured]]></category>
		<category><![CDATA[Initiator]]></category>

		<guid isPermaLink="false">http://www.devtrends.com/?p=239</guid>
		<description><![CDATA[As part of my testing phase during the custom SAN project, I was running into performance issues with the Microsoft iSCSI Software Initiator and the OpenSolaris COMSTAR iSCSI target. Although...]]></description>
			<content:encoded><![CDATA[<p>As part of my testing phase during the custom SAN project, I was running into performance issues with the Microsoft iSCSI Software Initiator and the OpenSolaris COMSTAR iSCSI target. Although some individuals were running into significant performance issues, such as 600KB/sec writes, my problem was 30MB/sec writes with 90MB/sec reads. Regardless, that is not the point of this post &#8211; instead I am posting the commands I used for employing SUN&#8217;s iSCSI Initiator during testing between SUN&#8217;s iSCSI target and SUN&#8217;s iSCSI initiator.</p>
<p><strong>SUN iSCSI Initiator</strong></p>
<p>Obviously you need to have your network configured properly prior to working with the iSCSI initiator or targets. In this example, I was working with the iSCSI initiator and target in a lab environment, with the host (target) being 192.168.0.18 and the client (initiator) being 192.168.0.19. Secondly, you will need the iSCSI initiator software to be installed from Package Manager &#8211; easiest way is to search for iscsi and ensure all four of those packages are installed.</p>
<p>For this example we will use Send Targets for discovering iSCSI targets/paths:</p>
<pre style="padding-left: 30px;">iscsiadm add discovery-address 192.168.0.18:3260
iscsiadm modify discovery --sendtargets enable</pre>
<p>Now that you have added the discovery address of the iSCSI target and enabled the discovery &#8220;Send Targets&#8221;, check to see if your target was discovered:</p>
<pre style="padding-left: 30px;">iscsiadm list target</pre>
<p>If you saw the targets you were expecting, the next step is to create the device links between iSCSI and your system &#8211; so you can see the iSCSI LUN as a disk on your system.</p>
<pre style="padding-left: 30px;">devfsadm -i iscsi</pre>
<p>Check the available disks on your system using the format command. After running the format command, hit CTRL-C to bounce back to the terminal prompt.</p>
<p><strong>Using / Mounting the iSCSI LUN</strong></p>
<p>Now that you have the iSCSI initiator working properly and the iSCSI targets discovered, lets actually use the new iSCSI disk with ZFS.</p>
<p>First we need to create the ZFS pool using the new disk. If you forgot the name of the new disk, you can learn it using the format command. If it is anything like the one on my OpenSolaris box, the name is rather large, (c0t600144F0F9A00C0000004AA9510A0001d0):</p>
<pre style="padding-left: 30px;">zpool create diskpool c0t600144F0F9A00C0000004AA9510A0001d0</pre>
<p>To verify the pool was created, use:</p>
<pre style="padding-left: 30px;">zpool list</pre>
<p>Now we can create a ZFS file system on top of that pool:</p>
<pre style="padding-left: 30px;">zfs create diskpool/test</pre>
<p>Check your new ZFS filesystem was created:</p>
<pre style="padding-left: 30px;">zfs list</pre>
<p>And now you can create files within the mount point:</p>
<pre style="padding-left: 30px;">root@opensolaris:/diskpool/test/#</pre>
<p>Everything you write to that mount point will be written to the iSCSI target, as one would hope.</p>
<p>Good luck with your performance!</p>
<p><strong>Credits</strong></p>
<p><a href="http://wikis.sun.com/display/OpenSolarisInfo/How+to+Configure+an+iSCSI+Initiator" target="_blank">http://wikis.sun.com/display/OpenSolarisInfo/How+to+Configure+an+iSCSI+Initiator</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.devtrends.com/index.php/opensolaris-iscsi-initiator/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>OpenSolaris iSCSI Target</title>
		<link>http://www.devtrends.com/index.php/opensolaris-iscsi-target/</link>
		<comments>http://www.devtrends.com/index.php/opensolaris-iscsi-target/#comments</comments>
		<pubDate>Fri, 04 Sep 2009 22:05:30 +0000</pubDate>
		<dc:creator>aaron</dc:creator>
				<category><![CDATA[iSCSI]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[OpenSolaris]]></category>
		<category><![CDATA[Storage]]></category>

		<guid isPermaLink="false">http://www.devtrends.com/?p=227</guid>
		<description><![CDATA[After spending a good amount of time on the iSCSI Enterprise Target (IET) solution and running into compatibility issues with VMware ESX 3.5 and 4.0, I decided to move on...]]></description>
			<content:encoded><![CDATA[<p>After spending a good amount of time on the iSCSI Enterprise Target (IET) solution and running into compatibility issues with VMware ESX 3.5 and 4.0, I decided to move on to other solutions. After reading up on the ZFS file system and how the features inclusive in ZFS would benefit any storage solution, I decided to move into the OpenSolaris world. Additionally, SUN has included their two variations of iSCSI targets in OpenSolaris and SUN provides support options. Needless to say, in my specific situation, OpenSolaris is a better solution to the “free” iSCSI target.</p>
<p>I owe some of my new-found knowledge to my friend Chuck Hechler and the remaining to Mike La Spina (<a href="http://blog.laspina.ca/">http://blog.laspina.ca/</a>). I don’t pretend to be anywhere as knowledgeable about OpenSolaris, ZFS, iSCSI, SANs, or storage in general as Mike or Chuck, however, I can create SharePoint workflow actions in VisualStudio, can they? =)</p>
<p><strong>The Equipment</strong></p>
<p>If you read my other posts on the IET and RedHat implementation, you would know that I created a custom server housed in a SuperMicro case. During the testing phase of that project, I learned that the IET product does not work well with the LSI MegaRAID 84016 controller, specifically when using RAID5. Unsure why, however, in OpenSolaris, I had an issue with our Adaptec 31605 controller and ended up using the LSI MegaRAID 84016E controller. Works like a charm. I mention this as you will need to verify that the equipment you are going to use with OpenSolaris should be supported by OpenSolaris (<a href="http://www.sun.com/bigadmin/hcl/">http://www.sun.com/bigadmin/hcl/</a>).</p>
<p>If you want more information on the hardware specifications for the system I used, please review my <a href="http://www.devtrends.com/index.php/custom-storage-server-supermicro-3u-case/" target="_self">Custom Server Case</a> article.</p>
<p><strong>OpenSolaris Configuration</strong></p>
<p>Using OpenSolaris to serve as an iSCSI target is surprisingly easy to configure. I say surprisingly because the same implementation in RedHat was thoroughly difficult, both due to a learning curve and due to many complications with functionality. On to OpenSolaris!</p>
<p>As I designed this system, I was focused on using ZFS as the sole solution for disk management and the file system. In other words, for my boot disks, I created a ZFS mirror and for the iSCSI LUN disks I created a ZFS raidz2.</p>
<p><strong><em>Installation</em></strong></p>
<p>For the most part, the default installation settings were used. Too be honest, the options during installation of OpenSolaris are limited. If you do not want the graphical interface, see my short article, <a href="http://www.devtrends.com/index.php/disable-gui-gdm-in-opensolaris/" target="_self">Disable GUI</a>, for disabling it after installation.</p>
<p><strong><em>ZFS</em></strong></p>
<p><em><span style="text-decoration: underline;">Boot pool – mirror</span></em></p>
<p>Mirroring the boot partition is about as difficult as it gets with this article. I did not figure out how to mirror the boot disk on my own. Using the steps in the following blog post, I managed to mirror my ZFS boot partition, rpool.</p>
<p><a href="http://darkstar-solaris.blogspot.com/2008/09/zfs-root-mirror.html">http://darkstar-solaris.blogspot.com/2008/09/zfs-root-mirror.html</a><br />
If you do not know the devices names of your drives, you can use “# format” to list the drives/devices on your system.</p>
<p>After the mirroring has been completed, display the status of the pool using the command and output below:</p>
<pre style="padding-left: 30px;"># zpool status
  pool: rpool
 state: ONLINE
 scrub: none requested
config:</pre>
<pre style="padding-left: 30px;"> NAME        STATE     READ WRITE CKSUM
 rpool       ONLINE       0     0     0
   mirror    ONLINE       0     0     0
     c8d0s0  ONLINE       0     0     0
     c9d0s0  ONLINE       0     0     0</pre>
<pre style="padding-left: 30px;">errors: No known data errors</pre>
<p><span style="text-decoration: underline;"><em>iSCSI pool – raidz2</em></span></p>
<p>After reading quite a few posts on best practices for ZFS pools, I propose that you use a raidz set per controller. In my instance, I had a 16 port controller and all 16 drives for the iSCSI pool were connected to this controller. Using the following commands I created a raidz2 pool with 2 spares:</p>
<pre style="padding-left: 30px;"># zpool create diskpool raidz2 c7t0d0 c7t1d0 c7t2d0 c7t3d0 c7t4d0 c7t5d0 c7t6d0 c7t7d0 c7t8d0 c7t9d0 c7t10d0 c7t11d0 c7t12d0 c7t13d0
# zpool add diskpool spare c7t14d0 c7t15d0</pre>
<p>That is it; we just created a large disk pool of 16 disks, 14 in a dual-parity set for volumes and 2 for spares. Easy? Yes.</p>
<p><span style="text-decoration: underline;"><em>Volumes</em></span></p>
<p>Best practice for creating ZFS volumes depends on your perspective. In my case, the iSCSI target will be used with VMware and I will create a new ZFS volume and iSCSI view for each VMware machine (not host). Follow the command below to create the base mountpoint in the ZFS pool:</p>
<pre style="padding-left: 30px;"># zfs create diskpool/iscsi</pre>
<p>Next we will create a volume for sharing as an iSCSI target. As I stated above, I create one volume per VM. Also, notice the “-b 64K”, which helps with partition alignment in VMware. The command “-V 40G” creates a volume with a maximum size of 40 gigabyes – keep in mind that ZFS will thin provision the file system.</p>
<pre style="padding-left: 30px;"># zfs create -s -b 64K -V 40G diskpool/iscsi/lun0_vm</pre>
<p>Display the pool and the ZFS volumes as shown below:</p>
<pre style="padding-left: 30px;"># zpool status
  pool: diskpool
 state: ONLINE
 scrub: resilver completed after 0h32m with 0 errors on Wed Sep  2 10:52:54 2009
config:</pre>
<pre style="padding-left: 30px;"> NAME           STATE     READ WRITE CKSUM
 diskpool       ONLINE       0     0     0
   raidz2       ONLINE       0     0     0
     c7t0d0     ONLINE       0     0     0
     c7t1d0     ONLINE       0     0     0
     c7t2d0     ONLINE       0     0     0
     c7t3d0     ONLINE       0     0     0
     c7t4d0     ONLINE       0     0     0
     c7t5d0     ONLINE       0     0     0�
     c7t6d0     ONLINE       0     0     0
     c7t7d0     ONLINE       0     0     0
     c7t8d0     ONLINE       0     0     0
     c7t9d0     ONLINE       0     0     0�
     c7t10d0    ONLINE       0     0     0
     c7t11d0    ONLINE       0     0     0�
     c7t12d0    ONLINE       0     0     0
     c7t13d0    ONLINE       0     0     0�
 spares
   c7t14d0      AVAIL
   c7t15d0      AVAIL</pre>
<pre style="padding-left: 30px;">errors: No known data errors</pre>
<pre style="padding-left: 30px;">  pool: rpool
 state: ONLINE
 scrub: none requested
config:</pre>
<pre style="padding-left: 30px;"> NAME        STATE     READ WRITE CKSUM
 rpool       ONLINE       0     0     0
   mirror    ONLINE       0     0     0
     c8d0s0  ONLINE       0     0     0
     c9d0s0  ONLINE       0     0     0</pre>
<pre style="padding-left: 30px;">errors: No known data errors</pre>
<pre style="padding-left: 30px;"># zfs list
NAME                             USED  AVAIL  REFER  MOUNTPOINT
diskpool                         9.9G  6.76T  51.1K  /diskpool
diskpool/iscsi                   9.9G  6.76T  48.5K  /diskpool/iscsi
diskpool/iscsi/lun0_vm     9.9G  6.76T   9.9G  -
rpool                           10.8G  62.1G  77.5K  /rpool
rpool/ROOT                      3.18G  62.1G    19K  legacy
rpool/ROOT/opensolaris          3.18G  62.1G  3.04G  /
rpool/dump                      3.75G  62.1G  3.75G  -
rpool/export                     114M  62.1G    21K  /export
rpool/export/home                114M  62.1G    21K  /export/home
rpool/export/home/vcssan         114M  62.1G   114M  /export/home/vcssan
rpool/swap                      3.75G  65.7G   101M  -</pre>
<p><strong><em>Network</em></strong></p>
<p>There are a few approaches to spreading the load across multiple links, my favorite is LACP, which is what I used – see my article on LACPBONDING. The other option that may arise in the planning phase is IPMP. However, I was unable to overcome the issue of having more than one inbound interface. If you are knowledgeable with source addressing, you will have better luck than I did.</p>
<p>I aggregated 4 gigabit links together using LACP and a Dell PowerConnect 5448 switch.</p>
<p><strong><em>iSCSI</em></strong></p>
<p>During the design phase, I tested both of SUN’s iSCSI targets, the standard iscsitadm and COMSTAR iSCSI. At this point, you can choose one based on word of mouth, or you can try both and use the one that works the best for you. I ended up using COMSTAR.</p>
<p><span style="text-decoration: underline;"><em>iscsitadm</em></span></p>
<p>The first configuration change we will make defines which interfaces the iSCSI target software will use. We accomplish this by creating a target group:</p>
<pre style="padding-left: 30px;"># iscsitadm create tpgt 1
# iscsitadm modify tpgt –i 192.168.0.101 1</pre>
<p>Because I am using link aggregation there is only one IP address to add to the group. If you decide to use multi-pathing as provided by VMware, you will need to add all of those IP addresses to the group.</p>
<p>Are you ready for the next statement, it is very complex…well, maybe not.</p>
<pre style="padding-left: 30px;"># zfs set shareiscsi=on diskpool/iscsi/lun0_vm</pre>
<p>That’s it; the ZFS volume is now served through the iSCSI target.</p>
<p><span style="text-decoration: underline;"><em>COMSTAR</em></span></p>
<p>On a default installation of OpenSolaris, you will need to install the COMSTAR iSCSI software package. Open the Package Manager and search for iSCSI, choose to install all of them, specifically the SUNWiscsit package.</p>
<p><a href="http://www.developingtrends.net/wp-content/uploads/2009/09/packagemanager.jpg"><img class="alignnone size-medium wp-image-229" title="packagemanager" src="http://www.devtrends.com/wp-content/uploads/2009/09/packagemanager-300x233.jpg" alt="packagemanager" width="300" height="233" /></a></p>
<p>After you have installed the software package, you will need to enable the COMSTAR iSCSI service:</p>
<pre style="padding-left: 30px;"># svcadm enable -r svc:/network/iscsi/target:default</pre>
<p>I am having a vague recollection that you may need to restart OpenSolaris before continuing…</p>
<p>The next configuration we will make defines which interfaces the iSCSI target software will use. We accomplish this by creating a target group and target:</p>
<pre style="padding-left: 30px;"># itadm create-tpg iscsi0 192.168.0.101
# itadm create-target –t iscsi0</pre>
<p>Now, we will share the ZFS volume through the COMSTAR iSCSI target – this is a two step process:</p>
<pre style="padding-left: 30px;"># sbdadm create-lu /dev/zvol/rdsk/diskpool/iscsi/lun0_vm</pre>
<p>Now let’s check for the new logical unit and remember the GUID… as we will use it in the next command:</p>
<pre style="padding-left: 30px;"># sbdadm list-lu</pre>
<pre style="padding-left: 30px;">Found 1 LU(s)</pre>
<pre style="padding-left: 30px;">       GUID                    DATA SIZE           SOURCE
--------------------------------  -------------------  ----------------
600144f08e6c0f0000004a8331d70002      42949607424      /dev/zvol/rdsk/diskpool/iscsi/lun0_vm</pre>
<p>Now we will add the view to share the ZFS volume through iSCSI:</p>
<pre style="padding-left: 30px;"># stmfadm add-view 600144f08e6c0f0000004a8331d70002</pre>
<p>That’s it!</p>
<p>I’m out….</p>
]]></content:encoded>
			<wfw:commentRss>http://www.devtrends.com/index.php/opensolaris-iscsi-target/feed/</wfw:commentRss>
		<slash:comments>3</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>
		<item>
		<title>Custom Storage Server (SuperMicro 3U Case)</title>
		<link>http://www.devtrends.com/index.php/custom-storage-server-supermicro-3u-case/</link>
		<comments>http://www.devtrends.com/index.php/custom-storage-server-supermicro-3u-case/#comments</comments>
		<pubDate>Thu, 09 Jul 2009 05:09:08 +0000</pubDate>
		<dc:creator>aaron</dc:creator>
				<category><![CDATA[iSCSI]]></category>
		<category><![CDATA[Storage]]></category>
		<category><![CDATA[RAID]]></category>
		<category><![CDATA[SAN]]></category>

		<guid isPermaLink="false">http://www.devtrends.com/?p=135</guid>
		<description><![CDATA[As with my articles that involve the iSCSI Enterprise Target (IET), the project that drove the desire to attempt a custom storage server was a backup to disk solution. The...]]></description>
			<content:encoded><![CDATA[<p>As with my articles that involve the iSCSI Enterprise Target (IET), the project that drove the desire to attempt a custom storage server was a backup to disk solution. The requirements were cost, space and speed. For the most part, using the case as described below and IET, all three were met.</p>
<p><strong>System Specifications</strong></p>
<p><em>Case</em>. SuperMicro 3U rack mounted case, model SC836A-R1200B ($1100). My first prototype was with the SuperMicro SC932T-760B case ($800) that had a triple redundant 760watt PS and 15 SATA bays and 15 SATA connectors requiring miniSAS to SATA fan cables. The power supply could not handle the motherboard, raid controller, and system fans – bad design. The new case is also a 3U, but holds 16 SATA/SAS drives and the backplane has 4 miniSAS connectors.</p>
<p>SC836A-R1200B: <a href="http://www.supermicro.com/products/chassis/3U/836/SC836A-R1200.cfm">http://www.supermicro.com/products/chassis/3U/836/SC836A-R1200.cfm</a><br />
SC932T-760B: <a href="http://www.supermicro.com/products/chassis/3U/932/SC932T-R760.cfm">http://www.supermicro.com/products/chassis/3U/932/SC932T-R760.cfm</a></p>
<p><em>RAID Controller</em>. The first prototype was using the LSI MegaRAID 84016E ($600), which in my opinion is very good controller – however, it does not work well with the IET iSCSI target software. During my initial stages of the iSCSI SAN project, I moved forward to the more expensive 31605 ($850?) because it was on sale ($500) and the LSI produced borderlining pathetic performance with a RAID5 configuration with the IET iSCSI application interface (15MBytes/sec). The Adaptec 31605 card holds up strong and can produce nearly 5x (3GB file copy in around 50 seconds…) the throughput with the same drives and RAID set type, 5. Both controllers have 4 miniSAS MFF8087 connectors, which allow up to 16 SATA devices through a fan-out cable or backplane. I used miniSAS on the controller to miniSAS on the backplane in the current configuration.</p>
<p><span style="text-decoration: underline;">Update: I recommend using OpenSolaris, COMSTAR and ZFS for all custom iSCSI SANs &#8211; in my opinion, there is no better solution available at the moment. In addition, the LSI MegaRAID 84016E with the battery kit is a solid controller with OpenSolaris and COMSTAR.</span></p>
<p><em>Storage SATA hard drives</em>. I have been using two sizes of drives, 640GB in the SAN that will be used for a VMware environment, creating 2 RAID60 RAID sets (not completely tested yet) and 1.5TB in the backup to disk creating a large 22TB RAID5. As a side note, NewEgg seems to have the BEST pricing when it comes to drives.</p>
<p><em>Boot controller / drives</em>. In the new SC836A-1200B case, I had the option for two 2.5” drives. I am using the SATA ports on the motherboard and mirroring between the two drives using the ZFS file system.</p>
<p><em>Network Interfaces</em>. In my first prototype I utilized an Intel dual port PCI-express x2 card and within RedHat I bonded the ports together using LACP (mode=4). In the VMware environment, I am using a PCI-express x4 Intel quad port card. For those that are wondering about jumbo framing: although I am currently using the Dell PowerConnect 5448, which supports jumbo framing, I am not using jumbo frames at this time.</p>
<p><em>Motherboard/RAM/CPU</em>. My first prototype used an ASUS board that had one PCI express and around 3 PCI slots, my second was a GigaByte board, which performed better, however it is still missing a key CORE component, ECC ram.  With the first motherboard (ASUS), the idea was to utilize the PCI slots for the network interfaces – however, after I purchased the motherboard, I realized/remembered that the throughput of a standard PCI bus cannot even support one gigabit Ethernet, yet alone two or three bonded. I am currently using the <a href="http://www.intel.com/products/server/motherboards/entry-s3200sh/entry-s3200sh-overview.htm" target="_blank">Intel Server Board S3200SH</a> with 8GB ECC DDR2 800 RAM and an Intel Core2 Duo…</p>
<p><strong>After Thoughts</strong></p>
<p>While building both the prototype and other SANs, I ran into some issues, which were for the most part overcome with some engineering or parts purchasing.</p>
<p>Make sure the motherboard you will be using has enough expansion slots and bus speed to support the required throughput of the RAID controller and the network interfaces. PCI Express comes in many sizes, from x1 to x16. IBM wrote a create article about the differences of each speed: <a href="http://www.redbooks.ibm.com/abstracts/tips0456.html">http://www.redbooks.ibm.com/abstracts/tips0456.html</a></p>
<p>Each motherboard configuration is different, when purchasing the motherboard, make sure the cables from the power supply are long enough to reach the ports on the motherboard. This is typically not a problem with a standard case, however, using a SuperMicro server case, in both instances some power connectors were not reachable. With the SC932T-760B case, the power supply only had a quad 12v plug for the CPU, which means it would only support a dual core processor. The SC836A-1200B has a dual quad 12v plug which would support quad core.</p>
<p>The SuperMicro case uses a proprietary power/reset/harddrive cable, if you do not use a SuperMicro server motherboard, you may need to purchase the cable fan-out adapter. Additionally, in the SC932T-760B case, I had to manually extend the power switch cable.</p>
<p>For the 2.5” optional bays, you will need to purchase drive sliders for the SC836A-1200B case to hold those drives. SuperMicro has parts available for this purpose: MCP-220-00024-01 and MCP-220-00007-01.</p>
<p>As a final note, the SC836A-1200B case was not assembled properly in my instance. I had to disable the alarm for a disconnected case fan; the backplane handles 4 fans but the new case design (released in June 09) only uses 3 fans.</p>
<p><a href="http://www.developingtrends.net/wp-content/uploads/2009/07/836-1.jpg"><img class="alignnone size-medium wp-image-136" title="836-1" src="http://www.devtrends.com/wp-content/uploads/2009/07/836-1-300x79.jpg" alt="" width="300" height="79" /></a><br />
SC836A-1200B front bezel.</p>
<p><a href="http://www.developingtrends.net/wp-content/uploads/2009/07/836-2.jpg"><img class="alignnone size-medium wp-image-137" title="836-2" src="http://www.devtrends.com/wp-content/uploads/2009/07/836-2-225x300.jpg" alt="" width="225" height="300" /></a><br />
SC836A-1200B top of case.</p>
<p><a href="http://www.developingtrends.net/wp-content/uploads/2009/07/836-3.jpg"><img class="alignnone size-medium wp-image-138" title="836-3" src="http://www.devtrends.com/wp-content/uploads/2009/07/836-3-300x225.jpg" alt="" width="300" height="225" /></a><br />
SC836A-1200B motherboard, Adaptec, quad port NIC</p>
<p><a href="http://www.developingtrends.net/wp-content/uploads/2009/07/836-41.jpg"><img class="alignnone size-medium wp-image-140" title="836-41" src="http://www.devtrends.com/wp-content/uploads/2009/07/836-41-300x225.jpg" alt="" width="300" height="225" /></a><br />
SC836A-1200B front view</p>
<p><a href="http://www.developingtrends.net/wp-content/uploads/2009/07/932-1.jpg"><img class="alignnone size-medium wp-image-141" title="932-1" src="http://www.devtrends.com/wp-content/uploads/2009/07/932-1-300x87.jpg" alt="" width="300" height="87" /></a><br />
SC932T-760B front bezel</p>
<p><a href="http://www.developingtrends.net/wp-content/uploads/2009/07/932-2.jpg"><img class="alignnone size-medium wp-image-142" title="932-2" src="http://www.devtrends.com/wp-content/uploads/2009/07/932-2-300x267.jpg" alt="" width="300" height="267" /><br />
</a>SC932T-760B top view of case<a href="http://www.developingtrends.net/wp-content/uploads/2009/07/932-2.jpg"><br />
</a></p>
<p><a href="http://www.developingtrends.net/wp-content/uploads/2009/07/932-3.jpg"><img class="alignnone size-medium wp-image-143" title="932-3" src="http://www.devtrends.com/wp-content/uploads/2009/07/932-3-300x225.jpg" alt="" width="300" height="225" /><br />
</a>SC932T-760B motherboard, RAID, NIC<a href="http://www.developingtrends.net/wp-content/uploads/2009/07/932-3.jpg"><br />
</a></p>
<p><a href="http://www.developingtrends.net/wp-content/uploads/2009/07/932-4.jpg"><img class="alignnone size-medium wp-image-144" title="932-4" src="http://www.devtrends.com/wp-content/uploads/2009/07/932-4-225x300.jpg" alt="" width="225" height="300" /><br />
</a>SC932T-760B SATA cables and 4 fans<a href="http://www.developingtrends.net/wp-content/uploads/2009/07/932-4.jpg"></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.devtrends.com/index.php/custom-storage-server-supermicro-3u-case/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Compile and Install iSCSI Enterprise Target (IET) on RedHat Enterprise Linux (RHEL) 5.3</title>
		<link>http://www.devtrends.com/index.php/compile-and-install-iscsi-enterprise-target-iet-on-redhat-enterprise-linux-rhel-53/</link>
		<comments>http://www.devtrends.com/index.php/compile-and-install-iscsi-enterprise-target-iet-on-redhat-enterprise-linux-rhel-53/#comments</comments>
		<pubDate>Wed, 08 Jul 2009 21:30:25 +0000</pubDate>
		<dc:creator>aaron</dc:creator>
				<category><![CDATA[iSCSI]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Storage]]></category>
		<category><![CDATA[IET]]></category>
		<category><![CDATA[iSCSI Enterprise Target]]></category>
		<category><![CDATA[RedHat]]></category>
		<category><![CDATA[RHEL]]></category>

		<guid isPermaLink="false">http://www.devtrends.com/?p=132</guid>
		<description><![CDATA[In this article, I am going to share what I learned while working with the IET on RHEL. Because I am fairly stubborn, I persisted that I use the latest...]]></description>
			<content:encoded><![CDATA[<p>In this article, I am going to share what I learned while working with the IET on RHEL. Because I am fairly stubborn, I persisted that I use the latest IET, which at the time was 0.4.17. The unfortunate part was that I could not find an RPM for that version of IET; I could only find 0.4.15, which is about 2 years old. I wanted the most recent stable version!</p>
<p>The project behind this article was to create a cheap iSCSI SAN for a backup to disk solution. The requirements of the project were foremost price, second were space, and third were performance. Amazingly, or should I say surprisingly, all three requirements were met, and in a short amount of time! In another article I will explain the custom server and the issues I had building a custom server system that could support large (10TB+) disk arrays. On to iSCSI…</p>
<p><strong>Installing RHEL</strong></p>
<p>For those that have installed RHEL, it is a fairly simple process, easy enough for any end user really, with the exception of partitioning if RHEL can’t figure out the correct disk order. Do what you will, however, for this project I installed RHEL with no firewall and disabled SELinux. If you are building a test machine, make sure you have enough space available for an additional partition to be served by IET.</p>
<p>Note: if you have no Internet connection while installing RHEL or you do not want to enter your installation key (subscription code), you may activate the RedHat Network (RHN) connection after you have completed your installation. To do so, from a terminal window, run rhn_register.</p>
<p><strong>Configuring and Preparing RHEL for IET</strong></p>
<p>In order to compile IET, you must configure RHEL with additional applications, another download repository, and kernel development files. First, I would suggest running a “yum update” from a terminal window to update your RHEL. As a side note, all of these commands assume you are root. Be sure to configure network connectivity, especially to the Internet.</p>
<p><em>Extra Packages for Enterprise Linux (EPEL)</em></p>
<p>Next, let’s configure RHEL to use an additional download repository, EPEL. From the web browser in RHEL, browse to the following link:<br />
<a href="http://fedoraproject.org/wiki/EPEL">http://fedoraproject.org/wiki/EPEL</a></p>
<p>Click on 1.1 Getting Started with EPEL, then click on How to use EPEL. Then under the Using EPEL heading, click on the RHEL 5 link which allow you to download an RPM to configure the EPEL on your RHEL.</p>
<p>For those that are unaware, EPEL is a repository that contains considerably more applications ready for installation through “yum” or the GUI package manager. The EPEL project is maintained by Fedora, which is essentially RedHat’s open source Linux.</p>
<p><em>Installing Development Files</em></p>
<p>In order to compile IET on your RHEL, you will need the following development files installed. This task is easy as “yum” will do all the work for you. From a terminal window, run the following commands:</p>
<p>“yum install openssl-devel”<br />
“yum install kernel-devel”<br />
“yum install kernel-PAE-devel” (32bit RHEL only)<br />
“yum install gcc”</p>
<p>Although not required, since I am a Windows administrator by trade, I have been rebooting my RHEL server after I completed these updates.</p>
<p><strong>Compile IET</strong></p>
<p>Using your web browser, visit <a href="http://iscsitarget.sourceforge.net/">http://iscsitarget.sourceforge.net/</a> and download the latest version of IET, which at the time of this article is 0.4.17. Once downloaded, extract the files to your Desktop and open a terminal window to that location. Such as /~/Desktop/iscsitarget/.</p>
<p>From the iscsitarget folder in the terminal window, run “make”, verify for success and then run “make install”. Assuming all went well, you should now have the IET installed on your RHEL.</p>
<p><strong>Configure IET</strong></p>
<p>Let’s configure the IET application to serve a partition. Although in this example I will use a SCSI disk device, you can use the LVM to create your own unique disks and serve those through IET.</p>
<p>The configuration is fairly simple, replaced with your favorite editor tool from the terminal window, type “nano /etc/ietd.conf”. Until you feel like diving deeper into the IET world, you will only modify two lines in this file, the Target and Lun lines.</p>
<p>Modify the file to look similar to the following:</p>
<p>Target iqn.2009-07.test:iscsi.disk<br />
     Lun 0 Path=/dev/sdb,Type=fileio</p>
<p>You may modify the iSCSI target name, just make sure it follows the iSCSI standard. Additionally, you will need to replace the path statement with the path to your disk. To add more than one Target to the same server, just duplicate those lines, such as:</p>
<p>Target iqn.2009-07.test:iscsi.diska<br />
     Lun 0 Path=/dev/sdb,Type=fileio</p>
<p>Target iqn.2009-07.test:iscsi.diskb<br />
     Lun 0 Path=/dev/sdc,Type=fileio</p>
<p><strong>Starting IET</strong></p>
<p>As you probably know, in RHEL “services” reside within the /etc/init.d/ directory. Using the following command from a terminal window we will start the iscsitarget service:</p>
<p>/etc/init.d/iscsi-target start</p>
<p>To stop the service, run:</p>
<p>/etc/init.d/iscsi-target stop</p>
<p><strong>Testing IET</strong></p>
<p>For simplistic testing of the iSCSI target connectivity, I would suggest using the Microsoft iSCSI software initiator found at: <a href="http://www.microsoft.com/iscsi/">http://www.microsoft.com/iscsi/</a>. Within the Microsoft iSCSI Initiator, add the IP address of the RHEL server to the discovery list and then refresh the available targets. Once you connect to a target/LUN, you will need to open Disk Management to initialize and/or format the disk.</p>
<p>Depending on the hardware set up, you should see fairly quick speeds. For a simple speed test, copy a large file, such as a 3GB file to the iSCSI disk from the Windows machine. In my tests, using an Adaptec 31605 with 1.5TB Seagate drives, a 3GB file would take around 50 seconds to complete – roughly 1GB / minute.</p>
<p><strong>Auto Start IET</strong></p>
<p>If you want the IET to automatically start at system boot up, use the following commands from a terminal window:</p>
<p>“chkconfig &#8211;add iscsi-target”<br />
“chkconfig iscsi-target on”</p>
<p> </p>
<p>That is it for now…if you have questions, let me know.</p>
<p>As time progresses, I will update an article with troubleshooting tips I have learned while configuring around 5 of these systems. Additionally, if you are really interested in IET, I would suggest joining the Nabble forum group at: <a href="http://www.nabble.com/iSCSI-Enterprise-Target-f4401.html">http://www.nabble.com/iSCSI-Enterprise-Target-f4401.html</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.devtrends.com/index.php/compile-and-install-iscsi-enterprise-target-iet-on-redhat-enterprise-linux-rhel-53/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

