<?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"
	>

<channel>
	<title>DazeWorld</title>
	<atom:link href="http://hans.rakers.org/feed/" rel="self" type="application/rss+xml" />
	<link>http://hans.rakers.org</link>
	<description>Personal blog of Hans Rakers</description>
	<pubDate>Fri, 19 Oct 2007 10:58:31 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5.1</generator>
	<language>en</language>
			<item>
		<title>New PHP4 RPMs for CentOS</title>
		<link>http://hans.rakers.org/2007/10/new-php4-rpms-for-centos/</link>
		<comments>http://hans.rakers.org/2007/10/new-php4-rpms-for-centos/#comments</comments>
		<pubDate>Fri, 19 Oct 2007 10:56:47 +0000</pubDate>
		<dc:creator>Hans</dc:creator>
		
		<category><![CDATA[SysAdmin]]></category>

		<category><![CDATA[CentOS]]></category>

		<category><![CDATA[PHP]]></category>

		<category><![CDATA[php-4.4.7]]></category>

		<category><![CDATA[PHP4]]></category>

		<category><![CDATA[RPMS]]></category>

		<category><![CDATA[SRPM]]></category>

		<guid isPermaLink="false">http://hans.rakers.org/2007/10/new-php4-rpms-for-centos/</guid>
		<description><![CDATA[Since there still seems to be people interested in PHP4 for CentOS, I thought i&#8217;d share my recently compiled RPM&#8217;s for PHP-4.4.7. They were build on a CentOS 5.0 system, for i386 and x86_64 architecture.
This time the source RPM is included as well.
You can find them here
]]></description>
			<content:encoded><![CDATA[<p>Since there still seems to be people interested in PHP4 for CentOS, I thought i&#8217;d share my recently compiled RPM&#8217;s for PHP-4.4.7. They were build on a CentOS 5.0 system, for i386 and x86_64 architecture.</p>
<p>This time the source RPM is included as well.</p>
<p><a href="http://home.react.nl/~hans/downloads/CentOS/5.0" target="_blank">You can find them here</a></p>
]]></content:encoded>
			<wfw:commentRss>http://hans.rakers.org/2007/10/new-php4-rpms-for-centos/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Issues regarding HA-NFS with Heartbeat and DRBD on Slackware 12.0</title>
		<link>http://hans.rakers.org/2007/10/issues-regarding-ha-nfs-with-heartbeat-and-drbd-on-slackware-120/</link>
		<comments>http://hans.rakers.org/2007/10/issues-regarding-ha-nfs-with-heartbeat-and-drbd-on-slackware-120/#comments</comments>
		<pubDate>Thu, 04 Oct 2007 10:45:25 +0000</pubDate>
		<dc:creator>Hans</dc:creator>
		
		<category><![CDATA[SysAdmin]]></category>

		<category><![CDATA[drbd]]></category>

		<category><![CDATA[HA-NFS]]></category>

		<category><![CDATA[haresources]]></category>

		<category><![CDATA[heartbeat]]></category>

		<category><![CDATA[NFS]]></category>

		<category><![CDATA[slackware]]></category>

		<guid isPermaLink="false">http://hans.rakers.org/2007/10/issues-regarding-ha-nfs-with-heartbeat-and-drbd-on-slackware-120/</guid>
		<description><![CDATA[Our NFS server setup at our datacenter consists of two SuperMicro SC933 chassis, each with dual Intel Xeon 3 Ghz, 2GB memory, and 15 200GB SATA disks connected to a Areca ARC-1160 16-ports SATA RAID controller. High Availability by redundancy and fail-over is taken care of by Heartbeat and DRBD. This setup is  responsible [...]]]></description>
			<content:encoded><![CDATA[<p>Our NFS server setup at our datacenter consists of two <a href="http://www.supermicro.com/products/chassis/3U/933/SC933T-R760.cfm" target="_blank">SuperMicro SC933</a> chassis, each with dual Intel Xeon 3 Ghz, 2GB memory, and 15 200GB SATA disks connected to a Areca ARC-1160 16-ports SATA RAID controller. High Availability by redundancy and fail-over is taken care of by <a href="http://www.linux-ha.org/" target="_blank">Heartbeat</a> and <a href="http://www.drbd.org/" target="_blank">DRBD</a>. This setup is  responsible for serving up document roots for our web cluster through NFS, and it obviously is very important that it always works <img src='http://hans.rakers.org/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>These systems  run Slackware Linux, which has historically been my distro of choice for critical systems. When deploying Heartbeat on Slackware i ran into some issues which i&#8217;d like to share here. I won&#8217;t go into basic stuff like actually compiling and installing DRBD and Heartbeat, since that is pretty well documented in various other places, for starters <a href="http://www.linux-ha.org/" target="_blank">the Linux-HA site</a> (home of Heartbeat).<br />
<span id="more-20"></span><br />
Heartbeat starts HA services as defined in the file &#8216;haresources&#8217;, but in doing so, Heartbeat seems a bit SysV-init biased. SysV init based systems only start certain services when they are told to do so, by linking them to a certain runlevel. So on a Sysv-style system, if you don&#8217;t want to start NFS services at boot time, you just remove them from their runlevels, but leaving the init.d script intact.</p>
<p>Because Slackware has more of a BSD-style init, it starts most of its service daemons from /etc/rc.d/rc.M, including RPC services and NFS.  We don&#8217;t want these services started by rc.M at boot time, because we want Hearbeat to manage these services. Normally on Slackware, if you don&#8217;t want a certain service started at boot-time, you would simply &#8216;chmod a-x&#8217; the specific rc script in /etc/rc.d, but that is not an option now, since heartbeat still needs to be able to start/stop the service from its &#8216;haresources&#8217;. My solution was to leave all scripts executable, and rename the rc scripts of the services i wanted to be managed by Heartbeat:</p>
<blockquote><p><code>cd /etc/rc.d<br />
mv rc.rpc rc.rcp-hb<br />
mv rc.nfsd rc.nfsd-hb<br />
mv rc.samba rc.samba-hb</code></p></blockquote>
<p>Now the RPC services, NFS and Samba will no longer be started at boot time, since rc.M only looks for the existence of the rc scripts without the added &#8216;-hb&#8217; part.</p>
<p>Next we tell Heartbeat the names of the rc scripts to start/stop by putting them in &#8216;haresources&#8217;. My &#8216;haresources&#8217; file looks like this:</p>
<blockquote><p><code>fs1     drbddisk::shared drbddisk::backups \<br />
Filesystem::/dev/drbd0::/var/nfsroot/shared::reiserfs \<br />
Filesystem::/dev/drbd1::/var/nfsroot/backups::xfs \<br />
Delay::2::0 \<br />
rc.samba-hb \<br />
rc.rpc-hb \<br />
rc.nfsd-hb \<br />
Delay::3::0 \<br />
IPaddr::10.0.0.150/16/eth0</code></p></blockquote>
<p>As you can see i have Hearbeat managing two DRBD volumes (&#8217;shared&#8217; and &#8216;backups&#8217;), NFS and Samba, and one shared IP address.</p>
<p>To have DRBD and Heartbeat started at boot time, i added the following to &#8216;rc.local&#8217;:</p>
<blockquote><p><code>/etc/rc.d/drbd start<br />
/etc/rc.d/heartbeat start</code></p></blockquote>
<p>And to stop them at reboot, i added this to &#8216;rc.local_shutdown&#8217;:</p>
<blockquote><p><code>/etc/rc.d/heartbeat stop<br />
/etc/rc.d/drbd stop</code></p></blockquote>
<p>Also, don&#8217;t forget to move /var/lib/nfs to your drbd volume for proper locking, and alter your rc.rpc-hb to add a cluster name to the startup of statd. More background info on this at <a href="http://www.linux-ha.org/DRBD/NFS">Linux-HA</a> (step 4e and 4f)</p>
<p>Now for all this to work properly, there is one more thing, which I found out the hard way <img src='http://hans.rakers.org/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> When Heartbeat releases its resources, it stops all services mentioned in &#8216;haresources&#8217; by calling their related rc scripts with &#8217;stop&#8217;. I ran into some strange failover behaviour, and found the following in my logs:</p>
<blockquote><p><code>heartbeat: 2007/10/01_13:16:42 info: Running /etc/rc.d/rc.samba  stop<br />
heartbeat: 2007/10/01_13:16:42 ERROR: Return code 1 from /etc/rc.d/rc.samba<br />
heartbeat: 2007/10/01_13:16:42 ERROR: Resource script for rc.samba probably not LSB-compliant.<br />
heartbeat: 2007/10/01_13:16:42 WARN: it (rc.samba) MUST succeed on a stop when already stopped<br />
heartbeat: 2007/10/01_13:16:42 WARN: Machine reboot narrowly avoided!<br />
</code></p></blockquote>
<p>Apparently, Heartbeat will sometimes call an rc script with &#8217;stop&#8217; while the services is already in &#8220;stopped state&#8221;. Now, looking at our rc.samba-hb, we see the following stop function:</p>
<blockquote><p><code>samba_stop() {<br />
killall smbd nmbd<br />
}<br />
</code></p></blockquote>
<p>This call to killall will return with a non-zero exit code when there are no processes to kill, which results in the rc script exiting with a non-zero exit code. This makes Heartbeat think something failed, resulting in the above error messages. The fix for this is rather simple, though maybe a bit hackish. Change the samba_stop function by adding a &#8216;exit 0&#8242;:</p>
<blockquote><p><code>samba_stop() {<br />
killall smbd nmbd<br />
exit 0<br />
}<br />
</code></p></blockquote>
<p>This should make Heartbeat happy. There are probably other rc scripts around that do not comply to this, so check your startup scripts.</p>
<p>Finally, watch out with DRBD-0.7.24 on a system with a kernel &gt;= 2.6.22. I still use the DRBD 0.7 branch, and when i deployed 0.7.24 on kernel 2.6.22.9, i ran into a whole bunch of trouble. The load average would suddenly spike enormously, and my systems went unresponsive to shutdown or reboot commands. I found a <a href="http://www.gossamer-threads.com/lists/drbd/users/12598">drbd-user mailinglist posting from someone with similar issues</a>. Apparently it&#8217;s a known issue with drbd-0.7.24 on kernel &gt;= 2.6.22 and XFS, which is fixed only in subversion!<br />
After fetching and installing the latest subversion revision of the drbd-0.7 branch as described <a href="http://www.drbd.org/latest.html">here</a>, the problem is solved.</p>
]]></content:encoded>
			<wfw:commentRss>http://hans.rakers.org/2007/10/issues-regarding-ha-nfs-with-heartbeat-and-drbd-on-slackware-120/feed/</wfw:commentRss>
		</item>
		<item>
		<title>CentOS 64 bit (x86_64) and VMWare Server</title>
		<link>http://hans.rakers.org/2007/02/centos-64-bit-x86_64-and-vmware-server/</link>
		<comments>http://hans.rakers.org/2007/02/centos-64-bit-x86_64-and-vmware-server/#comments</comments>
		<pubDate>Wed, 28 Feb 2007 12:29:09 +0000</pubDate>
		<dc:creator>Hans</dc:creator>
		
		<category><![CDATA[SysAdmin]]></category>

		<category><![CDATA[CentOS]]></category>

		<category><![CDATA[VMWare Server]]></category>

		<guid isPermaLink="false">http://hans.rakers.org/2007/02/centos-64-bit-x86_64-and-vmware-server/</guid>
		<description><![CDATA[Recently i had to install VMWare Server on a CentOS 4.4 x86_64 box for one of our clients. I ran a clean install of CentOS 4.4 from the server CD. The RPM install of VMWare Server went fine but during the vmware-config.pl step i ran into some trouble related to missing libraries.
After some searching on [...]]]></description>
			<content:encoded><![CDATA[<p>Recently i had to install <a href="http://www.vmware.com/products/server/" target="_blank">VMWare Server</a> on a CentOS 4.4 x86_64 box for one of our clients. I ran a clean install of CentOS 4.4 from the server CD. The RPM install of VMWare Server went fine but during the vmware-config.pl step i ran into some trouble related to missing libraries.</p>
<p>After some searching on Google i found <a href="http://www.karan.org/blog/index.php/2006/05/01" target="_blank">an excellent post</a> on the weblog of a CentOS developer named Karanbir Singh. To make everything work, you need to poison your 64-bit system with some 32-bit libraries <img src='http://hans.rakers.org/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>I had to install the following packages to make things work (some are sucked in by dependancies):</p>
<blockquote>
<ul>
<li>xorg-x11-libs.i386</li>
<li>expat.i386 (dep. of xorg-x11-libs)</li>
<li>fontconfig.i386 (dep. of xorg-x11-libs)</li>
<li>freetype.i386 (dep. of xorg-x11-libs)</li>
<li>xorg-x11-Mesa-libGL.i386 (dep. of xorg-x11-libs)</li>
<li>zlib.i386 (dep. of xorg-x11-libs)</li>
<li>glibc.i686</li>
<li>gcc.x86_64</li>
</ul>
</blockquote>
<p>After this vmware-config.pl ran flawlessly and VMWare Server is up and running!</p>
]]></content:encoded>
			<wfw:commentRss>http://hans.rakers.org/2007/02/centos-64-bit-x86_64-and-vmware-server/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Flickr GeoTagging</title>
		<link>http://hans.rakers.org/2006/09/flickr-geotagging/</link>
		<comments>http://hans.rakers.org/2006/09/flickr-geotagging/#comments</comments>
		<pubDate>Tue, 05 Sep 2006 20:37:26 +0000</pubDate>
		<dc:creator>Hans</dc:creator>
		
		<category><![CDATA[Photography]]></category>

		<category><![CDATA[Flickr]]></category>

		<category><![CDATA[GeoTagging]]></category>

		<category><![CDATA[photos]]></category>

		<category><![CDATA[pics]]></category>

		<guid isPermaLink="false">http://hans.rakers.org/2006/09/flickr-geotagging/</guid>
		<description><![CDATA[Following the great stick-everything-on-a-map rage i have just &#8220;GeoTagged&#8221; all my Flickr photo&#8217;s. Now you can find out exactly where every shot was taken  
See the result at http://www.flickr.com/photos/hrak/map/
]]></description>
			<content:encoded><![CDATA[<p>Following the great stick-everything-on-a-map rage i have just &#8220;<a href="http://www.flickr.com/groups/geotagging/">GeoTagged</a>&#8221; all my Flickr photo&#8217;s. Now you can find out exactly where every shot was taken <img src='http://hans.rakers.org/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>See the result at <a href="http://www.flickr.com/photos/hrak/map/">http://www.flickr.com/photos/hrak/map/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://hans.rakers.org/2006/09/flickr-geotagging/feed/</wfw:commentRss>
		</item>
		<item>
		<title>New PHP-4.4.4 RPM&#8217;s for CentOS</title>
		<link>http://hans.rakers.org/2006/08/new-php-444-rpms-for-centos/</link>
		<comments>http://hans.rakers.org/2006/08/new-php-444-rpms-for-centos/#comments</comments>
		<pubDate>Fri, 25 Aug 2006 12:00:57 +0000</pubDate>
		<dc:creator>Hans</dc:creator>
		
		<category><![CDATA[SysAdmin]]></category>

		<category><![CDATA[CentOS]]></category>

		<category><![CDATA[PHP]]></category>

		<category><![CDATA[PHP4]]></category>

		<category><![CDATA[RPMS]]></category>

		<guid isPermaLink="false">http://hans.rakers.org/2006/08/new-php-444-rpms-for-centos/</guid>
		<description><![CDATA[I&#8217;ve built a bunch of new CentOS RPM&#8217;s from the recently released php-4.4.4. Just like last time, they&#8217;re available for both 32- and 64-bit Intel architectures, and although i&#8217;ve tested and use them myself, they come with absolutely no guarantee  
You can get them here
]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve built a bunch of new CentOS RPM&#8217;s from the recently released php-4.4.4. Just like last time, they&#8217;re available for both 32- and 64-bit Intel architectures, and although i&#8217;ve tested and use them myself, they come with absolutely no guarantee <img src='http://hans.rakers.org/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>You can <a href="http://home.parse.nl/~hans/downloads/CentOS/" target="_blank">get them here</a></p>
]]></content:encoded>
			<wfw:commentRss>http://hans.rakers.org/2006/08/new-php-444-rpms-for-centos/feed/</wfw:commentRss>
		</item>
		<item>
		<title>PHP-4.4.2 RPMs for CentOS 4.3</title>
		<link>http://hans.rakers.org/2006/06/php-422-rpms-for-centos-43/</link>
		<comments>http://hans.rakers.org/2006/06/php-422-rpms-for-centos-43/#comments</comments>
		<pubDate>Wed, 21 Jun 2006 10:47:35 +0000</pubDate>
		<dc:creator>Hans</dc:creator>
		
		<category><![CDATA[SysAdmin]]></category>

		<category><![CDATA[CentOS]]></category>

		<category><![CDATA[PHP]]></category>

		<category><![CDATA[PHP4]]></category>

		<category><![CDATA[RPMS]]></category>

		<guid isPermaLink="false">http://hans.rakers.org/2006/06/php-422-rpms-for-centos-43/</guid>
		<description><![CDATA[Been a while since my last post  But anyway:
At the moment, we mostly run Slackware and Gentoo based servers at my workplace. Since the number of servers is steadily growing (currently 30-something servers), so is the maintenance. This is why i&#8217;ve been doing some research on more maintenance-friendly distros, one of which is CentOS, [...]]]></description>
			<content:encoded><![CDATA[<p>Been a while since my last post <img src='http://hans.rakers.org/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> But anyway:</p>
<p>At the moment, we mostly run Slackware and Gentoo based servers at my workplace. Since the number of servers is steadily growing (currently 30-something servers), so is the maintenance. This is why i&#8217;ve been doing some research on more maintenance-friendly distros, one of which is CentOS, the community release of Red Hat Enterprise Linux.</p>
<p>So far i am really impressed by CentOS, and i&#8217;m getting more into the whole RPM buzz. I have always been a &#8216;compile-it-yourself&#8217; person, and never really been a fan of RPM, but i&#8217;m starting to see the benefits now <img src='http://hans.rakers.org/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>The only thing i was a bit bummed about, was the relatively old version of php that came with CentOS 4.3. Since we run the latest version of PHP4 on most of our servers, i&#8217;ve been looking into rolling my own RPMs. After a bit of research on rpmbuild and related tools, the result is a bunch of PHP-4.4.2 RPMs for both 64-bit (x86_64) and 32-bit (i386) servers. And since CentOS is the community version of RHEL4, i thought i&#8217;d share these with the world.</p>
<p>You can <a href="http://home.parse.nl/~hans/downloads/CentOS/" target="_blank">find them here</a>. Ofcourse the usual disclaimers apply <img src='http://hans.rakers.org/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /></p>
]]></content:encoded>
			<wfw:commentRss>http://hans.rakers.org/2006/06/php-422-rpms-for-centos-43/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Op IR missie in Haarlem</title>
		<link>http://hans.rakers.org/2005/08/op-ir-missie-in-haarlem/</link>
		<comments>http://hans.rakers.org/2005/08/op-ir-missie-in-haarlem/#comments</comments>
		<pubDate>Mon, 08 Aug 2005 22:01:32 +0000</pubDate>
		<dc:creator>Hans</dc:creator>
		
		<category><![CDATA[Photography]]></category>

		<guid isPermaLink="false">http://hans.rakers.org/2005/08/op-ir-missie-in-haarlem/</guid>
		<description><![CDATA[
Ik ben vorig weekend samen met Jasper op pad geweest om wat te experimenteren met IR fotografie. Hierbij een van de eindresultaten. Even snel gepost, eigenlijk meer als smerig excuus om de integratie van Flickr met Wordpress eens te checken 

]]></description>
			<content:encoded><![CDATA[<p style="float: right; margin-left: 10px; margin-bottom: 10px; width: 240px; height: 160px;"><a href="http://www.flickr.com/photos/12269086@N00/32401283/" title="photo sharing"><img src="http://photos22.flickr.com/32401283_743aaa4cbb_m.jpg" style="border: 2px solid #000000" height="160" width="240" /></a></p>
<p>Ik ben vorig weekend samen met Jasper op pad geweest om wat te experimenteren met IR fotografie. Hierbij een van de eindresultaten. Even snel gepost, eigenlijk meer als smerig excuus om de integratie van Flickr met Wordpress eens te checken <img src='http://hans.rakers.org/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><br />
<br clear="all" /></p>
]]></content:encoded>
			<wfw:commentRss>http://hans.rakers.org/2005/08/op-ir-missie-in-haarlem/feed/</wfw:commentRss>
		</item>
		<item>
		<title>*tap tap tap* Is this thing on?</title>
		<link>http://hans.rakers.org/2005/07/tap-tap-tap-is-this-thing-on/</link>
		<comments>http://hans.rakers.org/2005/07/tap-tap-tap-is-this-thing-on/#comments</comments>
		<pubDate>Sun, 03 Jul 2005 21:30:15 +0000</pubDate>
		<dc:creator>Hans</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://hans.rakers.org/2005/07/tap-tap-tap-is-this-thing-on/</guid>
		<description><![CDATA[Daar gaat ie dan, de eerste post op mn blogje! Misschien wordt het nog wat, als ik de discipline op kan brengen  
Moet nog wel ff een nieuwe (eigen) look en een fatsoenlijke naam tegenaan in ieder geval!
]]></description>
			<content:encoded><![CDATA[<p>Daar gaat ie dan, de eerste post op mn blogje! Misschien wordt het nog wat, als ik de discipline op kan brengen <img src='http://hans.rakers.org/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Moet nog wel ff een nieuwe (eigen) look en een fatsoenlijke naam tegenaan in ieder geval!</p>
]]></content:encoded>
			<wfw:commentRss>http://hans.rakers.org/2005/07/tap-tap-tap-is-this-thing-on/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
