<?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>ScottDotDot </title>
	<atom:link href="http://s.co.tt/tag/san-switch/feed/" rel="self" type="application/rss+xml" />
	<link>http://s.co.tt</link>
	<description>Babblings of a computer curmudgeon.</description>
	<lastBuildDate>Mon, 26 Jan 2026 16:08:52 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=4.1</generator>
	<item>
		<title>SAN with Linux Cluster and CLVM: Is it Necessary?</title>
		<link>http://s.co.tt/2013/09/04/san-with-linux-cluster-and-clvm-is-it-necessary/</link>
		<comments>http://s.co.tt/2013/09/04/san-with-linux-cluster-and-clvm-is-it-necessary/#comments</comments>
		<pubDate>Wed, 04 Sep 2013 16:45:44 +0000</pubDate>
		<dc:creator><![CDATA[Scott]]></dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[CentOS]]></category>
		<category><![CDATA[clustering]]></category>
		<category><![CDATA[computer]]></category>
		<category><![CDATA[san switch]]></category>
		<category><![CDATA[Virtualization]]></category>

		<guid isPermaLink="false">http://s.co.tt/blog/?p=522</guid>
		<description><![CDATA[To answer the title of this post in one word: No. But as with all things computer related, that &#8220;no&#8221; needs to be followed by the caveat: &#8220;Well, it depends upon your needs.&#8221; From what I&#8217;ve seen, Linux clustering was designed primarily for high-availability services, with only a secondary effort to share disk resources across nodes. I have tried &#8212; and would never use in production &#8212; Linux clustering services for a VM host cluster. I know other people have done it and will continue to do it, but a properly configured (and managed) VM cluster does not need true clustering. (Again, &#8220;depending upon your needs&#8221;). Linux clustering requires fencing. (It didn&#8217;t always, but now it does). Fencing is a … <a class="continue-reading-link" href="http://s.co.tt/2013/09/04/san-with-linux-cluster-and-clvm-is-it-necessary/"> Continue reading</a>]]></description>
				<content:encoded><![CDATA[<p>To answer the title of this post in one word:  No.</p>
<p>But as with all things computer related, that &#8220;no&#8221; needs to be followed by the caveat: &#8220;Well, it depends upon your needs.&#8221;</p>
<p>From what I&#8217;ve seen, Linux clustering was designed primarily for high-availability services, with only a secondary effort to share disk resources across nodes.</p>
<p>I have tried &#8212; and would never use in production &#8212; Linux clustering services for a VM host cluster.  I know other people have done it and will continue to do it, but a properly configured (and managed) VM cluster does not need true clustering.  (Again, &#8220;depending upon your needs&#8221;).</p>
<p>Linux clustering requires fencing.  (It didn&#8217;t always, but now it does).  Fencing is a great thing in a homogeneous cluster where every machine is a clone of every other, and the point of the cluster is that it can lose a machine or six and still provide the same service(s).  The purpose of fencing is to &#8220;shoot a bad node in the head&#8221;.  This can either mean power-cycling it with an iLO or PDU, or disconnecting it from shared resources such as a SAN at the switch level.</p>
<p>Fencing is <strong>tremendously undesirable</strong> in a VM host cluster.  If the cluster decides that one of the nodes is bad, it will simply kill it.  In a <strong>hetero</strong>geneous cluster.  Killing potentially tens (or even hundreds) of your VM guests in one stroke.</p>
<p>Of course, in a VM cluster, fencing would still be required if you were using a shared file <strong>system</strong>.  However, LVM2 is another matter.</p>
<p>Another downside about Linux clustering is that to bring a failed cluster back to a consistent state, the <strong>recommended solution</strong> is to reboot all of the machines in the cluster simultaneously.  (I&#8217;ve found that recommendation made by developers in RHEL&#8217;s bug database, amongst other places).  In a production VM cluster, that&#8217;s unacceptable.</p>
<p><strong>Configuration and Management</strong></p>
<p>From a <strong>configuration</strong> standpoint, there&#8217;s nothing special about running non-clustered LVM on a shared disk in a cluster.  All you have to do is run <code>vgcreate</code> on one node using a shared LUN as a physical disk.  Then run <code>vgscan</code> on the other nodes in the cluster and you&#8217;ll see your new volume group.  No fuss, no muss.</p>
<p>From a <strong>management</strong> standpoint, you have to be careful.  Very, very careful.  Writing to the LVM metadata simultaneously from different nodes (such as doing two <code>lvcreate</code>s) probably will result in metadata corruption, which could bork your entire cluster.  It would be disastrous to employ cron jobs on more than one host, for example, that wrote to LVM&#8217;s metadata.</p>
<p>The best practice in this case would be to designate one node as the &#8220;metadata writer&#8221;.  That simply means that you&#8217;d make all changes to LVM metadata from that machine.  On all other cluster nodes, rename the LVM tools (usually <code>/sbin/lvm</code> and <code>/sbin/lvmconf</code>), and put your own script in their place.  The script should output something like, &#8220;Please use the metadata writer node for changes to LVM&#8221;.</p>
<p>In most cases, command-line instances of LVM commands (e.g. <code>vgcreate</code>, <code>lvchange</code>, etc) are just symlinked to <code>lvm</code>.  If you want to be thorough, change the symlinks for read-only operations like <code>vgscan</code>, <code>vgdisplay</code>, <code>lvdisplay</code>, etc. to point to the renamed <code>lvm</code> utility.</p>
<p>Another gotcha is that there&#8217;s nothing to stop you from running two different instances of the same VM using the same logical volume.  Because there&#8217;s no distributed locking, the system will let you do it.  Of course, this is great if you designate the virtual disk as read-only, because you can share things like repositories and application images across as many VMs as you&#8217;d like.  But running two read/write instances will result in data corruption.</p>
<p>You do have recent backups, right?</p>
<p><strong>Be Warned</strong></p>
<p>I use this technique within a few CentOS / Xen clusters that I manage.  The key being that <strong>I</strong> manage them.  Bringing in an outside technician or new employee that doesn&#8217;t know how (and why) things are configured could very easily screw everything up, even with the best of intentions.  (&#8220;Gee, I wonder why he renamed <code>lvm</code> to <code>lvm.forreadonly</code>.  I&#8217;ll just use it anyway.&#8221;)</p>
<p>In fact, I&#8217;d wager that 99% of sysadmins would recommend that you don&#8217;t listen to me.  However, I&#8217;ve been running things this way for over four years now without a hiccup (knock on chassis).  Not having the overhead and headache of running a true cluster has been great.</p>
<p>Even I&#8217;d have to recommend against using this technique in a cluster larger than a handful of nodes.</p>
<p><strong>The Benefit</strong></p>
<p>Your mileage may vary, but my implementation is fairly straightforward:  In my SAN array, I export each set of spindles as a LUN consisting of 100% of their capacity.  The LUN is exposed to all the VM hosts, and I create a single volume group on the LUN-cum-physical disk.  I then create logical volumes within that VG as needed for the VM guests.  A LV is then used as a physical disk asset by a VM guest.  (I know some people stick partitions on top of their LVs, but I don&#8217;t see the benefit to that).</p>
<p>I can do live migrations, and for times where that&#8217;s not necessary or desirable (e.g. a VM with a large memory footprint that is not mission critical), I use shared configuration files.</p>
<p>I store all of the conf files for my virtual machines on a shared LV that&#8217;s mounted as read-only on all VM hosts (dom0s) except for the &#8220;metadata writer&#8221; where it&#8217;s mounted as read/write.  Therefore, when I want to migrate a guest VM from one host to another it&#8217;s just a matter of bringing the VM down, symlinking to the shared conf file on the new host, and removing the symlink from the old host.</p>
<p><strong>In Conclusion</strong></p>
<p>I wanted to share my experiences and techniques not as a HOWTO, but simply as another way of looking at sharing resources between servers.  I&#8217;ve gotten many a raised eyebrow (and worse) from other sysadmins when I&#8217;ve described my setup.  But it does work, and despite all the pitfalls and caveats involved I maintain that it&#8217;s still pretty easy to ruin or disrupt a &#8220;traditional&#8221; cluster.  This just has less overhead, and fewer places to make mistakes (though mistakes can be really, really B-A-D).</p>
]]></content:encoded>
			<wfw:commentRss>http://s.co.tt/2013/09/04/san-with-linux-cluster-and-clvm-is-it-necessary/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Finding Out the IP Address of a New Piece of Tech from eBay</title>
		<link>http://s.co.tt/2012/07/15/finding-out-the-ip-address-of-a-new-piece-of-tech-from-ebay/</link>
		<comments>http://s.co.tt/2012/07/15/finding-out-the-ip-address-of-a-new-piece-of-tech-from-ebay/#comments</comments>
		<pubDate>Sun, 15 Jul 2012 19:56:01 +0000</pubDate>
		<dc:creator><![CDATA[Scott]]></dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[computer]]></category>
		<category><![CDATA[san switch]]></category>

		<guid isPermaLink="false">http://s.co.tt/blog/?p=358</guid>
		<description><![CDATA[I&#8217;ve been through this many times over, and thought I would share:   I just bought a pair of HP Storageworks 4/8 SAN (AKA: Brocade Silkworm 200E) switches off of eBay.  They were listed as &#8220;powered up / as-is&#8221; by the seller, but the price was too good not to take a risk on them working properly. Of course, they came with no documentation, and not even a label to identify the IP address they held in their original home.  (I have had luck with other items where the IP and even login/password were labelled onto the front of the case). Most times, the following will work flawlessly: Connect your new piece of tech&#8217;s management interface (in this case, we&#8217;ll use … <a class="continue-reading-link" href="http://s.co.tt/2012/07/15/finding-out-the-ip-address-of-a-new-piece-of-tech-from-ebay/"> Continue reading</a>]]></description>
				<content:encoded><![CDATA[<p>I&#8217;ve been through this many times over, and thought I would share:   I just bought a pair of HP Storageworks 4/8 SAN (AKA: Brocade Silkworm 200E) switches off of eBay.  They were listed as &#8220;powered up / as-is&#8221; by the seller, but the price was too good not to take a risk on them working properly.</p>
<p>Of course, they came with no documentation, and not even a label to identify the IP address they held in their original home.  (I have had luck with other items where the IP and even login/password were labelled onto the front of the case).</p>
<p>Most times, the following will work flawlessly:</p>
<ul>
<li>Connect your new piece of tech&#8217;s management interface (in this case, we&#8217;ll use the example of my SAN switch) to the same ethernet switch used by your workstation.</li>
<li>Close down any superfluous network applications to cut down on the amount of traffic that Wireshark will see.</li>
<li>Open up Wireshark and set it to capture on the same interface that is exposed to the SAN switch.</li>
<li>Power up the SAN switch and let it boot fully (usually there will be some indication of when booting is complete by the lights in the front).</li>
<li>Stop capture in Wireshark, and sort the output by the &#8220;Source&#8221; column.</li>
<li>Scroll through the source column carefully.   You should see ARP requests or SNMP messages coming from an unknown interface, usually broadcasting/requesting IP information in the 10.0.0.0/8, 192.168.0.0/16, or 172.16.0.0/12 range.</li>
<li>Once you have the correct IP address, assign an additional IP address and subnet to your workstation&#8217;s NIC that will be in range with the IP address of your eBay item.</li>
<li>Open up a web browser, and go to the address in question.</li>
</ul>
<p>This is what I saw when setting up my &#8220;new&#8221; switches today:</p>
<p><a rel="attachment wp-att-359" href="http://s.co.tt/blog/blog/2012/07/15/finding-out-the-ip-address-of-a-new-piece-of-tech-from-ebay/brocade_arp_broadcast/"><img class="aligncenter size-full wp-image-359" title="brocade_arp_broadcast" src="http://s.co.tt/blog/wp-content/uploads/2012/07/brocade_arp_broadcast.jpg" alt="" width="683" height="47" /></a></p>
<p>That&#8217;s the type of thing you&#8217;ll be looking for.   Although my switch is branded by HP, it&#8217;s actually a Brocade switch, hence the source MAC address&#8217; (with translated vendor id) is &#8220;BrocadeC_04:4a:c4&#8243;.  Sometimes you will see the name of the manufacturer that you expected, or you may see the name of a generic NIC manufacturer such as Intel, Broadcom, or 3com.</p>
<p>The ARP announcement indicates that my switch&#8217;s IP address is 172.26.6.83!  I gave my workstation the additional IP address of 172.26.6.1/255.255.255.0.  I was then able to navigate to that address in my web browser.</p>
<p>All that&#8217;s left is to try some default/obvious passwords.  If that fails, it&#8217;s on to a hardware reset of the switches!</p>
<p><strong>Update: </strong>After about 10 seconds of Googling, I <a title="HP Support" href="http://h30499.www3.hp.com/t5/Storage-Area-Networks-SAN-Small/Password-recovery-string-on-SAN-Switch-4-8/td-p/805356#.UAMhM7VYtQA" target="_blank">found this on HP&#8217;s support forum</a>:</p>
<p><a rel="attachment wp-att-370" href="http://s.co.tt/blog/blog/2012/07/15/finding-out-the-ip-address-of-a-new-piece-of-tech-from-ebay/brocade_hp_support_pw/"><img class="aligncenter size-full wp-image-370" title="brocade_hp_support_pw" src="http://s.co.tt/blog/wp-content/uploads/2012/07/brocade_hp_support_pw.jpg" alt="" width="406" height="165" /></a></p>
<p>I am now in the process of configuring my switches.  It&#8217;s not always this easy, but I do love it when it is!</p>
]]></content:encoded>
			<wfw:commentRss>http://s.co.tt/2012/07/15/finding-out-the-ip-address-of-a-new-piece-of-tech-from-ebay/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
