<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Linux | LogikDevelopment</title>
	<atom:link href="https://www.logikdev.com/category/linux/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.logikdev.com</link>
	<description>&#34;Il n&#039;y a pas de problème, il n&#039;y a que des solutions. L&#039;esprit de l&#039;homme invente ensuite le problème.&#34; André Gide</description>
	<lastBuildDate>Tue, 25 Apr 2017 13:57:14 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.1.4</generator>
	<item>
		<title>Corrupted pool because of a smaller disk</title>
		<link>https://www.logikdev.com/2014/03/20/corrupted-pool-because-of-a-smaller-disk/</link>
					<comments>https://www.logikdev.com/2014/03/20/corrupted-pool-because-of-a-smaller-disk/#respond</comments>
		
		<dc:creator><![CDATA[smoreau]]></dc:creator>
		<pubDate>Thu, 20 Mar 2014 17:55:50 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[OpenSolaris]]></category>
		<category><![CDATA[partition table]]></category>
		<category><![CDATA[virtual storage pool]]></category>
		<category><![CDATA[zpool]]></category>
		<guid isPermaLink="false">https://www.logikdev.com/?p=2010</guid>

					<description><![CDATA[<p>A few days ago, I replaced one of the four hard drives of my server using the now abandoned operating system OpenSolaris (cf. Replace disk on OpenSolaris). But after a forced reboot (due to a power failure), the raid pool called &#8216;dpool&#8217; was corrupted: smoreau@GGW-Server:~# zpool import pool: dpool id: 4586630987298426393 state: UNAVAIL action: The [&#8230;]</p>
<p>The post <a href="https://www.logikdev.com/2014/03/20/corrupted-pool-because-of-a-smaller-disk/">Corrupted pool because of a smaller disk</a> first appeared on <a href="https://www.logikdev.com">LogikDevelopment</a>.</p>]]></description>
										<content:encoded><![CDATA[<p>A few days ago, I replaced one of the four hard drives of my server using the now abandoned operating system <a href="http://en.wikipedia.org/wiki/OpenSolaris" target="_blank">OpenSolaris</a> (cf. <a href="https://www.logikdev.com/2014/03/13/replace-disk-on-opensolaris/" title="Replace disk on OpenSolaris">Replace disk on OpenSolaris</a>).<br />
But after a forced reboot (due to a power failure), the raid pool called &#8216;dpool&#8217; was corrupted:</p>
<pre>
smoreau@GGW-Server:~# zpool import
  pool: dpool
    id: 4586630987298426393
 state: UNAVAIL
action: The pool cannot be imported due to damaged devices or data.
config:

        dpool         UNAVAIL  insufficient replicas
          raidz1      UNAVAIL  corrupted data
            c3t1d0s4  ONLINE
            c3t2d0s4  ONLINE
            c3t3d0s4  ONLINE
            c3t4d0s4  ONLINE
</pre>
<p>After some research on the internet, I found the following link:<br />
<a href="http://permalink.gmane.org/gmane.os.solaris.opensolaris.zfs/30260" target="_blank">http://permalink.gmane.org/gmane.os.solaris.opensolaris.zfs/30260</a><br />
This discussion is talking about a similar problem linked to a replaced disk which was a bit smaller than the other ones.</p>
<p>As I replaced the faulty drive by a new drive from a different manufacturer, it is more than likely that I was experiencing the same issue. And I was right! <img src="https://s.w.org/images/core/emoji/17.0.2/72x72/1f609.png" alt="😉" class="wp-smiley" style="height: 1em; max-height: 1em;" /></p>
<p>This is the actions I took to fix the issue:</p>
<ol>
<li>
Remove the device previously added (<code>c3t3d0s0</code>) from the mirror pool called &#8216;rpool&#8217;:</p>
<pre>
smoreau@GGW-Server:~# zpool status
  pool: rpool
 state: ONLINE
 scrub: none requested
config:

        NAME          STATE     READ WRITE CKSUM
        rpool         ONLINE       0     0     0
          mirror      ONLINE       0     0     0
            c3t1d0s0  ONLINE       0     0     0
            c3t2d0s0  ONLINE       0     0     0
        spares
          c3t4d0s0    AVAIL   
          c3t3d0s0    AVAIL   

errors: No known data errors
smoreau@GGW-Server:~# zpool remove rpool c3t3d0s0
smoreau@GGW-Server:~# zpool status
  pool: rpool
 state: ONLINE
 scrub: none requested
config:

        NAME          STATE     READ WRITE CKSUM
        rpool         ONLINE       0     0     0
          mirror      ONLINE       0     0     0
            c3t1d0s0  ONLINE       0     0     0
            c3t2d0s0  ONLINE       0     0     0
        spares
          c3t4d0s0    AVAIL   

errors: No known data errors
</pre>
</li>
<li>
Unconfigure the faulty disk (cf. <a href="http://docs.oracle.com/cd/E23824_01/html/821-1459/devconfig2-25.html" target="_blank">SATA Hot-Plugging With the cfgadm Command</a>):</p>
<pre>
smoreau@GGW-Server:~# cfgadm -c unconfigure sata4/3
Unconfigure the device at: /devices/pci@0,0/pci108e,5351@1f,2:3
This operation will suspend activity on the SATA device
Continue (yes/no)? yes
</pre>
</li>
<li>
Take down the raid pool &#8216;dpool&#8217; using the command <code>zpool export dpool</code>
</li>
<li>
Repartition the disk to have the exact same number of cylinders using <code>format -e c3t3d0s4</code>.</p>
<pre>
partition> p
Current partition table (original):
Total disk cylinders available: 30397 + 2 (reserved cylinders)

Part      Tag    Flag     Cylinders         Size            Blocks
  0       root    wm       1 -  4288       32.85GB    (4288/0/0)   68886720
  1 unassigned    wm       0                0         (0/0/0)             0
  2     backup    wu       0 - 30396      232.85GB    (30397/0/0) 488327805
  3 unassigned    wm       0                0         (0/0/0)             0
  4 unassigned    wm    4289 - 30395      199.99GB    (26107/0/0) 419408955
  5 unassigned    wm       0                0         (0/0/0)             0
  6 unassigned    wm       0                0         (0/0/0)             0
  7 unassigned    wm       0                0         (0/0/0)             0
  8       boot    wu       0 -     0        7.84MB    (1/0/0)         16065
  9 unassigned    wm       0                0         (0/0/0)             0
</pre>
</li>
<li>
Reimport the raid pool &#8216;dpool&#8217; using the command <code>zpool import dpool</code>.
</li>
</ol>
<p>That&#8217;s it! <img src="https://s.w.org/images/core/emoji/17.0.2/72x72/1f642.png" alt="🙂" class="wp-smiley" style="height: 1em; max-height: 1em;" /> From that point, I tried to reboot the server multiple time and the pool is still working fine.</p>
<p>Moreover, if you are in a hurry to put back the websites and everything else running on this machine, it is possible to get the pool running in degraded mode using the command <code>zpool import dpool</code> from the step 3:</p>
<pre>
smoreau@GGW-Server:~# zpool import dpool
smoreau@GGW-Server:~# zpool status
  pool: dpool
 state: DEGRADED
status: One or more devices could not be opened.  Sufficient replicas exist for
        the pool to continue functioning in a degraded state.
action: Attach the missing device and online it using 'zpool online'.
   see: http://www.sun.com/msg/ZFS-8000-2Q
 scrub: none requested
config:

        NAME                     STATE     READ WRITE CKSUM
        dpool                    DEGRADED     0     0     0
          raidz1                 DEGRADED     0     0     0
            c3t1d0s4             ONLINE       0     0     0
            c3t2d0s4             ONLINE       0     0     0
            6884975300114722316  UNAVAIL      0   739     0  was /dev/dsk/c3t3d0s4
            c3t4d0s4             ONLINE       0     0     0

errors: No known data errors

  pool: rpool
 state: ONLINE
 scrub: none requested
config:

        NAME          STATE     READ WRITE CKSUM
        rpool         ONLINE       0     0     0
          mirror      ONLINE       0     0     0
            c3t1d0s0  ONLINE       0     0     0
            c3t2d0s0  ONLINE       0     0     0
        spares
          c3t4d0s0    AVAIL   

errors: No known data errors
</pre><p>The post <a href="https://www.logikdev.com/2014/03/20/corrupted-pool-because-of-a-smaller-disk/">Corrupted pool because of a smaller disk</a> first appeared on <a href="https://www.logikdev.com">LogikDevelopment</a>.</p>]]></content:encoded>
					
					<wfw:commentRss>https://www.logikdev.com/2014/03/20/corrupted-pool-because-of-a-smaller-disk/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Replace disk on OpenSolaris</title>
		<link>https://www.logikdev.com/2014/03/13/replace-disk-on-opensolaris/</link>
					<comments>https://www.logikdev.com/2014/03/13/replace-disk-on-opensolaris/#respond</comments>
		
		<dc:creator><![CDATA[smoreau]]></dc:creator>
		<pubDate>Thu, 13 Mar 2014 14:56:03 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[OpenSolaris]]></category>
		<category><![CDATA[partition table]]></category>
		<category><![CDATA[Software RAID]]></category>
		<category><![CDATA[Sun]]></category>
		<category><![CDATA[virtual storage pool]]></category>
		<category><![CDATA[ZFS]]></category>
		<category><![CDATA[zpool]]></category>
		<guid isPermaLink="false">https://www.logikdev.com/?p=1997</guid>

					<description><![CDATA[<p>I&#8217;ve bought six years ago, in April 2008, a Sun Ultra 20 M2 Workstation, Dual-Core 2.6 GHz AMD Opteron Processor &#8211; Model 1218. The server contains four hard drives of 250Go and I installed the now abandoned operating system OpenSolaris. On top of that, I used software RAID and virtual storage pools offered by ZFS. [&#8230;]</p>
<p>The post <a href="https://www.logikdev.com/2014/03/13/replace-disk-on-opensolaris/">Replace disk on OpenSolaris</a> first appeared on <a href="https://www.logikdev.com">LogikDevelopment</a>.</p>]]></description>
										<content:encoded><![CDATA[<table style="border:0px;">
<tr>
<td style="border:0px;">
I&#8217;ve bought six years ago, in April 2008, a <strong>Sun Ultra 20 M2 Workstation, Dual-Core 2.6 GHz AMD Opteron Processor &#8211; Model 1218</strong>.</p>
<p>The server contains four hard drives of 250Go and I installed the now abandoned operating system <a href="http://en.wikipedia.org/wiki/OpenSolaris" target="_blank"><strong>OpenSolaris</strong></a>.<br />
On top of that, I used software RAID and virtual storage pools offered by <a href="http://en.wikipedia.org/wiki/ZFS">ZFS</a>. The choice for that was mainly because this server doesn&#8217;t have any hardware RAID card.</p>
<p>Anyway, after so many years of good and loyal service, one of the four hard drives died and I had to replace it. <img src="https://s.w.org/images/core/emoji/17.0.2/72x72/1f641.png" alt="🙁" class="wp-smiley" style="height: 1em; max-height: 1em;" />
</td>
<td style="border:0px;">
<a href="https://www.logikdev.com/wp-content/uploads/2013/05/ggw-server.jpg"><img fetchpriority="high" decoding="async" src="https://www.logikdev.com/wp-content/uploads/2013/05/ggw-server-300x225.jpg" alt="Picture of the Server" width="300" height="225" class="alignnone size-medium wp-image-2003" srcset="https://www.logikdev.com/wp-content/uploads/2013/05/ggw-server-300x225.jpg 300w, https://www.logikdev.com/wp-content/uploads/2013/05/ggw-server.jpg 960w" sizes="(max-width: 300px) 100vw, 300px" /></a>
</td>
</tr>
</table>
<p>First of all, let&#8217;s have a look on how I configured the pools:</p>
<pre>
smoreau@Sun-Server:~# zpool status
  pool: dpool
 state: DEGRADED
status: One or more devices could not be opened.  Sufficient replicas exist for
        the pool to continue functioning in a degraded state.
action: Attach the missing device and online it using 'zpool online'.
   see: http://www.sun.com/msg/ZFS-8000-2Q
 scrub: scrub completed after 0h20m with 0 errors on Sat May 18 15:45:00 2013
config:

        NAME          STATE     READ WRITE CKSUM
        dpool         DEGRADED     0     0     0
          raidz1      DEGRADED     0     0     0
            c3t1d0s4  ONLINE       0     0     0
            c3t2d0s4  ONLINE       0     0     0
            c3t3d0s4  UNAVAIL      0 11.8K     0  cannot open
            c3t4d0s4  ONLINE       0     0     0

errors: No known data errors

  pool: rpool
 state: ONLINE
 scrub: none requested
config:

        NAME          STATE     READ WRITE CKSUM
        rpool         ONLINE       0     0     0
          mirror      ONLINE       0     0     0
            c3t1d0s0  ONLINE       0     0     0
            c3t2d0s0  ONLINE       0     0     0
        spares
          c3t3d0s0    UNAVAIL   cannot open
          c3t4d0s0    AVAIL   

errors: No known data errors
</pre>
<p>As you can see, I configured two pools:</p>
<ol>
<li>A raid pool called &#8216;dpool&#8217; using the four drives</li>
<li>A mirror pool called &#8216;rpool&#8217; using two drives and having two spares</li>
</ol>
<p>You can also see above that one of the disks (c3t3d0) doesn&#8217;t seem to work any longer. This is the faulty disk which needs to be replaced.<br />
Please note that it was the first time I had to replace a disk in this server. So, you will notice that I struggled a little bit to find the right way. <img src="https://s.w.org/images/core/emoji/17.0.2/72x72/1f609.png" alt="😉" class="wp-smiley" style="height: 1em; max-height: 1em;" /></p>
<p>The first thing I did was shutting down the machine and replacing the physical disk. Once I&#8217;ve done that, I simply reboot the machine.<br />
Let&#8217;s now check if the drive has been recognised by the system:</p>
<pre>
smoreau@Sun-Server:~# cfgadm -alv | grep c3t3d0
sata4/3::dsk/c3t3d0            connected    configured   ok         Mod: SEAGATE ST32500NSSUN250G 0814B5MKCY FRev: 3AZQ SN: 5QE5MKCY
</pre>
<p>So far so good, the drive has been successfully connected and configured. <img src="https://s.w.org/images/core/emoji/17.0.2/72x72/1f642.png" alt="🙂" class="wp-smiley" style="height: 1em; max-height: 1em;" /></p>
<p>I then try a few things to add the new drive in the pools:</p>
<pre>
smoreau@Sun-Server:~# zpool online dpool c3t3d0s4
warning: device 'c3t3d0s4' onlined, but remains in faulted state
use 'zpool replace' to replace devices that are no longer present
</pre>
<p>As suggested in the error message, I tried the following:</p>
<pre>
smoreau@Sun-Server:~# zpool replace dpool c3t3d0s4
cannot open '/dev/dsk/c3t3d0s4': I/O error
</pre>
<p>Looking at this error on the internet, I found the following explanation on the <a href="http://www.solarisinternals.com/wiki/index.php/ZFS_Troubleshooting_Guide#Creating_a_Pool_or_Attaching_a_Disk_to_a_Pool_.28I.2FO_error.29" target="_blank">ZFS Troubleshooting Guide</a>:</p>
<blockquote><p>
This error means that the disk slice doesn&#8217;t have any disk space allocated to it or possibly that a Solaris fdisk partition and the slice doesn&#8217;t exist on an x86 system. Use the format utility to allocate disk space to a slice. If the x86 system doesn&#8217;t have a Solaris fdisk partition, use the fdisk utility to create one.
</p></blockquote>
<p>This is pretty clear, I installed the new drive but I didn&#8217;t partition it.<br />
Let&#8217;s do it then.</p>
<p>First of all, let&#8217;s check the partition table on one of the healthy drive using the command <code>format -e c3t4d0</code>:</p>
<pre>
partition> print
Current partition table (original):
Total disk cylinders available: 30398 + 2 (reserved cylinders)

Part      Tag    Flag     Cylinders         Size            Blocks
  0       root    wm       1 -  4289       32.86GB    (4289/0/0)   68902785
  1 unassigned    wm       0                0         (0/0/0)             0
  2     backup    wu       0 - 30397      232.86GB    (30398/0/0) 488343870
  3 unassigned    wm       0                0         (0/0/0)             0
  4 unassigned    wm    4290 - 30396      199.99GB    (26107/0/0) 419408955
  5 unassigned    wm       0                0         (0/0/0)             0
  6 unassigned    wm       0                0         (0/0/0)             0
  7 unassigned    wm       0                0         (0/0/0)             0
  8       boot    wu       0 -     0        7.84MB    (1/0/0)         16065
  9 unassigned    wm       0                0         (0/0/0)             0
</pre>
<p>Using the table below and the article <a href="http://redgwell.wordpress.com/category/file-server/" target="_blank">Mirroring my Solaris OS partition</a>, I manually recreated the partition table on the new drive.</p>
<p>Once I&#8217;ve done it, I ran the following commands:</p>
<pre>
smoreau@Sun-Server:~# zpool replace dpool c3t3d0s4
invalid vdev specification
use '-f' to override the following errors:
/dev/dsk/c3t3d0s4 overlaps with /dev/dsk/c3t3d0s2
</pre>
<pre>
smoreau@Sun-Server:~# zpool replace -f dpool c3t3d0s4
</pre>
<pre>
smoreau@Sun-Server:~# zpool status dpool
  pool: dpool
 state: DEGRADED
status: One or more devices is currently being resilvered.  The pool will
        continue to function, possibly in a degraded state.
action: Wait for the resilver to complete.
 scrub: resilver in progress for 0h0m, 0.03% done, 13h27m to go
config:

        NAME                STATE     READ WRITE CKSUM
        dpool               DEGRADED     0     0     0
          raidz1            DEGRADED     0     0     0
            c3t1d0s4        ONLINE       0     0     0  2.34M resilvered
            c3t2d0s4        ONLINE       0     0     0  2.34M resilvered
            replacing       DEGRADED     0     0     0
              c3t3d0s4/old  FAULTED      0 8.04K     0  corrupted data
              c3t3d0s4      ONLINE       0     0     0  3.50M resilvered
            c3t4d0s4        ONLINE       0     0     0  2.23M resilvered

errors: No known data errors
</pre>
<p>This seems to be working, we can see below that the system is rebuilding the data on the new drive.</p>
<p>After a few minutes, we can see that the pool is healthy again:</p>
<pre>
smoreau@Sun-Server:~# zpool status dpool
  pool: dpool
 state: ONLINE
 scrub: resilver completed after 0h24m with 0 errors on Sat May 18 16:50:44 2013
config:

        NAME          STATE     READ WRITE CKSUM
        dpool         ONLINE       0     0     0
          raidz1      ONLINE       0     0     0
            c3t1d0s4  ONLINE       0     0     0  43.8M resilvered
            c3t2d0s4  ONLINE       0     0     0  43.8M resilvered
            c3t3d0s4  ONLINE       0     0     0  11.8G resilvered
            c3t4d0s4  ONLINE       0     0     0  36.1M resilvered

errors: No known data errors
</pre><p>The post <a href="https://www.logikdev.com/2014/03/13/replace-disk-on-opensolaris/">Replace disk on OpenSolaris</a> first appeared on <a href="https://www.logikdev.com">LogikDevelopment</a>.</p>]]></content:encoded>
					
					<wfw:commentRss>https://www.logikdev.com/2014/03/13/replace-disk-on-opensolaris/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Samba vs NFS on DNS-323</title>
		<link>https://www.logikdev.com/2013/09/09/samba-vs-nfs-on-dns-323/</link>
					<comments>https://www.logikdev.com/2013/09/09/samba-vs-nfs-on-dns-323/#respond</comments>
		
		<dc:creator><![CDATA[smoreau]]></dc:creator>
		<pubDate>Mon, 09 Sep 2013 22:04:07 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Arch Linux]]></category>
		<category><![CDATA[benchmarking]]></category>
		<category><![CDATA[CIFS]]></category>
		<category><![CDATA[DNS-323]]></category>
		<category><![CDATA[IOzone]]></category>
		<category><![CDATA[NFS]]></category>
		<category><![CDATA[Raspberry Pi]]></category>
		<category><![CDATA[Samba]]></category>
		<guid isPermaLink="false">https://www.logikdev.com/?p=2019</guid>

					<description><![CDATA[<p>So far, I was using Samba to share the files stored on my D-Link DNS-323. However, people tend to say that NFS is quicker than Samba. So let&#8217;s benchmark those two protocols and figure out which one is actually quicker. First of all, here is my configuration: Server Client D-Link DNS-323 Linux dlink-5610E5 2.6.12.6-arm1 Samba [&#8230;]</p>
<p>The post <a href="https://www.logikdev.com/2013/09/09/samba-vs-nfs-on-dns-323/">Samba vs NFS on DNS-323</a> first appeared on <a href="https://www.logikdev.com">LogikDevelopment</a>.</p>]]></description>
										<content:encoded><![CDATA[<p>So far, I was using Samba to share the files stored on my D-Link DNS-323. However, people tend to say that NFS is quicker than Samba. So let&#8217;s benchmark those two protocols and figure out which one is actually quicker.</p>
<p>First of all, here is my configuration:</p>
<table width="450px">
<tr>
<th>Server</th>
<th>Client</th>
</tr>
<tr>
<td>
<a href="http://dns323.kood.org/" target="_blank">D-Link DNS-323</a><br />
Linux dlink-5610E5 2.6.12.6-arm1<br />
Samba 3.0.24<br />
UNFS3 0.9.20
</td>
<td>
<a href="http://www.raspberrypi.org/" target="_blank">Raspberry Pi</a><br />
Linux alarmpi 3.6.11-15-ARCH+<br />
CIFS utils 6.1-1<br />
NFS utils 1.2.8-9
</td>
</tr>
</table>
<p>I used IOzone to benchmark these protocols from the Raspberry Pi. You can find the package for Arch Linux ARM on one of my <a href="https://www.logikdev.com/2013/06/08/iozone-for-arch-linux-arm/" title="IOzone for Arch Linux ARM">previous post</a>.</p>
<p>I first mounted the Samba and NFS share drives in the two respective folders <code>/mnt/storage_smb</code> and <code>/mnt/storage_nfs</code>.</p>
<p>I then ran the following commands (not at the same time):</p>
<pre class="brush: bash; light: true; title: ; notranslate">
iozone -RazcR -U /mnt/storage_smb -f /mnt/storage_smb/testfile -b smb_excel_output.xls
iozone -RazcR -U /mnt/storage_nfs -f /mnt/storage_nfs/testfile -b nfs_excel_output.xls
</pre>
<p>You can download the output files <a href="https://www.logikdev.com/wp-content/uploads/2013/09/smb_excel_output.xls">here</a> and <a href="https://www.logikdev.com/wp-content/uploads/2013/09/nfs_excel_output.xls">here</a>.</p>
<p>Or, you can simply have a look at a summary of these two files in the following table which basically compare the average speed (in Kbytes per second) for both Samba and NFS:</p>
<table width="500px">
<tr>
<th></th>
<th>Samba</th>
<th>NFS</th>
</tr>
<tr>
<td><b>Write</b></td>
<td><strong>7683</strong></td>
<td>6676</td>
</tr>
<tr>
<td><b>Re-write</b></td>
<td><strong>7544</strong></td>
<td>6795</td>
</tr>
<tr>
<td><b>Read</b></td>
<td>21862</td>
<td><strong>50464</strong></td>
</tr>
<tr>
<td><b>Re-read</b></td>
<td>22383</td>
<td><strong>50210</strong></td>
</tr>
<tr>
<td><b>Random read</b></td>
<td>6348</td>
<td><strong>6444</strong></td>
</tr>
<tr>
<td><b>Random write</b></td>
<td><strong>7603</strong></td>
<td>6751</td>
</tr>
<tr>
<td><b>Backward read</b></td>
<td><strong>5909</strong></td>
<td>5246</td>
</tr>
<tr>
<td><b>Record rewrite</b></td>
<td>80294</td>
<td><strong>87225</strong></td>
</tr>
<tr>
<td><b>Stride read</b></td>
<td><strong>15629</strong></td>
<td>11868</td>
</tr>
<tr>
<td><b>Fwrite</b></td>
<td><strong>7471</strong></td>
<td>6700</td>
</tr>
<tr>
<td><b>Re-fwrite</b></td>
<td><strong>7494</strong></td>
<td>6671</td>
</tr>
<tr>
<td><b>Fread</b></td>
<td><strong>7739</strong></td>
<td>7685</td>
</tr>
<tr>
<td><b>Re-fread</b></td>
<td>7596</td>
<td><strong>7639</strong></td>
</tr>
</table>
<p>As you can see, it looks like NFS is quicker for read operations but slower for write operations than Samba. But please remember that this is true for this very specific configuration ; It could be completely different for another one.</p>
<p>In conclusion, I personally decided to use both Samba and NFS depending of what I need. If I need a read only access to my data, I use NFS. However, if I need to write data, I use Samba.</p>
<p><strong>NB:</strong> Another reason why I didn&#8217;t completely stop using Samba is because symbolic links don&#8217;t work with NFS. Instead, you need to use binding (mounting a folder inside another folder), but this is kind of incompatible with my use of rsync to backup my data. <img src="https://s.w.org/images/core/emoji/17.0.2/72x72/1f641.png" alt="🙁" class="wp-smiley" style="height: 1em; max-height: 1em;" /></p><p>The post <a href="https://www.logikdev.com/2013/09/09/samba-vs-nfs-on-dns-323/">Samba vs NFS on DNS-323</a> first appeared on <a href="https://www.logikdev.com">LogikDevelopment</a>.</p>]]></content:encoded>
					
					<wfw:commentRss>https://www.logikdev.com/2013/09/09/samba-vs-nfs-on-dns-323/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>SD Card Benchmark on a Raspberry Pi</title>
		<link>https://www.logikdev.com/2013/07/01/sd-card-benchmark-on-a-raspberry-pi/</link>
					<comments>https://www.logikdev.com/2013/07/01/sd-card-benchmark-on-a-raspberry-pi/#comments</comments>
		
		<dc:creator><![CDATA[smoreau]]></dc:creator>
		<pubDate>Mon, 01 Jul 2013 20:55:03 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[benchmarking]]></category>
		<category><![CDATA[IOzone]]></category>
		<category><![CDATA[Raspberry Pi]]></category>
		<category><![CDATA[SD card]]></category>
		<guid isPermaLink="false">https://www.logikdev.com/?p=1990</guid>

					<description><![CDATA[<p>Some time ago, I bought a Raspberry Pi. I am not going to describe what it is here, but you can read more about it on this page. The first thing you need to buy when you&#8217;ve got a Raspberry Pi is a SD card. But the question I asked myself is: &#8220;Which one?&#8221;. Indeed, [&#8230;]</p>
<p>The post <a href="https://www.logikdev.com/2013/07/01/sd-card-benchmark-on-a-raspberry-pi/">SD Card Benchmark on a Raspberry Pi</a> first appeared on <a href="https://www.logikdev.com">LogikDevelopment</a>.</p>]]></description>
										<content:encoded><![CDATA[<p>Some time ago, I bought a <a href="http://www.raspberrypi.org/" target="_blank">Raspberry Pi</a>. I am not going to describe what it is here, but you can read more about it on <a href="http://en.wikipedia.org/wiki/Raspberry_Pi" target="_blank">this page</a>.</p>
<p>The first thing you need to buy when you&#8217;ve got a Raspberry Pi is a SD card. But the question I asked myself is: &#8220;Which one?&#8221;. Indeed, there are so many models with different type, capacity and speed. <img src="https://s.w.org/images/core/emoji/17.0.2/72x72/1f641.png" alt="🙁" class="wp-smiley" style="height: 1em; max-height: 1em;" /></p>
<p>I first checked the compatibility list found on the <strong>Embedded Linux Wiki</strong>:<br />
<a href="http://elinux.org/RPi_SD_cards#Working_.2F_Non-working_SD_cards" target="_blank">http://elinux.org/RPi_SD_cards#Working_.2F_Non-working_SD_cards</a><br />
But this list didn&#8217;t help me much. Indeed, out of them, which one should I buy?</p>
<p>This is why I decided to test two SD cards with two different speed:</p>
<ul>
<li>SanDisk SDSDXPA-008G-X46 8GB 95MB/S Extreme Pro SDHC Class10</li>
<li>SanDisk SDSDX-032G-FFP 32GB 45MB/S Extreme SDHC Class10</li>
</ul>
<p>As you can see, the speed of the first one is <strong>95MB/S</strong> against <strong>45MB/S</strong> for the second one. Does it mean the Raspberry Pi will run twice quicker?<br />
Let&#8217;s check it by benchmarking the cards.</p>
<p>I used <a href="http://www.iozone.org/" target="_blank">IOzone</a> to benchmark these cards. Unfortunately, IOzone is not available for ARM on ArchLinux. I wrote a <a href="/2013/06/08/iozone-for-arch-linux-arm/" title="IOzone for Arch Linux ARM">separate article</a> about it.</p>
<p>I ran the exact same command for both cards:</p>
<pre class="brush: bash; light: true; title: ; notranslate">
iozone -e -I -a -s 50M -r 4k -r 512k -r 16M -i 0 -i 1 -i 2
</pre>
<p>Please find below the result for the SD card with a speed of 95MB/S:</p>
<pre>
                                                    random  random    bkwd   record   stride                                   
      KB  reclen   write rewrite    read    reread    read   write    read  rewrite     read   fwrite frewrite   fread  freread
   51200       4    1422    1502     5841     5838    5688     878                                                          
   51200     512   20743   20924    22094    22130   22121    8313                                                          
   51200   16384   20090   21349    22413    22514   22458   21351                                                          
</pre>
<p>The full output can be found <a href="https://www.logikdev.com/wp-content/uploads/2013/06/iozone-SDSDXPA-008G-X46.txt">here</a>.</p>
<p>And the following is the result for the SD card with a speed of 45MB/S:</p>
<pre>
                                                    random  random    bkwd   record   stride                                   
      KB  reclen   write rewrite    read    reread    read   write    read  rewrite     read   fwrite frewrite   fread  freread
   51200       4    1653    1858     4566     4716    3996     755                                                          
   51200     512   20515   19534    21953    22031   21867    4722                                                          
   51200   16384   15841   21240    22311    22390   22384   21177                                                          
</pre>
<p>The full output can be found <a href="https://www.logikdev.com/wp-content/uploads/2013/06/iozone-SDSDX-032G-FFP.txt">here</a>.</p>
<p>So, it looks like the difference is not that big. Indeed, the SD card with a speed of 95MB/S is not twice quicker than the other one. Why is that? In my opinion, this is directly linked to the actual speed of the SD card reader within the Raspberry Pi.<br />
Which means that it doesn&#8217;t matter which card you are using, you won&#8217;t go further than 22MB/S anyway.</p>
<p>Finally, please find below some other benchmarks on the same topic:</p>
<ul>
<li><a href="http://www.raspberrypi.org/phpBB3/viewtopic.php?p=137164" target="_blank">http://www.raspberrypi.org/phpBB3/viewtopic.php?p=137164</a></li>
<li><a href="http://itsacleanmachine.blogspot.fr/2012/08/sd-card-benchmark-on-raspberry-pi.html" target="_blank">http://itsacleanmachine.blogspot.fr/2012/08/sd-card-benchmark-on-raspberry-pi.html</a>
</ul><p>The post <a href="https://www.logikdev.com/2013/07/01/sd-card-benchmark-on-a-raspberry-pi/">SD Card Benchmark on a Raspberry Pi</a> first appeared on <a href="https://www.logikdev.com">LogikDevelopment</a>.</p>]]></content:encoded>
					
					<wfw:commentRss>https://www.logikdev.com/2013/07/01/sd-card-benchmark-on-a-raspberry-pi/feed/</wfw:commentRss>
			<slash:comments>3</slash:comments>
		
		
			</item>
		<item>
		<title>IOzone for Arch Linux ARM</title>
		<link>https://www.logikdev.com/2013/06/08/iozone-for-arch-linux-arm/</link>
					<comments>https://www.logikdev.com/2013/06/08/iozone-for-arch-linux-arm/#respond</comments>
		
		<dc:creator><![CDATA[smoreau]]></dc:creator>
		<pubDate>Sat, 08 Jun 2013 14:43:40 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Arch Linux]]></category>
		<category><![CDATA[Arch User Repository]]></category>
		<category><![CDATA[ARM]]></category>
		<category><![CDATA[AUR]]></category>
		<category><![CDATA[IOzone]]></category>
		<category><![CDATA[pacman]]></category>
		<guid isPermaLink="false">https://www.logikdev.com/?p=2032</guid>

					<description><![CDATA[<p>For different benchmarks I will later publish on this blog, I wanted to use IOzone. Unfortunately, this package is not available on Arch Linux ARM via the pacman package manager. This tool is not difficult to compile, but still I decided to create an Arch Linux ARM package for it and share it with you: [&#8230;]</p>
<p>The post <a href="https://www.logikdev.com/2013/06/08/iozone-for-arch-linux-arm/">IOzone for Arch Linux ARM</a> first appeared on <a href="https://www.logikdev.com">LogikDevelopment</a>.</p>]]></description>
										<content:encoded><![CDATA[<p>For different benchmarks I will later publish on this blog, I wanted to use IOzone. Unfortunately, this package is not available on Arch Linux ARM via the <a href="https://wiki.archlinux.org/index.php/Pacman" target="_blank">pacman package manager</a>.</p>
<p>This tool is not difficult to compile, but still I decided to create an Arch Linux ARM package for it and share it with you: <a href="https://www.logikdev.com/wp-content/uploads/2013/05/iozone-3_414-1-armv6h.pkg_.tar.xz">iozone-3_414-1-armv6h.pkg.tar.xz</a></p>
<p>You can install it using the following command:</p>
<pre class="brush: bash; light: true; title: ; notranslate">
pacman -U iozone-3_414-1-armv6h.pkg.tar.xz
</pre>
<p>Please note that I also tried to submit the package to the AUR (Arch User Repository). To my surprise, it was already present (<a href="https://aur.archlinux.org/packages/iozone/" target="_blank">https://aur.archlinux.org/packages/iozone/</a>) but not available for ARM. <img src="https://s.w.org/images/core/emoji/17.0.2/72x72/1f641.png" alt="🙁" class="wp-smiley" style="height: 1em; max-height: 1em;" /></p><p>The post <a href="https://www.logikdev.com/2013/06/08/iozone-for-arch-linux-arm/">IOzone for Arch Linux ARM</a> first appeared on <a href="https://www.logikdev.com">LogikDevelopment</a>.</p>]]></content:encoded>
					
					<wfw:commentRss>https://www.logikdev.com/2013/06/08/iozone-for-arch-linux-arm/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Remove DOS carriage return</title>
		<link>https://www.logikdev.com/2012/09/26/remove-dos-carriage-return/</link>
					<comments>https://www.logikdev.com/2012/09/26/remove-dos-carriage-return/#comments</comments>
		
		<dc:creator><![CDATA[smoreau]]></dc:creator>
		<pubDate>Wed, 26 Sep 2012 22:36:53 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Tricks]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[carriage return]]></category>
		<category><![CDATA[DOS]]></category>
		<category><![CDATA[fileformat]]></category>
		<category><![CDATA[shell]]></category>
		<category><![CDATA[vi]]></category>
		<category><![CDATA[Windows]]></category>
		<guid isPermaLink="false">https://www.logikdev.com/?p=1884</guid>

					<description><![CDATA[<p>After writing a shell script on Windows and trying to execute it on Linux, I got the following error message: /bin/sh^M: bad interpreter: No such file or directory The problem is obviously because the return line character on Windows and Linux are different. But how to fix it in order to execute it on Linux? [&#8230;]</p>
<p>The post <a href="https://www.logikdev.com/2012/09/26/remove-dos-carriage-return/">Remove DOS carriage return</a> first appeared on <a href="https://www.logikdev.com">LogikDevelopment</a>.</p>]]></description>
										<content:encoded><![CDATA[<p>After writing a shell script on Windows and trying to execute it on Linux, I got the following error message:</p>
<pre class="brush: bash; light: true; title: ; notranslate">
/bin/sh^M: bad interpreter: No such file or directory
</pre>
<p>The problem is obviously because the return line character on Windows and Linux are different. But how to fix it in order to execute it on Linux?<br />
I firstly tried to open it, copy the content of the file and paste it in a new file using only Linux command line, but it didn&#8217;t work. <img src="https://s.w.org/images/core/emoji/17.0.2/72x72/1f641.png" alt="🙁" class="wp-smiley" style="height: 1em; max-height: 1em;" /></p>
<p>However, I found the following thread which fixed the problem:<br />
<a href="http://www.reachdba.com/showthread.php?335-bin-sh-M-bad-interpreter-No-such-file-or-directory-apps11i-Instalation" target="_blank">http://www.reachdba.com/showthread.php?335-bin-sh-M-bad-interpreter-No-such-file-or-directory-apps11i-Instalation</a></p>
<p>Here is what you need to do:</p>
<ol>
<li>Open your file using <strong>vi</strong></li>
<li>Write the command <code>:set fileformat=unix</code></li>
<li>Save the file using <code>:wq</code></li>
</ol>
<p>The file should now run on Linux. <img src="https://s.w.org/images/core/emoji/17.0.2/72x72/1f642.png" alt="🙂" class="wp-smiley" style="height: 1em; max-height: 1em;" /></p><p>The post <a href="https://www.logikdev.com/2012/09/26/remove-dos-carriage-return/">Remove DOS carriage return</a> first appeared on <a href="https://www.logikdev.com">LogikDevelopment</a>.</p>]]></content:encoded>
					
					<wfw:commentRss>https://www.logikdev.com/2012/09/26/remove-dos-carriage-return/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			</item>
		<item>
		<title>CP2102 on DNS-323</title>
		<link>https://www.logikdev.com/2012/08/09/cp2102-on-dns-323/</link>
					<comments>https://www.logikdev.com/2012/08/09/cp2102-on-dns-323/#comments</comments>
		
		<dc:creator><![CDATA[smoreau]]></dc:creator>
		<pubDate>Thu, 09 Aug 2012 16:36:57 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[CP2101]]></category>
		<category><![CDATA[CP2102]]></category>
		<category><![CDATA[D-Link]]></category>
		<category><![CDATA[dmesg]]></category>
		<category><![CDATA[DNS-313]]></category>
		<category><![CDATA[shell]]></category>
		<category><![CDATA[Silicon Labs]]></category>
		<category><![CDATA[USB to RS232 converter]]></category>
		<guid isPermaLink="false">https://www.logikdev.com/?p=1834</guid>

					<description><![CDATA[<p>In one of my personal projects, I needed to connect and use a USB to RS232 (Serial) converter on my D-Link DNS-323. Weird requirements, I know. Anyway&#8230; 😐 Plenty of these converters exist out there, but I choose to go for a CP2102: Innocently, I first tried to compile the code source of this module [&#8230;]</p>
<p>The post <a href="https://www.logikdev.com/2012/08/09/cp2102-on-dns-323/">CP2102 on DNS-323</a> first appeared on <a href="https://www.logikdev.com">LogikDevelopment</a>.</p>]]></description>
										<content:encoded><![CDATA[<p>In one of my personal projects, I needed to connect and use a USB to RS232 (Serial) converter on my D-Link DNS-323. Weird requirements, I know. Anyway&#8230; 😐<br />
Plenty of these converters exist out there, but I choose to go for a <a href="http://www.silabs.com/Support%20Documents/TechnicalDocs/cp2102.pdf" target="_blank"><strong>CP2102</strong></a>:</p>
<p><img decoding="async" class="aligncenter size-medium wp-image-1844" title="CP2102" src="https://www.logikdev.com/wp-content/uploads/2012/08/CP2102-300x125.jpg" alt="" width="300" height="125" srcset="https://www.logikdev.com/wp-content/uploads/2012/08/CP2102-300x125.jpg 300w, https://www.logikdev.com/wp-content/uploads/2012/08/CP2102.jpg 458w" sizes="(max-width: 300px) 100vw, 300px" /></p>
<p>Innocently, I first tried to compile the code source of this module which can be found on the following page:<br />
<a href="http://www.silabs.com/products/mcu/Pages/USBtoUARTBridgeVCPDrivers.aspx" target="_blank">http://www.silabs.com/products/mcu/Pages/USBtoUARTBridgeVCPDrivers.aspx</a></p>
<p>After a few painful and unsuccessful tries, I decided to look around for the already-compiled module. 😉<br />
While wondering why I didn&#8217;t think of that before, I used the instructions below to install the required modules on my NAS:</p>
<pre class="brush: bash; light: true; title: ; notranslate">
cd /mnt/HD_a2/ffp/lib/
mkdir modules
mkdir modules/2.6.12.6-arm1
cd modules/2.6.12.6-arm1
wget http://dev.skcserver.de/dns323/modules_v1.03/kernel/drivers/usb/serial/usbserial.ko
wget http://dev.skcserver.de/dns323/modules_v1.03/kernel/drivers/usb/serial/cp2101.ko
chmod 755 usbserial.ko
chmod 755 cp2101.ko
</pre>
<p>Once the modules are installed, the next step is to initialize them.<br />
I wrote the following script for this purpose so you can execute it anytime you need it:</p>
<pre class="brush: bash; title: ; notranslate">
#!/bin/sh

insmod /ffp/lib/modules/2.6.12.6-arm1/usbserial.ko
insmod /ffp/lib/modules/2.6.12.6-arm1/cp2101.ko
mknod /dev/ttyUSB0 c 188 0
chmod 0666 /dev/ttyUSB0
</pre>
<p>At this point in time, you should have your module initialized on your D-Link DNS-323.<br />
You can check the kernel ring buffer using the <strong>dmesg</strong> command to verify it loaded properly.<br />
This is a snapshot of what I have in my kernel ring buffer after I ran the script above:</p>
<pre class="brush: bash; light: true; title: ; notranslate">
usbcore: registered new driver usbserial
drivers/usb/serial/usb-serial.c: USB Serial support registered for Generic
usbcore: registered new driver usbserial_generic
drivers/usb/serial/usb-serial.c: USB Serial Driver core v2.0
drivers/usb/serial/usb-serial.c: USB Serial support registered for CP2101
CP2101 1-1:1.0: CP2101 converter detected
usb 1-1: reset full speed USB device using ehci_platform and address 5
usb 1-1: CP2101 converter now attached to ttyUSB0
usbcore: registered new driver CP2101
drivers/usb/serial/cp2101.c: Silicon Labs CP2101/CP2102 RS232 serial adaptor driver v0.04
</pre>
<p>Finally, you can test the communication with your USB to RS232 converter by connecting a LED between the RXD and 3V outputs and running the following script:</p>
<pre class="brush: bash; title: ; notranslate">
#!/bin/sh

while &#x5B; true ]
do
echo &quot;hello world!!!&quot; &gt; /dev/ttyUSB0
echo &quot;sent&quot;
sleep 1
done
</pre>
<p>If you see the LED blinking, it means you succeed! 😀</p><p>The post <a href="https://www.logikdev.com/2012/08/09/cp2102-on-dns-323/">CP2102 on DNS-323</a> first appeared on <a href="https://www.logikdev.com">LogikDevelopment</a>.</p>]]></content:encoded>
					
					<wfw:commentRss>https://www.logikdev.com/2012/08/09/cp2102-on-dns-323/feed/</wfw:commentRss>
			<slash:comments>3</slash:comments>
		
		
			</item>
		<item>
		<title>Ubuntu on Mac Mini PowerPC</title>
		<link>https://www.logikdev.com/2012/06/08/ubuntu-on-mac-mini-powerpc/</link>
					<comments>https://www.logikdev.com/2012/06/08/ubuntu-on-mac-mini-powerpc/#respond</comments>
		
		<dc:creator><![CDATA[smoreau]]></dc:creator>
		<pubDate>Fri, 08 Jun 2012 15:35:43 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Mac Mini PowerPC]]></category>
		<category><![CDATA[Mac OS X]]></category>
		<category><![CDATA[netboot]]></category>
		<category><![CDATA[Open Firmware]]></category>
		<category><![CDATA[PPC]]></category>
		<category><![CDATA[tftp]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<guid isPermaLink="false">https://www.logikdev.com/?p=1814</guid>

					<description><![CDATA[<p>The other day, I got an old Mac Mini PowerPC from 2005. And I decided to install Linux on it instead of using an old version of Mac OSX. Fun, ins&#8217;t it? The first thing I did was to download the ISO image of the last version of Ubuntu and burn it on CD. But [&#8230;]</p>
<p>The post <a href="https://www.logikdev.com/2012/06/08/ubuntu-on-mac-mini-powerpc/">Ubuntu on Mac Mini PowerPC</a> first appeared on <a href="https://www.logikdev.com">LogikDevelopment</a>.</p>]]></description>
										<content:encoded><![CDATA[<p>The other day, I got an old Mac Mini PowerPC from 2005. And I decided to install Linux on it instead of using an old version of Mac OSX. Fun, ins&#8217;t it?</p>
<p>The first thing I did was to download the ISO image of the last version of Ubuntu and burn it on CD. But unfortunately, I discovered that the CD player wasn&#8217;t working anymore. <img src="https://s.w.org/images/core/emoji/17.0.2/72x72/1f610.png" alt="😐" class="wp-smiley" style="height: 1em; max-height: 1em;" /><br />
I then tried to put Ubuntu on a USB key and boot on it. But it didn&#8217;t work either&#8230; This machine didn&#8217;t seem to be able to boot from a USB stick.</p>
<p>So how am I going to install Linux without a CD player and USB?<br />
FireWire? Maybe, but I don&#8217;t have anything on FireWire.<br />
The answer is <a href="http://en.wikipedia.org/wiki/NetBoot" target="_blank"><strong>netboot</strong></a>! <img src="https://s.w.org/images/core/emoji/17.0.2/72x72/1f600.png" alt="😀" class="wp-smiley" style="height: 1em; max-height: 1em;" /> Indeed, my last chance was to install it via netboot.</p>
<p>Here are the steps I followed:</p>
<ol>
<li>Install <a href="http://fr.wikipedia.org/wiki/Trivial_File_Transfer_Protocol" target="_blank"><strong>tftp</strong></a> on another Linux machine in your local network</li>
<li>Configure tftp. Please find below the configuration file I used:
<pre class="brush: bash; title: ; notranslate">
#
# ftp://ftp.kernel.org/pub/software/network/tftp/
#
service tftp
{
       flags            = REUSE
       socket_type      = dgram
       protocol         = udp
       instances        = 30
       wait             = yes
       user             = root
       server           = /opt/sbin/in.tftpd
       server_args      = -s /mnt/tftpboot
       cps              = 100 2
       log_on_success   = HOST PID
       log_on_failure   = HOST
       disable          = no
}
</pre>
</li>
<li>Put the Ubuntu files in the folder <code>/mnt/tftpboot</code> (in my case). I copied the files of the last version of Ubuntu &#8220;Quantal&#8221;: <a href="http://ports.ubuntu.com/ubuntu-ports/dists/quantal/main/installer-powerpc/current/images/powerpc/netboot/" target="_blank">http://ports.ubuntu.com/ubuntu-ports/dists/quantal/main/installer-powerpc/current/images/powerpc/netboot/</a></li>
<li>Reboot the Mac Mini and enter the Open Firmware by holding &#8220;Option&#8221;+&#8221;Command&#8221;+&#8221;o&#8221;+&#8221;f&#8221;</li>
<li>Type the following command to start the install:
<pre class="brush: bash; light: true; title: ; notranslate">
boot enet:192.168.2.100,yaboot
</pre>
<p>With 192.168.2.100 the IP address of the machine where tftp is installed.</li>
<li>Follow the Ubuntu installation steps and enjoy! <img src="https://s.w.org/images/core/emoji/17.0.2/72x72/1f642.png" alt="🙂" class="wp-smiley" style="height: 1em; max-height: 1em;" /></li>
</ol><p>The post <a href="https://www.logikdev.com/2012/06/08/ubuntu-on-mac-mini-powerpc/">Ubuntu on Mac Mini PowerPC</a> first appeared on <a href="https://www.logikdev.com">LogikDevelopment</a>.</p>]]></content:encoded>
					
					<wfw:commentRss>https://www.logikdev.com/2012/06/08/ubuntu-on-mac-mini-powerpc/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Redirect traffic to a specific network</title>
		<link>https://www.logikdev.com/2012/05/06/redirect-traffic-to-a-specific-network/</link>
					<comments>https://www.logikdev.com/2012/05/06/redirect-traffic-to-a-specific-network/#comments</comments>
		
		<dc:creator><![CDATA[smoreau]]></dc:creator>
		<pubDate>Sun, 06 May 2012 12:29:22 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Tricks]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[Mac OS X]]></category>
		<category><![CDATA[network]]></category>
		<category><![CDATA[route]]></category>
		<category><![CDATA[shell]]></category>
		<guid isPermaLink="false">https://www.logikdev.com/?p=1707</guid>

					<description><![CDATA[<p>This is a little trick which can be useful in some very specific case. For example, you could have a machine with two network cards. One of the network is behind a proxy and the other one is connected directly to the internet. You might want to forward all the traffic for google.com to the [&#8230;]</p>
<p>The post <a href="https://www.logikdev.com/2012/05/06/redirect-traffic-to-a-specific-network/">Redirect traffic to a specific network</a> first appeared on <a href="https://www.logikdev.com">LogikDevelopment</a>.</p>]]></description>
										<content:encoded><![CDATA[<p>This is a little trick which can be useful in some very specific case.</p>
<p>For example, you could have a machine with two network cards. One of the network is behind a proxy and the other one is connected directly to the internet.<br />
You might want to forward all the traffic for google.com to the network which doesn&#8217;t have a proxy.</p>
<p>To do this, I am using the command <a href="http://linux.die.net/man/8/route" target="_blank"><strong>route</strong></a>:</p>
<pre class="brush: bash; light: true; title: ; notranslate">
route add &lt;hostname&gt; &lt;target network&gt;
</pre>
<p>For example:</p>
<pre class="brush: bash; light: true; title: ; notranslate">
route add google.com 192.168.101.1
</pre>
<p>Note that this command is available on both Linux and Mac.</p><p>The post <a href="https://www.logikdev.com/2012/05/06/redirect-traffic-to-a-specific-network/">Redirect traffic to a specific network</a> first appeared on <a href="https://www.logikdev.com">LogikDevelopment</a>.</p>]]></content:encoded>
					
					<wfw:commentRss>https://www.logikdev.com/2012/05/06/redirect-traffic-to-a-specific-network/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			</item>
		<item>
		<title>Install a JDBC driver in SpagoBI</title>
		<link>https://www.logikdev.com/2012/04/21/install-a-jdbc-driver-in-spagobi/</link>
					<comments>https://www.logikdev.com/2012/04/21/install-a-jdbc-driver-in-spagobi/#comments</comments>
		
		<dc:creator><![CDATA[smoreau]]></dc:creator>
		<pubDate>Sat, 21 Apr 2012 22:16:07 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[BI]]></category>
		<category><![CDATA[BIRT]]></category>
		<category><![CDATA[Business Intelligence]]></category>
		<category><![CDATA[JDBC driver]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[SpagoBI]]></category>
		<category><![CDATA[SQL Server]]></category>
		<guid isPermaLink="false">https://www.logikdev.com/?p=1646</guid>

					<description><![CDATA[<p>For those who don&#8217;t know what is SpagoBI, please read the following (copied from Wikipedia): SpagoBI is the only entirely Open Source Business Intelligence suite, belonging to the free/open source SpagoWorld initiative, founded and supported by Engineering Group. SpagoBI supports day-to-day and strategic business, both at the decision-making and operational levels. SpagoBI is a BI [&#8230;]</p>
<p>The post <a href="https://www.logikdev.com/2012/04/21/install-a-jdbc-driver-in-spagobi/">Install a JDBC driver in SpagoBI</a> first appeared on <a href="https://www.logikdev.com">LogikDevelopment</a>.</p>]]></description>
										<content:encoded><![CDATA[<p>For those who don&#8217;t know what is SpagoBI, please read the following (copied from <a href="http://en.wikipedia.org/wiki/SpagoBI" target="_blank">Wikipedia</a>):</p>
<blockquote><p><a href="http://www.spagobi.org/" title="SpagoBI Suite" target="_blank"><strong>SpagoBI</strong></a> is the only entirely Open Source Business Intelligence suite, belonging to the free/open source SpagoWorld initiative, founded and supported by Engineering Group.<br />
SpagoBI supports day-to-day and strategic business, both at the decision-making and operational levels. SpagoBI is a BI suite because it covers the whole range of analytical needs, supporting developers, testers and administrators in their daily activities.</p></blockquote>
<p>SpagoBI is not very difficult to install but it is a bit more complicated to configure.<br />
One of the problem I had was the following one:</p>
<pre>
GRAVE: Cannot open connection.
org.eclipse.birt.report.data.oda.jdbc.JDBCException: 
Cannot load JDBC Driver class: com.microsoft.sqlserver.jdbc.SQLServerDriver
</pre>
<p>This exception is quite clear, it means that SpagoBI cannot load the JDBC driver for SQL Server. Indeed, I was connecting to a SQL Server database from one of my BIRT report.</p>
<p>What you have to do to fix this problem is:</p>
<ol>
<li>Download the driver JAR file from the Microsoft website: <a href="http://www.microsoft.com/download/en/details.aspx?id=2505" target="_blank">http://www.microsoft.com/download/en/details.aspx?id=2505</a></li>
<li>Copy the JAR file into the following folder under the SpagoBI installation folder:<br />
<code>webapps/SpagoBIBirtReportEngine/WEB-INF/platform/plugins/org.eclipse.birt.report.data.oda.jdbc_2.6.1.v20100909/drivers</code><br />
Note that the path might differ a little bit depending on the version of SpagoBI.
</li>
<li>Restart SpagoBI</li>
</ol><p>The post <a href="https://www.logikdev.com/2012/04/21/install-a-jdbc-driver-in-spagobi/">Install a JDBC driver in SpagoBI</a> first appeared on <a href="https://www.logikdev.com">LogikDevelopment</a>.</p>]]></content:encoded>
					
					<wfw:commentRss>https://www.logikdev.com/2012/04/21/install-a-jdbc-driver-in-spagobi/feed/</wfw:commentRss>
			<slash:comments>2</slash:comments>
		
		
			</item>
	</channel>
</rss>
