<?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>LinuxFedora 12 | Linux</title>
	<atom:link href="http://linux.sjolshagen.net/tag/fedora-12/feed/" rel="self" type="application/rss+xml" />
	<link>http://linux.sjolshagen.net</link>
	<description>Linux for Businesses</description>
	<lastBuildDate>Wed, 01 Feb 2012 17:33:51 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Building DRBD-8.3.7 from sources for Fedora 12</title>
		<link>http://linux.sjolshagen.net/2010/05/19/building-drbd-8-3-7-from-sources-for-fedora-12/</link>
		<comments>http://linux.sjolshagen.net/2010/05/19/building-drbd-8-3-7-from-sources-for-fedora-12/#comments</comments>
		<pubDate>Wed, 19 May 2010 15:35:23 +0000</pubDate>
		<dc:creator>Thomas S</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[--with-km]]></category>
		<category><![CDATA[drbd]]></category>
		<category><![CDATA[drbd 8.3.7]]></category>
		<category><![CDATA[drbd sources]]></category>
		<category><![CDATA[Fedora 12]]></category>
		<category><![CDATA[kdir]]></category>
		<category><![CDATA[kernel module]]></category>
		<category><![CDATA[km-rpm]]></category>
		<category><![CDATA[kmod]]></category>
		<category><![CDATA[make]]></category>
		<category><![CDATA[make all]]></category>
		<category><![CDATA[sources]]></category>

		<guid isPermaLink="false">http://linux.sjolshagen.net/?p=224</guid>
		<description><![CDATA[DRBD v8.3.7 kernel module (or km-rpm) fails to build against a non-running kernel version with  "RPM build errors: Bad exit status from /var/tmp/rpm-tmp.OhAlII (%prep)"]]></description>
			<content:encoded><![CDATA[<p>As part of my very cheap, yet remarkably complex virtualized cluster environment, I&#8217;ve been using DRBD v8.7.3 with a fair bit of success (as long as I&#8217;ve not tried to run guests that share file systems/volumes that are hosted on a DRBD volume, that is).</p>
<p>My initial source for the DRBD RPMs was the aTRPMs repository. However, I got frustrated with the tardiness with which the drbd kernel module packages got updated from them (up to several weeks after Fedora released a new kernel), so I decided to start building my own kernel modules when/if I needed them (i.e. whenever the Fedora developers decides to ship another Linux kernel for the distro version I&#8217;m running).</p>
<p><a href="http://www.drbd.org/users-guide-emb/s-build-from-source.html">The instructions for building the sources are pretty straight-forward</a>, and would/will work just fine if you&#8217;re only looking to build the drbd Kernel Module (drbd-km) for the kernel version that&#8217;s running at the time you run the build commands. However, since I &#8211; and, I suspect, most others  &#8211; use DRBD to mount file systems that have applications or services that rely on them at/during the boot process, waiting until after the new kernel is booted to build &amp; install the DRBD kernel module just ain&#8217;t right. So decided to follow the instructions pertaining to building the DRBD kernel module against a kernel source tree (lower on the page I linked to above).</p>
<p>Unfortunately, that doesn&#8217;t work all that well for me&#8230;.</p>
<blockquote><p><span style="font-family: courier new,courier;"><span style="color: #000080;"># make km-rpm KDIR=/lib/modules/2.6.32.12-115.fc12.x86_64/build fails with:</span></span></p></blockquote>
<p><span style="font-family: courier new,courier;"><span style="color: #000080;"><span style="color: #000000;"><span style="font-family: andale mono,times;">[SNIP]</span></span><br />
</span></span></p>
<blockquote><p><span style="color: #000080;"><span style="font-family: courier new,courier;">++ KDIR=/lib/modules/2.6.32.12-115.fc12.x86_64/build<br />
++ scripts/get_uts_release.sh<br />
+ test 2.6.32.12-115.fc12.x86_64 = 2.6.32.11-99.fc12.x86_64<br />
error: Bad exit status from /var/tmp/rpm-tmp.OhAlII (%prep)</span></span></p>
<p>RPM build errors:<br />
Bad exit status from /var/tmp/rpm-tmp.OhAlII (%prep)<br />
make: *** [km-rpm] Error 1</p></blockquote>
<p>But, at least, the fix is pretty simple. Export the KVER environment variable set to the Kernel version you expect the rpm build script to check against:</p>
<blockquote><p><span style="color: #000080;"><span style="font-family: courier new,courier;"># export KVER=2.6.32.12-115.fc12.x86_64</span></span></p></blockquote>
<p>And &#8220;Bob&#8217;s yer uncle&#8221; as they say.</p>
<blockquote><p><span style="font-family: courier new,courier;"><span style="color: #000080;"># ls -l rpmbuild/RPMS/x86_64/* </span></span></p>
<p><span style="font-family: courier new,courier;"><span style="color: #000080;">rpmbuild/RPMS/x86_64/drbd-km-2.6.32.12_115.fc12.x86_64-8.3.7-12.fc12.x86_64.rpm</span></span></p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://linux.sjolshagen.net/2010/05/19/building-drbd-8-3-7-from-sources-for-fedora-12/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>&#8220;GFS2 rindex not found&#8221; when running gfs2-grow from gfs2-utils-3.0.6 in Fedora 12</title>
		<link>http://linux.sjolshagen.net/2010/01/21/gfs2-rindex-not-found-when-running-gfs2-grow-from-gfs2-utils-3-0-6-in-fedora-12/</link>
		<comments>http://linux.sjolshagen.net/2010/01/21/gfs2-rindex-not-found-when-running-gfs2-grow-from-gfs2-utils-3-0-6-in-fedora-12/#comments</comments>
		<pubDate>Thu, 21 Jan 2010 18:39:42 +0000</pubDate>
		<dc:creator>Thomas S</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Fedora 12]]></category>
		<category><![CDATA[GFS2]]></category>
		<category><![CDATA[gfs2_grow]]></category>
		<category><![CDATA[rindex not found]]></category>

		<guid isPermaLink="false">http://linux.sjolshagen.net/?p=121</guid>
		<description><![CDATA[GFS2 file system can't grow due to rindex not found" error with version 3.0.6 of gfs2-utils. Updated .rpm for Fedora 12 is linked.]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve come across a minor annoyance that I figured it was worth documenting.</p>
<p>I was looking to grow a shared (clustered) GFS2 file system I&#8217;m using for my web server and did the &#8220;usual&#8221; magic of extending the underlying logical volume (clvm managed), extend the disk label with fdisk and fsck -f the device so as to ensure there&#8217;s nothing latent in the metadata or data to cause my &#8220;grow&#8221; command to fail.</p>
<p>Then I issued</p>
<blockquote>
<pre># gfs2_growfs /webroot</pre>
</blockquote>
<p>Which failed with the following error:</p>
<blockquote>
<pre>[snip] GFS2 rindex not found.  Please run gfs2_fsck</pre>
</blockquote>
<p>Well, that&#8217;s interesting&#8230;.</p>
<p>Turns out an update to  GFS2 didn&#8217;t get reflected in gfs2_grow, so it&#8217;s looking in the wrong place for the rindex. The problem has been addressed upstreamand you can (I hope) expect to see the next version of the gfs2-utils (3.0.7) contain the fix.</p>
<p><strong><em><span style="color: #008000;">UPDATE:</span></em></strong> <em>The <a href="http://linux.sjolshagen.net/documents/index.php?dir=RPM%2F">linked .rpm </a>for Fedora 12 resolves the problem. The bug is a minor fix, thankfully, so I&#8217;d be surprised if a fixed version of the gfs2-utils package will not be included when they make the Cluster v3.0.7 packages available in the fedora-updates repository. </em></p>
<p>Thanks to the stellar help from the folks in the #linux-cluster channel on the Freenode IRC network! (fabbione, bob_home and abhi)</p>
]]></content:encoded>
			<wfw:commentRss>http://linux.sjolshagen.net/2010/01/21/gfs2-rindex-not-found-when-running-gfs2-grow-from-gfs2-utils-3-0-6-in-fedora-12/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

