<?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>Hostmedic &#187; iscsi</title>
	<atom:link href="http://www.hostmedic.com/tag/iscsi/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.hostmedic.com</link>
	<description>Emergency Medicine for Hosting &#38; Server Admins</description>
	<lastBuildDate>Sat, 24 Sep 2011 04:51:37 +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>NFS Mounts on Leopard / MAC OS</title>
		<link>http://www.hostmedic.com/admin/storage/nfs-mounts-on-leopard-mac-os/</link>
		<comments>http://www.hostmedic.com/admin/storage/nfs-mounts-on-leopard-mac-os/#comments</comments>
		<pubDate>Thu, 17 Sep 2009 22:16:49 +0000</pubDate>
		<dc:creator>Glenn Kelley</dc:creator>
				<category><![CDATA[MAC]]></category>
		<category><![CDATA[OS]]></category>
		<category><![CDATA[Storage]]></category>
		<category><![CDATA[iscsi]]></category>
		<category><![CDATA[leopard]]></category>
		<category><![CDATA[nfs]]></category>

		<guid isPermaLink="false">http://www.hostmedic.com/?p=575</guid>
		<description><![CDATA[NFS mounts are now added using Disk Utility. To add a Linux-hosted NFS share do the following: Start Disk Utility Select NFS Mounts from the File menu Click the plus sign in the lower left corner Enter in your remote NFS URL info as described Enter the mount point. If you add it to /Network, [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.hostmedic.com%2Fadmin%2Fstorage%2Fnfs-mounts-on-leopard-mac-os%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.hostmedic.com%2Fadmin%2Fstorage%2Fnfs-mounts-on-leopard-mac-os%2F&amp;source=churchmedic&amp;style=normal&amp;service=TinyURL.com&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<div style="text-align: left;"><a href="http://www.hostmedic.com/wp-content/uploads/2009/09/mac-linux-nfs.png"><img class="alignright size-full wp-image-579" title="mac-linux-nfs" src="http://www.hostmedic.com/wp-content/uploads/2009/09/mac-linux-nfs.png" alt="mac-linux-nfs" width="343" height="245" /></a>NFS mounts are now added using Disk Utility. To add a Linux-hosted NFS share do the following:</div>
<ol>
<li style="padding-bottom: 3px; text-align: left;">Start Disk Utility</li>
<li style="padding-bottom: 3px; text-align: left;">Select NFS Mounts from the File menu</li>
<li style="padding-bottom: 3px; text-align: left;">Click the plus sign in the lower left corner</li>
<li style="padding-bottom: 3px; text-align: left;">Enter in your remote NFS URL info as described</li>
<li style="padding-bottom: 3px; text-align: left;">Enter the mount point. If you add it to /Network, then it will show up in the Shared section of Finder, in an entry called All.</li>
<li style="padding-bottom: 3px; text-align: left;">If you&#8217;re using secure ports on your server, then click the Advanced option and enter <tt style="color: #9f2d00; font-family: Monaco, Courier, monospace; font-size: 12px;">-P</tt></li>
<li style="padding-bottom: 3px; text-align: left;">Click Verify</li>
<li style="padding-bottom: 3px; text-align: left;">Save your settings</li>
</ol>
<p>for those of you asking about iscsi -</p>
<p>ZFS wasn’t the only AWOL storage technology in Apple’s OS X 10.5 – <strong>early builds of Leopard included a built-in iSCSI initiator</strong>. When the operating system was finally released in October of 2007, both ZFS and iSCSI were quietly dropped.  Both Microsoft and Linux offer native iSCSI client implementations and Apple is lagging behind here.</p>
<p style="line-height: 18px; margin-top: 1em; margin-right: 0px; margin-bottom: 1em; margin-left: 0px; text-align: left;">In the mean time, those seeking iSCSI connectivity within Mac OS X do have <strong>third-party options</strong> to consider:</p>
<ul>
<li style="list-style-type: square; list-style-position: initial; list-style-image: initial; line-height: 18px;"><a style="color: #546188; background-image: initial; background-repeat: initial; background-attachment: initial; -webkit-background-clip: initial; -webkit-background-origin: initial; background-color: transparent; background-position: initial initial;" href="http://www.studionetworksolutions.com/products/product_detail.php?pi=11">Studio Network Solutions</a> offers a free  iSCSI initiator for OS X Tiger and Leopard. The globalSAN iSCSI Initiator is the client-side portion of their SANmp storage sharing solution, and purports to support most of the required protocols. In practice, however, the company cannot support other targets than their own.</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.hostmedic.com/admin/storage/nfs-mounts-on-leopard-mac-os/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>iscsi ≠Speed when it comes to DataBases</title>
		<link>http://www.hostmedic.com/admin/storage/iscsi-%e2%89%a0speed-when-it-comes-to-databases/</link>
		<comments>http://www.hostmedic.com/admin/storage/iscsi-%e2%89%a0speed-when-it-comes-to-databases/#comments</comments>
		<pubDate>Sun, 13 Sep 2009 02:23:25 +0000</pubDate>
		<dc:creator>Glenn Kelley</dc:creator>
				<category><![CDATA[DBA]]></category>
		<category><![CDATA[Network Admin]]></category>
		<category><![CDATA[Storage]]></category>
		<category><![CDATA[SysAdmin]]></category>
		<category><![CDATA[Virtualization]]></category>
		<category><![CDATA[vmWare]]></category>
		<category><![CDATA[cat6]]></category>
		<category><![CDATA[etherchannel]]></category>
		<category><![CDATA[flow control]]></category>
		<category><![CDATA[iscsi]]></category>
		<category><![CDATA[performance]]></category>

		<guid isPermaLink="false">http://www.hostmedic.com/?p=537</guid>
		<description><![CDATA[My advice is - stay away from iSCSI for databases - and go with direct storage - iSCSI is not ready for performance-sensitive applications out of the box.   I would suggest that anyone considering iSCSI with VMware should feel confident that their deployments can provide high performance and high availability as long as theyunderstand the “one link max per iSCSI target” ESX iSCSI initiator behavior.  ]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.hostmedic.com%2Fadmin%2Fstorage%2Fiscsi-%25e2%2589%25a0speed-when-it-comes-to-databases%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.hostmedic.com%2Fadmin%2Fstorage%2Fiscsi-%25e2%2589%25a0speed-when-it-comes-to-databases%2F&amp;source=churchmedic&amp;style=normal&amp;service=TinyURL.com&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p><img class="alignright" src="http://h18006.www1.hp.com/storage/highlights/images/05282009/idea_entmsg_virt_tap.gif" alt="" width="148" height="110" />Recently a quite large client contacted the HostMedic agency regarding some issues they are having within their network at their datacenter.</p>
<p>They are using <a href="http://www.vmware.com" target="_blank">VMWare</a> &#8211; and have what appears to be an excellent setup &#8211; until you step under the hood and tinker for a little while.    This client has done everything &#8220;right&#8221; &#8211; purchasing a SAN from Dell (the axiom line) as well as using Gigabit networking &#8211; Their SAN is connected to the network sharing its drives using the <a title="ISCSI Wikipedia" href="http://en.wikipedia.org/wiki/ISCSI" target="_blank">iSCSI</a> protocol.</p>
<p>What this client and I discovered the hard way is that it does not matter how fast the disks are &#8211; or how many disks you have if your pipe to them is slower than the pipe sticking out of a molasses tree.</p>
<p>I recreated the network locally as best as I could &#8211; and then turned on <a href="http://www.coker.com.au/bonnie++/experimental/">Bonnie.</a> Bonnie is an excellent disk performance utility.   After compiling the latest version, 1.96, (which allows you to measure lag time and even includes a multi-threaded mode) it quickly became apparent that their read times were quite high &#8211; interestingly enough higher than their write times (go figure).</p>
<p>The upper limit of &#8220;<em>Gigabit Ethernet</em>&#8221; is (theoretically) about 125MByte/sec.  Sadly &#8211; there is no real way for this client to get more due to their expensive iSCSI device not allowing more than one connection to parallel the data &#8211; so of course 125MByte/sec is all you get&#8230;   My testing in the real world gave roughly 40mbps.    OUCH -  So copying roughly 250GB of databases would take the better part of 5+ hours to complete.</p>
<p>I ran to google and asked the question: <strong>Can you get high throughput with iSCSI with GbE on ESX?</strong></p>
<p>The answer is <strong>YES</strong>.  But there are some complications, and some configuration steps that are not immediately apparent.</p>
<p>You need to understanding some iSCSI fundamentals, some Link Aggregation fundamentals, and know some ESX internals – none of which are immediately obvious to most folks (including myself).</p>
<p>A few take homes here:</p>
<blockquote>
<ul>
<li><strong>Ethernet link aggregation isn&#8217;t worth crap </strong>in iSCSI environments</li>
<li><strong>iSCSI HBA’s don’t buy you much</strong> other than boot-from-SAN in ESX,</li>
<li>The most common configuration (ESX software iSCSI) is <strong>limited to about 100 MB/s per iSCSI target</strong> over one-gigabit Ethernet.</li>
<li>Adding <strong>multiple iSCSI targets adds performance</strong> across the board, but configurations will vary according to your array.</li>
<li>Maximum per-target performance comes from <strong>guest-side software iSCSI</strong>, which can make use of multiple Ethernet links to push each array as fast as it can go.</li>
<li><span id="comment-6a00d8341c328153ef0111683760d0970c-content">accessing iSCSI directly from guest VM&#8217;s gives better performance than accessing it via the hypervisor layer.<br />
</span></li>
<li>If you are serious about iSCSI in your production environment, it’s valuable to do a bit of investigation learning, and it’s important to do a little engineering during design.    Of course iSCSI is easy to connect and begin using, but like many technologies which excel in terms of their simplicity the default options and parameters may not be robust enough to provide an iSCSI infrastructure which can support your organization.</li>
<li>Think about Flow-Control (should be set to receive on switches and transmit on iSCSI targets)</li>
<li>Enable spanning tree protocol with either RSTP or portfast enabled</li>
<li>Filter / restrict bridge protocol data units on storage network ports</li>
<li>Configure jumbo frames (always end-to-end – otherwise you will get fragmented crap)</li>
<li>Use Cat6 cables rather than Cat5/5e &#8211; the better the cable the better the connection. PERIOD</li>
<li>Consider cross-stack Etherchannel trunking for your configuration.</li>
<li>Investigate your switch &#8211; every switch has its good and bad &#8211; such as the amount of port buffers, ram, cpu, etc &#8230;</li>
</ul>
</blockquote>
<p><strong><span style="text-decoration: underline;">(Strongly) Recommended Additional Reading</span></strong></p>
<ol>
<li>Scott Lowe has done an excellent job talking on ESX networking.   Start with his recap here: <a href="http://blog.scottlowe.org/2008/12/19/vmware-esx-networking-articles/">http://blog.scottlowe.org/2008/12/19/vmware-esx-networking-articles/</a></li>
<li>Read the vendor&#8217;s documentation!
<ul>
<li><strong>START HERE -</strong> VMware: <a href="http://www.vmware.com/pdf/vi3_35/esx_3/r35u2/vi3_35_25_u2_iscsi_san_cfg.pdf">iSCSI SAN Configuration Guide</a></li>
<li>EMC Celerra: <a href="http://powerlink.emc.com/km/live1/en_US/Offering_Technical/Technical_Documentation/H5536-vmware-esx-srvr-using-emc-celerra-stor-sys-wp.pdf">VMware ESX Server Using EMC Celerra Storage Systems – Solutions Guide</a></li>
<li>EMC CLARiiON: <a href="http://powerlink.emc.com/km/live1/en_US/Offering_Technical/Technical_Documentation/H2197-vmware-esx-clariion-stor-sys-sg.pdf">VMware ESX Server Using EMC CLARiiON Storage Systems &#8211; Solutions Guide</a></li>
<li>EMC DMX: <a href="http://powerlink.emc.com/km/live1/en_US/Offering_Technical/Technical_Documentation/H2529_vmware_esx_svr_w_symmetrix_wp_ldv.pdf">VMware ESX Server Using EMC Symmetrix Storage Systems – Solutions Guide</a></li>
<li>NetApp: <a href="http://media.netapp.com/documents/tr-3428.pdf">NetApp &amp; VMware Virtual Infrastructure 3 : Storage Best Practices</a> (Vaughn is proud to say this is the most popular NetApp TR)</li>
<li>HP/LeftHand: <a href="http://www.lefthandnetworks.com/document.aspx?oid=a0e0000000000ri">LeftHand Networks VI3 field guide for SAN/iQ 8 SANs</a></li>
<li>Dell/EqualLogic:
<ul>
<li><a href="http://www.equallogic.com/resourcecenter/assetview.aspx?id=5229">Network Performance Guidelines</a></li>
<li><a href="http://www.equallogic.com/resourcecenter/assetview.aspx?id=5235">VMware Virtual Infrastructure 3.x Considerations, Configuration and Operation Using an Equallogic PS Series SAN</a></li>
</ul>
</li>
</ul>
</li>
</ol>
<p>My advice is &#8211; stay away from iSCSI for databases &#8211; and go with direct storage &#8211; iSCSI is not ready for performance-sensitive applications out of the box.   I would suggest that anyone considering iSCSI with VMware should feel confident that their deployments can provide high performance and high availability as long as theyunderstand the “one link max per iSCSI target” ESX iSCSI initiator behavior.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.hostmedic.com/admin/storage/iscsi-%e2%89%a0speed-when-it-comes-to-databases/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>SAN w/o the cost &#8211; CentOS + iScsi</title>
		<link>http://www.hostmedic.com/admin/storage/san-wo-the-cost-centos-iscsi/</link>
		<comments>http://www.hostmedic.com/admin/storage/san-wo-the-cost-centos-iscsi/#comments</comments>
		<pubDate>Thu, 10 Sep 2009 17:56:25 +0000</pubDate>
		<dc:creator>Glenn Kelley</dc:creator>
				<category><![CDATA[Storage]]></category>
		<category><![CDATA[iscsi]]></category>
		<category><![CDATA[san]]></category>

		<guid isPermaLink="false">http://www.hostmedic.com/?p=420</guid>
		<description><![CDATA[Nowadays, the iSCSI technology is quite popular in the storage world Running iSCSI target on a Fedora system is as easy as “yum install iscsitarget” and configure the thing. On CentOS &#8211; however  iSCSI Enterprise Target (IET) daemon is not in the default Yum repositories &#8211; and while CentOS does offer TGT  (Linux SCSI Target [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.hostmedic.com%2Fadmin%2Fstorage%2Fsan-wo-the-cost-centos-iscsi%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.hostmedic.com%2Fadmin%2Fstorage%2Fsan-wo-the-cost-centos-iscsi%2F&amp;source=churchmedic&amp;style=normal&amp;service=TinyURL.com&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>Nowadays, the iSCSI technology is quite popular in the storage world<img class="alignright" title="iscsi-Chart" src="http://www.zycko.com/solutions/partners/a/Alacritech/i/iscsi_chart.jpg" alt="" width="328" height="232" /></p>
<p>Running iSCSI target on a Fedora system is as easy as “yum install iscsitarget” and configure the thing.</p>
<p>On CentOS &#8211; however  <a href="http://iscsitarget.sourceforge.net/">iSCSI Enterprise Target</a> (IET) daemon is not in the default Yum repositories &#8211; and while CentOS does offer TGT  (<a href="http://stgt.berlios.de/">Linux SCSI Target Framework</a>) I think for a SAN &#8211; IET is best.</p>
<p>In short &#8211; this requires us to start from scratch &#8211; and build from source.  It is important to note &#8211; whenever you update your kernel &#8211; you will need to recompile.</p>
<p><strong>The iSCSI Target system</strong></p>
<p>First, some prerequisites :</p>
<pre style="padding-left: 30px;"># yum install openssl-devel kernel-dev gcc rpm-build</pre>
<p>Download the latest IET from the <a href="http://iscsitarget.sourceforge.net/">Sourceforge repo</a> and put the tgz in /usr/src</p>
<pre style="padding-left: 30px;"># cd /usr/src
# tar xvf iscsitarget-0.4.17.tar.gz
# cd iscsitarget-0.4.17
# make
# make install</pre>
<p>Like most everything in linux &#8211; now that the make install is complete &#8211; your ready to go (except a minor configuration of course).  The iscsi-target init.d script is installed and will be started at boot-time.</p>
<p>Configuring the ietd host is pretty simple and the <a href="http://www.mediawiki.org/wiki/Manual:Configuration_settings" target="_blank">WIKI</a> has tons of valuable information.<br />
First, lets decide who can connect to the IET daemon :</p>
<p>First you have to have a naming convention for your IQN (iScsi Qualified Name) -   The IQN is an identifier for your iSCSI target.</p>
<p>Ok &#8211; so glenn &#8211; what the heck is this needed for? &#8211; I&#8217;m glad you asked..   The iSCSI initiator using the IQN to connect to the disks/lun&#8217;s.</p>
<pre style="padding-left: 30px;"># nano /etc/initiators.allow</pre>
<pre style="padding-left: 30px;">iqn.namingconvension:mydiskname 10.0.100.0/24</pre>
<p>In the above example The subnet 10.0.100.0/24 is allowed to use this iSCSI target.</p>
<p>Next, we’ll create the initiators.deny file, which is pretty straightforward :</p>
<pre style="padding-left: 30px;"> # nano /etc/initiators.deny</pre>
<pre style="padding-left: 30px;">ALL:ALL</pre>
<p>Time to create the IQN in the ietd configuration file.</p>
<pre style="padding-left: 30px;"># nano /etc/ietd.conf</pre>
<pre style="padding-left: 30px;">Target
<pre style="padding-left: 30px;">iqn.namingconvension:mydiskname
IncomingUser username 12345
OutgoingUser username 123456789012
Lun 0 Path=/dev/SAN/diskname,Type=fileio,IOMode=wb
Alias iSCSI for diskname
ImmediateData Yes
MaxConnections 1
InitialR2T Yes</pre>
</pre>
<p>I use the following conventions, as defined in the RFC :</p>
<p>For IncomingUser: Password always 5 characters<br />
For OutgoingUser: Password always 12 characters</p>
<p>I suggest using LVM as a disk backend. The disk can also be /dev/sdb or whatever your heart desires&#8230;</p>
<p><strong><br />
The iSCSI Initiator</strong></p>
<p>In Ubuntu/Debian/Fedora/ (or pick your Nix version and place here) there usually is an open-iscsi in the repository. If not, you can always compile it from source at <a href="http://www.open-iscsi.org/">http://www.open-iscsi.org</a>.</p>
<p>I love the CentOS Nix version &#8211; so the directions below &#8211; are assuming you have a CentOS system you would like to use with your new san.</p>
<p>Let’s install the prerequisites :</p>
<pre style="padding-left: 30px;"># yum install iscsi-initiator-utils
# yum install open-iscsi</pre>
<p>Next, define the initiator name. This is in the exact same form as the target name, but it <strong>should not be the same</strong>. This initiator name is the name (in IQN) of your computer.</p>
<pre style="padding-left: 30px;"># nano /etc/iscsi/initiatorname.iscsi

InitiatorName=iqn.namingconvension:someuniquename</pre>
<p style="padding-left: 30px;">Next, we’re going to configure the authentication and some specials in the iscsid config.</p>
<pre style="padding-left: 60px;"># nano /etc/iscsi/iscsid.conf

node.startup = automatic
node.session.auth.authmethod = CHAP
node.session.auth.username = username
node.session.auth.password = 12345
node.session.auth.username_in = username
node.session.auth.password_in = 123456789012
node.session.timeo.replacement_timeout = 120
node.conn[0].timeo.login_timeout = 15
node.conn[0].timeo.logout_timeout = 15
node.conn[0].timeo.noop_out_interval = 10
node.conn[0].timeo.noop_out_timeout = 15
node.session.initial_login_retry_max = 10
node.session.cmds_max = 128
node.session.queue_depth = 32
node.session.iscsi.InitialR2T = No
node.session.iscsi.ImmediateData = Yes
node.session.iscsi.FirstBurstLength = 262144
node.session.iscsi.MaxBurstLength = 16776192
node.conn[0].iscsi.MaxRecvDataSegmentLength = 131072
discovery.sendtargets.iscsi.MaxRecvDataSegmentLength = 32768
node.session.iscsi.FastAbort = No</pre>
<p>For more information about these setting, please refer to the <a href="http://www.open-iscsi.org/">open-iscsi</a> page.<br />
Next up, start the thing :</p>
<pre style="padding-left: 30px;"># service iscsi start</pre>
<p>Bingo! You just started the iSCSI daemon (all cheer).</p>
<p style="padding-left: 30px;">Now, we’re going to discover our targets on the target iSCSI host. I assume 10.0.100.1 is the target host in this example.</p>
<pre style="padding-left: 30px;"># iscsiadm -m discovery -t st -p 10.0.100.1
10.0.100.1:3260,1 iqn.namingconvension:mydiskname</pre>
<p>As you can see, it found the target we created before. Now, let’s login to it:</p>
<pre style="padding-left: 30px;"># iscsiadm -m node -p 10.0.100.1  -T iqn.namingconvension:mydiskname --login</pre>
<p>Congratulations Chap &#8211; if you do dh -alh &#8211; or dmesg  you will find a new disk inserted (/dev/sdc or whatever).</p>
]]></content:encoded>
			<wfw:commentRss>http://www.hostmedic.com/admin/storage/san-wo-the-cost-centos-iscsi/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

