<?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>A Blog by Tim Bishop &#187; FreeBSD</title>
	<atom:link href="http://www.bishnet.net/tim/blog/tag/freebsd/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.bishnet.net/tim/blog</link>
	<description>"For a moment, nothing happened. Then, after a second or so, nothing continued to happen." -- HHGTTG</description>
	<lastBuildDate>Mon, 02 Nov 2009 17:58:37 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Automating tarsnap backups</title>
		<link>http://www.bishnet.net/tim/blog/2009/01/28/automating-tarsnap-backups/</link>
		<comments>http://www.bishnet.net/tim/blog/2009/01/28/automating-tarsnap-backups/#comments</comments>
		<pubDate>Wed, 28 Jan 2009 19:18:07 +0000</pubDate>
		<dc:creator>Tim Bishop</dc:creator>
				<category><![CDATA[Computing]]></category>
		<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[automated]]></category>
		<category><![CDATA[backup]]></category>
		<category><![CDATA[snapshot]]></category>
		<category><![CDATA[tarsnap]]></category>

		<guid isPermaLink="false">http://www.bishnet.net/tim/blog/?p=149</guid>
		<description><![CDATA[How to create a backup schedule for tarsnap, and how to test it without using up your allowance.


Related posts:<ol><li><a href='http://www.bishnet.net/tim/blog/2009/01/28/machine-backups-using-tarsnap/' rel='bookmark' title='Permanent Link: Machine backups using tarsnap'>Machine backups using tarsnap</a></li><li><a href='http://www.bishnet.net/tim/blog/2008/11/10/freebsd-filesystem-snapshots/' rel='bookmark' title='Permanent Link: FreeBSD filesystem snapshots'>FreeBSD filesystem snapshots</a></li><li><a href='http://www.bishnet.net/tim/blog/2008/11/05/a-new-router-soekris-draytek-and-nanobsd/' rel='bookmark' title='Permanent Link: A new router (Soekris, Draytek and NanoBSD)'>A new router (Soekris, Draytek and NanoBSD)</a></li></ol>]]></description>
			<content:encoded><![CDATA[<p>In my <a href="http://www.bishnet.net/tim/blog/2009/01/28/machine-backups-using-tarsnap/">last post</a> I wrote about backing up my dedicated server and why I decided to use <a href="http://www.tarsnap.com/">tarsnap</a>. After a couple of months of running tarsnap manually I decided it was way past the time to properly automate it.</p>
<p>The main issue is how many snapshots do you want to store? On the one hand it&#8217;s nice to be able to go back in time as far as possible, but on the other hand there&#8217;s the issue of how large your archives get (and consequently the cost).</p>
<p>There are three different charges for tarsnap; data sent, data received and data stored. Each is charged on a daily basis and subtracted from a total in your account (you keep an account in credit rather than being billed). If you&#8217;re doing backups on a daily basis the data sent and received will be approximately the same regardless of how long you retain the archives for. So the figure to consider is the cost for storing the data.</p>
<p>I decided to go for a model where I had X daily backups, Y weekly backups and Z monthly backups. I also decided I wanted to back up only certain directories, and that I wanted to keep them as separate archives (because I&#8217;m dealing with large numbers of files, and this breaks it down a bit &#8211; I don&#8217;t think it affects costs).</p>
<p>So I went about scripting this. First step was to write a &#8220;fake&#8221; tarsnap. The reasoning behind this was that it&#8217;d allow me to do quick backup runs without any time used for archiving or any costs. It&#8217;s basically just a perl script that adds and removes archives from a database file.</p>
<p>Next I wrote a backup script. It&#8217;s pretty basic at the moment, but fully automates the creation of archives and deletion of expired ones. You provide it with a list of directories to back up, and how many daily, weekly and monthly archives you want to keep. Then stick it in cron and off it goes.</p>
<p>It&#8217;s a bit tailored to my setup, and may only work on FreeBSD (are the date flags the same on other operating systems?). Also, its cleaning of old archives is primitive; it&#8217;s based on the number of archives, rather than the age.</p>
<ul>
<li><a href="http://www.bishnet.net/tim/tarsnap/run.sh">Tarsnap backup script</a></li>
<li><a href="http://www.bishnet.net/tim/tarsnap/tarsnap.pl">&#8220;Fake&#8221; tarsnap for testing backups</a></li>
</ul>
<p>I welcome feedback on these scripts and improvements, but bear in mind they&#8217;re very much a work in progress.</p>
<a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fwww.bishnet.net%2Ftim%2Fblog%2F2009%2F01%2F28%2Fautomating-tarsnap-backups%2F&amp;linkname=Automating%20tarsnap%20backups"><img src="http://www.bishnet.net/tim/blog/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a>

<p>Related posts:<ol><li><a href='http://www.bishnet.net/tim/blog/2009/01/28/machine-backups-using-tarsnap/' rel='bookmark' title='Permanent Link: Machine backups using tarsnap'>Machine backups using tarsnap</a></li><li><a href='http://www.bishnet.net/tim/blog/2008/11/10/freebsd-filesystem-snapshots/' rel='bookmark' title='Permanent Link: FreeBSD filesystem snapshots'>FreeBSD filesystem snapshots</a></li><li><a href='http://www.bishnet.net/tim/blog/2008/11/05/a-new-router-soekris-draytek-and-nanobsd/' rel='bookmark' title='Permanent Link: A new router (Soekris, Draytek and NanoBSD)'>A new router (Soekris, Draytek and NanoBSD)</a></li></ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.bishnet.net/tim/blog/2009/01/28/automating-tarsnap-backups/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Machine backups using tarsnap</title>
		<link>http://www.bishnet.net/tim/blog/2009/01/28/machine-backups-using-tarsnap/</link>
		<comments>http://www.bishnet.net/tim/blog/2009/01/28/machine-backups-using-tarsnap/#comments</comments>
		<pubDate>Wed, 28 Jan 2009 16:34:54 +0000</pubDate>
		<dc:creator>Tim Bishop</dc:creator>
				<category><![CDATA[Computing]]></category>
		<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[backup]]></category>
		<category><![CDATA[snapshot]]></category>
		<category><![CDATA[tarsnap]]></category>

		<guid isPermaLink="false">http://www.bishnet.net/tim/blog/?p=144</guid>
		<description><![CDATA[A look at backup options for my server and why I decided to go with tarsnap.


Related posts:<ol><li><a href='http://www.bishnet.net/tim/blog/2009/01/28/automating-tarsnap-backups/' rel='bookmark' title='Permanent Link: Automating tarsnap backups'>Automating tarsnap backups</a></li><li><a href='http://www.bishnet.net/tim/blog/2008/11/05/a-new-router-soekris-draytek-and-nanobsd/' rel='bookmark' title='Permanent Link: A new router (Soekris, Draytek and NanoBSD)'>A new router (Soekris, Draytek and NanoBSD)</a></li><li><a href='http://www.bishnet.net/tim/blog/2008/11/10/freebsd-filesystem-snapshots/' rel='bookmark' title='Permanent Link: FreeBSD filesystem snapshots'>FreeBSD filesystem snapshots</a></li></ol>]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve got a dedicated server that I&#8217;ve been backing up for the past few years. My crude backup system involved taring everything to local disk and then rsyncing it to a remote server. It worked well at first, but as the amount of data grew it was taking half a day to run. Add to that the amount of disk space being used by the local copy and I had to find a better solution.</p>
<p>I started off by looking at replacements for rsyncing to my remote server. <a href="http://rdiff-backup.nongnu.org/">rdiff-backup</a> seemed an obvious choice, but some friends had previously had problems with it, so I decided to give it a miss. There were various other similar tools that involved copying my data to another server (of mine), possibly with incremental features, but I decided to expand my search criteria and came across online backup services.</p>
<p>These services involve paying someone else to store your data remotely. In principal there didn&#8217;t seem to be much point; I had somewhere else to put my data, so why pay for it? One solution that seemed quite nice was <a href="http://search.cpan.org/~bradfitz/Brackup/lib/Brackup/Manual/Overview.pod">brackup</a> &#8211; a set of perl scripts that backed up to <a href="http://aws.amazon.com/s3/">Amazon S3</a>. Still not quite what I wanted though.</p>
<p>Then, I remembered a project <a href="http://www.daemonology.net/">Colin Percival</a> was working on &#8211; <a href="http://www.tarsnap.com/">tarsnap</a>. It&#8217;d be a while since I last checked up on progress so I was quite pleased to see that he&#8217;d just launched the <a href="http://www.daemonology.net/blog/2008-11-10-tarsnap-public-beta.html">public beta</a>. I signed up and handed over some money. What made me decide on this solution over others? Well,</p>
<p>1. It works pretty much like tar, except the archives are remotely stored. So that made it simple to use and fit it to my way of working.</p>
<p>2. It has all the benefits of snapshots with all the benefits of incremental backups. By this I mean that you can access each archive as if it was a full copy, but behind the scenes it only transmits and stores the differences (and charges you accordingly). You can delete any archive in the set without worrying about things like needing all the incrementals to the last full backup, and it sorts it all out for you.</p>
<p>3. Colin is a FreeBSD guy, so that pretty much guarantees it&#8217;s going to work well on FreeBSD and be supported in the future.</p>
<p>4. After doing the sums I realised the charges are pretty insignificant compared with the cost of running my own dedicated server.</p>
<p>5. There&#8217;s a whole load of stuff about security. It doesn&#8217;t particularly interest me though, but it&#8217;s nice to know my data is safe (nobody can read it &#8211; Colin included &#8211; without my key).</p>
<p>So I&#8217;ve been using tarsnap now for a few months and on the whole I&#8217;ve been very happy. There was a minor issue with the large number of files (Maildir email storage can get insane <img src='http://www.bishnet.net/tim/blog/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' />  ) I had to backup, but once I discovered the <code>--lowmem</code> flag all was fine. And Colin&#8217;s support has been great &#8211; he&#8217;s always been quick to answer if I&#8217;ve had a question or problem.</p>
<p>If you&#8217;re looking for an online backup service that&#8217;s geared towards Unix systems I highly recommend giving tarsnap a try.</p>
<p>(How about reading my post on <a href="http://www.bishnet.net/tim/blog/2009/01/28/automating-tarsnap-backups/">Automating Tarsnap Backups</a>?)</p>
<a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fwww.bishnet.net%2Ftim%2Fblog%2F2009%2F01%2F28%2Fmachine-backups-using-tarsnap%2F&amp;linkname=Machine%20backups%20using%20tarsnap"><img src="http://www.bishnet.net/tim/blog/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a>

<p>Related posts:<ol><li><a href='http://www.bishnet.net/tim/blog/2009/01/28/automating-tarsnap-backups/' rel='bookmark' title='Permanent Link: Automating tarsnap backups'>Automating tarsnap backups</a></li><li><a href='http://www.bishnet.net/tim/blog/2008/11/05/a-new-router-soekris-draytek-and-nanobsd/' rel='bookmark' title='Permanent Link: A new router (Soekris, Draytek and NanoBSD)'>A new router (Soekris, Draytek and NanoBSD)</a></li><li><a href='http://www.bishnet.net/tim/blog/2008/11/10/freebsd-filesystem-snapshots/' rel='bookmark' title='Permanent Link: FreeBSD filesystem snapshots'>FreeBSD filesystem snapshots</a></li></ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.bishnet.net/tim/blog/2009/01/28/machine-backups-using-tarsnap/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>FreeBSD filesystem snapshots</title>
		<link>http://www.bishnet.net/tim/blog/2008/11/10/freebsd-filesystem-snapshots/</link>
		<comments>http://www.bishnet.net/tim/blog/2008/11/10/freebsd-filesystem-snapshots/#comments</comments>
		<pubDate>Mon, 10 Nov 2008 13:13:26 +0000</pubDate>
		<dc:creator>Tim Bishop</dc:creator>
				<category><![CDATA[Computing]]></category>
		<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[snapshot]]></category>
		<category><![CDATA[ufs]]></category>
		<category><![CDATA[zfs]]></category>

		<guid isPermaLink="false">http://www.bishnet.net/tim/blog/?p=127</guid>
		<description><![CDATA[Being able to take snapshots of a filesystem is very handy for backups, but does it actually work on FreeBSD?


Related posts:<ol><li><a href='http://www.bishnet.net/tim/blog/2009/01/28/automating-tarsnap-backups/' rel='bookmark' title='Permanent Link: Automating tarsnap backups'>Automating tarsnap backups</a></li><li><a href='http://www.bishnet.net/tim/blog/2008/07/16/freebsd-stuff/' rel='bookmark' title='Permanent Link: FreeBSD stuff'>FreeBSD stuff</a></li><li><a href='http://www.bishnet.net/tim/blog/2006/06/03/i-dont-have-a-good-history-with-freebsd-raid/' rel='bookmark' title='Permanent Link: I don&#8217;t have a good history with FreeBSD RAID&#8230;'>I don&#8217;t have a good history with FreeBSD RAID&#8230;</a></li></ol>]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been looking at <a href="http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/snapshots.html">filesystem snapshots</a> on FreeBSD lately and I have to say I wasn&#8217;t too impressed. Yes, the functionality is there, but the interface sucks. For UFS you have to create a snapshot, which takes a while, and which appears as a file within the filesystem you&#8217;re snapshotting. Then you have to use an md device to mount it. ZFS is easier, but different. What we need is a simple and standard interface to both.</p>
<p>Fortunately I discovered Ralf Engelschall&#8217;s <a href="http://people.freebsd.org/~rse/snapshot/">snapshot management utilities</a>. He&#8217;s written a couple of tools that make creating and managing snapshots really easy.</p>
<p>Using cron one can schedule creation of hourly, daily and weekly snapshots for filesystems. You can specify that you want 3 hourly snapshots, 2 daily and 1 weekly for a given filesystem. The system takes care of everything else. And by using amd (the FreeBSD automounter) these snapshots can automatically be made available through a given mount point. It couldn&#8217;t get any easier!</p>
<p>Well, actually, it could get slightly easier. Currently these tools are available from Ralf&#8217;s site or from the <a href="http://www.freshports.org/sysutils/freebsd-snapshot/">FreeBSD ports collection</a>. It strikes me that something as useful and fundamental as this should really make its way in to the base system.</p>
<p><strong>Update:</strong> Whilst this worked well in testing, once I applied it to my server with a large (approx, but not over, 2TB) filesystem it hung the machine completely, even on the console. I haven&#8217;t investigated further yet.</p>
<p><strong>Update 2:</strong> Well, I have to say I&#8217;m disappointed. Ralf&#8217;s scripts worked great, but the snapshotting of large UFS filesystems in FreeBSD is as good as broken. When it takes hours to create a snapshot, locking out the filesystem (<a href="http://www.freebsd.org/cgi/query-pr.cgi?pr=128832">and maybe even the machine</a>) for hours, it might as well not be there. There seems to be an attitude of &#8220;just accept it&#8221;, which I&#8217;m not impressed about either. Roll on ZFS&#8230; (yes &#8211; I know it&#8217;s there now, but I&#8217;d like it to mature just a little more <img src='http://www.bishnet.net/tim/blog/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' />  ).</p>
<a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fwww.bishnet.net%2Ftim%2Fblog%2F2008%2F11%2F10%2Ffreebsd-filesystem-snapshots%2F&amp;linkname=FreeBSD%20filesystem%20snapshots"><img src="http://www.bishnet.net/tim/blog/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a>

<p>Related posts:<ol><li><a href='http://www.bishnet.net/tim/blog/2009/01/28/automating-tarsnap-backups/' rel='bookmark' title='Permanent Link: Automating tarsnap backups'>Automating tarsnap backups</a></li><li><a href='http://www.bishnet.net/tim/blog/2008/07/16/freebsd-stuff/' rel='bookmark' title='Permanent Link: FreeBSD stuff'>FreeBSD stuff</a></li><li><a href='http://www.bishnet.net/tim/blog/2006/06/03/i-dont-have-a-good-history-with-freebsd-raid/' rel='bookmark' title='Permanent Link: I don&#8217;t have a good history with FreeBSD RAID&#8230;'>I don&#8217;t have a good history with FreeBSD RAID&#8230;</a></li></ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.bishnet.net/tim/blog/2008/11/10/freebsd-filesystem-snapshots/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>FreeBSD with Netgear WG311T</title>
		<link>http://www.bishnet.net/tim/blog/2008/11/08/freebsd-with-netgear-wg311t/</link>
		<comments>http://www.bishnet.net/tim/blog/2008/11/08/freebsd-with-netgear-wg311t/#comments</comments>
		<pubDate>Sat, 08 Nov 2008 13:15:58 +0000</pubDate>
		<dc:creator>Tim Bishop</dc:creator>
				<category><![CDATA[Computing]]></category>
		<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[Netgear]]></category>
		<category><![CDATA[WG311T]]></category>
		<category><![CDATA[WPA]]></category>
		<category><![CDATA[WPA2]]></category>

		<guid isPermaLink="false">http://www.bishnet.net/tim/blog/?p=116</guid>
		<description><![CDATA[How to get a Netgear WG311T to work on FreeBSD in a Soekris net5501.


Related posts:<ol><li><a href='http://www.bishnet.net/tim/blog/2008/11/05/a-new-router-soekris-draytek-and-nanobsd/' rel='bookmark' title='Permanent Link: A new router (Soekris, Draytek and NanoBSD)'>A new router (Soekris, Draytek and NanoBSD)</a></li><li><a href='http://www.bishnet.net/tim/blog/2008/11/07/eduroam-on-freebsd/' rel='bookmark' title='Permanent Link: Eduroam on FreeBSD'>Eduroam on FreeBSD</a></li><li><a href='http://www.bishnet.net/tim/blog/2008/11/10/freebsd-filesystem-snapshots/' rel='bookmark' title='Permanent Link: FreeBSD filesystem snapshots'>FreeBSD filesystem snapshots</a></li></ol>]]></description>
			<content:encoded><![CDATA[<p>A few days I wrote about my new <a href="http://www.bishnet.net/tim/blog/2008/11/05/a-new-router-soekris-draytek-and-nanobsd/">Soekris net5501 router</a>. In that post I mentioned that the only thing left to sort out was the wireless card. It turned out to be simpler to do than I thought.</p>
<p>I decided to go for a <a href="http://www.netgear.com/Products/Adapters/SuperGWirelessAdapters/WG311T.aspx">Netgear WG311T</a>. It&#8217;s a 802.11b/g PCI card that&#8217;s compatible with FreeBSD through the Atheros chipset and ath driver, and it fits in the <a href="http://www.soekris.com/net5501.htm">net5501</a> just fine. As expected I had to remove the net5501 board from the case to attach the card, but that only involved undoing a handful of screws.</p>
<p>Getting it working on FreeBSD was trivial. I added the following lines to my kernel configuration (they&#8217;re already there in GENERIC, I believe, but I built my own kernel because of the net5501):</p>
<blockquote><p><code>device          wlan<br />
device          wlan_ccmp<br />
device          wlan_scan_ap<br />
device          wlan_scan_sta<br />
device          wlan_xauth<br />
device          ath<br />
device          ath_hal<br />
device          ath_rate_sample</code></p></blockquote>
<p>Then it was a simple case of initialising the card in <code>/etc/rc.conf</code>:</p>
<blockquote><p><code>ifconfig_ath0="inet 1.2.3.4 netmask 255.255.255.0 ssid myssid mode 11g mediaopt hostap"<br />
ipv6_ifconfig_ath0="1:2:3::4 prefixlen 64"</code></p></blockquote>
<p>And I also added <code>ath0</code> to <code>rtadvd_interfaces</code> and <code>dhcpd_interfaces</code>.</p>
<p>With that done the final step was to configure hostapd through <code>/etc/hostapd.conf</code>:</p>
<blockquote><p><code>interface=ath0<br />
debug=1<br />
ctrl_interface=/var/run/hostapd<br />
ctrl_interface_group=wheel<br />
ssid=myssid<br />
country_code=GB<br />
wpa=2<br />
wpa_passphrase=my passphrase<br />
wpa_key_mgmt=WPA-PSK<br />
wpa_pairwise=CCMP</code></p></blockquote>
<p>This enables WPA2 using AES (rather than TKIP).</p>
<p>Connecting clients was no problem. My laptop and my <a href="http://www.slimdevices.com/">squeezeboxes</a> all connected fine.</p>
<p>One concern I had doing this was whether a PCI wireless card would have the same signal strength as a purpose access point. I seem to be getting the same signal power from this new setup as I did from my old 3com 802.11b access point. What does that tell me? I&#8217;m not sure. I would have expected technology to have come on a bit over the years. Maybe it has, but the fact that the card is lower powered balances it out? Regardless, it covers my whole house, so it&#8217;s not an issue.</p>
<p>So now I&#8217;m done. I&#8217;ve switched off my last piece of old equipment. My power draw has dropped significantly, the noise levels have decreased, and I&#8217;m a happy geek with a cupboard full of shiny new stuff. <img src='http://www.bishnet.net/tim/blog/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fwww.bishnet.net%2Ftim%2Fblog%2F2008%2F11%2F08%2Ffreebsd-with-netgear-wg311t%2F&amp;linkname=FreeBSD%20with%20Netgear%20WG311T"><img src="http://www.bishnet.net/tim/blog/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a>

<p>Related posts:<ol><li><a href='http://www.bishnet.net/tim/blog/2008/11/05/a-new-router-soekris-draytek-and-nanobsd/' rel='bookmark' title='Permanent Link: A new router (Soekris, Draytek and NanoBSD)'>A new router (Soekris, Draytek and NanoBSD)</a></li><li><a href='http://www.bishnet.net/tim/blog/2008/11/07/eduroam-on-freebsd/' rel='bookmark' title='Permanent Link: Eduroam on FreeBSD'>Eduroam on FreeBSD</a></li><li><a href='http://www.bishnet.net/tim/blog/2008/11/10/freebsd-filesystem-snapshots/' rel='bookmark' title='Permanent Link: FreeBSD filesystem snapshots'>FreeBSD filesystem snapshots</a></li></ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.bishnet.net/tim/blog/2008/11/08/freebsd-with-netgear-wg311t/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Eduroam on FreeBSD</title>
		<link>http://www.bishnet.net/tim/blog/2008/11/07/eduroam-on-freebsd/</link>
		<comments>http://www.bishnet.net/tim/blog/2008/11/07/eduroam-on-freebsd/#comments</comments>
		<pubDate>Fri, 07 Nov 2008 12:06:20 +0000</pubDate>
		<dc:creator>Tim Bishop</dc:creator>
				<category><![CDATA[Work]]></category>
		<category><![CDATA[eduroam]]></category>
		<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[kent]]></category>

		<guid isPermaLink="false">http://www.bishnet.net/tim/blog/?p=104</guid>
		<description><![CDATA[How to get the Eduroam wireless network at the University of Kent to work on FreeBSD.


Related posts:<ol><li><a href='http://www.bishnet.net/tim/blog/2008/11/08/freebsd-with-netgear-wg311t/' rel='bookmark' title='Permanent Link: FreeBSD with Netgear WG311T'>FreeBSD with Netgear WG311T</a></li><li><a href='http://www.bishnet.net/tim/blog/2008/07/16/freebsd-stuff/' rel='bookmark' title='Permanent Link: FreeBSD stuff'>FreeBSD stuff</a></li><li><a href='http://www.bishnet.net/tim/blog/2006/05/12/nfsipsec-performance/' rel='bookmark' title='Permanent Link: NFS+IPsec Performance'>NFS+IPsec Performance</a></li></ol>]]></description>
			<content:encoded><![CDATA[<p>We use the <a href="http://www.kent.ac.uk/itservices/wireless/">Eduroam wireless network</a> at the <a href="http://www.kent.ac.uk/">University of Kent</a>. There&#8217;s various guides for getting it working on Linux, but I thought I&#8217;d try on FreeBSD. It&#8217;s pretty simple.</p>
<p>First create <code>/etc/wpa_supplicant.conf</code> with the following content:</p>
<blockquote><p><code>network={<br />
ssid="eduroam"<br />
proto=WPA WPA2<br />
key_mgmt=WPA-EAP<br />
eap=PEAP<br />
group=TKIP<br />
identity="tdb@kent.ac.uk"<br />
password="YourPassword"<br />
}</code></p></blockquote>
<p>Then add the following to <code>/etc/rc.conf</code>:</p>
<blockquote><p><code>ifconfig_ath0="WPA DHCP"</code></p></blockquote>
<p>Replacing <code>ath0</code> with your wireless adapter if it&#8217;s different.</p>
<p>Then start it up as follows (or reboot):</p>
<blockquote><p><code># /etc/rc.d/netif start</code></p></blockquote>
<p>You can use <code>ifconfig</code> to confirm the link is up, and <code>ping</code> to test.</p>
<p>For more general information about wireless networking in FreeBSD please see <a href="http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/network-wireless.html">this section of the handbook</a>.</p>
<a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fwww.bishnet.net%2Ftim%2Fblog%2F2008%2F11%2F07%2Feduroam-on-freebsd%2F&amp;linkname=Eduroam%20on%20FreeBSD"><img src="http://www.bishnet.net/tim/blog/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a>

<p>Related posts:<ol><li><a href='http://www.bishnet.net/tim/blog/2008/11/08/freebsd-with-netgear-wg311t/' rel='bookmark' title='Permanent Link: FreeBSD with Netgear WG311T'>FreeBSD with Netgear WG311T</a></li><li><a href='http://www.bishnet.net/tim/blog/2008/07/16/freebsd-stuff/' rel='bookmark' title='Permanent Link: FreeBSD stuff'>FreeBSD stuff</a></li><li><a href='http://www.bishnet.net/tim/blog/2006/05/12/nfsipsec-performance/' rel='bookmark' title='Permanent Link: NFS+IPsec Performance'>NFS+IPsec Performance</a></li></ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.bishnet.net/tim/blog/2008/11/07/eduroam-on-freebsd/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>A new router (Soekris, Draytek and NanoBSD)</title>
		<link>http://www.bishnet.net/tim/blog/2008/11/05/a-new-router-soekris-draytek-and-nanobsd/</link>
		<comments>http://www.bishnet.net/tim/blog/2008/11/05/a-new-router-soekris-draytek-and-nanobsd/#comments</comments>
		<pubDate>Wed, 05 Nov 2008 12:35:31 +0000</pubDate>
		<dc:creator>Tim Bishop</dc:creator>
				<category><![CDATA[Computing]]></category>
		<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[Draytek]]></category>
		<category><![CDATA[NanoBSD]]></category>
		<category><![CDATA[net5501]]></category>
		<category><![CDATA[Soekris]]></category>
		<category><![CDATA[Vigor]]></category>
		<category><![CDATA[Vigor 110]]></category>

		<guid isPermaLink="false">http://www.bishnet.net/tim/blog/?p=93</guid>
		<description><![CDATA[A look at how I replaced my ageing router and ADSL modem with a Soekris net5501 running FreeBSD.


Related posts:<ol><li><a href='http://www.bishnet.net/tim/blog/2006/03/19/router-rebuild-or-an-excuse-to-play-with-ipv6/' rel='bookmark' title='Permanent Link: Router rebuild (or, an excuse to play with IPv6?)'>Router rebuild (or, an excuse to play with IPv6?)</a></li><li><a href='http://www.bishnet.net/tim/blog/2008/11/08/freebsd-with-netgear-wg311t/' rel='bookmark' title='Permanent Link: FreeBSD with Netgear WG311T'>FreeBSD with Netgear WG311T</a></li><li><a href='http://www.bishnet.net/tim/blog/2008/11/10/freebsd-filesystem-snapshots/' rel='bookmark' title='Permanent Link: FreeBSD filesystem snapshots'>FreeBSD filesystem snapshots</a></li></ol>]]></description>
			<content:encoded><![CDATA[<p>A few months back I wrote about <a href="http://www.bishnet.net/tim/blog/2008/06/19/ill-build-a-new-server-its-got-to-be-easier-than-patching-up-the-old-one/">building a new server</a>. It turned out to be more complicated than I thought, but 5 months on it&#8217;s still working well. Over the last few weeks I&#8217;ve been working on my next project &#8211; replacing my router.</p>
<p>The old router was an old dual CPU Pentium 3 machine with a couple of small SCSI hard disks in it. It was a full tower case and took up a lot of room and made a lot of noise. And, surprisingly, the power consumption was pretty similar to the server I recently built (which has way more in it). It even still had the <a href="http://speedtouch.hysplace.co.uk/images/28_L.jpg">original Speedtouch USB modem</a> that BT once gave to me. So it had to go.</p>
<p>I spent quite some time deliberating the way forward. I could have gone for a domestic router like most other people do, but I&#8217;m a geek, and I like the flexibility of doing it myself. But at the same time, a small sized unit, with low power requirements, and no noise, is what I wanted. The solution came in the form of a <a href="http://www.soekris.com/net5501.htm">Soekris net5501</a>.</p>
<p>I went for the net5501-70 which has a 500Mhz CPU and 512MB of RAM. Not a lot by today&#8217;s standards, but more than sufficient for what I needed. And incidently, it&#8217;s quicker than the old router. I got the model with a case, and got the mounting brackets for a hard drive (which although I don&#8217;t intend to use at this stage, it was cheaper to get it now than later). I also purchased a pair of <a href="http://www.sandisk.com/Products/Item(1182)-SDCFX3-004G-A31-SanDisk_Extreme_III_CompactFlash_4GB.aspx">4GB SanDisk Extreme III Compact Flash</a> cards to run the thing from. It&#8217;s worth noting that Soekris recommend SanDisk CF cards, and they&#8217;re peanuts at play.com.</p>
<p>The next point to consider was how to connect to the ADSL line. I could have stuck with the USB modem, but the drivers were aging, I wasn&#8217;t sure if it was the cause of the odd disconnections and failures to reconnect that I&#8217;d been getting. I looked at internal ADSL cards, but it seemed to be a bit of a gamble as to how they worked and if I&#8217;d be able to get the right drivers. In the end I settled on the <a href="http://www.draytek.co.uk/products/vigor110.html">Draytek Vigor 110</a>.</p>
<p>The Vigor 110 is basically just a PPPoA to PPPoE bridge. PPPoE isn&#8217;t widely used in the UK, but is in other parts of the world, so the support in FreeBSD was good (via ppp and the ng_pppoe module). It worked perfectly. It really was just a case of plugging it in and pointing ppp at it &#8211; no configuration required! And, just like the USB modem, it gives the router IP directly to the PC, so there&#8217;s no messing around to get that working either.</p>
<p>Longer term I plan to fill the net5501&#8217;s PCI slot with a wireless card, but I haven&#8217;t decided which to go for yet. This would turn the unit in to my wifi access point as well, but for now I&#8217;ll just stick with the separate one. I&#8217;d welcome advice on cards that are supported by FreeBSD.</p>
<p>So, that&#8217;s hardware all sorted. Next came the software. If you&#8217;ve been following my other posts you&#8217;ll know I&#8217;m a big fan of <a href="http://www.freebsd.org/">FreeBSD</a>, so it&#8217;s pretty clear what route I was going to take here. But given the use of CF cards I had to approach things differently. I also wanted to be able to power the system off without causing any filesystem problems, so this required the card to be mounted read-only.</p>
<p><a href="http://www.freebsd.org/doc/en/articles/nanobsd/article.html">NanoBSD</a> to the rescue! NanoBSD is a script that builds an image containing FreeBSD that can be written directly to a CF card (or anything else, really). It&#8217;s customisable, and I wrote a few bits to pull down the packages I wanted, and to make some configuration tweaks. It has a read-only root filesystem on the card, and uses memory-backed filesystems for /var and /etc. Config is stored in a separate partition on the disk and is copied to the memory-backed /etc during the boot process. But the best bit is the way it handles upgrades.</p>
<p>Upgrades are neatly done by having two root filesystems on the card. When you&#8217;re running off one you&#8217;re free to upgrade the other. NanoBSD generates two images; one for the entire card, and one that can be written to a single root filesystem. It also provides a script to write the image to the card and update the boot loader to boot from the right partition. So upgrading is as simple as re-running the NanoBSD script, writing the new image to the &#8220;other&#8221; partition, and rebooting. It can all be done live, and the only downtime is the time taken for a reboot (which is under a minute).</p>
<p>Of course, to use NanoBSD you need another system to do the builds on. Fortunately I&#8217;ve got a nice beefy server that can handle the job (although it took a few hacks to build the i386 image on an amd64 system). I&#8217;ve also got a nice <a href="http://tinderbox.marcuscom.com/">Tinderbox</a> setup which I already use for testing ports and which provided a nice supply of up-to-date packages.</p>
<p>So I&#8217;m happy, at last. Apart from my wifi access point I&#8217;ve managed to replace all my aging, power hungry, noisy equipment with nice new stuff. I guess I&#8217;ll be doing it all again in a few years <img src='http://www.bishnet.net/tim/blog/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' />  .</p>
<a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fwww.bishnet.net%2Ftim%2Fblog%2F2008%2F11%2F05%2Fa-new-router-soekris-draytek-and-nanobsd%2F&amp;linkname=A%20new%20router%20%28Soekris%2C%20Draytek%20and%20NanoBSD%29"><img src="http://www.bishnet.net/tim/blog/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a>

<p>Related posts:<ol><li><a href='http://www.bishnet.net/tim/blog/2006/03/19/router-rebuild-or-an-excuse-to-play-with-ipv6/' rel='bookmark' title='Permanent Link: Router rebuild (or, an excuse to play with IPv6?)'>Router rebuild (or, an excuse to play with IPv6?)</a></li><li><a href='http://www.bishnet.net/tim/blog/2008/11/08/freebsd-with-netgear-wg311t/' rel='bookmark' title='Permanent Link: FreeBSD with Netgear WG311T'>FreeBSD with Netgear WG311T</a></li><li><a href='http://www.bishnet.net/tim/blog/2008/11/10/freebsd-filesystem-snapshots/' rel='bookmark' title='Permanent Link: FreeBSD filesystem snapshots'>FreeBSD filesystem snapshots</a></li></ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.bishnet.net/tim/blog/2008/11/05/a-new-router-soekris-draytek-and-nanobsd/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>FreeBSD stuff</title>
		<link>http://www.bishnet.net/tim/blog/2008/07/16/freebsd-stuff/</link>
		<comments>http://www.bishnet.net/tim/blog/2008/07/16/freebsd-stuff/#comments</comments>
		<pubDate>Wed, 16 Jul 2008 16:22:27 +0000</pubDate>
		<dc:creator>Tim Bishop</dc:creator>
				<category><![CDATA[Computing]]></category>
		<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[KRoC]]></category>
		<category><![CDATA[Squeezecenter]]></category>

		<guid isPermaLink="false">http://www.bishnet.net/tim/blog/?p=62</guid>
		<description><![CDATA[I&#8217;ve done a bit of work on my FreeBSD ports lately. Firstly, after building my new server, I got round to upgrading from SlimServer to SqueezeCenter. This also meant sorting out ports for all the plugins I use. This didn&#8217;t take too long, and you can find them all over here. So far I&#8217;m liking [...]


Related posts:<ol><li><a href='http://www.bishnet.net/tim/blog/2008/11/10/freebsd-filesystem-snapshots/' rel='bookmark' title='Permanent Link: FreeBSD filesystem snapshots'>FreeBSD filesystem snapshots</a></li><li><a href='http://www.bishnet.net/tim/blog/2006/03/20/a-new-libstatgrab-release/' rel='bookmark' title='Permanent Link: A new libstatgrab release'>A new libstatgrab release</a></li><li><a href='http://www.bishnet.net/tim/blog/2008/12/17/extracting-album-art-from-itunes/' rel='bookmark' title='Permanent Link: Extracting album art from iTunes'>Extracting album art from iTunes</a></li></ol>]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve done a bit of work on my FreeBSD ports lately. Firstly, after <a href="http://www.bishnet.net/tim/blog/2008/06/19/ill-build-a-new-server-its-got-to-be-easier-than-patching-up-the-old-one/">building my new server</a>, I got round to upgrading from SlimServer to <a href="http://www.freshports.org/audio/squeezecenter/">SqueezeCenter</a>. This also meant sorting out ports for all the plugins I use. This didn&#8217;t take too long, and you <a href="http://www.freshports.org/audio/squeezecenter-dynamicplaylist/">can</a> <a href="http://www.freshports.org/audio/squeezecenter-lazysearch/">find</a> <a href="http://www.freshports.org/audio/squeezecenter-sqlplaylist/">them</a> <a href="http://www.freshports.org/audio/squeezecenter-superdatetime/">all</a> <a href="http://www.freshports.org/audio/squeezecenter-trackstat/">over</a> <a href="http://www.freshports.org/audio/squeezecenter-transitionupdater/">here</a>. So far I&#8217;m liking SqueezeCenter, and I&#8217;d highly recommend it (and a SqueezeBox, of course).</p>
<p>I also maintain a port for a suite of software called <a href="http://projects.cs.kent.ac.uk/projects/kroc/trac/">KRoC</a>. KRoC is written and maintained <a href="http://www.cs.kent.ac.uk/">where I work</a>, so apart from making it available to FreeBSD users I also have an interest in supporting the work done by our department. I&#8217;ve been waiting some time for a 1.5.x release of KRoC, but I finally got impatient. I automated the production of <a href="http://ftp.i-scream.org/pub/kroc/">snapshots</a> from their stable branch, and updated the <a href="http://www.freshports.org/lang/kroc/">port</a> to build from that. I also run a FreeBSD 7 machine in their buildbot system to further test KRoC on my favourite operating system <img src='http://www.bishnet.net/tim/blog/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>And in other FreeBSD news, I cast my vote in the FreeBSD Core elections. It&#8217;s hard to know who to vote for, but I gave their statements a good read and made a decision. Good luck to them all!</p>
<a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fwww.bishnet.net%2Ftim%2Fblog%2F2008%2F07%2F16%2Ffreebsd-stuff%2F&amp;linkname=FreeBSD%20stuff"><img src="http://www.bishnet.net/tim/blog/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a>

<p>Related posts:<ol><li><a href='http://www.bishnet.net/tim/blog/2008/11/10/freebsd-filesystem-snapshots/' rel='bookmark' title='Permanent Link: FreeBSD filesystem snapshots'>FreeBSD filesystem snapshots</a></li><li><a href='http://www.bishnet.net/tim/blog/2006/03/20/a-new-libstatgrab-release/' rel='bookmark' title='Permanent Link: A new libstatgrab release'>A new libstatgrab release</a></li><li><a href='http://www.bishnet.net/tim/blog/2008/12/17/extracting-album-art-from-itunes/' rel='bookmark' title='Permanent Link: Extracting album art from iTunes'>Extracting album art from iTunes</a></li></ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.bishnet.net/tim/blog/2008/07/16/freebsd-stuff/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>&#8220;I&#8217;ll build a new server; it&#8217;s got to be easier than patching up the old one&#8230;&#8221;</title>
		<link>http://www.bishnet.net/tim/blog/2008/06/19/ill-build-a-new-server-its-got-to-be-easier-than-patching-up-the-old-one/</link>
		<comments>http://www.bishnet.net/tim/blog/2008/06/19/ill-build-a-new-server-its-got-to-be-easier-than-patching-up-the-old-one/#comments</comments>
		<pubDate>Thu, 19 Jun 2008 22:24:29 +0000</pubDate>
		<dc:creator>Tim Bishop</dc:creator>
				<category><![CDATA[Computing]]></category>
		<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[3ware]]></category>
		<category><![CDATA[9690]]></category>
		<category><![CDATA[9690SA]]></category>
		<category><![CDATA[AN05]]></category>
		<category><![CDATA[Cable CRC error]]></category>
		<category><![CDATA[Drive timeout detected]]></category>
		<category><![CDATA[P5E3]]></category>
		<category><![CDATA[Seagate]]></category>
		<category><![CDATA[SN04]]></category>
		<category><![CDATA[ST31000340NS]]></category>

		<guid isPermaLink="false">http://www.bishnet.net/tim/blog/?p=61</guid>
		<description><![CDATA[A few weeks back I started having problems with my file server at home. This machine is fairly important to us; it holds all our photos, music and other files. For years I&#8217;ve been bodging it together with various old parts scavenged from other machines and some new parts when needed. But, once again, it&#8217;d [...]


Related posts:<ol><li><a href='http://www.bishnet.net/tim/blog/2006/09/01/a-new-server-and-a-new-raid-setup/' rel='bookmark' title='Permanent Link: A new server and a new RAID setup'>A new server and a new RAID setup</a></li><li><a href='http://www.bishnet.net/tim/blog/2006/06/03/i-dont-have-a-good-history-with-freebsd-raid/' rel='bookmark' title='Permanent Link: I don&#8217;t have a good history with FreeBSD RAID&#8230;'>I don&#8217;t have a good history with FreeBSD RAID&#8230;</a></li><li><a href='http://www.bishnet.net/tim/blog/2006/05/12/erm-whoops/' rel='bookmark' title='Permanent Link: Erm, whoops?'>Erm, whoops?</a></li></ol>]]></description>
			<content:encoded><![CDATA[<p>A few weeks back I started having problems with my file server at home. This machine is fairly important to us; it holds all our photos, music and other files. For years I&#8217;ve been bodging it together with various old parts scavenged from other machines and some new parts when needed. But, once again, it&#8217;d started to break. Disks were dropping out of the RAID unexpectedly, and the replacements were refusing to rebuild. Unsure of where the problem was I uttered the fateful words &#8220;I&#8217;ll build a new server; it&#8217;s got to be easier than patching up the old one&#8230;&#8221;. My colleagues were sceptical, but I ploughed on anyway. Maybe I should have listened to them?</p>
<p>It took the best part of a week to work out what I wanted. There were so many decisions to make: which RAID card, disks, motherboard, CPU, RAM, case, etc. I researched each one as much as I could, but there&#8217;s a bottomless pit of information on the Internet. Eventually I settled on a 3ware 9690SA RAID card with 4 Seagate ST31000340NS disks. The other bits were fairly decent to make sure the machine would have a good life, but not excessive.</p>
<p>The reason for choosing a hardware RAID solution over software RAID was simple &#8211; reliability. Now, I&#8217;m not knocking software RAID in principal (look at ZFS, for example), but the implementations for RAID 3-5 on FreeBSD aren&#8217;t great (yes, it has ZFS, but I&#8217;m not in the mood for trailblazing this time round). I wanted to stick with FreeBSD so I opted for the well known reliablity that 3ware cards provide. And the 5 year warranty on Seagate disks made them an attractive choice.</p>
<p>The purchasing process wasn&#8217;t as simple as it could have been. I ordered from <a href="http://www.dabs.com/">dabs.com</a>, <a href="http://www.span.com/">span.com</a> (they specialise in storage stuff) and <a href="http://www.overclockers.co.uk/">overclockers.co.uk</a>. I&#8217;ve used all three companies before, so I wasn&#8217;t too concerned about problems. The bulk of it was ordered from Dabs &#8211; it looks like they&#8217;re back to being competitive on prices. The problems started almost immediately; Dabs held my order over an issue with my address. It&#8217;s happened once before and that put me off Dabs for some time, but we use them all the time at work, so I had hopes they&#8217;d be better now. It took a working day to resolve that issue&#8230; and then next day I get an email to say my credit card company has declined the order. On the phone to them and through to their security department; seems buying lots of stuff online is unusual&#8230; not for me it isn&#8217;t. Anyway, that was resolved and then I had more waiting for Dabs to try the transaction again. Eventually I got impatient and tried their online chat thing and the matter was resolved in minutes. Meanwhile the parts ordered from the other two suppliers were sitting on my desk.</p>
<p>Eventually it all arrived and I took it home. Ruth wasn&#8217;t overly impressed when I cleared off the dining room table and covered it in computer parts, but I assured her it wasn&#8217;t for long. That was a couple of weeks ago &#8211; it&#8217;s all still there.</p>
<p>I spent a weekend putting things together and testing it all out. I routed every cable neatly and tied them carefully to the case to ensure nothing moved about. Airflow was good and the additional fans in the case were doing a great job of keeping things cool (not sure about their blue LEDs though&#8230;). All was looking good and I was enjoying the process.</p>
<p>Then I tried to use the RAID card. The first problems hit when I turned on the motherboard&#8217;s RAID, which I&#8217;d intended to use to mirror the system disks, whilst the 9690SA was plugged in. I&#8217;d gone for a Asus P5E3 and expected both RAID systems to work happily together, but sadly I was wrong. I experienced unusual problems such as the machine hanging on the Intel Matrix Storage (the onboard RAID) screen and disks randomly disappearing from both arrays. In the end I gave up and turned off the onboard RAID; I figured the FreeBSD RAID 1 (gmirror) is pretty solid, so I&#8217;d use that.</p>
<p>Thinking I&#8217;d got over the worst of the problems I moved on to setting up the 9690SA. Things looked good for a while; the interface was clear and everything was easy to set up. It wasn&#8217;t until I started trying to put data on that I noticed problems. Here&#8217;s a snippet from the error log (largely for the benefit of Google):</p>
<pre>E=0200 T=08:26:00 : <strong>Cable CRC error</strong>
SATA Device. port = 0x0
task file written out : cd dh ch cl sn sc ft
                      : 00 70 00 00 00 1200 00
  task file read back : st dh ch cl sn sc er
                      : 00 00 00 00 00 8441 00
E=0200 T=08:26:00 P=0h: Soft reset drive
E=0200 T=08:26:00 P=0h: exitCode = 1013
Port retry not allowed
E=0200 T=08:26:00 P=0h: Prepare for command retry
exitCode = 1013</pre>
<p>At first I wasn&#8217;t sure what to make of this. Maybe it was the cable or connection, but on all four drives? It was a special 4-in-1 (SFF8087) cable, but it still seemed odd. I logged the case with 3ware&#8217;s technical support and got back a response suggesting I try another cable. Well, duh, I could have figured that myself. I was hoping they might be able to point out any other less obvious potential causes.</p>
<p>So, I purchased another cable. It took a couple of days to arrive and did absolutely nothing to resolve the problem. Sigh. At the same time as this was going on I had another problem &#8211; it&#8217;s only with hindsight that I know to separate the two:</p>
<pre>E=0204 T=18:34:36     : Port timeout (ext)
SATA Device. port = 0x2
task file written out : cd dh ch cl sn sc ft
                      : 00 04 00 00 00 00 00
Send AEN (code, time): 0x9, 06/10/2008 18:34:36
<strong>Drive timeout detected</strong>
(EC:0x09, SK=0x04, ASC=0x00, ASCQ=0x00, SEV=01, Type=0x71)
phy=6
  task file read back : st dh ch cl sn sc er
                      : 00 00 00 00 00 00 00
E=0204 T=18:34:36 P=2h: Soft reset drive
E=0204 T=18:34:36 P=2 : Inserting Set UDMA command
E=0204 T=18:34:36 P=2h: Check power cycles, initial=40, current=40
E=0204 T=18:34:36 P=2h: exitCode = 1013
Port retry not allowed
E=0204 T=18:34:36 P=2h: Prepare for command retry
exitCode = 1013
E=0204 T=18:34:36 U=0 : Retrying command</pre>
<p>These errors happened less frequently, but eventually caused I/O to hang and the controller to reset. Again I logged this with 3ware&#8217;s technical support and got back a bunch of not so helpful responses. They suggested moving the card in the machine, testing the disks, checking the power supply, and so on. All valid points, but what annoyed me was they could only ask me to check one at a time&#8230; and they could only reply to me once a day. Plus I&#8217;d already done everything they suggested. It took a week to go through this nonsense.</p>
<p>In the mean time I spent a lot of time experimenting, fiddling, and web searching. Eventually I found the following two pages, although it took me a while to realise their significance:</p>
<p><a href="http://www.3ware.com/KB/article.aspx?id=15385">http://www.3ware.com/KB/article.aspx?id=15385</a><br />
<a href="http://www.3ware.com/kb/article.aspx?id=15171">http://www.3ware.com/kb/article.aspx?id=15171</a></p>
<p>The first of the articles explicitly mentions my controller card and drives, so it seemed to be the right thing to do. But I had the SN04 firmware on my drives and they wanted me to apply AN05. I asked both 3ware and Seagate to clarify the differences, but neither gave satisfactory answers. Seagate managed to give me the SN05 firmware to try, but it didn&#8217;t help. In slight desperation, and without anyone giving me much help, I decided to take a punt on the AN05 firmware.</p>
<p>IT WORKED!</p>
<p>There was a lot of tension for the next few hours whilst I continued testing, but eventually I was satisfied that the AN05 firmware solved the problem. Later attempts to clarify with Seagate why SN05, which they gave me, didn&#8217;t work and AN05, which 3ware pointed me at, did work, got nowhere. Seagate support actually admitted that they basically don&#8217;t know.</p>
<p>So on to the next issue. The second article suggested limiting the speed of the drives to work around the drive timeout issue. It&#8217;s definately a workaround, but it was worth a shot. I&#8217;d already removed the jumpers from the drives that limited them to 1.5 Gb/s, and they were a nightmare to do &#8211; I&#8217;ve never seen such small and fiddly jumpers on a disk&#8230; it was completely unnecessary given the available space. This time I decided to do the limiting in the 9690SA&#8217;s software.</p>
<p>ONCE AGAIN, IT WORKED!</p>
<p>So at this point I&#8217;m happy. Things are looking good. That last fix is definately a workaround, and I&#8217;ve told 3ware they need to fix it. It&#8217;s a bug, and bugs need fixing. I&#8217;m now using the array to store my data on, it&#8217;s nice and quick (a 512MB write cache helps!), and I have plenty of space. And Ruth might get the dining room table back soon&#8230; assuming I can work out how to lift this massive machine (did I mention the case was quite big?).</p>
<p>But I&#8217;d like to finish this post with a rant. It turned out that the solutions to my problems were both in the 3ware knowledge base. Now maybe I should have searched harder initially, but it took me some time to find these articles. But more to the point, 3ware support should definately have known about these issues and should have directed me straight to them. I wasted a week of my time messing around with them, and I&#8217;m not happy about it. The card is great (apart from the aforementioned bug), but the support sucks. It will seriously make me think twice about going with 3ware again.</p>
<p>I hope this post will fill in the whole story to those I&#8217;ve been ranting at recently, and maybe it&#8217;ll help someone else on the Internet out if/when they hit the same problem. That&#8217;s assuming they can read this lengthy post in less time that in takes to figure out the solution themselves <img src='http://www.bishnet.net/tim/blog/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> .</p>
<p>Good night.</p>
<a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fwww.bishnet.net%2Ftim%2Fblog%2F2008%2F06%2F19%2Fill-build-a-new-server-its-got-to-be-easier-than-patching-up-the-old-one%2F&amp;linkname=%26%238220%3BI%26%238217%3Bll%20build%20a%20new%20server%3B%20it%26%238217%3Bs%20got%20to%20be%20easier%20than%20patching%20up%20the%20old%20one%26%238230%3B%26%238221%3B"><img src="http://www.bishnet.net/tim/blog/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a>

<p>Related posts:<ol><li><a href='http://www.bishnet.net/tim/blog/2006/09/01/a-new-server-and-a-new-raid-setup/' rel='bookmark' title='Permanent Link: A new server and a new RAID setup'>A new server and a new RAID setup</a></li><li><a href='http://www.bishnet.net/tim/blog/2006/06/03/i-dont-have-a-good-history-with-freebsd-raid/' rel='bookmark' title='Permanent Link: I don&#8217;t have a good history with FreeBSD RAID&#8230;'>I don&#8217;t have a good history with FreeBSD RAID&#8230;</a></li><li><a href='http://www.bishnet.net/tim/blog/2006/05/12/erm-whoops/' rel='bookmark' title='Permanent Link: Erm, whoops?'>Erm, whoops?</a></li></ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.bishnet.net/tim/blog/2008/06/19/ill-build-a-new-server-its-got-to-be-easier-than-patching-up-the-old-one/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
	</channel>
</rss>
