<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>https://alteeve.com/w/index.php?action=history&amp;feed=atom&amp;title=Obliterate_%28DRBD_fence_handler%29</id>
	<title>Obliterate (DRBD fence handler) - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://alteeve.com/w/index.php?action=history&amp;feed=atom&amp;title=Obliterate_%28DRBD_fence_handler%29"/>
	<link rel="alternate" type="text/html" href="https://alteeve.com/w/index.php?title=Obliterate_(DRBD_fence_handler)&amp;action=history"/>
	<updated>2026-04-24T13:46:39Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.42.3</generator>
	<entry>
		<id>https://alteeve.com/w/index.php?title=Obliterate_(DRBD_fence_handler)&amp;diff=4756&amp;oldid=prev</id>
		<title>Digimer at 03:21, 5 May 2013</title>
		<link rel="alternate" type="text/html" href="https://alteeve.com/w/index.php?title=Obliterate_(DRBD_fence_handler)&amp;diff=4756&amp;oldid=prev"/>
		<updated>2013-05-05T03:21:30Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en-GB&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 03:21, 5 May 2013&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l3&quot;&gt;Line 3:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 3:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;This is the [[Red Hat]] &amp;lt;span class=&amp;quot;code&amp;quot;&amp;gt;obliterate&amp;lt;/span&amp;gt; script used to let [[DRBD]] trigger a [[cman]] [[fenced]] call when a split brain is detected. This was originally found [http://gfs.wikidev.net/DRBD_Cookbook here].&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;This is the [[Red Hat]] &amp;lt;span class=&amp;quot;code&amp;quot;&amp;gt;obliterate&amp;lt;/span&amp;gt; script used to let [[DRBD]] trigger a [[cman]] [[fenced]] call when a split brain is detected. This was originally found [http://gfs.wikidev.net/DRBD_Cookbook here].&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Download the &amp;lt;span class=&quot;code&quot;&amp;gt;/sbin/[https://alteeve.&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;com&lt;/del&gt;/files/an-cluster/sbin/obliterate obliterate]&amp;lt;/span&amp;gt; script, ~2.1[[KiB]].&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Download the &amp;lt;span class=&quot;code&quot;&amp;gt;/sbin/[https://alteeve.&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;ca&lt;/ins&gt;/files/an-cluster/sbin/obliterate obliterate]&amp;lt;/span&amp;gt; script, ~2.1[[KiB]].&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Digimer</name></author>
	</entry>
	<entry>
		<id>https://alteeve.com/w/index.php?title=Obliterate_(DRBD_fence_handler)&amp;diff=2955&amp;oldid=prev</id>
		<title>Digimer at 02:53, 29 March 2011</title>
		<link rel="alternate" type="text/html" href="https://alteeve.com/w/index.php?title=Obliterate_(DRBD_fence_handler)&amp;diff=2955&amp;oldid=prev"/>
		<updated>2011-03-29T02:53:08Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en-GB&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 02:53, 29 March 2011&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l3&quot;&gt;Line 3:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 3:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;This is the [[Red Hat]] &amp;lt;span class=&amp;quot;code&amp;quot;&amp;gt;obliterate&amp;lt;/span&amp;gt; script used to let [[DRBD]] trigger a [[cman]] [[fenced]] call when a split brain is detected. This was originally found [http://gfs.wikidev.net/DRBD_Cookbook here].&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;This is the [[Red Hat]] &amp;lt;span class=&amp;quot;code&amp;quot;&amp;gt;obliterate&amp;lt;/span&amp;gt; script used to let [[DRBD]] trigger a [[cman]] [[fenced]] call when a split brain is detected. This was originally found [http://gfs.wikidev.net/DRBD_Cookbook here].&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;span class=&quot;code&quot;&amp;gt;/sbin/[https://alteeve.com/files/an-cluster/sbin/obliterate obliterate]&amp;lt;/span&amp;gt; script, ~2.1[[KiB]].&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Download the &lt;/ins&gt;&amp;lt;span class=&quot;code&quot;&amp;gt;/sbin/[https://alteeve.com/files/an-cluster/sbin/obliterate obliterate]&amp;lt;/span&amp;gt; script, ~2.1[[KiB]].&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Digimer</name></author>
	</entry>
	<entry>
		<id>https://alteeve.com/w/index.php?title=Obliterate_(DRBD_fence_handler)&amp;diff=2953&amp;oldid=prev</id>
		<title>Digimer at 02:39, 29 March 2011</title>
		<link rel="alternate" type="text/html" href="https://alteeve.com/w/index.php?title=Obliterate_(DRBD_fence_handler)&amp;diff=2953&amp;oldid=prev"/>
		<updated>2011-03-29T02:39:47Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en-GB&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 02:39, 29 March 2011&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l2&quot;&gt;Line 2:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 2:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;This is the [[Red Hat]] &amp;lt;span class=&amp;quot;code&amp;quot;&amp;gt;obliterate&amp;lt;/span&amp;gt; script used to let [[DRBD]] trigger a [[cman]] [[fenced]] call when a split brain is detected. This was originally found [http://gfs.wikidev.net/DRBD_Cookbook here].&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;This is the [[Red Hat]] &amp;lt;span class=&amp;quot;code&amp;quot;&amp;gt;obliterate&amp;lt;/span&amp;gt; script used to let [[DRBD]] trigger a [[cman]] [[fenced]] call when a split brain is detected. This was originally found [http://gfs.wikidev.net/DRBD_Cookbook here].&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;span class=&quot;code&quot;&amp;gt;/sbin/[https://alteeve.com/files/an-cluster/sbin/obliterate obliterate]&amp;lt;/span&amp;gt; script, ~2.1[[KiB]].&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Digimer</name></author>
	</entry>
	<entry>
		<id>https://alteeve.com/w/index.php?title=Obliterate_(DRBD_fence_handler)&amp;diff=2838&amp;oldid=prev</id>
		<title>Digimer: Created page with &#039;{{header}}  This is the Red Hat &lt;span class=&quot;code&quot;&gt;obliterate&lt;/span&gt; script used to let DRBD trigger a cman fenced call when a split brain is detected. This was o…&#039;</title>
		<link rel="alternate" type="text/html" href="https://alteeve.com/w/index.php?title=Obliterate_(DRBD_fence_handler)&amp;diff=2838&amp;oldid=prev"/>
		<updated>2011-03-05T04:49:52Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;#039;{{header}}  This is the &lt;a href=&quot;/w/Red_Hat&quot; title=&quot;Red Hat&quot;&gt;Red Hat&lt;/a&gt; &amp;lt;span class=&amp;quot;code&amp;quot;&amp;gt;obliterate&amp;lt;/span&amp;gt; script used to let &lt;a href=&quot;/w/DRBD&quot; title=&quot;DRBD&quot;&gt;DRBD&lt;/a&gt; trigger a &lt;a href=&quot;/w/Cman&quot; title=&quot;Cman&quot;&gt;cman&lt;/a&gt; &lt;a href=&quot;/w/Fenced&quot; title=&quot;Fenced&quot;&gt;fenced&lt;/a&gt; call when a split brain is detected. This was o…&amp;#039;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Páàjì titun&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{header}}&lt;br /&gt;
&lt;br /&gt;
This is the [[Red Hat]] &amp;lt;span class=&amp;quot;code&amp;quot;&amp;gt;obliterate&amp;lt;/span&amp;gt; script used to let [[DRBD]] trigger a [[cman]] [[fenced]] call when a split brain is detected. This was originally found [http://gfs.wikidev.net/DRBD_Cookbook here].&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
#!/bin/bash&lt;br /&gt;
# ###########################################################&lt;br /&gt;
# DRBD 0.8.2.1 -&amp;gt; linux-cluster super-simple fencing wrapper&lt;br /&gt;
#&lt;br /&gt;
# Copyright Red Hat, 2007&lt;br /&gt;
#&lt;br /&gt;
# Licensed under the GNU General Public License version 2&lt;br /&gt;
# which is incorporated herein by reference:&lt;br /&gt;
#&lt;br /&gt;
#   http://www.gnu.org/licenses/gpl-2.0.html&lt;br /&gt;
# &lt;br /&gt;
# At your option, you may choose to license this software &lt;br /&gt;
# under any later version of the GNU General Public License. &lt;br /&gt;
#&lt;br /&gt;
# This software is distributed in the hopes that it will be&lt;br /&gt;
# useful, but without warranty of any kind.&lt;br /&gt;
#&lt;br /&gt;
# Kills the other node in a 2-node cluster.  Only works with&lt;br /&gt;
# 2-node clusters (FIXME?)&lt;br /&gt;
#&lt;br /&gt;
# ###########################################################&lt;br /&gt;
#&lt;br /&gt;
# Author: Lon Hohberger &amp;lt;lhh[a]redhat.com&amp;gt; &lt;br /&gt;
#&lt;br /&gt;
# Special thanks to fabioc on freenode&lt;br /&gt;
#&lt;br /&gt;
&lt;br /&gt;
PATH=&amp;quot;/bin:/sbin:/usr/bin:/usr/sbin&amp;quot;&lt;br /&gt;
&lt;br /&gt;
NODECOUNT=0&lt;br /&gt;
LOCAL_ID=$(cman_tool status 2&amp;gt;/dev/null | grep &amp;#039;^Node ID:&amp;#039; | awk &amp;#039;{print $3}&amp;#039;)&lt;br /&gt;
REMOTE_ID=&amp;quot;&amp;quot;&lt;br /&gt;
REMOTE=&amp;quot;&amp;quot;&lt;br /&gt;
&lt;br /&gt;
if [ -z &amp;quot;$LOCAL_ID&amp;quot; ]; then &lt;br /&gt;
	echo &amp;quot;Could not determine local node ID!&amp;quot;&lt;br /&gt;
	exit 1&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
# Shoot the other guy.&lt;br /&gt;
while read nid nodename; do&lt;br /&gt;
	if [ &amp;quot;$nid&amp;quot; = &amp;quot;0&amp;quot; ]; then &lt;br /&gt;
		continue&lt;br /&gt;
	fi&lt;br /&gt;
&lt;br /&gt;
	((NODECOUNT++))&lt;br /&gt;
&lt;br /&gt;
	if [ &amp;quot;$nid&amp;quot; != &amp;quot;$LOCAL_ID&amp;quot; ]; then&lt;br /&gt;
		REMOTE_ID=$nid&lt;br /&gt;
		REMOTE=$nodename&lt;br /&gt;
	fi&lt;br /&gt;
done &amp;lt; &amp;lt;(cman_tool nodes 2&amp;gt;/dev/null | grep -v &amp;#039;^Node&amp;#039; | awk &amp;#039;{print $1,$6}&amp;#039;)&lt;br /&gt;
&lt;br /&gt;
if [ $NODECOUNT -ne 2 ]; then&lt;br /&gt;
	echo &amp;quot;Only works with 2 node clusters&amp;quot;&lt;br /&gt;
	exit 1&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
if [ -z &amp;quot;$REMOTE_ID&amp;quot; ] || [ -z &amp;quot;$REMOTE&amp;quot; ]; then&lt;br /&gt;
	echo &amp;quot;Could not determine remote node&amp;quot;&lt;br /&gt;
	exit 1&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
echo &amp;quot;Local node ID: $LOCAL_ID&amp;quot;&lt;br /&gt;
echo &amp;quot;Remote node ID: $REMOTE_ID&amp;quot;&lt;br /&gt;
echo &amp;quot;Remote node: $REMOTE &amp;quot;&lt;br /&gt;
&lt;br /&gt;
#&lt;br /&gt;
# This could be cleaner by calling cman_tool kill -n &amp;lt;node&amp;gt;, but then we have&lt;br /&gt;
# to poll/wait for fence status, and I don&amp;#039;t feel like writing that right&lt;br /&gt;
# now.  Note that GFS *will* wait for this to occur, so if you&amp;#039;re using GFS&lt;br /&gt;
# on DRBD, you still don&amp;#039;t get access. ;)&lt;br /&gt;
#&lt;br /&gt;
fence_node $REMOTE&lt;br /&gt;
&lt;br /&gt;
if [ $? -eq 0 ]; then&lt;br /&gt;
	#&lt;br /&gt;
	# Reference:&lt;br /&gt;
	# http://osdir.com/ml/linux.kernel.drbd.devel/2006-11/msg00005.html&lt;br /&gt;
	#&lt;br /&gt;
	# 7 = node got blown away.  &lt;br /&gt;
	#&lt;br /&gt;
	exit 7&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
#&lt;br /&gt;
# Fencing failed?!&lt;br /&gt;
#&lt;br /&gt;
exit 1&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{footer}}&lt;/div&gt;</summary>
		<author><name>Digimer</name></author>
	</entry>
</feed>