<?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>BarryODonovan.com</title>
	<atom:link href="http://www.barryodonovan.com/index.php/feed" rel="self" type="application/rss+xml" />
	<link>http://www.barryodonovan.com</link>
	<description>The thoughts, ramblings and rants of Barry O&#039;Donovan</description>
	<lastBuildDate>Wed, 09 Dec 2009 14:30:55 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Installing FreeBSD on Soekris net4801-48</title>
		<link>http://www.barryodonovan.com/index.php/2009/12/08/freebsd-on-soekris-net4801</link>
		<comments>http://www.barryodonovan.com/index.php/2009/12/08/freebsd-on-soekris-net4801#comments</comments>
		<pubDate>Tue, 08 Dec 2009 11:53:53 +0000</pubDate>
		<dc:creator>Barry O'Donovan</dc:creator>
				<category><![CDATA[News]]></category>

		<guid isPermaLink="false">http://www.barryodonovan.com/?p=88</guid>
		<description><![CDATA[Nick introduced me to Soekris a few weeks ago and some neat little boxes they make. For a current project, the net4801 fit the bill perfectly, especially with the add in vpn1411 which off loads the intensive computational operations for encryption and compression.
I plan some future posts looking at the throughput performance of OpenVPN with [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.foobar.org/">Nick</a> introduced me to <a href="http://www.soekris.com/">Soekris</a> a few weeks ago and some neat little boxes they make. For a current project, the <a href="http://www.soekris.com/net4801.htm">net4801</a> fit the bill perfectly, especially with the add in <a href="http://www.soekris.com/vpn1401.htm">vpn1411</a> which off loads the intensive computational operations for encryption and compression.</p>
<p>I plan some future posts looking at the throughput performance of OpenVPN with and without the vpn1411 as well as general traffic throughput measurements. This post however will focus on installing FreeBSD on this device as easily as possible.</p>
<p>Firstly, I ordered the following:</p>
<ul>
<li> Soekris <a href="http://soekris.eu/shop/net4801/net4801_48_board_and_case_en.html">net4801-48</a> in the case; </li>
<li> <a href="http://soekris.eu/shop/vpn_boards/vpn1411_for_mini_pci_sockets_en.html">vpn1411</a> for mini-PCI slot; </li>
<li> <a href="http://soekris.eu/shop/power_supplies/power_supply_12v_15a_iec320_c8_inlet_90v_265v_switch_mode_en.html">1.5A power supply</a>; </li>
<li> <a href="http://soekris.eu/shop/accessories/memory_8gb_ultra_ii_cf_card_en.html">8GB Ultra II CF-Card</a> (could probably be sourced from elsewhere for cheaper); </li>
<li> <a href="http://soekris.eu/shop/accessories/usb20_flash_card_reader_en.html">USB2.0 Flash card reader</a>; and a</li>
<li> <a href="http://soekris.eu/shop/accessories/null_modem_cable_6_feet_en.html">null modem cable</a>.
</ul>
<p>Including P&#038;P, this all came to &euro;369.48.</p>
<p>While there is a lot of documentation online and a number of methods available to install FreeBSD on a Soekris box, I found that the easiest way to to do it was <em>as if I were installing on the local machine</em> and hence I could just install it <em>as normal</em>. For this, we turn to <a href="http://www.virtualbox.org/">VirtualBox</a><sup><a href="#1">1</a></sup>.</p>
<ol>
<li> Install VirtualBox if you don&#8217;t have it. </li>
<li> Attach the CF card to your computer via the USB card reader. </li>
<li> Download a FreeBSD installation CD (e.g. <a href="ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/ISO-IMAGES/8.0/8.0-RELEASE-i386-disc1.iso">8.0-RELEASE-i386-disc1.iso</a>. </li>
<li> Create a new VirtualBox machine such that:
<ul>
<li> the ISO image is mounted; </li>
<li> you have enabled a network adapter (PCnet-PCI II in bridged mode works for me as I have a DHCP server on the LAN). </li>
</ul>
</li>
<li> Boot the new VirtualBox machine and from its built in BIOS, choose to boot from the mounted CD ROM. </li>
<li> Immediately attach the USB card reader device to the VirtualBox machine. </li>
<li> Choose a custom install so you can select the USB device as the destination medium (<code>da0</code> for me). </li>
<li> Proceed with your FreeBSD installation as normal. </li>
</ol>
<p>Once it completes, there are some changes you should make before popping the CF card back into the Soekris box:</p>
<ol>
<li> In <code>/etc/rc.conf</code>, set up the network configuration. Note that in VirtualBox, the interfaces will be reported as <code>le0</code> but when booted on the Soekris box, they&#8217;ll be <code>sis0</code> through <code>sis2</code>. I set <code>sis0</code> (marked Eth 0 on the case) to configure by DHCP. I also set a static IP on <code>sis2</code> so I can access the box on a direct computer to computer connection if necessary. Lastly, I enable the SSH daemon (ensure you have created a user!):
<pre>
ifconfig_sis0="DHCP"
ifconfig_sis2="inet 192.168.130.2 netmask 255.255.255.0 up"
sshd_enable="YES"
</pre>
</li>
<li> When installing via VirtualBox, the destination device was a USB drive. On the Soekris, the CF is handled as an IDE drive. As such, change <code>fstab</code> to something like (as appropriate for you &#8211; I have a single root filesystem and a swap partition):
<pre>
# Device                Mountpoint      FStype  Options         Dump    Pass#
/dev/ad0s1b             none            swap    sw              0       0
/dev/ad0s1a             /               ufs     rw              1       1
</pre>
</li>
<li>Enable a console on the serial port in <code>/etc/ttys</code> by editing the <code>ttyu0</code> line:
<pre>
ttyu0   "/usr/libexec/getty std.9600"   vt100   on secure
</pre>
</li>
<li> Lastly, add the following lines to <code>/boot/loader.conf</code>:
<pre>
comconsole_speed="9600"
console="comconsole"
</pre>
</li>
</ol>
<p>Now, pop the CF card back into the Soekris box and boot with the serial console attached (19200,8,n,1). I immediately changed the Soekris console speed to 9600 so that it works seemlessly from Soekris BIOS to FreeBSD bootloader, kernel and console.</p>
<p><a name="1">1.</a> VirtualBox is a fantastic piece of software. I run Kubuntu natively on my laptop and I have a virtual Windows 7 Professional machine running in VirtualBox most of the time. It runs smoothly and quickly and there is a wonderful feature to allow you to attach USB devices to the virtual machine (so my iPhone can access iTunes for example).  </p>
]]></content:encoded>
			<wfw:commentRss>http://www.barryodonovan.com/index.php/2009/12/08/freebsd-on-soekris-net4801/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>perl: warning: Falling back to the standard locale (&#8221;C&#8221;)</title>
		<link>http://www.barryodonovan.com/index.php/2009/09/24/perl-locales</link>
		<comments>http://www.barryodonovan.com/index.php/2009/09/24/perl-locales#comments</comments>
		<pubDate>Thu, 24 Sep 2009 10:05:41 +0000</pubDate>
		<dc:creator>Barry O'Donovan</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.barryodonovan.com/?p=86</guid>
		<description><![CDATA[Every time I debootstrap a new Debian server for a XenU domain, I get lots of verbose output from Perl scripts:

perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
        LANGUAGE = (unset),
        LC_ALL = (unset),
    [...]]]></description>
			<content:encoded><![CDATA[<p>Every time I <code>debootstrap</code> a new Debian server for a XenU domain, I get lots of verbose output from Perl scripts:</p>
<pre>
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
        LANGUAGE = (unset),
        LC_ALL = (unset),
        LANG = "en_IE.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
</pre>
<p>The fix is simple:</p>
<pre>
# apt-get install locales
# dpkg-reconfigure locales
</pre>
<p>and select your locales.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.barryodonovan.com/index.php/2009/09/24/perl-locales/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Dublin EU Elections: A vote for Eoin Ryan (FF) is a vote for Europe</title>
		<link>http://www.barryodonovan.com/index.php/2009/05/25/vote-for-eoin-ryan</link>
		<comments>http://www.barryodonovan.com/index.php/2009/05/25/vote-for-eoin-ryan#comments</comments>
		<pubDate>Mon, 25 May 2009 11:21:26 +0000</pubDate>
		<dc:creator>Barry O'Donovan</dc:creator>
				<category><![CDATA[Politics]]></category>
		<category><![CDATA[election eu]]></category>

		<guid isPermaLink="false">http://www.barryodonovan.com/?p=84</guid>
		<description><![CDATA[Polling tells us that the Dublin EU elections is a four horse race. An anti-Fianna Fail vote translates as a pro Sinn Fein, anti-Europe vote. Put you anger aside and look at the bigger picture.]]></description>
			<content:encoded><![CDATA[<p>Let be be clear from the outset: I am not a Fianna Fail supporter.</p>
<p>That said, the European elections are about bigger things than giving Fianna Fail a kick in shins. If that&#8217;s your motivation in voting, then use the local elections. The European elections are about electing MEPs to represent us and Ireland in Europe. Our choice here is important, even more so since the rejection of Lisbon. </p>
<p>In the Dublin constituency, it&#8217;s fair to assume that Gay Mitchell (FG) and Proinsias De Rossa (Lab) will top the poll. The issue is then about the third and final seat. Dublin is being reduced from four to three seats and only one of the two remaining incumbents will take it: either pro-Europe and pro-Lisbon Eoin Ryan (FF) or anti-Europe and anti-Lisbon Mary Lou MacDonald (SF).</p>
<p>In the latest Irish Times / TNS mrbi poll, Ryan is polling at 11% and McDonald on 14% of first preference votes. Ryan will take transfers from his running mate, Eibhlin Byrne, but as a new comer she is unlikely to poll high. MacDonald will also pull transfers from the Libertas candidate, Caroline Simmons. </p>
<p>Polling tells us that the Dublin EU elections is a four horse race. An anti-Fianna Fail vote translates as a pro Sinn Fein, anti-Europe vote. Put you anger aside and look at the bigger picture.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.barryodonovan.com/index.php/2009/05/25/vote-for-eoin-ryan/feed</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Kubuntu 8.10 and Mobile Broadband (and KDE 4.1)</title>
		<link>http://www.barryodonovan.com/index.php/2008/10/31/kubuntu-mobile</link>
		<comments>http://www.barryodonovan.com/index.php/2008/10/31/kubuntu-mobile#comments</comments>
		<pubDate>Fri, 31 Oct 2008 11:18:44 +0000</pubDate>
		<dc:creator>Barry O'Donovan</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Networking]]></category>
		<category><![CDATA[OSS]]></category>

		<guid isPermaLink="false">http://www.barryodonovan.com/?p=76</guid>
		<description><![CDATA[Kubuntu 8.10 and mobile broadband - the KNetworkManager has come a long way!]]></description>
			<content:encoded><![CDATA[<p>I updated my laptop from <a href="http://www.kubuntu.com/">Kubuntu 8.04</a> to 8.10 (<a href="http://www.kubuntu.org/news/8.10-release">just released</a>) yesterday. I do 90% of my work on my desktop which needs to <em>just work</em> and, as such, it&#8217;s running Kubuntu 7.10. My laptop, however, I play around with. </p>
<p>Most people&#8217;s first impression of 8.10 will be based on the upgrade process and post install issues. To date, I&#8217;ve always had to fix a lot of problems with the system after an upgrade to make it work. Not this time &#8211; it was absolutely seamless. </p>
<p>I was also apprehensive about KDE 4.1 and, to be honest, I was really worried that in a crunch I&#8217;d have to fall back to Gnome before degrading back to 8.04. I just don&#8217;t have the time these days to follow KDE development as much as I used to and I briefly installed KDE 4 a few months ago and thought it was far from finished. </p>
<p>I&#8217;m delighted to report KDE 4.1 is very slick and very polished. I&#8217;ve only had it for just over 24 but I have no complaints yet.</p>
<p>However, my main motivation for the upgrade was mobile broadband. Like most people, I use my laptop when on the move and my desktop when in the office. My laptop has an Ethernet port and a wi-fi card which both worked great with <a href="http://en.opensuse.org/Projects/KNetworkManager">KNetworkManager</a> but not mobile broadband. I got O2&#8217;s broadband dongle (the small USB stick) about four months ago and rely on it heavily. </p>
<p>I&#8217;ve been using Vodafone&#8217;s Mobile Connect Client to great effect but there were some issues:</p>
<ul>
<li> setting up the connection was a manual process (change X window access control; su to root; export the <code>DISPLAY</code> setting; and start the application); </li>
<li> if I suspended the laptop then I needed to reboot the system to use the dongle again.
</ul>
<p>While both of the above could be solved, it&#8217;s just not plug and play. 8.10 is. With the dongle plugged into the USB port, KNetworkManager discovered the <code>tty</code> port. Configuring it was as easy as right clicking on the KNetworkManager icon and selecting <em>New Connection&#8230;</em> icon for the <code>tty</code> port.</p>
<p>The next step requires knowledge of the O2 / provider settings but this is readily available online. For O2:</p>
<div id="attachment_80" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.barryodonovan.com/wp-content/uploads/2008/11/knetworkmanager-o21.png"><img src="http://www.barryodonovan.com/wp-content/uploads/2008/11/knetworkmanager-o21-300x161.png" alt="KNetworkManager - Settings for O2 Ireland" title="knetworkmanager-o2" width="300" height="161" class="size-medium wp-image-80" /></a><p class="wp-caption-text">KNetworkManager - Settings for O2 Ireland</p></div>
<p>After the above, I just accepted the defaults for the rest of the options. And &#8211; to my delight &#8211; it just worked. And it worked after suspended the laptop. And after popping the USB dongle in and out for the heck of it. By clicking the Auto Connect option as part of the process, it also just works when I pop the dongle in.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.barryodonovan.com/index.php/2008/10/31/kubuntu-mobile/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>chan_ss7, pcap files and 64bit machines</title>
		<link>http://www.barryodonovan.com/index.php/2008/04/28/chan_ss7-pcap-files-and-64bit-machines</link>
		<comments>http://www.barryodonovan.com/index.php/2008/04/28/chan_ss7-pcap-files-and-64bit-machines#comments</comments>
		<pubDate>Mon, 28 Apr 2008 19:01:32 +0000</pubDate>
		<dc:creator>Barry O'Donovan</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[OSS]]></category>
		<category><![CDATA[VoIP]]></category>
		<category><![CDATA[asterisk]]></category>
		<category><![CDATA[chan_ss7]]></category>
		<category><![CDATA[ss7]]></category>

		<guid isPermaLink="false">http://www.barryodonovan.com/?p=75</guid>
		<description><![CDATA[UPDATE: April 29th 2008
Anders Baekgaard of Dicea ApS (current chan_ss7 maintainers) recommends the following alternative patch. Please note that mtp3d.c will also need to be patched in the same way:

--- chan_ss7.c~ 2008-04-03 09:23:56.000000000 +0200
+++ chan_ss7.c  2008-04-29 08:29:20.000000000 +0200
@@ -249,11 +249,12 @@

 static void dump_pcap(FILE *f, struct mtp_event *event)
 {
+  unsigned int sec  [...]]]></description>
			<content:encoded><![CDATA[<p><strong>UPDATE: April 29th 2008</strong></p>
<p>Anders Baekgaard of <a href="dicea.dk">Dicea ApS</a> (current chan_ss7 maintainers) recommends the following alternative patch. Please note that <code>mtp3d.c</code> will also need to be patched in the same way:</p>
<pre>
--- chan_ss7.c~ 2008-04-03 09:23:56.000000000 +0200
+++ chan_ss7.c  2008-04-29 08:29:20.000000000 +0200
@@ -249,11 +249,12 @@

 static void dump_pcap(FILE *f, struct mtp_event *event)
 {
+  unsigned int sec  = event->dump.stamp.tv_sec;
   unsigned int usec  = event->dump.stamp.tv_usec -
     (event->dump.stamp.tv_usec % 1000) +
     event->dump.slinkno*2 + /* encode link number in usecs */
     event->dump.out /* encode direction in/out */;

-  fwrite(&#038;event->dump.stamp.tv_sec, sizeof(event->dump.stamp.tv_sec), 1, f);
+  fwrite(&#038;sec, sizeof(sec), 1, f);
   fwrite(&#038;usec, sizeof(usec), 1, f);
   fwrite(&#038;event->len, sizeof(event->len), 1, f); /* number of bytes of packet in file */
   fwrite(&#038;event->len, sizeof(event->len), 1, f); /* actual length of packet */
</pre>
<p><strong>END UPDATE: April 29th 2008</strong></p>
<p>A quickie for the Google trolls:</p>
<p>While trying to debug some SS7 Nature of Address (NAI) indication issues, I needed to use chan_ss7&#8217;s &#8216;dump&#8217; feature from the Asterisk CLI. It worked fine but the resultant pcap files always failed with messages like:</p>
<pre>
# tshark -r /tmp/now
tshark: "/tmp/now" appears to be damaged or corrupt.
(pcap: File has 409000-byte packet, bigger than maximum of 65535)
</pre>
<p>After much digging about and head-against-wall banging, I discovered the issue<br />
is with the packet header in the pcap file. It&#8217;s defined by its spec to be:</p>
<pre>
typedef struct pcaprec_hdr_s {
        guint32 ts_sec;         /* timestamp seconds */
        guint32 ts_usec;        /* timestamp microseconds */
        guint32 incl_len;       /* number of octets of packet saved in file */
        guint32 orig_len;       /* actual length of packet */
} pcaprec_hdr_t;
</pre>
<p>chan_ss7 uses the <code>timeval</code> struct defined by system headers to represent ts_sec and ts_usec. But, on 64bit machines (certainly mine), these values are defined as <code>unsigned long</code> rather than <code>unsigned int</code> (presumably as a step to get over the &#8216;year 2038 bug&#8217;). Hence the packet header is all wrong.</p>
<p>An easy solution is the following patch in <code>mtp.h</code>:</p>
<pre>
77a78,90
> /*
>  * The packet header in the pcap file (used for the CLI command 'dump') is
defined so has to
>  * have the two time components as unsigned ints. However, on 64bit
machines, the system
>  * timeval struct may use unsigned long. As such, we use a custom version
here:
>  */
> struct _32bit_timeval
> {
>   unsigned int tv_sec;            /* Seconds.  */
>   unsigned int tv_usec;      /* Microseconds.  */
> };
>
>
>
125c138
<       struct timeval stamp;        /* Timestamp */
---
>       struct _32bit_timeval stamp;        /* Timestamp */
</pre>
<p>There may be a better way &#8211; but this works.</p>
<p>This relates to chan_ss7-1.0.0 from <a href="http://www.dicea.dk/company/downloads">http://www.dicea.dk/company/downloads</a> and I have let them know also. It&#8217;s also a known issue for the Wireshark developers (although I did not investigate in detail to see what their resolution was for the future). See the following thread from 1999:</p>
<ul>
<li> <a href="http://www.ethereal.com/lists/ethereal-dev/199908/msg00065.html">http://www.ethereal.com/lists/ethereal-dev/199908/msg00065.html</a> </li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.barryodonovan.com/index.php/2008/04/28/chan_ss7-pcap-files-and-64bit-machines/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Amazon AWS Keeps Getting Better</title>
		<link>http://www.barryodonovan.com/index.php/2008/04/17/amazon-aws-keeps-getting-better</link>
		<comments>http://www.barryodonovan.com/index.php/2008/04/17/amazon-aws-keeps-getting-better#comments</comments>
		<pubDate>Thu, 17 Apr 2008 15:55:33 +0000</pubDate>
		<dc:creator>Barry O'Donovan</dc:creator>
				<category><![CDATA[Links]]></category>
		<category><![CDATA[News]]></category>
		<category><![CDATA[aws]]></category>

		<guid isPermaLink="false">http://www.barryodonovan.com/?p=68</guid>
		<description><![CDATA[Amazon&#8217;s Web Services have just launched a health dashboard which should prove very useful and can be found at http://status.aws.amazon.com.
They&#8217;ve also announced paid support services.
An eagerly awaited feature for me is persistent EC2 storage which they are trialling right now and hopefully I&#8217;ll get into the beta program. Fingers crossed!
]]></description>
			<content:encoded><![CDATA[<p>Amazon&#8217;s Web Services have just launched a health dashboard which should prove very useful and can be found at <a href="http://status.aws.amazon.com">http://status.aws.amazon.com</a>.</p>
<p>They&#8217;ve also announced paid support services.</p>
<p>An eagerly awaited feature for me is persistent EC2 storage which they are trialling right now and hopefully I&#8217;ll get into the beta program. Fingers crossed!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.barryodonovan.com/index.php/2008/04/17/amazon-aws-keeps-getting-better/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Stargate SG1 &#8211; Finishing the Story</title>
		<link>http://www.barryodonovan.com/index.php/2008/03/14/stargate-sg1-finishing-the-story</link>
		<comments>http://www.barryodonovan.com/index.php/2008/03/14/stargate-sg1-finishing-the-story#comments</comments>
		<pubDate>Fri, 14 Mar 2008 10:41:58 +0000</pubDate>
		<dc:creator>Barry O'Donovan</dc:creator>
				<category><![CDATA[Links]]></category>
		<category><![CDATA[News]]></category>

		<guid isPermaLink="false">http://www.barryodonovan.com/index.php/2008/03/14/stargate-sg1-finishing-the-story</guid>
		<description><![CDATA[



Following up from a discussion on how the series finale disappointed a few people over on Donncha&#8217;s blog, Holy Shmoly!, I thought I might point out that a straight-to-DVD movie which actually ends the two-year story arc has just been released.


You can buy a copy (at a great price thanks to the dollar rate) from [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.amazon.com/gp/product/B0010YSD7M?ie=UTF8&#038;tag=barrycom-20&#038;linkCode=as2&#038;camp=1789&#038;creative=9325&#038;creativeASIN=B0010YSD7M"><br />
<img src="/images/StargateSG1_ArchOfTruth.jpg" width="119" height="160" align="right" border="0" title="Click here to buy" style="margin-left: 30px;" /><br />
</a></p>
<p>
Following up from <a href="http://ocaoimh.ie/2007/03/26/stargate-sg1-dies-with-barely-a-whimper/">a discussion on how the series finale disappointed a few people</a> over on Donncha&#8217;s blog, <a href="http://ocaoimh.ie">Holy Shmoly!</a>, I thought I might point out that a straight-to-DVD movie which actually ends the two-year story arc has just been released.
</p>
<p>
You can buy a copy (at a great price thanks to the dollar rate) <a href="http://www.amazon.com/gp/product/B0010YSD7M?ie=UTF8&#038;tag=barrycom-20&#038;linkCode=as2&#038;camp=1789&#038;creative=9325&#038;creativeASIN=B0010YSD7M">from here on Amazon</a>.
</p>
<p>
A spoiler-free review and a discussion on the decision to end the series in this manner can be <a href="http://www.gateworld.net/news/2008/03/review_istargate_the_ark_of_trut.shtml">found here</a> on <a href="http://www.gateworld.net/">GateWorld</a>. And just to whet you appetite, a trailer follows below.
</p>
<p align="center">
<object width="425" height="355"><param name="movie" value="http://www.youtube.com/v/Onc0Hc4odyM&#038;hl=en"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/Onc0Hc4odyM&#038;hl=en" type="application/x-shockwave-flash" wmode="transparent" width="425" height="355"></embed></object></p>
]]></content:encoded>
			<wfw:commentRss>http://www.barryodonovan.com/index.php/2008/03/14/stargate-sg1-finishing-the-story/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>I’m in yr datacentur&#8230;</title>
		<link>http://www.barryodonovan.com/index.php/2008/02/07/bad-fuse</link>
		<comments>http://www.barryodonovan.com/index.php/2008/02/07/bad-fuse#comments</comments>
		<pubDate>Thu, 07 Feb 2008 20:15:04 +0000</pubDate>
		<dc:creator>Barry O'Donovan</dc:creator>
				<category><![CDATA[Links]]></category>

		<guid isPermaLink="false">http://www.barryodonovan.com/index.php/2008/02/07/bad-fuse/</guid>
		<description><![CDATA[The last thing I want to do is point and laugh at anyone else&#8217;s problems &#8211; God knows we&#8217;ve all been in the trenches &#8211; but this is just too funny a pun and deserves a link:
http://talideon.com/weblog/2008/02/cooling-problems.cfm
]]></description>
			<content:encoded><![CDATA[<p>The last thing I want to do is point and laugh at anyone else&#8217;s problems &#8211; God knows we&#8217;ve all been in the trenches &#8211; but this is just too funny a pun and deserves a link:</p>
<p><a href="http://talideon.com/weblog/2008/02/cooling-problems.cfm">http://talideon.com/weblog/2008/02/cooling-problems.cfm</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.barryodonovan.com/index.php/2008/02/07/bad-fuse/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Linux on a Dell Vostro 200</title>
		<link>http://www.barryodonovan.com/index.php/2008/02/07/linux-dell-vostro-200</link>
		<comments>http://www.barryodonovan.com/index.php/2008/02/07/linux-dell-vostro-200#comments</comments>
		<pubDate>Thu, 07 Feb 2008 20:10:24 +0000</pubDate>
		<dc:creator>Barry O'Donovan</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[OSS]]></category>
		<category><![CDATA[Recipes]]></category>

		<guid isPermaLink="false">http://www.barryodonovan.com/index.php/2008/02/07/linux-dell-vostro-200/</guid>
		<description><![CDATA[Following a recent post to ILUG asking about setting Linux up on a Dell Vostro 200, I followed up with my notes from the time I had to do it a few months back.
This is just a copy of my notes rather than a how-to but any competent Linux user should have no problem. Apologies [...]]]></description>
			<content:encoded><![CDATA[<p>Following <a href="http://mail.linux.ie/pipermail/ilug/2008-February/096736.html">a recent post</a> to <a href="http://mail.linux.ie/mailman/listinfo/ilug/">ILUG</a> asking about setting Linux up on a Dell Vostro 200, I <a href="http://mail.linux.ie/pipermail/ilug/2008-February/096741.html">followed up</a> with my notes from the time I had to do it a few months back.</p>
<p>This is just a copy of my notes rather than a how-to but any competent Linux user should have no problem. Apologies in advance for the brevity; with luck you&#8217;ll be using a later version of Linux which will already have solved the network issue&#8230; </p>
<p>The two main issues and fixes were:</p>
<ul>
<li> The SATA CD-ROM was not recognised initially and the fix was set the following parameter in the BIOS:
<p><code>BIOS -> Integrated Peripherals -> SATA Mode -> RAID</code></p>
<li> The network card is not recognised during a Linux install. Allow install to complete without network and then download Intel&#8217;s e1000 driver from <a href="http://downloadcenter.intel.com/">http://downloadcenter.intel.com/</a> or specifically <a href="http://downloadcenter.intel.com/Detail_Desc.aspx?agr=Y&#038;Inst=Yes&#038;ProductID=839&#038;DwnldID=9180&#038;strOSs=39&#038;OSFullName=Linux*&#038;lang=eng">by clicking here</a>. The one I used then was e1000-7.6.9.tar.gz but the current version appears to be e1000-7.6.15.tar.gz (where the above link heads to &#8211; check for later versions).
<p>My only notes of the install just say &#8220;essentially follow instructions in README&#8221; so I assume they were good enough! Obviously you&#8217;ll need Linux kernel headers at least as well as gcc and related tools.</p>
<p>Once built and installed, a:</p>
<p><code>modprobe e1000</code></p>
<p>should have you working. Use <code>dmesg</code> to confirm.
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.barryodonovan.com/index.php/2008/02/07/linux-dell-vostro-200/feed</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Recovering an LVM Physical Volume</title>
		<link>http://www.barryodonovan.com/index.php/2007/12/08/lvm-recovery</link>
		<comments>http://www.barryodonovan.com/index.php/2007/12/08/lvm-recovery#comments</comments>
		<pubDate>Sat, 08 Dec 2007 18:28:24 +0000</pubDate>
		<dc:creator>Barry O'Donovan</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[OSS]]></category>
		<category><![CDATA[Recipes]]></category>

		<guid isPermaLink="false">http://www.barryodonovan.com/index.php/2007/12/08/lvm-recovery/</guid>
		<description><![CDATA[Yesterday disaster struck &#8211; during a CentOS/RedHat installation, the installer asked (not verbatim): &#8220;Cannot read partition information for /dev/sda. The drive must be initialized before continuing.&#8221;.
Now on this particular server, sda and sdb were/are a RAID1 (containing the OS) and a RAID5 partition respectively and sdc was/is a 4TB RAID5 partition from an externally attached [...]]]></description>
			<content:encoded><![CDATA[<p>Yesterday disaster struck &#8211; during a CentOS/RedHat installation, the installer asked (not verbatim): &#8220;Cannot read partition information for <tt>/dev/sda</tt>. The drive must be initialized before continuing.&#8221;.</p>
<p>Now on this particular server, <tt>sda</tt> and <tt>sdb</tt> were/are a RAID1 (containing the OS) and a RAID5 partition respectively and <tt>sdc</tt> was/is a 4TB RAID5 partition from an externally attached disk chassis. This was a server re-installation and all data from <tt>sda</tt> and <tt>sdb</tt> had multiple snapshots off site. <tt>sdc</tt> had no backups of its 4TBs of data.</p>
<p>The installer discovered the drives in a different order and <tt>sda</tt> became the externally attached drive. I, believing it to be the internal RAID1 array, allowed the installer to initialise it. Oh shit&#8230;</p>
<p>Now this wouldn&#8217;t be the end of the world. It wasn&#8217;t backed up because a copy of the data exists on removable drives in the UK. It would mean someone flying in with the drives, handing them off to me at the airport, bringing them to the data center and copying all the data back. Then returning the drives to the UK again. A major inconvenience. And it&#8217;s also an embarrassment as I should have ensured that <tt>sda</tt> is what I thought it was via the installers other screens.</p>
<p>Anyway &#8211; from what I could make out, the installer initialised the drive with a single partition spanning the entire drive.</p>
<p>Once I got the operating system reinstalled, I needed to try and recover the LVM partitions. There&#8217;s not a whole lot of obvious information on the Internet for this and hence why I&#8217;m writing this post.</p>
<p>The first thing I needed to do was recreate the physical volume. Now, as I said above, I had backups of the original operating system. LVM creates a file containing the metadata of each volume group in <tt>/etc/lvm/backup</tt> in a file named the same as the volume group name. In this file, there is a section listing the physical volumes and their ids that make up the volume group. For example (the id is fabricated):</p>
<pre>
physical_volumes {
        pv0 {
                id = "fvrw-GHKde-hgbf43-JKBdew-rvKLJc-cewbn"
                device = "/dev/sdc"     # Hint only

                status = ["ALLOCATABLE"]
                pe_start = 384
                pe_count = 1072319      # 4.09057 Terabytes
        }
}
</pre>
<p>Note that after I realised my mistake, I installed the OS on the correct partition and after booting, the external drive became <tt>/dev/sdc</tt><sup>*</sup> again. Now, to recreate the physical volume <strong>with the same id</strong>, I tried:</p>
<pre>
# pvcreate -u fvrw-GHKde-hgbf43-JKBdew-rvKLJc-cewbn /dev/sdc
  Device /dev/sdc not found (or ignored by filtering).
</pre>
<p>Eh? By turning on verbosity, you find the reason among a few hundred lines of debugging:</p>
<pre>
# pvcreate -vvvv -u fvrw-GHKde-hgbf43-JKBdew-rvKLJc-cewbn /dev/sdc
...
#filters/filter.c:121         /dev/sdc: Skipping: Partition table signature found
#device/dev-io.c:486         Closed /dev/sdc
#pvcreate.c:84   Device /dev/sdc not found (or ignored by filtering).
</pre>
<p>So pvcreate will not create a physical volume using the entire disk unless I remove partition(s) first. I do this with <tt>fdisk</tt> and try again:</p>
<pre>
# pvcreate -u fvrw-GHKde-hgbf43-JKBdew-rvKLJc-cewbn /dev/sdc
  Physical volume "/dev/sdc" successfully created
</pre>
<p>Great. Now to recreate the volume group on this physical volume:</p>
<pre>
# vgcreate -v md1000 /dev/sdc
    Wiping cache of LVM-capable devices
    Adding physical volume '/dev/sdc' to volume group 'md1000'
    Archiving volume group "md1000" metadata (seqno 0).
    Creating volume group backup "/etc/lvm/backup/md1000" (seqno 1).
  Volume group "md1000" successfully created
</pre>
<p>Now I have an &#8220;empty&#8221; volume group but with no logical volumes. I know all the data is there as the initialization didn&#8217;t format or wipe the drive. I&#8217;ve retrieved the LVM backup file called <tt>md1000</tt> and placed it in <tt>/tmp/lvm-md1000</tt>. When I try to restore it to the new volume group I get:</p>
<pre>
# vgcfgrestore -f /tmp/lvm-md1000 md1000
  /tmp/lvm-md1000: stat failed: Permission denied
  Couldn't read volume group metadata.
  Restore failed.
</pre>
<p>After a lot of messing, I copied it to <tt>/etc/lvm/backup/md1000</tt> and tried again:</p>
<pre>
# vgcfgrestore -f /etc/lvm/backup/md1000 md1000
  Restored volume group md1000
</pre>
<p>I don&#8217;t know if it was the location, the renaming or both but it worked. </p>
<p>Now the last hurdle is that on a <tt>lvdisplay</tt>, the logical volumes show up but are marked as:</p>
<pre>
  LV Status              NOT available
</pre>
<p>This is easily fixed by marking the logical volumes as available:</p>
<pre>
#  vgchange -ay
  2 logical volume(s) in volume group "md1000" now active
</pre>
<p>Agus sin é. My logical volumes are recovered with all data intact.</p>
<p><sup>*</sup> <em>how these are assigned is not particularly relevant to this story.</em></p>
]]></content:encoded>
			<wfw:commentRss>http://www.barryodonovan.com/index.php/2007/12/08/lvm-recovery/feed</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
	</channel>
</rss>
