<?xml version="1.0" encoding="utf-8" ?>

<rss version="2.0" 
   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
   xmlns:admin="http://webns.net/mvcb/"
   xmlns:dc="http://purl.org/dc/elements/1.1/"
   xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
   xmlns:wfw="http://wellformedweb.org/CommentAPI/"
   xmlns:content="http://purl.org/rss/1.0/modules/content/"
   xmlns:creativeCommons="http://backend.userland.com/creativeCommonsRssModule">
<channel>
    <title>Just my Blog - Work</title>
    <link>http://blog.adslweb.net/serendipity/</link>
    <description>SELECT * FROM users WHERE clue &gt; 0</description>
    <dc:language>en</dc:language>
    <generator>Serendipity 1.5.1 - http://www.s9y.org/</generator>
    <pubDate>Mon, 22 Feb 2010 13:36:49 GMT</pubDate>

    <image>
        <url>http://blog.adslweb.net/serendipity/templates/competition/img/s9y_banner_small.png</url>
        <title>RSS: Just my Blog - Work - SELECT * FROM users WHERE clue &gt; 0</title>
        <link>http://blog.adslweb.net/serendipity/</link>
        <width>100</width>
        <height>21</height>
    </image>

<item>
    <title>Creating Snapshots of a backup using LVM snapshot</title>
    <link>http://blog.adslweb.net/serendipity/article/277/Creating-Snapshots-of-a-backup-using-LVM-snapshot</link>
            <category>Herakles</category>
            <category>Linux/Unix/BSD</category>
            <category>Security</category>
            <category>Work</category>
    
    <comments>http://blog.adslweb.net/serendipity/article/277/Creating-Snapshots-of-a-backup-using-LVM-snapshot#comments</comments>
    <wfw:comment>http://blog.adslweb.net/serendipity/wfwcomment.php?cid=277</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://blog.adslweb.net/serendipity/rss.php?version=2.0&amp;type=comments&amp;cid=277</wfw:commentRss>
    

    <author>nospam@example.com (Pieter de Rijk)</author>
    <content:encoded>
    &lt;p&gt;Normally I used to have a backup-retention-script in place that will create a TAR-ball of the backup data (using &lt;a target=&quot;_blank&quot; href=&quot;http://adslweb.net/tools/herakles&quot;&gt;Herakles&lt;/a&gt;). But this way I was not able to have a retention of longer then 3 days &lt;img src=&quot;http://blog.adslweb.net/serendipity/templates/default/img/emoticons/sad.png&quot; alt=&quot;:-(&quot; style=&quot;display: inline; vertical-align: bottom;&quot; class=&quot;emoticon&quot; /&gt; &lt;/p&gt; &lt;br /&gt;
&lt;p&gt;So I had to look into another solution, I could add a new harddrive in the server... but there should be something else possible. So I ended up by using LVM snapshots. So I created a Volume group of about 100GB. In that volume group I created a logical volume of about 30GB, which is enough (and if not, we can &#039;grow&#039; the Filesystem thanks to LVM &lt;img src=&quot;http://blog.adslweb.net/serendipity/templates/default/img/emoticons/smile.png&quot; alt=&quot;:-)&quot; style=&quot;display: inline; vertical-align: bottom;&quot; class=&quot;emoticon&quot; /&gt; )&lt;/p&gt; &lt;br /&gt;
&lt;p&gt;After having all that done, I&#039;ve created a script located in /root/scripts/lvm-snapshot. This script runs every midnight and creates a snapshot.&lt;/p&gt; &lt;br /&gt;
&lt;p&gt;&lt;font size=&quot;1&quot; face=&quot;courier new,courier,monospace&quot;&gt;#!/bin/bash&lt;br /&gt;#&lt;br /&gt;# Create LVM Snapshots&lt;br /&gt;#&lt;br /&gt;#&lt;br /&gt;#---------------------------------------------------------------------------------------------------------------&lt;br /&gt;CURRENT_SNAPNAME=&amp;quot;snap-&amp;quot;$(date &amp;quot;+%Y%m%d%H%M%S&amp;quot;)&lt;br /&gt;VOLUME2SNAPSHOT=&amp;quot;/dev/vol_backup/lvm0&amp;quot;&lt;br /&gt;LVMSNAPSHOTCMD=&amp;quot;/usr/sbin/lvcreate -L 2G -s -n $CURRENT_SNAPNAME $VOLUME2SNAPSHOT&amp;quot;&lt;br /&gt;LINE=&amp;quot;---------------------------------------------------------------------------------------------------------------------&amp;quot;&lt;br /&gt;&lt;br /&gt;echo $LINE&lt;br /&gt;df -h /mnt/data&lt;br /&gt;echo $LINE&lt;br /&gt;$LVMSNAPSHOTCMD 2&amp;gt; /dev/null&lt;br /&gt;#---------------------------------------------------------------------------------------------------------------&lt;br /&gt;SNAPSHOT_RETENTION=15&lt;br /&gt;CURRENT_SNAPSHOT_COUNT=$(lvdisplay | grep &amp;quot;^&amp;#160; LV Name&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; /dev/vol_backup/snap&amp;quot; | sort | awk &#039;{ print $3 }&#039; | wc -l)&lt;br /&gt;&lt;br /&gt;OVERFLOW=$(echo $CURRENT_SNAPSHOT_COUNT - $SNAPSHOT_RETENTION | bc)&lt;br /&gt;if [ $OVERFLOW -gt 0 ];&lt;br /&gt;then&lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; echo $LINE&lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; for files in&amp;#160; $(lvdisplay | grep &amp;quot;^&amp;#160; LV Name&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; /dev/vol_backup/snap&amp;quot; | sort | awk &#039;{ print $3 }&#039; | head -n$OVERFLOW);&lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; do&lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; /usr/sbin/lvremove -f $files 2&amp;gt; /dev/null&lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; done&lt;br /&gt;fi&lt;br /&gt;#---------------------------------------------------------------------------------------------------------------&lt;br /&gt;echo $LINE&lt;br /&gt;/usr/sbin/vgdisplay vol_backup&lt;br /&gt;echo $LINE&lt;br /&gt;/usr/sbin/lvdisplay $VOLUME2SNAPSHOT&lt;/font&gt;&lt;br /&gt;&lt;/p&gt; &lt;br /&gt;
&lt;p&gt;And the crontab entry is:&lt;/p&gt; &lt;br /&gt;
&lt;p&gt;&lt;font size=&quot;1&quot; face=&quot;courier new,courier,monospace&quot;&gt;# crontab -l&lt;br /&gt;0 0 &lt;strong&gt; &lt;/strong&gt; * /root/scripts/lvm-snapshot&lt;/font&gt; &lt;br /&gt;&lt;/p&gt; &lt;br /&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt; 
    </content:encoded>

    <pubDate>Mon, 22 Feb 2010 09:18:43 +0100</pubDate>
    <guid isPermaLink="false">http://blog.adslweb.net/serendipity/article/277/guid</guid>
    <creativeCommons:license>http://creativecommons.org/licenses/by/3.0/</creativeCommons:license>
</item>
<item>
    <title>RHEL 5 with puppet, mongrel and apache</title>
    <link>http://blog.adslweb.net/serendipity/article/275/RHEL-5-with-puppet,-mongrel-and-apache</link>
            <category>Linux/Unix/BSD</category>
            <category>System Op stuff</category>
            <category>Work</category>
    
    <comments>http://blog.adslweb.net/serendipity/article/275/RHEL-5-with-puppet,-mongrel-and-apache#comments</comments>
    <wfw:comment>http://blog.adslweb.net/serendipity/wfwcomment.php?cid=275</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://blog.adslweb.net/serendipity/rss.php?version=2.0&amp;type=comments&amp;cid=275</wfw:commentRss>
    

    <author>nospam@example.com (Pieter de Rijk)</author>
    <content:encoded>
    &lt;br /&gt;
&lt;p&gt;This week I had to set up puppet with mongrel and apache for the balancing. To be honest... I never heard aboutthe puppet tool at all before (sorry puppet-developers &lt;img src=&quot;http://blog.adslweb.net/serendipity/templates/default/img/emoticons/sad.png&quot; alt=&quot;:-(&quot; style=&quot;display: inline; vertical-align: bottom;&quot; class=&quot;emoticon&quot; /&gt; ). As far as I understood, the puppetmaster is not really doing well with handling multiple concurrent requests and we need to provision about 128 compute nodes from a HPC cluster ...&lt;/p&gt;&lt;p&gt;On how I set up all the stuff in the test environment/production environment.&lt;/p&gt;&lt;p /&gt;&lt;p&gt;First I identified the right RPMs from EPEL, because I had no connection to the Internet:&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;font face=&quot;courier new,courier,monospace&quot;&gt;augeas-0.5.3-1.el5.x86_64.rpm&lt;br /&gt;augeas-libs-0.5.3-1.el5.x86_64.rpm&lt;br /&gt;facter-1.5.7-1.el5.noarch.rpm&lt;br /&gt;puppet-0.24.8-4.el5.noarch.rpm&lt;br /&gt;puppet-server-0.24.8-4.el5.noarch.rpm&lt;br /&gt;ruby-augeas-0.3.0-1.el5.x86_64.rpm&lt;br /&gt;rubygem-daemons-1.0.7-2.el5.noarch.rpm&lt;br /&gt;rubygem-fastthread-1.0.1-1.el5.x86_64.rpm&lt;br /&gt;rubygem-gem_plugin-0.2.2-2.el5.noarch.rpm&lt;br /&gt;rubygem-mongrel-1.0.1-6.el5.x86_64.rpm&lt;br /&gt;rubygem-rake-0.8.3-1.el5.noarch.rpm&lt;br /&gt;rubygems-1.3.1-1.el5.noarch.rpm&lt;br /&gt;ruby-shadow-1.4.1-7.el5.x86_64.rpm&lt;/font&gt;&lt;/p&gt;&lt;p&gt;You can install them with &#039;&lt;font face=&quot;courier new,courier,monospace&quot;&gt;yum --nogpgcheck localinstall *.rpm&lt;/font&gt;&#039;.&lt;/p&gt;&lt;p&gt;You must als make sure that apache with mod_ssl is installed as well (&lt;font face=&quot;courier new,courier,monospace&quot;&gt;yum install httpd mod_ssl&lt;/font&gt;).&lt;/p&gt;&lt;p&gt;&lt;font size=&quot;3&quot;&gt;&lt;b&gt;Configuring Apache for load-balancing&lt;/b&gt;&lt;/font&gt;&lt;/p&gt;&lt;p&gt;As mentioned before, apache and puppet master must be installed.&lt;/p&gt;&lt;p&gt;First I copied and modified the &lt;font face=&quot;courier new,courier,monospace&quot;&gt;/etc/init.d/httpd&lt;/font&gt; script to use it for puppet loadbalancing. Find my copy of the script on:&lt;/p&gt;&lt;p&gt;&lt;a href=&quot;http://www.xs4all.nl/~paderijk/blog/puppet-balancer&quot;&gt;&lt;font face=&quot;courier new,courier,monospace&quot;&gt;http://www.xs4all.nl/~paderijk/blog/puppet-balancer&lt;/font&gt;&lt;/a&gt;&lt;/p&gt;&lt;p&gt;So you can do:&lt;/p&gt;&lt;p&gt;&lt;font face=&quot;courier new,courier,monospace&quot;&gt;# cd /etc/init.d/&lt;br /&gt;# wget http://www.xs4all.nl/~paderijk/blog/puppet-balancer&lt;br /&gt;# chmod 755 ./puppet-balancer&lt;/font&gt;&lt;/p&gt;&lt;p&gt;Now we have to create the some additional directories:&lt;/p&gt;&lt;p&gt;&lt;font face=&quot;courier new,courier,monospace&quot;&gt;# mkdir -p /var/log/puppet-balancer&lt;br /&gt;# mkdir -p /etc/puppet-balancer/{conf,conf.d}&lt;/font&gt;&lt;/p&gt;&lt;p&gt;I used the configuration file initially set up by from Jeff McCune and modified it for RHEL5. This file can be found on:&lt;/p&gt;&lt;p&gt;&lt;a href=&quot;http://www.xs4all.nl/~paderijk/blog/puppet-balancer.conf&quot;&gt;&lt;font face=&quot;courier new,courier,monospace&quot;&gt;http://www.xs4all.nl/~paderijk/blog/puppet-balancer.conf&lt;/font&gt;&lt;/a&gt;&lt;/p&gt;&lt;p&gt;So you can put it into place like this:&lt;/p&gt;&lt;p&gt;&lt;font face=&quot;courier new,courier,monospace&quot;&gt;# cd /etc/puppet-balancer/conf&lt;br /&gt;# wget http://www.xs4all.nl/~paderijk/blog/puppet-balancer.conf&lt;/font&gt;&lt;/p&gt;&lt;p&gt;And finally we need to create a symlink name &lt;font face=&quot;courier new,courier,monospace&quot;&gt;/usr/sbin/puppet-balancer&lt;/font&gt; which links to &lt;font face=&quot;courier new,courier,monospace&quot;&gt;/usr/sbin/httpd&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font face=&quot;courier new,courier,monospace&quot;&gt;# ln -s /usr/sbin/httpd /usr/sbin/puppet-balancer&lt;/font&gt;&lt;/p&gt;&lt;p&gt;I&#039;ve done this, because somehow the init-scripts are having some inconstancy. &lt;img src=&quot;http://blog.adslweb.net/serendipity/templates/default/img/emoticons/sad.png&quot; alt=&quot;:-(&quot; style=&quot;display: inline; vertical-align: bottom;&quot; class=&quot;emoticon&quot; /&gt;&lt;/p&gt;&lt;p&gt;And we also need a &lt;font face=&quot;courier new,courier,monospace&quot;&gt;/etc/sysconfig/puppet-balancer&lt;/font&gt; file&lt;/p&gt;&lt;p&gt;&lt;font face=&quot;courier new,courier,monospace&quot;&gt;# cd /etc/sysconfig&lt;br /&gt;# wget http://www.xs4all.nl/~paderijk/blog/sysconfig-puppetbalancer&lt;br /&gt;# mv sysconfig-puppetbalancer puppet-balancer&lt;/font&gt;&lt;/p&gt;&lt;p /&gt;&lt;p&gt;For so far the apache configuration, still we don&#039;t start the &lt;font face=&quot;courier new,courier,monospace&quot;&gt;puppet-balancer&lt;/font&gt; &#039;service&#039;. First we need to configure and start the puppet master.&lt;/p&gt;&lt;p&gt;&lt;font size=&quot;3&quot;&gt;&lt;b&gt;Configuration puppetmaster&lt;/b&gt;&lt;/font&gt;&lt;/p&gt;&lt;p&gt;The configuration of the puppetmaster was actually very easy.&lt;/p&gt;&lt;p&gt;&lt;b&gt;*UPDATE*&lt;/b&gt; A colleague pointed me on the fact that the CA wasn&#039;t set up properly going into mongrel mode. So first start puppetmaster normally:&lt;/p&gt;&lt;p&gt;&lt;font face=&quot;courier new,courier,monospace&quot;&gt;# service puppetmaster start ; sleep 5 ; service puppetmaster stop&lt;/font&gt;&lt;/p&gt;&lt;p&gt;Make sure the following line is &#039;enabled&#039; to &lt;font face=&quot;courier new,courier,monospace&quot;&gt;/etc/sysconfig/puppetmaster&lt;/font&gt;:&lt;/p&gt;&lt;p&gt;&lt;font face=&quot;courier new,courier,monospace&quot;&gt;PUPPETMASTER_PORTS=( 18140 18141 18142 18143 )&lt;/font&gt;&lt;/p&gt;&lt;p&gt;This will enable &lt;font face=&quot;courier new,courier,monospace&quot;&gt;puppetmaster &lt;/font&gt;with mongrel and starts on the ports 18140 to 18143 &lt;img src=&quot;http://blog.adslweb.net/serendipity/templates/default/img/emoticons/smile.png&quot; alt=&quot;:-)&quot; style=&quot;display: inline; vertical-align: bottom;&quot; class=&quot;emoticon&quot; /&gt;&lt;/p&gt;&lt;p&gt;I also noticed that the RPM for &lt;font face=&quot;courier new,courier,monospace&quot;&gt;puppetmaster &lt;/font&gt;didn&#039;t set up all the required directories, so I need to add them manual:&lt;/p&gt;&lt;p&gt;&lt;font face=&quot;courier new,courier,monospace&quot;&gt;# mkdir -p /var/lib/puppet/yaml/{facts,nodes}&lt;br /&gt;# chown puppet:puppet /var/lib/puppet/yaml/{facts,nodes}&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font size=&quot;3&quot;&gt;&lt;b&gt;Start the puppetmaster and Apache (puppet-balancer)&lt;/b&gt;&lt;/font&gt;&lt;/p&gt;&lt;p&gt;Now we can start the puppetmaster:&lt;/p&gt;&lt;p&gt;&lt;font face=&quot;courier new,courier,monospace&quot;&gt;# service puppetmaster start&lt;/font&gt;&lt;/p&gt;&lt;p&gt;But we want to survive reboots as well, so we do also:&lt;/p&gt;&lt;p&gt;&lt;font face=&quot;courier new,courier,monospace&quot;&gt;# chkconfig puppetmaster on&lt;/font&gt;&lt;/p&gt;&lt;p&gt;Now the Puppet CA is also set up. So now we can start the puppet-balancer (apache) as well. But first we need to symlink the key-file and the certificate file:&lt;/p&gt;&lt;p&gt;&lt;font face=&quot;courier new,courier,monospace&quot;&gt;# ln -s /var/lib/puppet/ssl/private_keys/{$(hostname -f).pem,puppet-balancer.pem}&lt;br /&gt;# ln -s /var/lib/puppet/ssl/certs/{$(hostname -f).pem,puppet-balancer.pem}&lt;/font&gt;&lt;/p&gt;&lt;p&gt;And now we can start the puppet-balancer:&lt;/p&gt;&lt;p&gt;&lt;font face=&quot;courier new,courier,monospace&quot;&gt;# service puppet-balancer start&lt;/font&gt;&lt;/p&gt;&lt;p&gt;And get it also up and running after a reboot:&lt;/p&gt;&lt;p&gt;&lt;font face=&quot;courier new,courier,monospace&quot;&gt;# chkconfig puppet-balancer on&lt;/font&gt;&lt;/p&gt;&lt;p&gt;More details on how to do further configuration/setting up manifest files et cetera can be found on the Puppet wiki:&lt;/p&gt;&lt;p&gt;&lt;a href=&quot;http://reductivelabs.com/trac/puppet/&quot;&gt;&lt;font face=&quot;courier new,courier,monospace&quot;&gt;http://reductivelabs.com/trac/puppet/&lt;/font&gt;&lt;/a&gt;&lt;/p&gt;&lt;p /&gt;&lt;p /&gt;&lt;p /&gt;&lt;p /&gt;&lt;p /&gt; &lt;br /&gt;&lt;a href=&quot;http://blog.adslweb.net/serendipity/article/275/RHEL-5-with-puppet,-mongrel-and-apache#extended&quot;&gt;Continue reading &quot;RHEL 5 with puppet, mongrel and apache&quot;&lt;/a&gt;
    </content:encoded>

    <pubDate>Fri, 11 Dec 2009 09:06:52 +0100</pubDate>
    <guid isPermaLink="false">http://blog.adslweb.net/serendipity/article/275/guid</guid>
    <creativeCommons:license>http://creativecommons.org/licenses/by/3.0/</creativeCommons:license>
</item>
<item>
    <title>Load Grid Engine accounting file into MySQL</title>
    <link>http://blog.adslweb.net/serendipity/article/270/Load-Grid-Engine-accounting-file-into-MySQL</link>
            <category>Linux/Unix/BSD</category>
            <category>System Op stuff</category>
            <category>Work</category>
    
    <comments>http://blog.adslweb.net/serendipity/article/270/Load-Grid-Engine-accounting-file-into-MySQL#comments</comments>
    <wfw:comment>http://blog.adslweb.net/serendipity/wfwcomment.php?cid=270</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://blog.adslweb.net/serendipity/rss.php?version=2.0&amp;type=comments&amp;cid=270</wfw:commentRss>
    

    <author>nospam@example.com (Pieter de Rijk)</author>
    <content:encoded>
    &lt;br /&gt;
&lt;p&gt;Recently I need to create a report about utilization of an HPC Cluster that uses &lt;a href=&quot;http://gridengine.sunsource.net/&quot; target=&quot;_blank&quot;&gt;Grid Engine&lt;/a&gt;, but we didn&#039;t had &lt;a href=&quot;http://arco.sunsource.net/&quot; target=&quot;_blank&quot;&gt;ARCO&lt;/a&gt; and so not running yet for that cluster &lt;img src=&quot;http://blog.adslweb.net/serendipity/templates/default/img/emoticons/sad.png&quot; alt=&quot;:-(&quot; style=&quot;display: inline; vertical-align: bottom;&quot; class=&quot;emoticon&quot; /&gt;&lt;/p&gt;&lt;p&gt;So I digged into my brain on how to load data from a &amp;quot;RAW&amp;quot; format into a database... it&#039;s something I did when I worked for &lt;a href=&quot;http://www.pwc.nl/fts&quot; target=&quot;_blank&quot;&gt;PricewaterhouseCoopers Advisory&lt;/a&gt;, but then I &lt;a href=&quot;http://blog.adslweb.net/serendipity/article/154/ClieOp03-to-pipe-seperated-values&quot; target=&quot;_blank&quot;&gt;used financial data&lt;/a&gt;.&lt;/p&gt;&lt;p&gt;Please press the continue reading link below... to read more &lt;img src=&quot;http://blog.adslweb.net/serendipity/templates/default/img/emoticons/laugh.png&quot; alt=&quot;:-D&quot; style=&quot;display: inline; vertical-align: bottom;&quot; class=&quot;emoticon&quot; /&gt; &lt;/p&gt;&lt;p /&gt; &lt;br /&gt;&lt;a href=&quot;http://blog.adslweb.net/serendipity/article/270/Load-Grid-Engine-accounting-file-into-MySQL#extended&quot;&gt;Continue reading &quot;Load Grid Engine accounting file into MySQL&quot;&lt;/a&gt;
    </content:encoded>

    <pubDate>Wed, 30 Sep 2009 07:29:25 +0200</pubDate>
    <guid isPermaLink="false">http://blog.adslweb.net/serendipity/article/270/guid</guid>
    <creativeCommons:license>http://creativecommons.org/licenses/by/3.0/</creativeCommons:license>
</item>
<item>
    <title>Uptimal usage of resources, result in &quot;overuse&quot; of licenses</title>
    <link>http://blog.adslweb.net/serendipity/article/269/Uptimal-usage-of-resources,-result-in-overuse-of-licenses</link>
            <category>Linux/Unix/BSD</category>
            <category>System Op stuff</category>
            <category>Work</category>
    
    <comments>http://blog.adslweb.net/serendipity/article/269/Uptimal-usage-of-resources,-result-in-overuse-of-licenses#comments</comments>
    <wfw:comment>http://blog.adslweb.net/serendipity/wfwcomment.php?cid=269</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://blog.adslweb.net/serendipity/rss.php?version=2.0&amp;type=comments&amp;cid=269</wfw:commentRss>
    

    <author>nospam@example.com (Pieter de Rijk)</author>
    <content:encoded>
    A user group we support uses an application and they have the license to use 20 concurrent runs. For them we&#039;ve implement very recently the &lt;a href=&quot;http://gridengine.sunsource.net/&quot; target=&quot;_blank&quot;&gt;Sun Grid Engine job scheduler&lt;/a&gt;. Although they recently start complaining that jobs didn&#039;t run.&lt;p&gt;Their cluster exists out of 8 nodes with each 2 cores, so they&#039;ve 16 slots in the job scheduler. We&#039;ve set up two queues, the &lt;b&gt;&lt;font face=&quot;courier new,courier,monospace&quot;&gt;suspendable.q&lt;/font&gt;&lt;/b&gt; and the &lt;b&gt;&lt;font face=&quot;courier new,courier,monospace&quot;&gt;unsuspendable.q&lt;/font&gt;&lt;/b&gt;. Jobs in the &lt;b&gt;&lt;font face=&quot;courier new,courier,monospace&quot;&gt;suspendable.q&lt;/font&gt;&lt;/b&gt; queue can get suspended by jobs in the &lt;font face=&quot;courier new,courier,monospace&quot;&gt;&lt;b&gt;unsuspendable.q&lt;/b&gt;&lt;/font&gt; queue. So we can have in total 32 concurrent jobs (where 16 will be suspended).&lt;/p&gt;&lt;p&gt;Once their cluster is really busy, some jobs will not run... and after some investigation we found out why. The jobs that are suspended don&#039;t release their license to the license server. So we can have a total of 16 jobs in the &lt;b&gt;&lt;font face=&quot;courier new,courier,monospace&quot;&gt;suspendable.q&lt;/font&gt;&lt;/b&gt; and 4 in the &lt;b&gt;&lt;font face=&quot;courier new,courier,monospace&quot;&gt;unsuspendable.q&lt;/font&gt;&lt;/b&gt;. So we start limiting the number of unsuspendable jobs to 4, because the 21nd job that will start running will fail because it won&#039;t get a license.&lt;/p&gt;&lt;br /&gt;
 
    </content:encoded>

    <pubDate>Thu, 16 Jul 2009 11:15:32 +0200</pubDate>
    <guid isPermaLink="false">http://blog.adslweb.net/serendipity/article/269/guid</guid>
    <creativeCommons:license>http://creativecommons.org/licenses/by/3.0/</creativeCommons:license>
</item>
<item>
    <title>Require client-SSL certificate for certain content.</title>
    <link>http://blog.adslweb.net/serendipity/article/265/Require-client-SSL-certificate-for-certain-content.</link>
            <category>Linux/Unix/BSD</category>
            <category>Security</category>
            <category>System Op stuff</category>
            <category>Work</category>
    
    <comments>http://blog.adslweb.net/serendipity/article/265/Require-client-SSL-certificate-for-certain-content.#comments</comments>
    <wfw:comment>http://blog.adslweb.net/serendipity/wfwcomment.php?cid=265</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://blog.adslweb.net/serendipity/rss.php?version=2.0&amp;type=comments&amp;cid=265</wfw:commentRss>
    

    <author>nospam@example.com (Pieter de Rijk)</author>
    <content:encoded>
    &lt;br /&gt;
&lt;p&gt;On a kind of &amp;quot;intranet&amp;quot; website, which is secured with username/password combinations and HTTPS I&#039;ve implemented the next feature:&lt;/p&gt;&lt;p&gt;- Authorized users can read everything on the website&lt;/p&gt;&lt;p&gt;- Files with in their filename &amp;quot;classified&amp;quot; requires a valid SSL-Client certificate...&lt;/p&gt;&lt;p&gt;Here is the output of my apache config:&lt;/p&gt;&lt;font face=&quot;courier new,courier,monospace&quot;&gt;&amp;lt;Directory /usr/sites/ssl-site/intranet/htdocs&amp;gt;&lt;br /&gt;Â  Options Indexes MultiViews&lt;br /&gt;Â  AllowOverride Authconfig&lt;br /&gt;Â  Order allow,deny&lt;br /&gt;Â  Allow from all&lt;br /&gt;Â  AuthName &amp;quot;intranet&amp;quot;&lt;br /&gt;Â  AuthType &amp;quot;Basic&amp;quot;&lt;br /&gt;Â  AuthUserFile /usr/sites/ssl-site/intranet/etc/users.pwl&lt;br /&gt;Â  require valid-user&lt;br /&gt;&amp;lt;/Directory&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;LocationMatch .*(c|C)(l|L)(a|A)(s|S)(s|S)(i|I)(f|F)(i|I)(e|E)(d|D).+&amp;gt;&lt;br /&gt;Â  SSLVerifyClient require&lt;br /&gt;Â  SSLVerifyDepth 1&lt;br /&gt;Â  SSLOptions +OptRenegotiate&lt;br /&gt;&amp;lt;/LocationMatch&amp;gt;&lt;/font&gt;&lt;p /&gt;&lt;p&gt;I still have to sort out some issues, like directories having a directory with the name &amp;quot;classified&amp;quot; in them.&lt;/p&gt; 
    </content:encoded>

    <pubDate>Wed, 20 May 2009 15:53:13 +0200</pubDate>
    <guid isPermaLink="false">http://blog.adslweb.net/serendipity/article/265/guid</guid>
    <creativeCommons:license>http://creativecommons.org/licenses/by/3.0/</creativeCommons:license>
</item>
<item>
    <title>Linux SUDO-hack</title>
    <link>http://blog.adslweb.net/serendipity/article/252/Linux-SUDO-hack</link>
            <category>Linux/Unix/BSD</category>
            <category>System Op stuff</category>
            <category>Work</category>
    
    <comments>http://blog.adslweb.net/serendipity/article/252/Linux-SUDO-hack#comments</comments>
    <wfw:comment>http://blog.adslweb.net/serendipity/wfwcomment.php?cid=252</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://blog.adslweb.net/serendipity/rss.php?version=2.0&amp;type=comments&amp;cid=252</wfw:commentRss>
    

    <author>nospam@example.com (Pieter de Rijk)</author>
    <content:encoded>
    &lt;p&gt;It can happen, you have sudo-access to another account (most of the time it will be access to the root account). But most of the time the &lt;b&gt;&lt;font face=&quot;courier new,courier,monospace&quot;&gt;NOPASSWD&lt;/font&gt;&lt;/b&gt; option is not used due to security reasons. But there are moments you want to have sudo-credentials available, think about a script or something else.... I had the same issue, so I found the next &amp;quot;hack&amp;quot; to get the timestamp refreshed every 60 seconds.&lt;/p&gt;&lt;p&gt;(Please note the script will use user &amp;quot;root&amp;quot; but it can be another user, please modify the scripts so it fits your needs).&lt;/p&gt;&lt;p&gt;&lt;b&gt;&lt;i&gt;Step 1)&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;&lt;p&gt;Create a script in you &lt;font face=&quot;courier new,courier,monospace&quot;&gt;$HOME/bin&lt;/font&gt; with the next content (I call it &lt;font face=&quot;courier new,courier,monospace&quot;&gt;sudo-hack.sh&lt;/font&gt;):&lt;/p&gt;&lt;blockquote&gt;&lt;hr width=&quot;100%&quot; size=&quot;2&quot; /&gt;&lt;pre class=&quot;code&quot;&gt;#!/bin/bash &lt;br /&gt;while [ true ]; &lt;br /&gt;do &lt;br /&gt;  sudo -u root /bin/true &amp;gt; /dev/null 2&amp;gt; /dev/null &lt;br /&gt;  sleep 60 &lt;br /&gt;done &lt;/pre&gt;&lt;hr width=&quot;100%&quot; size=&quot;2&quot; /&gt;&lt;pre class=&quot;code&quot;&gt;&lt;/pre&gt;&lt;/blockquote&gt;&lt;p&gt;&lt;i&gt;&lt;b&gt;Step 2)&lt;/b&gt;&lt;/i&gt;&lt;/p&gt;&lt;p&gt;Get a valid sudo-timestamp:&lt;/p&gt;&lt;p&gt;&lt;font face=&quot;courier new,courier,monospace&quot;&gt;$ &lt;b&gt;sudo -u root /bin/true&lt;/b&gt;&lt;br /&gt;Password:&lt;br /&gt;$&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;i&gt;&lt;b&gt;Step 3)&lt;/b&gt;&lt;/i&gt;&lt;/p&gt;&lt;p&gt;Start sudo-hack.sh in the background:&lt;/p&gt;&lt;p&gt;&lt;font face=&quot;courier new,courier,monospace&quot;&gt;$ &lt;b&gt;$HOME/bin/sudo-hack.sh &amp;amp;&lt;/b&gt;&lt;br /&gt;$&lt;/font&gt;&lt;/p&gt;&lt;p&gt;That&#039;s all! &lt;/p&gt; 
    </content:encoded>

    <pubDate>Tue, 09 Dec 2008 08:19:50 +0100</pubDate>
    <guid isPermaLink="false">http://blog.adslweb.net/serendipity/article/252/guid</guid>
    <creativeCommons:license>http://creativecommons.org/licenses/by/3.0/</creativeCommons:license>
</item>
<item>
    <title>Passed - RH423 Red Hat Enterprise Directory Services and Authentication</title>
    <link>http://blog.adslweb.net/serendipity/article/251/Passed-RH423-Red-Hat-Enterprise-Directory-Services-and-Authentication</link>
            <category>Linux/Unix/BSD</category>
            <category>Snow</category>
            <category>System Op stuff</category>
            <category>Work</category>
    
    <comments>http://blog.adslweb.net/serendipity/article/251/Passed-RH423-Red-Hat-Enterprise-Directory-Services-and-Authentication#comments</comments>
    <wfw:comment>http://blog.adslweb.net/serendipity/wfwcomment.php?cid=251</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://blog.adslweb.net/serendipity/rss.php?version=2.0&amp;type=comments&amp;cid=251</wfw:commentRss>
    

    <author>nospam@example.com (Pieter de Rijk)</author>
    <content:encoded>
    &lt;p&gt;This week I had the &amp;quot;&lt;a href=&quot;http://www.europe.redhat.com/training/course/RH423&quot; target=&quot;_blank&quot;&gt;Red Hat Enterprise Directory Services and Authentication&lt;/a&gt;&amp;quot; course and exam in Amsterdam.&lt;/p&gt;&lt;p&gt;In the course we had some very nice stuff, like &lt;a href=&quot;http://www.europe.redhat.com/products/infrastructure/directory_server/&quot; target=&quot;_blank&quot;&gt;Red Hat DS&lt;/a&gt; and at the end &lt;a href=&quot;http://www.europe.redhat.com/promo/ipa/&quot; target=&quot;_blank&quot;&gt;Red Hat Enterprise IPA&lt;/a&gt;... all very cool... but today I had the exam (due to the RedHat NDA I am not allowed to say anything about the exam, so I won&#039;t do it)... but a few hours after the exam I received my results... and I passed the exam &lt;img src=&quot;http://blog.adslweb.net/serendipity/templates/default/img/emoticons/laugh.png&quot; alt=&quot;:-D&quot; style=&quot;display: inline; vertical-align: bottom;&quot; class=&quot;emoticon&quot; /&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;br /&gt;
 
    </content:encoded>

    <pubDate>Fri, 31 Oct 2008 19:49:06 +0100</pubDate>
    <guid isPermaLink="false">http://blog.adslweb.net/serendipity/article/251/guid</guid>
    <creativeCommons:license>http://creativecommons.org/licenses/by/3.0/</creativeCommons:license>
</item>
<item>
    <title>Why is the script slow...</title>
    <link>http://blog.adslweb.net/serendipity/article/248/Why-is-the-script-slow...</link>
            <category>Linux/Unix/BSD</category>
            <category>Snow</category>
            <category>Work</category>
    
    <comments>http://blog.adslweb.net/serendipity/article/248/Why-is-the-script-slow...#comments</comments>
    <wfw:comment>http://blog.adslweb.net/serendipity/wfwcomment.php?cid=248</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://blog.adslweb.net/serendipity/rss.php?version=2.0&amp;type=comments&amp;cid=248</wfw:commentRss>
    

    <author>nospam@example.com (Pieter de Rijk)</author>
    <content:encoded>
    &lt;br /&gt;
&lt;p&gt;For a project I am working on migrating UNIX applications to Linux. Most of the scripting work supposed to be done in India, and that is where the issues came in. First you have a developer who knows how to work with M$ Technet and never worked with PERL before (at least 80% of the scripts is written in PERL).&lt;/p&gt;&lt;p&gt;First of all I introduced the user &lt;b&gt;&lt;font face=&quot;courier new,courier,monospace&quot;&gt;Net::LDAP&lt;/font&gt;&lt;/b&gt; within PERL, because they first did a &lt;b&gt;&lt;font face=&quot;courier new,courier,monospace&quot;&gt;ldapsearch&lt;/font&gt;&lt;/b&gt;, put the output into a ASCII file... and with a PERL script they structured the data... and loaded it into a Oracle database... so that was the first improvement.&lt;/p&gt;&lt;p&gt;Next there were several issues, like not good reading or understanding LDAP/PERL at all...&lt;/p&gt;&lt;p&gt;But at a certain moment, they start complaining about the fact that one of the scripts was slow... on the old system the script had a run time of 4 hours... and now it is up to 28 hours(!!!) &lt;img src=&quot;http://blog.adslweb.net/serendipity/templates/default/img/emoticons/sad.png&quot; alt=&quot;:-(&quot; style=&quot;display: inline; vertical-align: bottom;&quot; class=&quot;emoticon&quot; /&gt; So they requested me to investigate this.&lt;/p&gt;&lt;p&gt;First I found a &#039;main&#039; kornshell script doing the next thing:&lt;/p&gt;&lt;hr width=&quot;100%&quot; size=&quot;2&quot; /&gt;&lt;p&gt;&lt;font face=&quot;courier new,courier,monospace&quot;&gt;for VAR in a b d e f g i j k m n o p q r s t u v w x y z&lt;br /&gt;do&lt;br /&gt;Â Â  for NAME in &amp;quot;&#039;&amp;quot; a b c d e f g h i j k l m n o p q r s t u v w x y z&lt;br /&gt;Â Â  do&lt;br /&gt;Â Â Â Â  ldap_script.pl $NAME $VAR&lt;br /&gt;Â Â  done&lt;br /&gt;done&lt;/font&gt;&lt;/p&gt;&lt;hr width=&quot;100%&quot; size=&quot;2&quot; /&gt;&lt;p&gt;The content of the ldap_script.pl was something like:&lt;/p&gt;&lt;hr width=&quot;100%&quot; size=&quot;2&quot; /&gt;&lt;p&gt;&lt;font face=&quot;courier new,courier,monospace&quot;&gt;#!/usr/bin/perl&lt;br /&gt;use Net::LDAP;&lt;br /&gt;$ldap = Net::LDAP-&amp;gt;new($LDAP_SERVER);&lt;br /&gt;$ldap-&amp;gt;bind($LDAP_DN, password=&amp;gt;$LDAP_PASSWD) or die &amp;quot;Cannot connect&amp;quot;;&lt;br /&gt;$LDAP_FILTER=&amp;quot;(&amp;amp;(sn=$ARGV[0]*)(OfficeName=$ARGV[1]*))&amp;quot;;&lt;br /&gt;$mesg = $ldap-&amp;gt;search(base=&amp;gt;$LDAP_BASE,&lt;br /&gt;Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â                           filter=&amp;gt;$LDAP_FILTER,&lt;br /&gt;Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â  ) or die &amp;quot;Cannot connect&amp;quot;;&lt;br /&gt;push(@ENTRIES,$mesg-&amp;gt;entries);&lt;br /&gt;$ldap-&amp;gt;unbind;&lt;/font&gt;&lt;/p&gt;&lt;hr width=&quot;100%&quot; size=&quot;2&quot; /&gt;&lt;p&gt;I thought that this costs a lot... loading PERL script, connecting to server, binding to it... et cetera... &lt;img src=&quot;http://blog.adslweb.net/serendipity/templates/default/img/emoticons/sad.png&quot; alt=&quot;:-(&quot; style=&quot;display: inline; vertical-align: bottom;&quot; class=&quot;emoticon&quot; /&gt; And this was done in the original script &amp;gt; 2000 times &lt;img src=&quot;http://blog.adslweb.net/serendipity/templates/default/img/emoticons/normal.png&quot; alt=&quot;:-|&quot; style=&quot;display: inline; vertical-align: bottom;&quot; class=&quot;emoticon&quot; /&gt;&lt;/p&gt;&lt;p&gt;So... I removed the loop out of the mainscript... and implemented it into the PERL-script, like this:&lt;/p&gt;&lt;p /&gt;&lt;hr width=&quot;100%&quot; size=&quot;2&quot; /&gt;&lt;font face=&quot;courier new,courier,monospace&quot;&gt;#!/usr/bin/perl&lt;br /&gt;&lt;br /&gt;
use Net::LDAP;&lt;br /&gt;&lt;br /&gt;
$ldap = Net::LDAP-&amp;gt;new($LDAP_SERVER);&lt;br /&gt;@LOOP=(&amp;quot;a&amp;quot;,&amp;quot;b&amp;quot;,&amp;quot;c&amp;quot;,&amp;quot;d&amp;quot;,&amp;quot;e&amp;quot;,&amp;quot;f&amp;quot;,&amp;quot;g&amp;quot;,&amp;quot;h&amp;quot;,&amp;quot;i&amp;quot;,&amp;quot;j&amp;quot;,&amp;quot;k&amp;quot;,&amp;quot;l&amp;quot;,&amp;quot;m&amp;quot;,&amp;quot;n&amp;quot;,&amp;quot;o&amp;quot;,&lt;br /&gt;Â Â Â Â Â Â  &amp;quot;p&amp;quot;,&amp;quot;q&amp;quot;,&amp;quot;r&amp;quot;,&amp;quot;s&amp;quot;,&amp;quot;t&amp;quot;,&amp;quot;u&amp;quot;,&amp;quot;v&amp;quot;,&amp;quot;w&amp;quot;,&amp;quot;x&amp;quot;,&amp;quot;y&amp;quot;,&amp;quot;z&amp;quot;, &amp;quot;&#039;&amp;quot;);&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;
$ldap-&amp;gt;bind($LDAP_DN, password=&amp;gt;$LDAP_PASSWD) or die &amp;quot;Cannot connect&amp;quot;;&lt;br /&gt;&lt;br /&gt;foreach $LOOP1 (@LOOP)&lt;br /&gt;{&lt;br /&gt;Â  foreach $LOOP2 (@LOOP)&lt;br /&gt;Â  {&lt;br /&gt;Â Â Â Â     &lt;/font&gt;&lt;font face=&quot;courier new,courier,monospace&quot;&gt;$LDAP_FILTER=&amp;quot;(&amp;amp;(sn=$LOOP1*)(OfficeName=$LOOP2*))&amp;quot;;&lt;/font&gt;&lt;br /&gt;&lt;font face=&quot;courier new,courier,monospace&quot;&gt;Â Â Â Â  $mesg = $ldap-&amp;gt;search(base=&amp;gt;$LDAP_BASE,&lt;br /&gt;Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â  filter=&amp;gt;$LDAP_FILTER,&lt;br /&gt;Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â  ) or die &amp;quot;Cannot connect&amp;quot;;&lt;br /&gt;Â Â Â Â  push(@ENTRIES,$mesg-&amp;gt;entries);&lt;br /&gt;Â  }&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;
$ldap-&amp;gt;unbind;&lt;/font&gt;&lt;font face=&quot;courier new,courier,monospace&quot;&gt;&lt;/font&gt;&lt;hr width=&quot;100%&quot; size=&quot;2&quot; /&gt;&lt;p&gt;&lt;font face=&quot;courier new,courier,monospace&quot;&gt;&lt;/font&gt;&lt;/p&gt;&lt;p&gt;And this runs within 3 hours!!! And it is flying! &lt;img src=&quot;http://blog.adslweb.net/serendipity/templates/default/img/emoticons/laugh.png&quot; alt=&quot;:-D&quot; style=&quot;display: inline; vertical-align: bottom;&quot; class=&quot;emoticon&quot; /&gt;&lt;/p&gt;&lt;p&gt;There can be done more performance tuning... but that will be another project!&lt;font face=&quot;courier new,courier,monospace&quot;&gt;&lt;/font&gt;&lt;/p&gt;&lt;p /&gt;&lt;p /&gt;&lt;p /&gt;&lt;p&gt;&lt;font face=&quot;courier new,courier,monospace&quot;&gt;&lt;/font&gt;&lt;/p&gt;&lt;p /&gt;&lt;p&gt;&lt;font face=&quot;courier new,courier,monospace&quot;&gt;&lt;/font&gt;&lt;/p&gt;&lt;p /&gt; 
    </content:encoded>

    <pubDate>Tue, 08 Jul 2008 14:32:51 +0200</pubDate>
    <guid isPermaLink="false">http://blog.adslweb.net/serendipity/article/248/guid</guid>
    <creativeCommons:license>http://creativecommons.org/licenses/by/3.0/</creativeCommons:license>
</item>
<item>
    <title>Free slave DNS server</title>
    <link>http://blog.adslweb.net/serendipity/article/246/Free-slave-DNS-server</link>
            <category>Linux/Unix/BSD</category>
            <category>Security</category>
            <category>System Op stuff</category>
            <category>Work</category>
    
    <comments>http://blog.adslweb.net/serendipity/article/246/Free-slave-DNS-server#comments</comments>
    <wfw:comment>http://blog.adslweb.net/serendipity/wfwcomment.php?cid=246</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://blog.adslweb.net/serendipity/rss.php?version=2.0&amp;type=comments&amp;cid=246</wfw:commentRss>
    

    <author>nospam@example.com (Pieter de Rijk)</author>
    <content:encoded>
    &lt;br /&gt;
&lt;p&gt;Currently I own and maintain some domains. For these domains you need a DNS-server to make a proper translation from hostname to ip-adress.&lt;/p&gt;&lt;p&gt;&lt;font face=&quot;courier new,courier,monospace&quot;&gt;blog.adslweb.net -&amp;gt; 80.126.215.23&lt;/font&gt;&lt;/p&gt;&lt;p&gt;But to keep redundancy it is smart to have some extra DNS-servers configured. So I setup a &#039;master&#039; DNS and a &#039;slave&#039; DNS, but both of them were connected to a server on a ADSL line... This might not be a big problem, but due to some problems recently, I preferred to have something somewhere else &lt;img src=&quot;http://blog.adslweb.net/serendipity/templates/default/img/emoticons/normal.png&quot; alt=&quot;:-|&quot; style=&quot;display: inline; vertical-align: bottom;&quot; class=&quot;emoticon&quot; /&gt;&lt;/p&gt;&lt;p&gt;After some Google-ing, I found &lt;a target=&quot;_blank&quot; href=&quot;http://www.twisted4life.com/index.php&quot;&gt;Twisted4Life&lt;/a&gt;, if you create an account, they provide you for free a &#039;slave&#039; DNS. &lt;img src=&quot;http://blog.adslweb.net/serendipity/templates/default/img/emoticons/laugh.png&quot; alt=&quot;:-D&quot; style=&quot;display: inline; vertical-align: bottom;&quot; class=&quot;emoticon&quot; /&gt;&lt;/p&gt;&lt;br /&gt;
 
    </content:encoded>

    <pubDate>Thu, 01 May 2008 20:54:54 +0200</pubDate>
    <guid isPermaLink="false">http://blog.adslweb.net/serendipity/article/246/guid</guid>
    <creativeCommons:license>http://creativecommons.org/licenses/by/3.0/</creativeCommons:license>
</item>
<item>
    <title>Calendar integration with Thunderbird</title>
    <link>http://blog.adslweb.net/serendipity/article/245/Calendar-integration-with-Thunderbird</link>
            <category>Linux/Unix/BSD</category>
            <category>Snow</category>
            <category>System Op stuff</category>
            <category>Work</category>
    
    <comments>http://blog.adslweb.net/serendipity/article/245/Calendar-integration-with-Thunderbird#comments</comments>
    <wfw:comment>http://blog.adslweb.net/serendipity/wfwcomment.php?cid=245</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://blog.adslweb.net/serendipity/rss.php?version=2.0&amp;type=comments&amp;cid=245</wfw:commentRss>
    

    <author>nospam@example.com (Pieter de Rijk)</author>
    <content:encoded>
    &lt;p&gt;&lt;i&gt;&lt;b&gt;&lt;font color=&quot;#ff0000&quot;&gt;NOTE: Some of the software is very experimental!!! I had some issues that my .ics was totally removed when I added a new &#039;task&#039; via lightning, please make a backup of your ics file!&lt;/font&gt;&lt;/b&gt;&lt;/i&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;
Some while ago I wrote a small article about &lt;a href=&quot;http://blog.adslweb.net/serendipity/article/226/WebDAV-and-Calendar-files&quot;&gt;WebDAV and Calendar files&lt;/a&gt;. Until so far no results on reading the files into my Nokia &lt;img src=&quot;http://blog.adslweb.net/serendipity/templates/default/img/emoticons/cry.png&quot; alt=&quot;:&#039;(&quot; style=&quot;display: inline; vertical-align: bottom;&quot; class=&quot;emoticon&quot; /&gt; , but... I found an extension for thunderbird to handle meeting-requests from Outlook clients &lt;img src=&quot;http://blog.adslweb.net/serendipity/templates/default/img/emoticons/laugh.png&quot; alt=&quot;:-D&quot; style=&quot;display: inline; vertical-align: bottom;&quot; class=&quot;emoticon&quot; /&gt;&lt;/p&gt;&lt;p align=&quot;baseline&quot;&gt;You can find information on the &lt;a target=&quot;_blank&quot; href=&quot;http://www.mozilla.org/projects/calendar/lightning/&quot;&gt;project website of &#039;lightning&#039;&lt;/a&gt;. To configure your webdav, you need to click on the calendar button&lt;/p&gt;&lt;p&gt;&lt;img src=&quot;http://www.xs4all.nl/~paderijk/pics/lightning-calendar.png&quot; /&gt;&lt;/p&gt;&lt;p align=&quot;baseline&quot;&gt;Click in the left pane with the right button en select &#039;New Calendar&#039;, now you can use the wizard to select your calendar.&lt;/p&gt;&lt;p&gt;&lt;img src=&quot;http://www.xs4all.nl/~paderijk/pics/lightning-new-cal.png&quot; /&gt;&lt;/p&gt;&lt;p /&gt;&lt;p align=&quot;baseline&quot;&gt;And now let the invitations come...&lt;/p&gt;&lt;p&gt;&lt;img src=&quot;http://www.xs4all.nl/~paderijk/pics/lightning-meeting.png&quot; /&gt;&lt;/p&gt;&lt;p /&gt;&lt;p&gt;&lt;br /&gt;
&lt;/p&gt; 
    </content:encoded>

    <pubDate>Wed, 23 Apr 2008 15:14:23 +0200</pubDate>
    <guid isPermaLink="false">http://blog.adslweb.net/serendipity/article/245/guid</guid>
    <creativeCommons:license>http://creativecommons.org/licenses/by/3.0/</creativeCommons:license>
</item>
<item>
    <title>Fedora directory server</title>
    <link>http://blog.adslweb.net/serendipity/article/244/Fedora-directory-server</link>
            <category>Forensics</category>
            <category>Linux/Unix/BSD</category>
            <category>System Op stuff</category>
            <category>Work</category>
    
    <comments>http://blog.adslweb.net/serendipity/article/244/Fedora-directory-server#comments</comments>
    <wfw:comment>http://blog.adslweb.net/serendipity/wfwcomment.php?cid=244</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://blog.adslweb.net/serendipity/rss.php?version=2.0&amp;type=comments&amp;cid=244</wfw:commentRss>
    

    <author>nospam@example.com (Pieter de Rijk)</author>
    <content:encoded>
    Yesterday evening I start playing with &lt;a href=&quot;http://directory.fedoraproject.org/&quot; target=&quot;_blank&quot;&gt;Fedora Directory Server&lt;/a&gt;&lt;p&gt;So first I setup Fedora Core 8 as a VMWare-instance... But after some playing around, I had the next message:&lt;/p&gt;&lt;p&gt;&lt;font face=&quot;courier new,courier,monospace&quot;&gt;&amp;quot;Server failed to start !!! Please check errors log for problems&amp;quot;&lt;/font&gt;&lt;/p&gt;&lt;p&gt;And guess what... no information at all in the logs &lt;img src=&quot;http://blog.adslweb.net/serendipity/templates/default/img/emoticons/sad.png&quot; alt=&quot;:-(&quot; style=&quot;display: inline; vertical-align: bottom;&quot; class=&quot;emoticon&quot; /&gt; So removed the packages and the next directories:&lt;/p&gt;&lt;p&gt;&lt;font face=&quot;courier new,courier,monospace&quot;&gt;/etc/dirsrv&lt;br /&gt;/etc/sysconfig/dirsrv&lt;br /&gt;/var/lock/dirsrv&lt;br /&gt;/var/lib/dirsrv&lt;br /&gt;&lt;/font&gt;&lt;/p&gt;&lt;p&gt;So no information... then strace will be your best friend &lt;img src=&quot;http://blog.adslweb.net/serendipity/templates/default/img/emoticons/laugh.png&quot; alt=&quot;:-D&quot; style=&quot;display: inline; vertical-align: bottom;&quot; class=&quot;emoticon&quot; /&gt;&lt;/p&gt;&lt;p&gt;So I started:&lt;/p&gt;&lt;p&gt;&lt;font face=&quot;courier new,courier,monospace&quot;&gt;[root@fedora-ds debug]#&lt;/font&gt;&lt;font face=&quot;courier new,courier,monospace&quot;&gt; strace -o ~/debug/setup -ff /usr/sbin/setup-ds.pl&lt;/font&gt;&lt;/p&gt;&lt;p&gt;And guess what... I had the error again... So I went to the ~/debug folder on another terminal and did:&lt;/p&gt;&lt;p&gt;&lt;font face=&quot;courier new,courier,monospace&quot;&gt;[root@fedora-ds debug]# grep &amp;quot;failed&amp;quot; *&lt;br /&gt;setup.31676:read(4, &amp;quot;Server failed to start !!! Pleas&amp;quot;..., 4096) = 64&lt;br /&gt;setup.31676:write(2, &amp;quot;Server failed to start !!! Pleas&amp;quot;..., 64) = 64&lt;br /&gt;setup.31711:write(1, &amp;quot;Server failed to start !!! Pleas&amp;quot;..., 64) = 64&lt;br /&gt;[root@fedora-ds debug]#&lt;/font&gt;&lt;/p&gt;&lt;p&gt;When I digged into setup.31711 I found:&lt;br /&gt;&lt;font face=&quot;courier new,courier,monospace&quot;&gt;read(255, &amp;quot;if test ! -f $STARTPIDFILE ; the&amp;quot;..., 2220) = 663&lt;br /&gt;rt_sigprocmask(SIG_BLOCK, NULL, [], 8)Â  = 0&lt;br /&gt;&lt;b&gt;stat64(&amp;quot;/var/run/dirsrv/slapd-fedora-ds.startpid&amp;quot;, 0xbfcd8eb8) = -1 ENOENT (No such file or directory)&lt;/b&gt;&lt;br /&gt;rt_sigprocmask(SIG_SETMASK, [], NULL, &lt;img src=&quot;http://blog.adslweb.net/serendipity/templates/default/img/emoticons/cool.png&quot; alt=&quot;8-)&quot; style=&quot;display: inline; vertical-align: bottom;&quot; class=&quot;emoticon&quot; /&gt; = 0&lt;br /&gt;fstat64(1, {st_mode=S_IFIFO|0600, st_size=0, ...}) = 0&lt;br /&gt;mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7f7c000&lt;br /&gt;write(1, &amp;quot;Server failed to start !!! Pleas&amp;quot;..., 64) = 64&lt;/font&gt;&lt;/p&gt;&lt;p&gt;So this is a nice clue... &lt;b&gt;&lt;font face=&quot;courier new,courier,monospace&quot;&gt;/var/run/dirsrv&lt;/font&gt;&lt;/b&gt;... and guess what... the owner of this directory was &lt;font face=&quot;courier new,courier,monospace&quot;&gt;fedora-ds&lt;/font&gt; (a user I set up initially for testing purposes for the Directory Server &lt;img src=&quot;http://blog.adslweb.net/serendipity/templates/default/img/emoticons/sad.png&quot; alt=&quot;:-(&quot; style=&quot;display: inline; vertical-align: bottom;&quot; class=&quot;emoticon&quot; /&gt; ) With the comment &lt;font face=&quot;courier new,courier,monospace&quot;&gt;chown&lt;/font&gt; I corrected the owner of this folder... and now &lt;b&gt;&lt;font face=&quot;courier new,courier,monospace&quot;&gt;service dirsrv start&lt;/font&gt;&lt;/b&gt; works &lt;img src=&quot;http://blog.adslweb.net/serendipity/templates/default/img/emoticons/tongue.png&quot; alt=&quot;:-P&quot; style=&quot;display: inline; vertical-align: bottom;&quot; class=&quot;emoticon&quot; /&gt;&lt;/p&gt;&lt;p&gt;Conclusion... strace is your best friend &lt;img src=&quot;http://blog.adslweb.net/serendipity/templates/default/img/emoticons/laugh.png&quot; alt=&quot;:-D&quot; style=&quot;display: inline; vertical-align: bottom;&quot; class=&quot;emoticon&quot; /&gt;&lt;/p&gt; 
    </content:encoded>

    <pubDate>Wed, 16 Apr 2008 11:34:43 +0200</pubDate>
    <guid isPermaLink="false">http://blog.adslweb.net/serendipity/article/244/guid</guid>
    <creativeCommons:license>http://creativecommons.org/licenses/by/3.0/</creativeCommons:license>
</item>
<item>
    <title>Did pass ITIL, LPIC201 and LPIC202</title>
    <link>http://blog.adslweb.net/serendipity/article/240/Did-pass-ITIL,-LPIC201-and-LPIC202</link>
            <category>Linux/Unix/BSD</category>
            <category>Snow</category>
            <category>System Op stuff</category>
            <category>Work</category>
    
    <comments>http://blog.adslweb.net/serendipity/article/240/Did-pass-ITIL,-LPIC201-and-LPIC202#comments</comments>
    <wfw:comment>http://blog.adslweb.net/serendipity/wfwcomment.php?cid=240</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://blog.adslweb.net/serendipity/rss.php?version=2.0&amp;type=comments&amp;cid=240</wfw:commentRss>
    

    <author>nospam@example.com (Pieter de Rijk)</author>
    <content:encoded>
    &lt;br /&gt;
As I wrote before, I did pass &lt;a href=&quot;http://blog.adslweb.net/serendipity/article/227/Passed-RHCE-Exam-with-100-points-of-the-100&quot;&gt;RHCE&lt;/a&gt;, &lt;a href=&quot;http://blog.adslweb.net/serendipity/article/217/Almost-RHCE...&quot;&gt;RHCT&lt;/a&gt; and &lt;a href=&quot;http://blog.adslweb.net/serendipity/article/223/Passed-LPIC-1-exam&quot;&gt;LPIC1&lt;/a&gt;. After a few weeks of study I also passed LPIC2 and ITIL &lt;img src=&quot;http://blog.adslweb.net/serendipity/templates/default/img/emoticons/tongue.png&quot; alt=&quot;:-P&quot; style=&quot;display: inline; vertical-align: bottom;&quot; class=&quot;emoticon&quot; /&gt;&lt;p&gt;The results for ITIL:&lt;/p&gt;&lt;hr width=&quot;100%&quot; size=&quot;2&quot; /&gt;&lt;p&gt;&lt;font face=&quot;courier new,courier,monospace&quot;&gt;Passing score: 65&lt;br /&gt;Your score...: 67&lt;br /&gt;Grade........: PASSED&lt;br /&gt;&lt;br /&gt;Section Title                                                                                Â Â Â  Â Â Â  Â Â Â  Â Â Â  Â Â Â  Â Â Â Â  Score&lt;br /&gt;--------------------------------------     -----&lt;br /&gt;General                                                                                                        Â Â Â  Â Â Â  Â Â Â  Â Â Â  Â Â Â  Â Â Â  Â Â Â  Â Â Â  66&lt;br /&gt;Service Desk                                                                                         Â Â Â  Â Â Â  Â Â Â  Â Â Â  Â Â Â  Â Â Â  Â Â  66&lt;br /&gt;Incident Management                                                                    Â Â Â  Â Â Â  Â Â Â  Â Â Â  Â Â Â  25&lt;br /&gt;Problem Management                                                                       Â Â Â  Â Â Â  Â Â Â  Â Â Â  Â Â Â Â  80&lt;br /&gt;Change Management                                                                          Â Â Â  Â Â Â  Â Â Â  Â Â Â  Â Â Â  Â  80&lt;br /&gt;Configuration Management                                                     Â Â Â  Â Â Â  Â Â Â  Â Â  75&lt;br /&gt;Release Management                                                                    Â Â Â  Â Â Â  Â Â Â  Â Â Â  Â Â Â  100&lt;br /&gt;Service Level Management                                                     Â Â Â  Â Â Â  Â Â Â  Â Â  66&lt;br /&gt;Availability Management                                                           Â Â Â  Â Â Â  Â Â Â  Â Â Â Â  0&lt;br /&gt;Capacity Management                                                                    Â Â Â  Â Â Â  Â Â Â  Â Â Â  Â Â Â  50&lt;br /&gt;IT Service Continuity Management                          Â Â Â Â Â  100&lt;br /&gt;Financial Management for IT Services              Â  100&lt;br /&gt;Other ITIL Topics                                                                       Â Â Â  Â Â Â  Â Â Â  Â Â Â  Â Â Â Â  100&lt;br /&gt;Relationships                                                                                      Â Â Â  Â Â Â  Â Â Â  Â Â Â  Â Â Â  Â Â Â  Â  50&lt;/font&gt;&lt;/p&gt;&lt;hr width=&quot;100%&quot; size=&quot;2&quot; /&gt;During the exam I start mixing up &#039;Availability management&#039;  and &#039;IT Service Continuity Management&#039;, which resulted into a score of 0 for Availability management &lt;img src=&quot;http://blog.adslweb.net/serendipity/templates/default/img/emoticons/normal.png&quot; alt=&quot;:-|&quot; style=&quot;display: inline; vertical-align: bottom;&quot; class=&quot;emoticon&quot; /&gt;&lt;p&gt;But I also passed LPIC 201 en LPIC 202.&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;a href=&quot;http://www.lpi.org/en/lpi/english/certification/the_lpic_program/exam_201_detailed_objectives&quot; target=&quot;_blank&quot;&gt;LPIC 201&lt;/a&gt; results:&lt;/p&gt;&lt;hr width=&quot;100%&quot; size=&quot;2&quot; /&gt;&lt;font face=&quot;courier new,courier,monospace&quot;&gt;Required score: 500&lt;/font&gt;&lt;br /&gt;&lt;font face=&quot;courier new,courier,monospace&quot;&gt;Your score....: 750&lt;br /&gt;Status........: PASS&lt;/font&gt;&lt;p&gt;&lt;font face=&quot;courier new,courier,monospace&quot;&gt;Section                                                             Â Â Â  Â Â Â  Â Â Â  Â Â Â  Â Â Â  Â Â Â  Â Â Â Â  Percent Correct&lt;br /&gt;------------------------------------    ---------------&lt;br /&gt;Linux Kernel                                                                      Â Â Â  Â Â Â  Â Â Â  Â Â Â  Â Â Â  Â Â Â  Â Â Â Â Â  90%&lt;br /&gt;System startup                                                                 Â Â Â  Â Â Â  Â Â Â  Â Â Â  Â Â Â  Â Â Â  Â Â Â  87%&lt;br /&gt;Filesystem                                                                       Â Â Â  Â Â Â  Â Â Â  Â Â Â  Â Â Â  Â Â Â  Â Â Â Â Â Â  100%&lt;br /&gt;Hardware                                                                              Â Â Â  Â Â Â  Â Â Â  Â Â Â  Â Â Â  Â Â Â  Â Â Â  Â Â Â Â Â  75%&lt;br /&gt;File and Service Sharing                                         Â Â Â  Â Â Â  Â Â Â  Â Â Â Â Â  87%&lt;br /&gt;System Maintenance                                                       Â Â Â  Â Â Â  Â Â Â  Â Â Â  Â Â Â  Â Â Â  83%&lt;br /&gt;System Customization &amp;amp; Automation                   Â Â Â  Â Â Â Â  66%&lt;br /&gt;Troubleshooting                          Â Â Â  Â Â Â  Â Â Â  Â Â Â  Â Â Â  Â Â Â  Â Â  50%&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font face=&quot;courier new,courier,monospace&quot;&gt;&lt;/font&gt;&lt;/p&gt;&lt;hr width=&quot;100%&quot; size=&quot;2&quot; /&gt;&lt;p&gt;&lt;a href=&quot;http://www.lpi.org/en/lpi/english/certification/the_lpic_program/exam_202_detailed_objectives&quot; target=&quot;_blank&quot;&gt;LPIC 202&lt;/a&gt; results:&lt;/p&gt;&lt;hr width=&quot;100%&quot; size=&quot;2&quot; /&gt;&lt;p&gt;&lt;font face=&quot;courier new,courier,monospace&quot;&gt;Required score: 500&lt;br /&gt;Your score....: 740&lt;br /&gt;Status........: PASS&lt;br /&gt;&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font face=&quot;courier new,courier,monospace&quot;&gt;Section                                Â Â Â  Â Â Â  Â Â Â  Â Â Â  Â Â Â  Â Â Â  Â Â Â Â  Percent Correct&lt;br /&gt;&lt;br /&gt;
------------------------------------    ---------------&lt;br /&gt;Networking configuration                                        Â Â Â  Â Â Â  Â Â Â  Â Â Â  85%&lt;br /&gt;Mail &amp;amp; News                                                                       Â Â Â  Â Â Â  Â Â Â  Â Â Â  Â Â Â  Â Â Â  Â Â Â Â  92%&lt;br /&gt;DNS                                                                                          Â Â Â  Â Â Â  Â Â Â  Â Â Â  Â Â Â  Â Â Â  Â Â Â  Â Â Â  Â Â Â Â  80%&lt;br /&gt;Web Services                                                                   Â Â Â  Â Â Â  Â Â Â  Â Â Â  Â Â Â  Â Â Â  Â Â  100%&lt;br /&gt;Network Client Management                                      Â Â Â  Â Â Â  Â Â Â  Â Â  66%&lt;br /&gt;System Security                                                              Â Â Â  Â Â Â  Â Â Â  Â Â Â  Â Â Â  Â Â Â Â  80%&lt;br /&gt;Network Troubleshooting                                         Â Â Â  Â Â Â  Â Â Â  Â Â Â  100%&lt;/font&gt;&lt;/p&gt;&lt;hr width=&quot;100%&quot; size=&quot;2&quot; /&gt;&lt;p&gt;&lt;font face=&quot;courier new,courier,monospace&quot;&gt;&lt;/font&gt;&lt;/p&gt;&lt;br /&gt;&lt;p /&gt;&lt;p /&gt;&lt;p&gt;&lt;font face=&quot;courier new,courier,monospace&quot;&gt;&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;
&lt;/p&gt; 
    </content:encoded>

    <pubDate>Fri, 21 Mar 2008 14:17:31 +0100</pubDate>
    <guid isPermaLink="false">http://blog.adslweb.net/serendipity/article/240/guid</guid>
    <creativeCommons:license>http://creativecommons.org/licenses/by/3.0/</creativeCommons:license>
</item>
<item>
    <title>Maintain config-files using subversion</title>
    <link>http://blog.adslweb.net/serendipity/article/237/Maintain-config-files-using-subversion</link>
            <category>Linux/Unix/BSD</category>
            <category>Snow</category>
            <category>System Op stuff</category>
            <category>Work</category>
    
    <comments>http://blog.adslweb.net/serendipity/article/237/Maintain-config-files-using-subversion#comments</comments>
    <wfw:comment>http://blog.adslweb.net/serendipity/wfwcomment.php?cid=237</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://blog.adslweb.net/serendipity/rss.php?version=2.0&amp;type=comments&amp;cid=237</wfw:commentRss>
    

    <author>nospam@example.com (Pieter de Rijk)</author>
    <content:encoded>
    &lt;br /&gt;
&lt;p&gt;Every sysop might recognize this... I changed a config file some while ago...  but what did I change and what is the history of that file. Besides of the changes, I want to have them in a backup &lt;img src=&quot;http://blog.adslweb.net/serendipity/templates/default/img/emoticons/smile.png&quot; alt=&quot;:-)&quot; style=&quot;display: inline; vertical-align: bottom;&quot; class=&quot;emoticon&quot; /&gt;&lt;/p&gt;&lt;p&gt;So I decided to setup a config-file repository, where the servers can commit automaticly their changes using SVN over SSH. I use SSH to have no password prompts but certificates. Only the user &lt;b&gt;&lt;font face=&quot;courier new,courier,monospace&quot;&gt;svn-backup&lt;/font&gt;&lt;/b&gt; can commit files to the repository. On both server I only checked out the repository-part concerning them.&lt;/p&gt;&lt;p&gt;&lt;font face=&quot;courier new,courier,monospace&quot;&gt;[root@tank] svn co \&lt;br /&gt;svn+ssh://svn-backup@svnserver.example.com/repos/config-files/tank \&lt;br /&gt;/usr/data/svn-config&lt;/font&gt;&lt;/p&gt;&lt;p&gt;And in the crontab for the user root, we have the next entry:&lt;/p&gt;&lt;p&gt;&lt;font face=&quot;courier new,courier,monospace&quot;&gt;&lt;/font&gt;&lt;/p&gt;&lt;pre&gt;&lt;font face=&quot;courier new,courier,monospace&quot;&gt;45 &amp;#42; &amp;#42; &amp;#42; &amp;#42;/usr/local/backup/svn-backup.sh&lt;/font&gt;&lt;/pre&gt;&lt;p&gt;And in the svn-backup script we have the next lines:&lt;/p&gt;&lt;hr width=&quot;100%&quot; size=&quot;2&quot; /&gt;&lt;p&gt;&lt;font face=&quot;courier new,courier,monospace&quot;&gt;&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font face=&quot;courier new,courier,monospace&quot;&gt;&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font face=&quot;courier new,courier,monospace&quot;&gt;#!/bin/bash&lt;br /&gt;#&lt;br /&gt;# Subversion script to backup configfiles&lt;br /&gt;#&lt;br /&gt;# Written by Pieter de Rijk &amp;lt;pieter -at- de-rijk.com&amp;gt;&lt;br /&gt;&lt;br /&gt;SVN_BACKUP_PATH=&amp;quot;/usr/local/svn-backup&amp;quot;&lt;br /&gt;&lt;br /&gt;cp -R /usr/local/etc/&lt;strong&gt; $SVN_BACKUP_PATH/usr/local/etc/ &amp;gt; /dev/null 2&amp;gt; /dev/null&lt;br /&gt;cp -R /etc/&lt;/strong&gt; $SVN_BACKUP_PATH/etc/ &amp;gt; /dev/null 2&amp;gt; /dev/null&lt;br /&gt;rm -rf $SVN_BACKUP_PATH/usr/local/etc/squid/errors&lt;br /&gt;rm -rf $SVN_BACKUP_PATH/usr/local/etc/squid/icons/*.jpg&lt;br /&gt;rm -rf $SVN_BACKUP_PATH/usr/local/etc/squid/icons/*.gif&lt;br /&gt;cd $SVN_BACKUP_PATH \&lt;br /&gt;  /usr/local/bin/svn up &amp;gt; /dev/null 2&amp;gt; /dev/null&lt;br /&gt;for files in &amp;quot;`/usr/local/bin/svn status $SVN_BACKUP_PATH | grep ^\?`&amp;quot;;&lt;br /&gt;do&lt;br /&gt;Â Â         ADD_FILE=`echo $files | awk &#039;{ print $2 }&#039;`&lt;br /&gt;Â Â         if [ ! -z $ADD_FILE ];&lt;br /&gt;Â Â         then&lt;br /&gt;Â Â Â Â                 /usr/local/bin/svn add $ADD_FILE&lt;br /&gt;Â Â         fi&lt;br /&gt;done&lt;br /&gt;/usr/local/bin/svn commit -m &amp;quot;[`hostname -s`] Config changes `date`&amp;quot;&lt;/font&gt;&lt;/p&gt;&lt;hr width=&quot;100%&quot; size=&quot;2&quot; /&gt;&lt;p&gt;And when something change I receive a message &lt;img src=&quot;http://blog.adslweb.net/serendipity/templates/default/img/emoticons/tongue.png&quot; alt=&quot;:-P&quot; style=&quot;display: inline; vertical-align: bottom;&quot; class=&quot;emoticon&quot; /&gt;&lt;/p&gt;&lt;p&gt;Only users in the wheel group can checkout the repositories, but are not allowed to commit &lt;img src=&quot;http://blog.adslweb.net/serendipity/templates/default/img/emoticons/laugh.png&quot; alt=&quot;:-D&quot; style=&quot;display: inline; vertical-align: bottom;&quot; class=&quot;emoticon&quot; /&gt;&lt;/p&gt;&lt;p /&gt;&lt;p&gt;&lt;br /&gt;
&lt;/p&gt; 
    </content:encoded>

    <pubDate>Thu, 07 Feb 2008 19:53:45 +0100</pubDate>
    <guid isPermaLink="false">http://blog.adslweb.net/serendipity/article/237/guid</guid>
    <creativeCommons:license>http://creativecommons.org/licenses/by/3.0/</creativeCommons:license>
</item>
<item>
    <title>make -j 32 bzImage</title>
    <link>http://blog.adslweb.net/serendipity/article/234/make-j-32-bzImage</link>
            <category>Linux/Unix/BSD</category>
            <category>Snow</category>
            <category>System Op stuff</category>
            <category>Work</category>
    
    <comments>http://blog.adslweb.net/serendipity/article/234/make-j-32-bzImage#comments</comments>
    <wfw:comment>http://blog.adslweb.net/serendipity/wfwcomment.php?cid=234</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://blog.adslweb.net/serendipity/rss.php?version=2.0&amp;type=comments&amp;cid=234</wfw:commentRss>
    

    <author>nospam@example.com (Pieter de Rijk)</author>
    <content:encoded>
    &lt;br /&gt;
&lt;p&gt;As I wrote before some vendor promissed me a 16-core machine.... and indeed we received it. Now I have my &#039;toy&#039; placed in the basement. Besides of some trouble putting a modified version of RHEL 4.5 on it, it works fine. At this moment I&#039;ve installed RHEL 4.6 and it works fine. &lt;img src=&quot;http://blog.adslweb.net/serendipity/templates/default/img/emoticons/laugh.png&quot; alt=&quot;:-D&quot; style=&quot;display: inline; vertical-align: bottom;&quot; class=&quot;emoticon&quot; /&gt;&lt;/p&gt;&lt;p&gt;But to test the 16-cores I decide to compile a brand new kernel:&lt;/p&gt;&lt;p&gt;&lt;b&gt;&lt;font face=&quot;courier new,courier,monospace&quot;&gt;[root@cool-system]$  mkdir -p /tmp/kernel-test; cd /tmp/kernel-test/&lt;/font&gt;&lt;/b&gt;&lt;font face=&quot;courier new,courier,monospace&quot;&gt;&lt;br /&gt;&lt;b&gt;[root@cool-system]$  &lt;/b&gt;&lt;/font&gt;&lt;b&gt;&lt;font face=&quot;courier new,courier,monospace&quot;&gt;tar -xjvf ~/downloads/linux-2.6.24.tar.bz2&lt;/font&gt;&lt;/b&gt;&lt;font face=&quot;courier new,courier,monospace&quot;&gt;&lt;br /&gt;&lt;b&gt;[root@cool-system]$ &lt;/b&gt;&lt;/font&gt;&lt;b&gt;&lt;font face=&quot;courier new,courier,monospace&quot;&gt; cd linux-2.6.24&lt;/font&gt;&lt;/b&gt;&lt;font face=&quot;courier new,courier,monospace&quot;&gt;&lt;br /&gt;&lt;b&gt;[root@cool-system]$ &lt;/b&gt;&lt;/font&gt;&lt;b&gt;&lt;font face=&quot;courier new,courier,monospace&quot;&gt; make mrproper&lt;/font&gt;&lt;/b&gt;&lt;font face=&quot;courier new,courier,monospace&quot;&gt;&lt;br /&gt;&lt;b&gt;[root@cool-system]$ &lt;/b&gt;&lt;/font&gt;&lt;b&gt;&lt;font face=&quot;courier new,courier,monospace&quot;&gt; cp /boot/config-2.6.9-67.ELlargesmp ./.config&lt;/font&gt;&lt;/b&gt;&lt;font face=&quot;courier new,courier,monospace&quot;&gt;&lt;br /&gt;&lt;b&gt;[root@cool-system]$ &lt;/b&gt;&lt;/font&gt;&lt;font face=&quot;courier new,courier,monospace&quot;&gt; &lt;b&gt;echo y | make oldconfig&lt;/b&gt;&lt;br /&gt;  HOSTCC  scripts/basic/fixdep&lt;br /&gt;  HOSTCC  scripts/basic/docproc&lt;br /&gt;  HOSTCC  scripts/kconfig/conf.o&lt;br /&gt;&lt;i&gt;[..snip..]&lt;/i&gt;&lt;br /&gt;#&lt;br /&gt;# configuration written to .config&lt;br /&gt;#&lt;/font&gt;&lt;font face=&quot;courier new,courier,monospace&quot;&gt;&lt;br /&gt;&lt;b&gt;[root@cool-system]$ &lt;/b&gt;&lt;/font&gt;&lt;font face=&quot;courier new,courier,monospace&quot;&gt; &lt;b&gt;time make -j 32 bzImage&lt;/b&gt;&lt;br /&gt;scripts/kconfig/conf -s arch/x86/Kconfig&lt;br /&gt;  CHK     include/linux/version.h&lt;br /&gt;  UPD     include/linux/version.h&lt;br /&gt;&lt;i&gt;[..snip..]&lt;/i&gt;&lt;br /&gt;Setup is 11352 bytes (padded to 11776 bytes).&lt;br /&gt;System is 1835 kB&lt;br /&gt;Kernel: arch/x86/boot/bzImage is ready  (#1)&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font face=&quot;courier new,courier,monospace&quot;&gt;&lt;br /&gt;real    0m40.887s&lt;br /&gt;user    5m15.688s&lt;br /&gt;sys     2m1.029s&lt;/font&gt;&lt;font face=&quot;courier new,courier,monospace&quot;&gt;&lt;br /&gt;&lt;b&gt;[root@cool-system]$ _&lt;/b&gt;&lt;/font&gt;&lt;/p&gt;&lt;p align=&quot;baseline&quot;&gt;During the compile, all the 16-cores are working hard &lt;img src=&quot;http://blog.adslweb.net/serendipity/templates/default/img/emoticons/wink.png&quot; alt=&quot;;-)&quot; style=&quot;display: inline; vertical-align: bottom;&quot; class=&quot;emoticon&quot; /&gt;&lt;/p&gt;&lt;p align=&quot;center&quot;&gt;&lt;a href=&quot;http://www.xs4all.nl/~paderijk/pics/server-load.gif&quot;&gt;&lt;img src=&quot;http://www.xs4all.nl/~paderijk/pics/server-load-small.gif&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p /&gt; 
    </content:encoded>

    <pubDate>Wed, 30 Jan 2008 19:20:13 +0100</pubDate>
    <guid isPermaLink="false">http://blog.adslweb.net/serendipity/article/234/guid</guid>
    <creativeCommons:license>http://creativecommons.org/licenses/by/3.0/</creativeCommons:license>
</item>
<item>
    <title>Impact of SSH-tunnels on HTTP-traffic</title>
    <link>http://blog.adslweb.net/serendipity/article/233/Impact-of-SSH-tunnels-on-HTTP-traffic</link>
            <category>Linux/Unix/BSD</category>
            <category>Snow</category>
            <category>System Op stuff</category>
            <category>Work</category>
    
    <comments>http://blog.adslweb.net/serendipity/article/233/Impact-of-SSH-tunnels-on-HTTP-traffic#comments</comments>
    <wfw:comment>http://blog.adslweb.net/serendipity/wfwcomment.php?cid=233</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://blog.adslweb.net/serendipity/rss.php?version=2.0&amp;type=comments&amp;cid=233</wfw:commentRss>
    

    <author>nospam@example.com (Pieter de Rijk)</author>
    <content:encoded>
    &lt;br /&gt;
&lt;p&gt;For a project at work, I did some benchmark tests of the impact of SSH-tunnels on HTTP-traffic. And as we should suspect is true, on this test the traffic slows down with a factor 6. &lt;img src=&quot;http://blog.adslweb.net/serendipity/templates/default/img/emoticons/normal.png&quot; alt=&quot;:-|&quot; style=&quot;display: inline; vertical-align: bottom;&quot; class=&quot;emoticon&quot; /&gt; I did this, because some off-shore company out of India came up with some bad results from a benchmark, but they used SSH-tunnels.&lt;/p&gt;&lt;p&gt;So time for some testing... I did 6 types of tests using &lt;a href=&quot;http://httpd.apache.org/docs/2.0/programs/ab.html&quot; target=&quot;_blank&quot;&gt;ApacheBench&lt;/a&gt;:&lt;/p&gt;&lt;ol&gt;&lt;li&gt;10.000 requests with 200 concurrent connections without HTTP-keepalive via direct request to&lt;br /&gt;port 80 on the server&lt;/li&gt;&lt;li&gt;10.000 requests with 200 concurrent connections with HTTP-keepalive via direct request to&lt;br /&gt;port 80 on the server&lt;/li&gt;&lt;li&gt;10.000 requests with 200 concurrent connections without HTTP-keepalive via SSH-tunnel to&lt;br /&gt;port 80 on the server&lt;/li&gt;&lt;li&gt;10.000 requests with 200 concurrent connections with HTTP-keepalive via SSH-tunnel to port&lt;br /&gt;80 on the server&lt;/li&gt;&lt;li&gt;10.000 requests with 200 concurrent connections without HTTP-keepalive via SSH-tunnel with&lt;br /&gt;compression to port 80 on the server&lt;/li&gt;&lt;li&gt;10.000 requests with 200 concurrent connections with HTTP-keepalive via SSH-tunnel with&lt;br /&gt;compression to port 80 on the server&lt;/li&gt;&lt;br /&gt;
&lt;p&gt;For details check the &lt;a href=&quot;http://www.xs4all.nl/~paderijk/pics/benchmarking-ssh-http.pdf&quot; target=&quot;_blank&quot;&gt;report&lt;/a&gt;.&lt;/p&gt;&lt;br /&gt;
&lt;pre face=&quot;courier new,courier,monospace&quot; size=&quot;2&quot;&gt;Phase Short Descr                         # Request/sec  Avg tim per request &lt;br /&gt;===== =================================== ============== ===================&lt;br /&gt;
   01 Direct                                     6323.94            0.158 ms&lt;br /&gt;   02 Direct + Keepalive                         6319.27            0.158 ms&lt;br /&gt;   03 SSH                                        1047.83            0.954 ms&lt;br /&gt;   04 SSH + Keepalive                            1138.74            0.878 ms&lt;br /&gt;   05 SSH + Compression                           824.09            1.213 ms&lt;br /&gt;   06 SSH + Compression + Keepalive              1012.70            0.987 ms&lt;br /&gt;===== =================================== ============== ===================&lt;/pre&gt;&lt;br /&gt;
&lt;p /&gt;&lt;/ol&gt; 
    </content:encoded>

    <pubDate>Tue, 29 Jan 2008 21:37:16 +0100</pubDate>
    <guid isPermaLink="false">http://blog.adslweb.net/serendipity/article/233/guid</guid>
    <creativeCommons:license>http://creativecommons.org/licenses/by/3.0/</creativeCommons:license>
</item>

</channel>
</rss>