<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss 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/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0"><channel><title>Tomasz Korwel</title> <link>http://tomasz.korwel.net</link> <description>programmer, administrator, engineer - my everyday fights with reality</description> <lastBuildDate>Tue, 18 Oct 2011 14:19:34 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.2</generator> <atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/TomaszKorwel" /><feedburner:info uri="tomaszkorwel" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><item><title>Find and replace within multiple files</title><link>http://feedproxy.google.com/~r/TomaszKorwel/~3/7epSOaWXRc0/</link> <comments>http://tomasz.korwel.net/2011/10/18/find-and-replace-within-multiple-files/#comments</comments> <pubDate>Tue, 18 Oct 2011 14:15:41 +0000</pubDate> <dc:creator>tomasz</dc:creator> <category><![CDATA[tips & tricks vault]]></category> <category><![CDATA[find]]></category> <category><![CDATA[replace]]></category> <category>remember</category> <category>xargs</category> <category>explanatory</category> <category>pattern</category> <category>reference</category> <category>stick</category> <category>find</category> <category>future</category> <guid isPermaLink="false">http://tomasz.korwel.net/?p=327</guid> <description><![CDATA[I can&#8217;t remember how many times I needed this line recently. I also could never remember it (hm&#8230; do you see a pattern here?). So here it is for future reference: find . -name "*.php" -print &#124; xargs sed -i '.backup' 's/foo/bar/g' It&#8217;s pretty much self explanatory. If I could only make it stick in [...]]]></description> <content:encoded><![CDATA[<p>I can&#8217;t remember how many times I needed this line recently. I also could never remember it (hm&#8230; do you see a pattern here?). So here it is for future reference:</p><p><code>find . -name "*.php" -print | xargs sed -i '.backup' 's/foo/bar/g'</code></p><p>It&#8217;s pretty much self explanatory. If I could only make it stick in my brain.</p> 
<p><a href="http://feedads.g.doubleclick.net/~a/GY-AxK6xVM444jJdY7v_uvcm-no/0/da"><img src="http://feedads.g.doubleclick.net/~a/GY-AxK6xVM444jJdY7v_uvcm-no/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/GY-AxK6xVM444jJdY7v_uvcm-no/1/da"><img src="http://feedads.g.doubleclick.net/~a/GY-AxK6xVM444jJdY7v_uvcm-no/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/TomaszKorwel/~4/7epSOaWXRc0" height="1" width="1"/>]]></content:encoded> <wfw:commentRss>http://tomasz.korwel.net/2011/10/18/find-and-replace-within-multiple-files/feed/</wfw:commentRss> <slash:comments>0</slash:comments> <feedburner:origLink>http://tomasz.korwel.net/2011/10/18/find-and-replace-within-multiple-files/</feedburner:origLink></item> <item><title>Mediacom, are you kidding?</title><link>http://feedproxy.google.com/~r/TomaszKorwel/~3/icTRNhIRcVY/</link> <comments>http://tomasz.korwel.net/2011/07/21/mediacom-are-you-kidding/#comments</comments> <pubDate>Thu, 21 Jul 2011 21:15:37 +0000</pubDate> <dc:creator>tomasz</dc:creator> <category><![CDATA[Customer satisfaction]]></category> <category><![CDATA[customer]]></category> <category><![CDATA[mediacomm]]></category> <category><![CDATA[unbelievable]]></category> <category><![CDATA[unsatisfied]]></category> <category>technician</category> <category>mediacom</category> <category>mediacom</category> <category>troubleshooting</category> <category>schedule</category> <category>kidding</category> <category>appointment</category> <category>number</category> <guid isPermaLink="false">http://tomasz.korwel.net/?p=323</guid> <description><![CDATA[I&#8217;ve got internet from Mediacom. Nothing fancy just basic service, but I use it for work and I rely on it every day. Today the connection just died. Technical problems happen so I called support number. And here was first surprise of the day. They have an automated system that guides you through some troubleshooting [...]]]></description> <content:encoded><![CDATA[<p>I&#8217;ve got internet from Mediacom. Nothing fancy just basic service, but I use it for work and I rely on it every day. Today the connection just died. Technical problems happen so I called  support number.</p><p>And here was first surprise of the day. They have an automated system that guides you through some troubleshooting steps and is apparently even able to do some magic on their part to reset the line. As I was readying myself to write something nice about Mediacom&#8217;s system the helpful (!) computer decided that he can&#8217;t help me but will transfer gathered information to live technician so we can continue troubleshooting. Fine.</p><p>With the exception that technician started asking me exactly the same questions I&#8217;ve already spent 10 minutes answering to the machine. Helooouuu! Second strike. After five minutes of back and forth battle about why the technician needs my private information (like neck size, grandma&#8217;s weight, ssn number and email) to record repair request the time as come to schedule an appointment as apparently there was something with my modem and I needed a home visit.</p><p>As a side note I was relatively calm until that moment. But when he said that the first available time to schedule the appointment is August 2nd I simply lost it. 12 days without internet? When I needed to start the service they have found available technician within 24h, but it takes 12 days to diagnose and fix my line?</p><p>You&#8217;ve got to be kidding.</p> 
<p><a href="http://feedads.g.doubleclick.net/~a/fqCgDZhS5Mra5OAWymMP1M8P9N4/0/da"><img src="http://feedads.g.doubleclick.net/~a/fqCgDZhS5Mra5OAWymMP1M8P9N4/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/fqCgDZhS5Mra5OAWymMP1M8P9N4/1/da"><img src="http://feedads.g.doubleclick.net/~a/fqCgDZhS5Mra5OAWymMP1M8P9N4/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/TomaszKorwel/~4/icTRNhIRcVY" height="1" width="1"/>]]></content:encoded> <wfw:commentRss>http://tomasz.korwel.net/2011/07/21/mediacom-are-you-kidding/feed/</wfw:commentRss> <slash:comments>0</slash:comments> <feedburner:origLink>http://tomasz.korwel.net/2011/07/21/mediacom-are-you-kidding/</feedburner:origLink></item> <item><title>Ubuntu NAS vs. OS X Lion 10.7</title><link>http://feedproxy.google.com/~r/TomaszKorwel/~3/bloSUOAguOE/</link> <comments>http://tomasz.korwel.net/2011/07/21/ubuntu-nas-vs-os-x-lion-10-7/#comments</comments> <pubDate>Thu, 21 Jul 2011 14:08:52 +0000</pubDate> <dc:creator>tomasz</dc:creator> <category><![CDATA[Home brew NAS]]></category> <category><![CDATA[tips & tricks vault]]></category> <category><![CDATA[10.7]]></category> <category><![CDATA[Lion]]></category> <category><![CDATA[nas]]></category> <category><![CDATA[netatalk]]></category> <category><![CDATA[Os X]]></category> <category><![CDATA[time machine]]></category> <category>dpkg</category> <category>launchpadlibrarian</category> <category>1_amd64</category> <category>beta4</category> <category>netatalk</category> <category>wget</category> <category>lion</category> <category>libgpg</category> <guid isPermaLink="false">http://tomasz.korwel.net/?p=320</guid> <description><![CDATA[Today when I woke up my MacBook greeted me with very unpleasant alert: The network backup disk does not support the required AFP features. It turnes out that during the upgrade to Lion Apple used their newest set of commands that were not compatible with stable netatalk package in Ubuntu. To get my network storage [...]]]></description> <content:encoded><![CDATA[<p>Today when I woke up my MacBook greeted me with very unpleasant alert:</p><p><em>The network backup disk does not support the required AFP features.</em></p><p>It turnes out that during the upgrade to Lion Apple used their newest set of commands that were not compatible with stable netatalk package in Ubuntu.<br
/> To get my network storage to work again I had to upgrade to the latest netatalk 2.2.beta4.</p><p>First download all needed files from Ubuntu&#8217;s repositories<br
/> <code><br
/> wget http://launchpadlibrarian.net/73070555/netatalk_2.2~beta4-1_amd64.deb<br
/> wget http://launchpadlibrarian.net/74978789/libgcrypt11_1.5.0-1_amd64.deb<br
/> wget http://launchpadlibrarian.net/75629511/multiarch-support_2.13-9ubuntu3_amd64.deb<br
/> wget http://launchpadlibrarian.net/72120162/libgpg-error0_1.10-0.3ubuntu1_amd64.deb<br
/> wget http://launchpadlibrarian.net/74358655/libdb5.1_5.1.25-11_amd64.deb<br
/> </code></p><p>Then install it:</p><p><code><br
/> dpkg -i multiarch-support_2.13-9ubuntu3_amd64.deb<br
/> dpkg -i libgpg-error0_1.10-0.3ubuntu1_amd64.deb<br
/> dpkg -i libgcrypt11_1.5.0-1_amd64.deb<br
/> dpkg -i libdb5.1_5.1.25-11_amd64.deb<br
/> dpkg -i netatalk_2.2~beta4-1_amd64.deb<br
/> </code></p><p>I&#8217;ve chosen to keep old version of configuration files, the only notable difference was that now afpd.conf lists  -tcp -noddp options as defaults. I added them to my list. Quick restart of netatalk daemon and voila &#8211; Time Machine works again.</p> 
<p><a href="http://feedads.g.doubleclick.net/~a/HgPEII9Sho2pZDHTHyLppxetpIM/0/da"><img src="http://feedads.g.doubleclick.net/~a/HgPEII9Sho2pZDHTHyLppxetpIM/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/HgPEII9Sho2pZDHTHyLppxetpIM/1/da"><img src="http://feedads.g.doubleclick.net/~a/HgPEII9Sho2pZDHTHyLppxetpIM/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/TomaszKorwel/~4/bloSUOAguOE" height="1" width="1"/>]]></content:encoded> <wfw:commentRss>http://tomasz.korwel.net/2011/07/21/ubuntu-nas-vs-os-x-lion-10-7/feed/</wfw:commentRss> <slash:comments>3</slash:comments> <feedburner:origLink>http://tomasz.korwel.net/2011/07/21/ubuntu-nas-vs-os-x-lion-10-7/</feedburner:origLink></item> <item><title>Incremental daily backup with little space penalty – Time Machine on linux</title><link>http://feedproxy.google.com/~r/TomaszKorwel/~3/cZa5mT-042g/</link> <comments>http://tomasz.korwel.net/2011/05/17/incremental-daily-backup-with-little-space-penalty-time-machine-on-linux/#comments</comments> <pubDate>Tue, 17 May 2011 23:00:52 +0000</pubDate> <dc:creator>tomasz</dc:creator> <category><![CDATA[Home brew NAS]]></category> <category><![CDATA[tips & tricks vault]]></category> <category><![CDATA[backup]]></category> <category><![CDATA[cron]]></category> <category><![CDATA[linux]]></category> <category><![CDATA[nas]]></category> <category><![CDATA[rsync]]></category> <category><![CDATA[server]]></category> <category><![CDATA[time machine]]></category> <category>mysql</category> <category>directory</category> <category>backup</category> <category>rsync</category> <category>current</category> <category>current</category> <category>script</category> <category>dbname</category> <category>mysql</category> <category>directory</category> <category>backup</category> <category>rsync</category> <category>current</category> <category>current</category> <category>script</category> <category>dbname</category> <guid isPermaLink="false">http://tomasz.korwel.net/?p=315</guid> <description><![CDATA[I am a fan of Apple&#8217;s Time Machine backup system since it&#8217;s introduction. And I&#8217;ve always wanted to implement something similar on my server. Since I have that nice spacious NAS disk right now space stopped to be a problem (at least for a little while). Little googling shows that rsync has a special option [...]]]></description> <content:encoded><![CDATA[<p>I am a fan of Apple&#8217;s Time Machine backup system since it&#8217;s introduction. And I&#8217;ve always wanted to implement something similar on my server. Since I have that nice spacious NAS disk right now space stopped to be a problem (at least for a little while). Little googling shows that rsync has a special option allowing me to implement Time Machine&#8217;s method of incremental backups using rsync. In that method rsync uses existing backup as additional source for comparing files and if file did not change since last backup has been done a hard link is being created to this file instead of copying. This way I should end up with daily directories of files but only new/changed files will be eating up disk space.</p><p>Let&#8217;s give it a try. My backup script looks like this:</p><blockquote><p>#!/bin/bash<br
/> date=`date &#8220;+%Y-%m-%d&#8221;`</p><p>#Mysql dump<br
/> for i in /var/lib/mysql/*/; do<br
/> dbname=`basename $i`<br
/> /usr/bin/mysqldump -u root -pyourpasshere  $dbname | gzip -c > /home/mysql/$dbname-$date.sql.gz<br
/> done</p><p>#Rsync<br
/> rsync -arpvogDtSWz \<br
/> -e &#8220;ssh &#8221; \<br
/> &#8211;delete \<br
/> &#8211;link-dest=../mysql-current \<br
/> ./mysql/ \<br
/> root@nas:/path/to/backups/mysql-$date</p><p>#Moving links up one day<br
/> ssh root@nas \<br
/> &#8220;cd /path/to/backups/ &#038;&#038; rm -f mysql-current &#038;&#038; ln -s mysql-$date mysql-current&#8221;</p></blockquote><p>The script dumps all dbs to a directory on hard drive, then rsyncs this directory with dated folder on a nas server using mysql-current (which is a symlink to latest daily backup) as additional sorce of files (&#8211;link-dest parameter).</p><p>I&#8217;ve run the script and then checked out the results:</p><blockquote><p>root@nas# du -sh mysql-*<br
/> 92M     mysql-2011-05-16<br
/> 19M     mysql-2011-05-17<br
/> 512     mysql-current</p></blockquote><p>Looks like indeed the disk usage of the newer directory reflects only today&#8217;s copies of dbs. To confirm that hard links work as they should I deleted one file in the oldest directory. And now:</p><blockquote><p>root@nas# du -sh mysql-*<br
/> 86M     mysql-2011-05-16<br
/> 25M     mysql-2011-05-17<br
/> 512     mysql-current</p></blockquote><p>the older directory size dropped but the newer directory size went up as the same file was hard linked there too and now that directory represents the only physical copy of the file on disk.</p><p>That&#8217;s exactly what I wanted to achieve.<br
/> Now to fully implement Time Machine mechanisms I need to make a script that will calculate the amount of free space needed on backup drive and delete the oldest backups accordingly until there is enough space available (as you see above simply deleting one file may not free up any hard drive space) to mve on with the transfer.</p> 
<p><a href="http://feedads.g.doubleclick.net/~a/ysr-OhFO2zqelHq60_8Dc7MY7l0/0/da"><img src="http://feedads.g.doubleclick.net/~a/ysr-OhFO2zqelHq60_8Dc7MY7l0/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/ysr-OhFO2zqelHq60_8Dc7MY7l0/1/da"><img src="http://feedads.g.doubleclick.net/~a/ysr-OhFO2zqelHq60_8Dc7MY7l0/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/TomaszKorwel/~4/cZa5mT-042g" height="1" width="1"/>]]></content:encoded> <wfw:commentRss>http://tomasz.korwel.net/2011/05/17/incremental-daily-backup-with-little-space-penalty-time-machine-on-linux/feed/</wfw:commentRss> <slash:comments>0</slash:comments> <feedburner:origLink>http://tomasz.korwel.net/2011/05/17/incremental-daily-backup-with-little-space-penalty-time-machine-on-linux/</feedburner:origLink></item> <item><title>ubuntu’s librxtx with java-6-sun</title><link>http://feedproxy.google.com/~r/TomaszKorwel/~3/CmRISLLuS2E/</link> <comments>http://tomasz.korwel.net/2011/03/29/ubuntus-librxtx-with-java-6-sun/#comments</comments> <pubDate>Tue, 29 Mar 2011 16:02:16 +0000</pubDate> <dc:creator>tomasz</dc:creator> <category><![CDATA[HVAC Zoning]]></category> <category><![CDATA[tips & tricks vault]]></category> <category><![CDATA[debian]]></category> <category><![CDATA[java]]></category> <category><![CDATA[rxtx]]></category> <category><![CDATA[sun]]></category> <category><![CDATA[Ubuntu]]></category> <category>java</category> <category>rxtx</category> <category>librxtx</category> <category>libraries</category> <category>debian</category> <category>libs</category> <category>adhere</category> <category>placing</category> <guid isPermaLink="false">http://tomasz.korwel.net/?p=313</guid> <description><![CDATA[If you want to use SUN&#8217;s java version with rxtx on any debian derivative system you&#8217;d be surprised to discover that jre can&#8217;t find rxtx libraries if you installed them using librxtx-java package. It&#8217;s because SUN does not adhere to debian naming and placing policies and looks for libraries in wrong place. Quick fix: cd [...]]]></description> <content:encoded><![CDATA[<p>If you want to use SUN&#8217;s java version with rxtx on any debian derivative system you&#8217;d be surprised to discover that jre can&#8217;t find rxtx libraries if you installed them using librxtx-java package. It&#8217;s because SUN does not adhere to debian naming and placing policies and looks for libraries in wrong place. Quick fix:</p><blockquote><p>cd /usr/lib/jvm/java-6-sun/jre/lib/<br
/> cp /usr/share/java/RXTXcomm.jar ./<br
/> cd i386<br
/> cp /usr/lib/jni/lib* ./</p></blockquote><p>That will make those libs available to SUN&#8217;s java and everything should work from now on.</p> 
<p><a href="http://feedads.g.doubleclick.net/~a/ve_eLT4o9w3eo9s7VkB2xOHcR8E/0/da"><img src="http://feedads.g.doubleclick.net/~a/ve_eLT4o9w3eo9s7VkB2xOHcR8E/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/ve_eLT4o9w3eo9s7VkB2xOHcR8E/1/da"><img src="http://feedads.g.doubleclick.net/~a/ve_eLT4o9w3eo9s7VkB2xOHcR8E/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/TomaszKorwel/~4/CmRISLLuS2E" height="1" width="1"/>]]></content:encoded> <wfw:commentRss>http://tomasz.korwel.net/2011/03/29/ubuntus-librxtx-with-java-6-sun/feed/</wfw:commentRss> <slash:comments>1</slash:comments> <feedburner:origLink>http://tomasz.korwel.net/2011/03/29/ubuntus-librxtx-with-java-6-sun/</feedburner:origLink></item> <item><title>Adding xbee library to local maven repo</title><link>http://feedproxy.google.com/~r/TomaszKorwel/~3/FZUX1DtrFow/</link> <comments>http://tomasz.korwel.net/2011/03/27/adding-xbee-library-to-local-maven-repo/#comments</comments> <pubDate>Sun, 27 Mar 2011 15:08:04 +0000</pubDate> <dc:creator>tomasz</dc:creator> <category><![CDATA[Home Improvements]]></category> <category><![CDATA[HVAC Zoning]]></category> <category><![CDATA[diy-zoning]]></category> <category><![CDATA[maven]]></category> <category><![CDATA[software installation]]></category> <category><![CDATA[xbee]]></category> <category>xbee</category> <category>unzip</category> <category>install</category> <category>dversion</category> <category>rapplogic</category> <category>dfile</category> <category>dpackaging</category> <category>googlecode</category> <guid isPermaLink="false">http://tomasz.korwel.net/?p=310</guid> <description><![CDATA[1. Download and unzip api: wget http://xbee-api.googlecode.com/files/xbee-api-0.5.5.zip unzip xbee-api-0.5.5.zip 2. Install mvn install:install-file \ -DgroupId=com.rapplogic \ -DartifactId=xbee-api \ -Dversion=0.5.5 \ -Dfile=xbee-api-0.5.5.jar \ -Dpackaging=jar \ -DgeneratePom=true]]></description> <content:encoded><![CDATA[<p>1. Download and unzip api:</p><blockquote><p>wget http://xbee-api.googlecode.com/files/xbee-api-0.5.5.zip<br
/> unzip xbee-api-0.5.5.zip</p></blockquote><p>2. Install</p><blockquote><p>mvn install:install-file \<br
/> -DgroupId=com.rapplogic \<br
/> -DartifactId=xbee-api \<br
/> -Dversion=0.5.5 \<br
/> -Dfile=xbee-api-0.5.5.jar \<br
/> -Dpackaging=jar \<br
/> -DgeneratePom=true</p></blockquote> 
<p><a href="http://feedads.g.doubleclick.net/~a/BVn89SMJRaEuhNm3G73UvOTKF68/0/da"><img src="http://feedads.g.doubleclick.net/~a/BVn89SMJRaEuhNm3G73UvOTKF68/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/BVn89SMJRaEuhNm3G73UvOTKF68/1/da"><img src="http://feedads.g.doubleclick.net/~a/BVn89SMJRaEuhNm3G73UvOTKF68/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/TomaszKorwel/~4/FZUX1DtrFow" height="1" width="1"/>]]></content:encoded> <wfw:commentRss>http://tomasz.korwel.net/2011/03/27/adding-xbee-library-to-local-maven-repo/feed/</wfw:commentRss> <slash:comments>0</slash:comments> <feedburner:origLink>http://tomasz.korwel.net/2011/03/27/adding-xbee-library-to-local-maven-repo/</feedburner:origLink></item> <item><title>Home brew NAS: RocketRaid 622 on Ubuntu</title><link>http://feedproxy.google.com/~r/TomaszKorwel/~3/R6Vr4W7oMp4/</link> <comments>http://tomasz.korwel.net/2011/02/20/home-brew-data-storage-hardware-setup/#comments</comments> <pubDate>Sun, 20 Feb 2011 18:03:30 +0000</pubDate> <dc:creator>tomasz</dc:creator> <category><![CDATA[Home brew NAS]]></category> <category><![CDATA[Home Improvements]]></category> <category><![CDATA[Work]]></category> <category><![CDATA[dell]]></category> <category><![CDATA[home brew data server]]></category> <category><![CDATA[tower raid]]></category> <category><![CDATA[Ubuntu]]></category> <category>rr62x</category> <category>dkms</category> <category>linuxla</category> <category>rr62xla</category> <category>sudo</category> <category>reset</category> <category>100421</category> <category>1320</category> <category>rr62x</category> <category>dkms</category> <category>linuxla</category> <category>rr62xla</category> <category>sudo</category> <category>reset</category> <category>100421</category> <category>1320</category> <guid isPermaLink="false">http://tomasz.korwel.net/?p=286</guid> <description><![CDATA[All parts are here, time to do some work. My main goal was small initial cost as well as small footprint if at all possible. I got myself old Dell GX280 desktop with P4 2.8 GHz processor and 1 GB RAM. It has &#8220;relatively&#8221; new technology onboard including one PCI Express port in which I [...]]]></description> <content:encoded><![CDATA[<p>All parts are here, time to do some work.</p><p>My main goal was small initial cost as well as small footprint if at all possible. I got myself old Dell GX280 desktop with P4 2.8 GHz processor and 1 GB RAM. It has &#8220;relatively&#8221; new technology onboard including one PCI Express port in which I was able to insert controller card.</p><p>The enclosure itself is highly apprised all aver the Internet <a
href="http://www.amazon.com/gp/product/B001LF40N6?ie=UTF8&#038;tag=korwelphotog-20&#038;linkCode=as2&#038;camp=1789&#038;creative=390957&#038;creativeASIN=B001LF40N6">Sans Digital Tower Raid</a> that can house up to 5 drives. As you can see both are rather small and do not take too much space on/under my desk:</p><p><a
href="http://tomasz.korwel.net/wp-content/uploads/2011/02/hds-1.jpg"><img
src="http://tomasz.korwel.net/wp-content/uploads/2011/02/hds-1-764x1024.jpg" alt="" title="hds-1" width="600" class="aligncenter size-large wp-image-288" /></a></p><p>Now onto the setup.</p><p>As my server is supposed to serve multiple purposes, including driving my hvac system, I quickly dropped the idea of using one of dedicated NAS distributions (FreeNAS namely) and decided to stay with old mighty Ubuntu 10.04LTS. The installation went smooth and within minutes I had the server running.</p><p>But there was nowhere to find my drive inserted into external enclosure. It turns out that the controller provided by Sans Digital is built on HighPoint Technologies&#8217; 622 chip which itself is not supported by Linux Kernel. Thankfully Sans Digital provides source codes for drivers in both RAID and passthrough versions. I&#8217;ve chosen the passthrough version as I plan to skip hardware raid provided by the enclosure and use zfs.</p><p>First some additional software needed to be installed:</p><blockquote><p>sudo apt-get install dkms</p></blockquote><p>Then we&#8217;ll get some sources:</p><blockquote><p>wget http://dl.sansdigital.com/images/downloads/TR8M-BP_TR8MP/Non_RAID_Driver_Linux-SourceCode-v1.0-100421-1320.tar.zip<br
/> unzip Non_RAID_Driver_Linux-SourceCode-v1.0-100421-1320.tar.zip<br
/> tar -xzf rr62x-linuxla-src-v1.0-100421-1320.tar.gz<br
/> cd rr62x-linuxla-src-v1.0/</p></blockquote><p>We are going to use dkms so dkms.conf file needs to be created:</p><blockquote><p>vi dkms.conf</p><p>MAKE=&#8221;make -C product/rr62x/linuxla/&#8221;<br
/> CLEAN=&#8221;make -C product/rr62x/linuxla/ clean&#8221;<br
/> BUILT_MODULE_NAME=rr62x<br
/> DEST_MODULE_LOCATION=/kernel/drivers/scsi/<br
/> BUILT_MODULE_LOCATION=product/rr62x/linuxla/<br
/> PACKAGE_NAME=rr62xla<br
/> PACKAGE_VERSION=1.O<br
/> AUTOINSTALL=yes<br
/> REMAKE_INITRD=yes</p></blockquote><p>Now the source neds to be moved into /usr/src folder:</p><blockquote><p>sudo cp -R . /usr/src/rr62xla-1.0</p></blockquote><p>And some dkms magic applied:</p><blockquote><p>sudo dkms add -m rr62xla -v 1.0<br
/> sudo dkms build -m rr62xla -v 1.0<br
/> sudo dkms install -m rr62xla -v 1.0</p></blockquote><p>Mere seconds later I was able to load the module:</p><blockquote><p>modprobe rr62x</p></blockquote><p>and see this in syslog:</p><blockquote><p>[  260.187351] rr62x: module license &#8216;Proprietary&#8217; taints kernel.<br
/> [  260.187357] Disabling lock debugging due to kernel taint<br
/> [  260.190622] rr62x:RocketRAID 62x SATA controller driver Non-RAID v1.0 (Feb 20 2011 11:26:43)<br
/> [  260.190678] pci 0000:01:00.0: PCI INT A -> GSI 16 (level, low) -> IRQ 16<br
/> [  260.190689] pci 0000:01:00.0: setting latency timer to 64<br
/> [  260.190727] rr62x:adapter at PCI 1:0:0, IRQ 16<br
/> [  260.196263] rr62x:[0 0  ] start port.<br
/> [  260.196263] rr62x:[0 0  ] start port hard reset (probe 1).<br
/> [  260.196263] rr62x:[0 1  ] start port.<br
/> [  260.196263] rr62x:[0 1  ] start port hard reset (probe 1).<br
/> [  263.808262] rr62x:[0 1  ] start port soft reset (probe 1).<br
/> [  264.456614] rr62x:[0 1  ] pmp attached: vendor 1095 device 3726.<br
/> [  268.104271] rr62x:[0 0  ] failed to hard reset.<br
/> [  268.104286] rr62x:[0 0  ] failed to perform port hard reset.<br
/> [  269.709009] rr62x:[0 1 4] start device soft reset.<br
/> [  270.360323] rr62x:[0 1  ] port started successfully.<br
/> [  270.360323] rr62x:[0 1 4] device probed successfully.<br
/> [  270.396411] scsi4 : rr62x<br
/> [  270.399912] scsi 4:0:9:0: Direct-Access     ATA      SAMSUNG HD103SI  1AG0 PQ: 0 ANSI: 5<br
/> [  270.401625] sd 4:0:9:0: Attached scsi generic sg2 type 0<br
/> [  270.402425] sd 4:0:9:0: [sdb] 1953525168 512-byte logical blocks: (1.00 TB/931 GiB)<br
/> [  270.402513] sd 4:0:9:0: [sdb] Write Protect is off<br
/> [  270.402520] sd 4:0:9:0: [sdb] Mode Sense: 2f 00 00 00<br
/> [  270.402565] sd 4:0:9:0: [sdb] Write cache: disabled, read cache: enabled, doesn&#8217;t support DPO or FUA<br
/> [  270.402907]  sdb: sdb1<br
/> [  270.419594] sd 4:0:9:0: [sdb] Attached SCSI disk</p></blockquote><p>So far so good. All pieces of hardware accounted for and work well.</p><p>Now we just have to make sure it will load the module at boot time:</p><blockquote><p>sudo echo rr62x >> /etc/initramfs-tools/modules<br
/> sudo update-initramfs -u</p></blockquote><p>And we are set for now.</p><p>Referrals:<br
/> 1. <a
href="https://help.ubuntu.com/community/RocketRaid">Ubuntu forums</a>.</p> 
<p><a href="http://feedads.g.doubleclick.net/~a/pWeUHY5CCMc4tG6vTouqcvtCbm0/0/da"><img src="http://feedads.g.doubleclick.net/~a/pWeUHY5CCMc4tG6vTouqcvtCbm0/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/pWeUHY5CCMc4tG6vTouqcvtCbm0/1/da"><img src="http://feedads.g.doubleclick.net/~a/pWeUHY5CCMc4tG6vTouqcvtCbm0/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/TomaszKorwel/~4/R6Vr4W7oMp4" height="1" width="1"/>]]></content:encoded> <wfw:commentRss>http://tomasz.korwel.net/2011/02/20/home-brew-data-storage-hardware-setup/feed/</wfw:commentRss> <slash:comments>1</slash:comments> <feedburner:origLink>http://tomasz.korwel.net/2011/02/20/home-brew-data-storage-hardware-setup/</feedburner:origLink></item> <item><title>Two years in service</title><link>http://feedproxy.google.com/~r/TomaszKorwel/~3/7HDFHKh-i4I/</link> <comments>http://tomasz.korwel.net/2011/02/14/two-years-in-service/#comments</comments> <pubDate>Mon, 14 Feb 2011 19:59:24 +0000</pubDate> <dc:creator>tomasz</dc:creator> <category><![CDATA[Customer satisfaction]]></category> <category><![CDATA[Home Improvements]]></category> <category><![CDATA[Life]]></category> <category><![CDATA[battery]]></category> <category><![CDATA[roomba]]></category> <category>full</category> <category>cycles</category> <category>discharging</category> <category>charging</category> <category>died</category> <category>deep</category> <category>battery</category> <category>replacement</category> <guid isPermaLink="false">http://tomasz.korwel.net/?p=281</guid> <description><![CDATA[Day in and day out. Finally our Roomba&#8217;s battery died. Not bad I would say considering that it&#8217;s almost 700 full charging and deep discharging cycles. Time for a replacement.]]></description> <content:encoded><![CDATA[<p><a
href="http://www.amazon.com/gp/product/B002WKM11C?ie=UTF8&amp;tag=korwelphotog-20&amp;linkCode=as2&amp;camp=1789&amp;creative=390957&amp;creativeASIN=B002WKM11C"><img
src="http://tomasz.korwel.net/wp-content/uploads/2011/02/roombabattery.jpg" alt="" title="roombabattery" width="300" height="300" class="aligncenter size-full wp-image-282" /></a></p><p>Day in and day out. Finally our Roomba&#8217;s battery died. Not bad I would say considering that it&#8217;s almost 700 full charging and deep discharging cycles. Time for a <a
href="http://www.amazon.com/gp/product/B002WKM11C?ie=UTF8&#038;tag=korwelphotog-20&#038;linkCode=as2&#038;camp=1789&#038;creative=390957&#038;creativeASIN=B002WKM11C">replacement</a>.</p> 
<p><a href="http://feedads.g.doubleclick.net/~a/hjltc1MMHENUc6GCBKIuTYWiJA8/0/da"><img src="http://feedads.g.doubleclick.net/~a/hjltc1MMHENUc6GCBKIuTYWiJA8/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/hjltc1MMHENUc6GCBKIuTYWiJA8/1/da"><img src="http://feedads.g.doubleclick.net/~a/hjltc1MMHENUc6GCBKIuTYWiJA8/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/TomaszKorwel/~4/7HDFHKh-i4I" height="1" width="1"/>]]></content:encoded> <wfw:commentRss>http://tomasz.korwel.net/2011/02/14/two-years-in-service/feed/</wfw:commentRss> <slash:comments>0</slash:comments> <feedburner:origLink>http://tomasz.korwel.net/2011/02/14/two-years-in-service/</feedburner:origLink></item> <item><title>Home brew NAS: ideas</title><link>http://feedproxy.google.com/~r/TomaszKorwel/~3/r540ucxOQx4/</link> <comments>http://tomasz.korwel.net/2011/02/12/homebrew-storage-server/#comments</comments> <pubDate>Sat, 12 Feb 2011 22:58:39 +0000</pubDate> <dc:creator>tomasz</dc:creator> <category><![CDATA[Home brew NAS]]></category> <category><![CDATA[Home Improvements]]></category> <category><![CDATA[tips & tricks vault]]></category> <category><![CDATA[freenas]]></category> <category><![CDATA[hard drive]]></category> <category><![CDATA[home brew data server]]></category> <category><![CDATA[linux]]></category> <category><![CDATA[nas]]></category> <category><![CDATA[storage]]></category> <category><![CDATA[zfs]]></category> <category>drobo</category> <category>drives</category> <category>solution</category> <category>browsing</category> <category>providing</category> <category>space</category> <category>enclosure</category> <category>cost</category> <category>drobo</category> <category>drives</category> <category>solution</category> <category>browsing</category> <category>providing</category> <category>space</category> <category>enclosure</category> <category>cost</category> <guid isPermaLink="false">http://tomasz.korwel.net/?p=279</guid> <description><![CDATA[Recently our collection of storage hard drives started to look a little bit too big. Yet we had several drives with a lot of free space fragmented between them but neither of them has enough free space itself to make you me comfortable. Trying to do something with it I decided to start looking for [...]]]></description> <content:encoded><![CDATA[<p>Recently our collection of storage hard drives started to look a little bit too big. Yet we had several drives with a lot of free space fragmented between them but neither of them has enough free space itself to make you me comfortable. Trying to do something with it I decided to start looking for a solution that would allow me to aggregate those drives and their space providing me with one big logical partition. Oh, and having some kind of security would be nice too.</p><p>Browsing the internet I have found nice solution called <a
href="http://www.amazon.com/gp/product/B003GZ828I?ie=UTF8&#038;tag=korwelphotog-20&#038;linkCode=as2&#038;camp=1789&#038;creative=390957&#038;creativeASIN=B003GZ828I">Drobo</a>. That&#8217;s exactly what I want to have. Nice, compact solution providing scalable space at the same time protecting data in RAID like manner. There is only one problem with Drobo (and it&#8217;s not the price). Drobo uses proprietary software and from several cases described over the internet it seems like when it goes bad, it goes really bad really quick, usually loosing most of the info stored. And then the only chance you have is to send the box with all drives to the company itself and pray they can restore something for you. That effectively deletes this device from my list.</p><p>But browsing further I stumbled upon ZFS. This seems to be &#8216;the best file system and last you&#8217;ll ever need&#8217;. It provides ability to create software RAID systems which are supposed to be secure and fast. So home brewing my own NFS server seems to be the best option. Even more appealing as I&#8217;ll be able to use the same machine to run our HVAC system.</p><p>First step was to get all needed hardware.</p><ol><li> Server. As I do not need performance at any cost I&#8217;ve decided to use old Dell GX280 machine lying around and gathering dust. It has 1GB of RAM and P4 2.8GHz processor which should be plenty enough for my needs. Cost: $0</li><li> Hard drive enclosure. I got myself <a
href="http://www.amazon.com/gp/product/B001LF40N6?ie=UTF8&#038;tag=korwelphotog-20&#038;linkCode=as2&#038;camp=1789&#038;creative=390957&#038;creativeASIN=B001LF40N6">Sans Data Tower Raid</a> enclosure with port replicator that is able to host 5 drives and connects to server via one eSATA cable. Cost $173</li><li> Hard drives. I dissected external <a
href="http://www.amazon.com/gp/product/B0040B4DZI?ie=UTF8&#038;tag=korwelphotog-20&#038;linkCode=as2&#038;camp=1789&#038;creative=390957&#038;creativeASIN=B0040B4DZI">1TB Iomega USB drive</a> which turned out to house Samsung&#8217;s  HD103SI drive. Not a speed hog but for now will suffice. Cost $0</li></ol><p>So far total spent: $173. Not bad I would say.</p> 
<p><a href="http://feedads.g.doubleclick.net/~a/35BlWPlJwxlopNHsm228tV0ao20/0/da"><img src="http://feedads.g.doubleclick.net/~a/35BlWPlJwxlopNHsm228tV0ao20/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/35BlWPlJwxlopNHsm228tV0ao20/1/da"><img src="http://feedads.g.doubleclick.net/~a/35BlWPlJwxlopNHsm228tV0ao20/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/TomaszKorwel/~4/r540ucxOQx4" height="1" width="1"/>]]></content:encoded> <wfw:commentRss>http://tomasz.korwel.net/2011/02/12/homebrew-storage-server/feed/</wfw:commentRss> <slash:comments>0</slash:comments> <feedburner:origLink>http://tomasz.korwel.net/2011/02/12/homebrew-storage-server/</feedburner:origLink></item> <item><title>VMWare missing /dev/vmmon?</title><link>http://feedproxy.google.com/~r/TomaszKorwel/~3/Sr96_1OcinY/</link> <comments>http://tomasz.korwel.net/2011/02/09/vmware-missing-devvmmon/#comments</comments> <pubDate>Wed, 09 Feb 2011 14:21:50 +0000</pubDate> <dc:creator>tomasz</dc:creator> <category><![CDATA[tips & tricks vault]]></category> <category><![CDATA[Work]]></category> <category>fusion</category> <category>vmware</category> <category>start</category> <category>links</category> <category>vmmon</category> <category>daemons</category> <category>find</category> <category>boot</category> <category>fusion</category> <category>vmware</category> <category>start</category> <category>links</category> <category>vmmon</category> <category>daemons</category> <category>find</category> <category>boot</category> <guid isPermaLink="false">http://tomasz.korwel.net/?p=273</guid> <description><![CDATA[From time to time my VMWare Fusion refuses to start saying that it can&#8217;t find /dev/vmmon device. Which shouldn&#8217;t be a surprise considering that pursuing every last bit of battery time I have turned off every possible daemon I could find that I do not use frequently (I use Fusion maybe once a month). One [...]]]></description> <content:encoded><![CDATA[<p>From time to time my <a
href="http://www.amazon.com/gp/product/B002Q72JB8?ie=UTF8&#038;tag=korwelphotog-20&#038;linkCode=as2&#038;camp=1789&#038;creative=390957&#038;creativeASIN=B002Q72JB8">VMWare Fusion</a> refuses to start saying that it can&#8217;t find /dev/vmmon device. Which shouldn&#8217;t be a surprise considering that pursuing every last bit of battery time I have turned off every possible daemon I could find that I do not use frequently (I use Fusion maybe once a month). One could argue that Fusion should be able to start it&#8217;s own daemons automatically when it&#8217;s opened but apparently guys at VMWare did not get that far yet.</p><p>Bottom line &#8211; to start up all the daemons you need to run Fusion simply run this command from the terminal:</p><blockquote><p>sudo &#8216;/Library/Application Support/VMware Fusion/boot.sh&#8217; &#8211;start</p></blockquote><p><em>Disclaimer &#8211; some of the links in this post are affiliate links.</em></p> 
<p><a href="http://feedads.g.doubleclick.net/~a/cCPUfaXX_GEmPQkBTDUWbeNzMkI/0/da"><img src="http://feedads.g.doubleclick.net/~a/cCPUfaXX_GEmPQkBTDUWbeNzMkI/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/cCPUfaXX_GEmPQkBTDUWbeNzMkI/1/da"><img src="http://feedads.g.doubleclick.net/~a/cCPUfaXX_GEmPQkBTDUWbeNzMkI/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/TomaszKorwel/~4/Sr96_1OcinY" height="1" width="1"/>]]></content:encoded> <wfw:commentRss>http://tomasz.korwel.net/2011/02/09/vmware-missing-devvmmon/feed/</wfw:commentRss> <slash:comments>0</slash:comments> <feedburner:origLink>http://tomasz.korwel.net/2011/02/09/vmware-missing-devvmmon/</feedburner:origLink></item> </channel> </rss><!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using apc
Page Caching using apc

Served from: tomasz.korwel.net @ 2012-05-08 07:03:59 -->

