<?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>Blog - PonticStar.com &#187; Cobalt RaQ4</title>
	<atom:link href="http://www.ponticstar.com/blog/tag/cobalt-raq4/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.ponticstar.com/blog</link>
	<description>Blog about various aspects of programming and web design</description>
	<lastBuildDate>Sun, 14 Aug 2011 23:52:31 +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>How to compile Strongbolt kernel on Cobalt RaQ4</title>
		<link>http://www.ponticstar.com/blog/2009/04/27/how-to-compile-strongbolt-kernel-on-cobalt-raq4/</link>
		<comments>http://www.ponticstar.com/blog/2009/04/27/how-to-compile-strongbolt-kernel-on-cobalt-raq4/#comments</comments>
		<pubDate>Tue, 28 Apr 2009 03:08:30 +0000</pubDate>
		<dc:creator>Michael Ryvkin</dc:creator>
				<category><![CDATA[System Administration]]></category>
		<category><![CDATA[Cobalt RaQ4]]></category>

		<guid isPermaLink="false">http://www.ponticstar.com/blog/?p=52</guid>
		<description><![CDATA[Cobalt RaQ4 was laying around collecting dust so I decided to give it a second chance. Guys from OS Office (http://www.osoffice.co.uk) put together Strongbolt &#8211; excellent Linux distribution based on CentOS with Cobalt RaQ support. I wanted to use Cobalt RaQ4 to test highly available and load balanced cluster configuration. However current Strongbolt kernel 2.6.16i586 [...]]]></description>
			<content:encoded><![CDATA[<p>Cobalt RaQ4 was laying around collecting dust so I decided to give it a second chance. Guys from OS Office (<a href="http://www.osoffice.co.uk">http://www.osoffice.co.uk</a>) put together Strongbolt &#8211; excellent Linux distribution based on CentOS with Cobalt RaQ support. </p>
<p>I wanted to use Cobalt RaQ4 to test highly available and load balanced cluster configuration. However current Strongbolt kernel 2.6.16i586 doesn’t have IP virtual server support and had to be recompiled. <span id="more-52"></span>I’ve used the following page as a reference while building a kernel &#8211; <a href="http://www.digitalhermit.com/linux/Kernel-Build-HOWTO.html">http://www.digitalhermit.com/linux/Kernel-Build-HOWTO.html</a>.</p>
<p>Below is a list of steps required to compile a kernel with virtual server support. If you don&#8217;t need this functionality please ignore steps 6 and 13.</p>
<ol>
<li>Logged in as root, downloaded and extracted kernel source code.
<pre>wget http://www.osoffice.co.uk/linux/raq4-sb-kernel-source/2.6/linux-2.6.16-raq4-source.tar.gz
tar -xzf linux-2.6.16-raq4-source.tar.gz -C /usr/src
cd /usr/src/linux-2.6.16-raq4-standard/</pre>
</li>
<li>Installed compiler and required libraries.
<pre>yum install gcc ncurses-devel</pre>
</li>
<li>To prevent overwriting any existing kernel modules on the system modified kernel version to something unique in <code>/usr/src/linux-2.6.16-raq4-standard/Makefile</code>.
<pre>VERSION = 2
PATCHLEVEL = 6
SUBLEVEL = 16
EXTRAVERSION = -ipvs</pre>
</li>
<li>Current kernel configuration settings are stored in <code>/proc/config.gz</code>. Since I only need to make minor changes to the configuration it would be wise to re-use the configuration file.
<pre>zcat /proc/config.gz > /usr/src/linux-2.6.16-raq4-standard/.config</pre>
</li>
<li>Run the configuration utility. Configuration file <code>.config</code> created in previous step will be loaded automatically.
<pre>make menuconfig</pre>
</li>
<li>In the menu, selected <code>Networking -> Networking options -> IP: Virtual Server Configuration</code> and then made the following choices:
<pre>   <M> IP virtual server support (EXPERIMENTAL)
   [ ]   IP virtual server debugging (NEW)
   (12)  IPVS connection table size (the Nth power of 2) (NEW)
   ---   IPVS transport protocol load balancing support
   [*]   TCP load balancing support
   [*]   UDP load balancing support
   [ ]   ESP load balancing support (NEW)
   [ ]   AH load balancing support (NEW)
   ---   IPVS scheduler
   <M>   round-robin scheduling
   <M>   weighted round-robin scheduling
   <M>   least-connection scheduling
   <M>   weighted least-connection scheduling
   <M>   locality-based least-connection scheduling
   <M>   locality-based least-connection with replication scheduling
   <M>   destination hashing scheduling
   <M>   source hashing scheduling
   <M>   shortest expected delay scheduling
   <M>   never queue scheduling
   ---   IPVS application helper
   <M>   FTP protocol helper (NEW)</pre>
</li>
<li>Removed compiled kernel that came with the source files.
<pre>rm vmlinux.bz2</pre>
</li>
<li>Compiled the kernel.
<pre>make vmlinux</pre>
</li>
<li>Compiled and installed all the loadable modules.
<pre>make modules
make modules_install</pre>
</li>
<li>Made a backup of the current kernel.
<pre>cp /boot/vmlinux.bz2 /boot/vmlinux-`uname -r`.bz2
chmod 0644 /boot/vmlinux-`uname -r`.bz2</pre>
</li>
<li>Compressed and installed the kernel. Since one of the Strongbolt forum users experienced a problem booting kernel compressed with default settings (see <a href="http://www.osoffice.co.uk/forum/viewtopic.php?f=7&#038;t=391">http://www.osoffice.co.uk/forum/viewtopic.php?f=7&#038;t=391</a>), compression level 4 was used.
<pre>bzip2 -4 vmlinux
cp vmlinux.bz2 /boot</pre>
</li>
<li>Rebooted the server.</li>
<li>Loaded virtual server kernel modules.
<pre>modprobe ip_vs ip_vs_rr</pre>
</li>
]]></content:encoded>
			<wfw:commentRss>http://www.ponticstar.com/blog/2009/04/27/how-to-compile-strongbolt-kernel-on-cobalt-raq4/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>

