<?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>Running Systems&#187; luns</title>
	<atom:link href="http://run.tournament.org.il/tag/luns/feed/" rel="self" type="application/rss+xml" />
	<link>http://run.tournament.org.il</link>
	<description>(and me chasing them)</description>
	<lastBuildDate>Wed, 02 Jun 2010 13:50:14 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Citrix XenServer 5.0 cannot cooperate with NetApp SnapMirror</title>
		<link>http://run.tournament.org.il/citrix-xenserver-5-0-cannot-cooperate-with-netapp-snapmirror/</link>
		<comments>http://run.tournament.org.il/citrix-xenserver-5-0-cannot-cooperate-with-netapp-snapmirror/#comments</comments>
		<pubDate>Mon, 07 Sep 2009 23:55:48 +0000</pubDate>
		<dc:creator>ez-aton</dc:creator>
				<category><![CDATA[Virtualization]]></category>
		<category><![CDATA[citrix]]></category>
		<category><![CDATA[luns]]></category>
		<category><![CDATA[netapp]]></category>
		<category><![CDATA[snapshot]]></category>
		<category><![CDATA[snapshots]]></category>
		<category><![CDATA[vdi]]></category>
		<category><![CDATA[XenServer]]></category>

		<guid isPermaLink="false">http://run.tournament.org.il/?p=487</guid>
		<description><![CDATA[It has been a long while, I know. I was busy with life, work and everything around it. Not much worth mentioning.
This, however, is something else.
I have discovered an issue with Citrix XenServer 5.0 (probably the case with 5.5, but I have other issues with that release) using NetApp through NetApp API SR &#8211; Any [...]


Related posts:<ol><li><a href='http://run.tournament.org.il/xenserver-create-snapshots-for-all-machines/' rel='bookmark' title='Permanent Link: XenServer create snapshots for all machines'>XenServer create snapshots for all machines</a> <small>XenServer is a wonderful tool. One of the better parts...</small></li>
</ol>

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>It has been a long while, I know. I was busy with life, work and everything around it. Not much worth mentioning.</p>
<p>This, however, is something else.</p>
<p>I have discovered an issue with Citrix XenServer 5.0 (probably the case with 5.5, but I have other issues with that release) using NetApp through NetApp API SR &#8211; Any non XenServer-generated snapshot will be deleted as soon as any snapshot-related action would be performed on that volume. Meaning that if I had manually created a snapshot called &#8220;1111&#8243; (short and easy to recognize, especially with all these UUID-based volumes, LUNs and snapshot names XenServer uses&#8230;), the next time anyone would create a snapshot of a machine which has a disk (VDI) on this specific volume, the snapshot, my snapshot, &#8220;1111&#8243; will be removed under that specific volume. The message seen in /var/log/SMlog would look like this:</p>
<blockquote><p>Removing unused snap (1111)</p></blockquote>
<p>While under normal operation, this does not matter much, as non-XenServer snapshots have little value, when using NetApp SnapMirror technology, the mechanism works a bit differently.</p>
<p>It appears that the SnapMirror system takes snapshots with predefined names (non-XenServer UUID type, luckily for us all). These snapshots include the entire changes performed since the last SnapMirror snapshots, and are used for replication. Unfortunately, XenServer deletes them. No SnapMirror snapshots, well, this is quite obvious, is it not? No SnapMirror&#8230;</p>
<p>We did not detect this problem immediately, and I should take the blame for that. I had to define a set of simple trial and error tests, as described above, instead of battling with a system I did not quite follow at that time &#8211; NetApp SnapMirror. Now I do, however, and I have this wonderful insight which can make your personal life, if you had issues with SnapMirror and XenServer, and did not know how to make it work, better. This solution cannot be an official one, due to its nature, which you will understand shortly. This is a personal patch for your pleasure, based on the hard fact that SnapMirror uses a predefined name for its snapshots. This name, in my case, is the name of the DR storage device. You <strong>must</strong> figure out what name is being used as part of the snapshot naming convention on your own site. Search for my &#8217;storagedr&#8217; phrase, and replace it with yours.</p>
<p>This is the diff file for /opt/xensource/sm/NETAPPSR.py . Of course &#8211; back up your original file. Also &#8211; this is not an official patch. It was tested to function correctly on XenServer 5.0, and it will not work on XenServer 5.5 (since NETAPPSR.py is different). Last warning &#8211; it might break on the next update or upgrade you have for your XenServer environment, and if that happens, you better monitor your SnapMirror status closely then.</p>
<pre filename="NETAPPSR.py.diff" colla="+">
400,403c400,404
<                     util.SMlog("Removing unused snap (%s)" % val)
<                     out = netapplib.fvol_snapdelete_wrapper(self.sv, val, volname)
<                     if not na_test_result(out):
<                         pass
---
> 		    if 'storagedr' not in val:
>                     	util.SMlog("Removing unused snap (%s)" % val)
>                     	out = netapplib.fvol_snapdelete_wrapper(self.sv, val, volname)
>                     	if not na_test_result(out):
>                         	pass
</pre>
<p>Hope it helps!</p>


<p>Related posts:<ol><li><a href='http://run.tournament.org.il/xenserver-create-snapshots-for-all-machines/' rel='bookmark' title='Permanent Link: XenServer create snapshots for all machines'>XenServer create snapshots for all machines</a> <small>XenServer is a wonderful tool. One of the better parts...</small></li>
</ol></p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://run.tournament.org.il/citrix-xenserver-5-0-cannot-cooperate-with-netapp-snapmirror/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
		<item>
		<title>Oracle RAC with EMC iSCSI Storage Panics</title>
		<link>http://run.tournament.org.il/oracle-rac-with-emc-iscsi-storage-panics/</link>
		<comments>http://run.tournament.org.il/oracle-rac-with-emc-iscsi-storage-panics/#comments</comments>
		<pubDate>Mon, 13 Oct 2008 23:28:48 +0000</pubDate>
		<dc:creator>ez-aton</dc:creator>
				<category><![CDATA[Clusters]]></category>
		<category><![CDATA[Disk Storage]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Scripting/Programing]]></category>
		<category><![CDATA[crs]]></category>
		<category><![CDATA[emc powerpath]]></category>
		<category><![CDATA[iSCSI]]></category>
		<category><![CDATA[iscsi storage]]></category>
		<category><![CDATA[luns]]></category>
		<category><![CDATA[Oracle]]></category>
		<category><![CDATA[PowerPath]]></category>
		<category><![CDATA[rac]]></category>
		<category><![CDATA[Red Hat]]></category>
		<category><![CDATA[redhat]]></category>
		<category><![CDATA[redhat4]]></category>
		<category><![CDATA[rhel4]]></category>
		<category><![CDATA[san]]></category>

		<guid isPermaLink="false">http://www.tournament.org.il/run/?p=475</guid>
		<description><![CDATA[I have had a system panicking when running the mentioned below configuration:

RedHat RHEL 4 Update 6 (4.6) 64bit (x86_64)
Dell PowerEdge servers
Oracle RAC 11g with Clusterware 11g
EMC iSCSI storage
EMC PowerPate
Vote and Registry LUNs are accessible as raw devices
Data files are accessible through ASM with libASM

During reboots or shutdowns, the system used to panic almost before the [...]


Related posts:<ol><li><a href='http://run.tournament.org.il/a-note-about-startupshutdown-scripts-dbora/' rel='bookmark' title='Permanent Link: A note about Startup/Shutdown scripts &#8211; dbora'>A note about Startup/Shutdown scripts &#8211; dbora</a> <small>Per the last post in this thread, I have created...</small></li>
<li><a href='http://run.tournament.org.il/iscsi-targetclient-for-linux-in-5-whole-minutes/' rel='bookmark' title='Permanent Link: iSCSI target/client for Linux in 5 whole minutes'>iSCSI target/client for Linux in 5 whole minutes</a> <small>I was playing a bit with iSCSI initiator (client) and...</small></li>
</ol>

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>I have had a system panicking when running the mentioned below configuration:</p>
<ul>
<li>RedHat RHEL 4 Update 6 (4.6) 64bit (x86_64)</li>
<li>Dell PowerEdge servers</li>
<li>Oracle RAC 11g with Clusterware 11g</li>
<li>EMC iSCSI storage</li>
<li>EMC PowerPate</li>
<li>Vote and Registry LUNs are accessible as raw devices</li>
<li>Data files are accessible through ASM with libASM</li>
</ul>
<p>During reboots or shutdowns, the system used to panic almost before the actual power cycle. Unfortunately, I do not have a screen capture of the panic&#8230;</p>
<p>Tracing the problem, it seems that iSCSI, PowerIscsi (EMC PowerPath for iSCSI) and networking services are being brought down before &#8220;<em>killall</em>&#8221; service stops the CRS.</p>
<p>The service file <em>init.crs</em> was never to be executed with a &#8220;<em>stop</em>&#8221; flag by the start-stop of services, as it <a href="http://www.tournament.org.il/run/?p=115" target="_blank">never left a lock file</a> (for example, in /var/lock/subsys), and thus, its existence in<em> /etc/rc.d/rc6.d</em> and <em>/etc/rc.d/rc0.d</em> is merely a fake.</p>
<p>I have solved it by changing<em> /etc/init.d/init.crs</em> script a bit:</p>
<ul>
<li>On &#8220;Start&#8221; action, touch a file called<em> /var/lock/subsys/init.crs</em></li>
<li>On &#8220;Stop&#8221; action, remove a file called<em> /var/lock/subsys/init.crs</em></li>
</ul>
<p>Also, although I&#8217;m not sure about its necessity, I have changed <em>init.crs</em> script SYSV execution order in<em> /etc/rc.d/rc0.d</em> and <em>/etc/rc.d/rc6.d</em> from wherever it was (K96 in one case and K76 on another) to K01, so it would be executed with the &#8220;<em>stop</em>&#8221; parameter early during shutdown or reboot cycle.</p>
<p>It solved the problem, although future upgrades to Oracle ClusterWare will require being aware of this change.</p>


<p>Related posts:<ol><li><a href='http://run.tournament.org.il/a-note-about-startupshutdown-scripts-dbora/' rel='bookmark' title='Permanent Link: A note about Startup/Shutdown scripts &#8211; dbora'>A note about Startup/Shutdown scripts &#8211; dbora</a> <small>Per the last post in this thread, I have created...</small></li>
<li><a href='http://run.tournament.org.il/iscsi-targetclient-for-linux-in-5-whole-minutes/' rel='bookmark' title='Permanent Link: iSCSI target/client for Linux in 5 whole minutes'>iSCSI target/client for Linux in 5 whole minutes</a> <small>I was playing a bit with iSCSI initiator (client) and...</small></li>
</ol></p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://run.tournament.org.il/oracle-rac-with-emc-iscsi-storage-panics/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
