<?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>FreeNAS - Base Six</title>
	<atom:link href="https://base6.com/tag/freenas/feed/" rel="self" type="application/rss+xml" />
	<link>https://base6.com/</link>
	<description>James Furness&#039;s blog</description>
	<lastBuildDate>Wed, 08 Jun 2011 09:12:13 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.3.1</generator>
	<item>
		<title>Transferring FreeNAS 8 to a different USB drive</title>
		<link>https://base6.com/2011/05/31/transferring-freenas-8-to-a-different-usb-drive/</link>
					<comments>https://base6.com/2011/05/31/transferring-freenas-8-to-a-different-usb-drive/#comments</comments>
		
		<dc:creator><![CDATA[James Furness]]></dc:creator>
		<pubDate>Tue, 31 May 2011 19:10:39 +0000</pubDate>
				<category><![CDATA[Tech]]></category>
		<category><![CDATA[dd]]></category>
		<category><![CDATA[FreeNAS]]></category>
		<category><![CDATA[ufs]]></category>
		<category><![CDATA[USB]]></category>
		<guid isPermaLink="false">https://base6.com/?p=151</guid>

					<description><![CDATA[<p>As part of my FreeNAS 8 build, I purchased a Transcend 2GB USB drive which fits onto a standard motherboard 10-pin USB header to avoid having a USB thumb drive sticking out of the back of the case. Unfortunately this took a while to arrive as scan.co.uk had to order it in specially, so my initial FreeNAS [&#8230;]</p>
<p>The post <a href="https://base6.com/2011/05/31/transferring-freenas-8-to-a-different-usb-drive/">Transferring FreeNAS 8 to a different USB drive</a> first appeared on <a href="https://base6.com/">Base Six</a>.</p>]]></description>
										<content:encoded><![CDATA[<p>As part of my <a href="https://base6.com/2011/05/08/freenas-i3-setup/">FreeNAS 8 build</a>, I purchased a <a href="http://ec.transcendusa.com/product/ItemDetail.asp?ItemID=TS2GUFM-V">Transcend 2GB USB drive</a> which fits onto a standard motherboard 10-pin USB header to avoid having a USB thumb drive sticking out of the back of the case.</p>
<p>Unfortunately this took a while to arrive as <a href="http://www.scan.co.uk/products/2gb-transcend-vertical-usb-industrial-flash-module">scan.co.uk</a> had to order it in specially, so my initial FreeNAS install was onto a temporary USB thumb drive.</p>
<p>Once the internal USB drive had arrived, I needed to transfer my install onto the new drive. Although it probably would have been possible to use FreeNAS&#8217;s backup/restore to move my settings onto a fresh install, I wanted to try a low-level copy from the temporary thumb drive to the internal drive if possible.</p>
<p>The transfer can be made quite easily using <a href="http://en.wikipedia.org/wiki/Dd_(Unix)">dd</a>, however first it is necessary to identify which physical disk maps to which USB device, which is made slightly more difficult by the fact that the drive partitions are labelled with glabel rather than using the underlying drive partition names.</p>
<p>The following procedure worked for me:</p>
<ol>
<li>Boot FreeNAS into single-user mode (Select &#8220;4. Boot FreeNAS in single user mode at the boot menu&#8221;</li>
<li>Type &#8220;mount&#8221; to identify which glabel the old USB drive is mounted on &#8211; e.g.<br />
<code>$ mount<br />/dev/ufs/<strong>FreeNASs1a</strong> on / (ufs, local, read-only, soft-updates)</code></li>
<li>Run &#8220;glabel list | grep <strong>&lt;label&gt;</strong> -B 2&#8243; (replacing &#8220;FreeNASs1a&#8221; with the label displayed in the previous step). The &#8220;Geom name&#8221; provides the underlying drive partition name, in this case da0s1a:<br />
<code>$ glabel list | grep FreeNASs1a -B 2<br />Geom name: <strong>da0s1a</strong><br />Providers:<br />1. Name: ufs/FreeNASs1a</code></li>
<li>Take the first three letters of the partition name from the previous step to get the device name (<strong>da0</strong> in the example above).</li>
<li>Run &#8220;grep da. /var/log/messages&#8221;:<br />
<code>$ grep da. /var/log/messages<br />May 25 09:12:55 freenas kernel: da0:  Removable Direct Access SCSI-0 device<br />May 25 09:12:55 freenas kernel: da1:  Fixed Direct Access SCSI-0 device</code></li>
<li>From the output above, one of the device names should match that of the Freenas label, check that the disk type matches that expected. The other should match your new USB stick.</li>
<li>Triple-check the above as the following command will destroy your FreeNAS disk if run incorrectly!</li>
<li>Run &#8220;dd if=/dev/&lt;old device&gt; of=/dev/&lt;new device&gt; bs=16k&#8221; to perform the copy, e.g.<br />
<code>$ dd if=/dev/da0 of=/dev/da1 bs=16k</code></li>
</ol>
<p><b>Update:</b> The &#8216;camcontrol&#8217; command also allows devices to be listed:<br />
<code><br />
# camcontrol devlist<br />
   at scbus1 target 0 lun 0 (pass0,ada0)<br />
   at scbus2 target 0 lun 0 (pass1,ada1)<br />
   at scbus4 target 0 lun 0 (pass2,ada2)<br />
                at scbus7 target 0 lun 0 (pass3,da0)<br />
</code></p><p>The post <a href="https://base6.com/2011/05/31/transferring-freenas-8-to-a-different-usb-drive/">Transferring FreeNAS 8 to a different USB drive</a> first appeared on <a href="https://base6.com/">Base Six</a>.</p>]]></content:encoded>
					
					<wfw:commentRss>https://base6.com/2011/05/31/transferring-freenas-8-to-a-different-usb-drive/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			</item>
		<item>
		<title>Guide to cryptographic hashes for content-based addressing</title>
		<link>https://base6.com/2011/05/27/guide-to-cryptographic-hashes-for-content-based-addressing/</link>
		
		<dc:creator><![CDATA[James Furness]]></dc:creator>
		<pubDate>Fri, 27 May 2011 08:50:19 +0000</pubDate>
				<category><![CDATA[Tech]]></category>
		<category><![CDATA[cryptographic hashes]]></category>
		<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[FreeNAS]]></category>
		<category><![CDATA[ZFS]]></category>
		<guid isPermaLink="false">https://base6.com/?p=147</guid>

					<description><![CDATA[<p>Just came across an interesting article on the use of cryptographic hashes in content-based addressing (e.g. Git, Rsync, Bittorrent) whilst doing some reading around ZFS deduplication in ZFS v21 which is coming soon (with v26) in FreeBSD (and hence hopefully soon in FreeNAS!)</p>
<p>The post <a href="https://base6.com/2011/05/27/guide-to-cryptographic-hashes-for-content-based-addressing/">Guide to cryptographic hashes for content-based addressing</a> first appeared on <a href="https://base6.com/">Base Six</a>.</p>]]></description>
										<content:encoded><![CDATA[<p>Just came across an <a href="http://valerieaurora.org/monkey.html">interesting article</a> on the use of cryptographic hashes in content-based addressing (e.g. <a href="http://git-scm.com/">Git</a>, <a href="http://en.wikipedia.org/wiki/Rsync">Rsync</a>, <a href="http://en.wikipedia.org/wiki/BitTorrent_(protocol)">Bittorrent</a>) whilst doing some reading around <a href="http://blog.valerieaurora.org/2009/11/02/zfs-gets-deduplication-the-right-way/">ZFS deduplication</a> in <a href="http://blogs.oracle.com/jsavit/entry/deduplication_now_in_zfs">ZFS v21</a> which is <a href="http://wiki.freebsd.org/ZFS">coming soon</a> (with v26) in FreeBSD (and hence hopefully soon in <a href="http://freenas.org/">FreeNAS</a>!)</p><p>The post <a href="https://base6.com/2011/05/27/guide-to-cryptographic-hashes-for-content-based-addressing/">Guide to cryptographic hashes for content-based addressing</a> first appeared on <a href="https://base6.com/">Base Six</a>.</p>]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>FreeNAS i3 setup</title>
		<link>https://base6.com/2011/05/08/freenas-i3-setup/</link>
					<comments>https://base6.com/2011/05/08/freenas-i3-setup/#comments</comments>
		
		<dc:creator><![CDATA[James Furness]]></dc:creator>
		<pubDate>Sun, 08 May 2011 10:00:54 +0000</pubDate>
				<category><![CDATA[Tech]]></category>
		<category><![CDATA[chenbro]]></category>
		<category><![CDATA[FreeNAS]]></category>
		<category><![CDATA[ITX]]></category>
		<category><![CDATA[network attached storage]]></category>
		<category><![CDATA[RAID]]></category>
		<category><![CDATA[ZFS]]></category>
		<guid isPermaLink="false">https://base6.com/?p=144</guid>

					<description><![CDATA[<p>Just finished building some new hardware to run FreeNAS 8.0. As there&#8217;s not a huge deal of info kicking around the internet about working hardware configurations I thought i&#8217;d post my experiences. Last time I built a PC I almost built a NAS box at the same, but looking at the increase in cost of [&#8230;]</p>
<p>The post <a href="https://base6.com/2011/05/08/freenas-i3-setup/">FreeNAS i3 setup</a> first appeared on <a href="https://base6.com/">Base Six</a>.</p>]]></description>
										<content:encoded><![CDATA[<p>Just finished building some new hardware to run <a href="http://freenas.org/">FreeNAS 8.0</a>. As there&#8217;s not a huge deal of info kicking around the internet about working hardware configurations I thought i&#8217;d post my experiences.</p>
<p>Last time I built a PC I almost built a NAS box at the same, but looking at the increase in cost of building a separate network attached PC and the decrease in performance from accessing storage via a LAN I decided to put a RAID array inside my PC instead. The RAID array (on-board Intel Matrix RAID from my motherboard) has served me well and seen me through 2 drive failures in the past 5 years without issue &#8211; fortunately the Western Digital Caviar RAID Edition drives I purchased come with a 5 year guarantee with <a href="http://support.wdc.com/warranty/rmapost.asp">Advance Replacement</a> (Western Digital will ship the replacement drive within 3-5 days, without receiving the faulty one first as long as you provide credit card details). Luckily my Samsung Spinpoint boot disk has not failed thus far!</p>
<p>I recently upgraded my network to gigabit ethernet, so network attached storage now seems more viable, plus I have filled up the RAID storage on my PC (which is probably close to wearing out anyway and I don&#8217;t fancy having to find a compatible motherboard to get my data back out again)&#8230; <a href="http://en.wikipedia.org/wiki/ZFS">ZFS</a> seems to be all the rage these days, and so it seems like hardware RAID is redundant. Some forum research seemed to indicate that ZFS needs a reasonably powerful CPU and plenty of memory, which ruled out my hopes of building a low-power fanless Intel Atom system. Therefore I decided to go with an i3, and the <a href="http://pden.zotac.com/index.php?page=shop.product_details&amp;flypage=flypage_images.tpl&amp;product_id=211">Zotac H55 Mini-ITX motherboard</a> as it has 6 SATA ports.</p>
<p>As for a case, I looked at a few options including the <a href="http://www.fractal-design.com/?view=product&amp;prod=42">Fractal Design Array R2</a>, the <a href="http://linitx.com/viewproduct.php?prodid=12789">CFI A7979</a> and the <a href="http://www.lian-li.com.tw/v2/en/product/product06.php?pr_index=480&amp;cl_index=1&amp;sc_index=25&amp;ss_index=64">Lian-Li PC-Q08</a>, but in the end decided to go with the <a href="http://www.chenbro.com/corporatesite/products_detail.php?sku=167">Chenbro ES34169</a>.</p>
<p>I also managed to find a <a href="http://ec.transcendusa.com/product/ItemDetail.asp?ItemID=TS2GUFM-V">Transcend 2GB USB drive</a> intended for industrial use which fits onto a standard motherboard 10-pin USB header to avoid having a USB thumb drive sticking out of the back of the case.</p>
<p><a href="http://brainspike.wordpress.com/2010/08/09/chenbro-es34169-mini-itx-case-meets-zotac-h55itx-a-e-board/">A review</a> appeared to confirm that the ES34169 would work nicely with the Zotac motherboard and an i3. When all the parts finally arrived and I built the system, unfortunately it would not boot. Some swapping of PSUs eventually confirmed that the Chenbro PSU was fine (it would boot a lower wattage system) as was the Zotac board, CPU and RAM (it would boot on another PSU), so the only conclusion was that 120W was not enough for the system.</p>
<p>Fortunately, <a href="http://www.kustompcs.co.uk/">Kustom PCs</a> were very understanding and shipped me a 180W <a href="http://www.chenbro.com/corporatesite/products_detail.php?sku=79">ES34069</a> (which has an external power brick) whilst I shipped the 120W ES34069 (which has an internal open-frame PSU, and is not available in a 180W version) back to them.</p>
<p>I had already purchased a low-height CPU cooler after reading the ES34169 review, and this fitted without issue. The only issue I did have building the case was that the SATA cables on the ES34069 were shorter than the ES34169 and two were not able to reach the SATA ports on the motherboard, so I had to replace these with some longer cables. After building the system, initially two of the HDDs did not register with the BIOS. These were the two bays I had switched cables for so I assumed there was an issue with the cables, however after ejecting and re-inserting the HDD caddies the drives appeared.</p>
<p>The ES34069 looks good, the translucent front allows the <a href="http://en.wikipedia.org/wiki/Blinkenlights">blinkenlights</a> inside to be visible, which include a power and activity light on each individual disk caddy, somehow magically driven through the backplane (I had always assumed these would need a proprietary connection to a RAID controller).</p>
<p>On booting FreeNAS from a USB stick I initially had an issue with the system hanging whilst trying to load the network card driver, which <a href="http://freebsd.1045724.n5.nabble.com/i386-kernel-hangs-seemingly-on-em0-attachment-td4016569.html">seems to be a problem</a> with the i386 BSD driver, however it works fine with the amd64 build (which is required for 64 bit support anyway).</p>
<p>So, I can confirm without further ado that the following setup works with FreeNAS 8:</p>
<ul>
<li><a href="http://pden.zotac.com/index.php?page=shop.product_details&amp;flypage=flypage_images.tpl&amp;product_id=211">Zotac H55-A-E motherboard</a></li>
<li><a href="http://ark.intel.com/Product.aspx?id=48505">Intel i3-550 CPU</a> (3.2 GHz)</li>
<li><a href="http://www.chenbro.com/corporatesite/products_detail.php?sku=79">180W Chenbro ES34069</a></li>
<li>2x <a href="http://www.corsair.com/memory/xms-classic/xms3-ddr3-memory/cmx2gx3m1a1333c9.html">2GB Corsair DDR3 XMS3</a> (PC3-10600)</li>
<li>2x <a href="http://www.wdc.com/en/products/products.aspx?id=40">Western Digital 1.5Tb RE4-GP</a> (WD1502FYPS)</li>
<li><a href="http://www.silverstonetek.com/products/p_contents.php?pno=NT07-1156&amp;area">Silverstone NT07-1156</a> (low-profile CPU cooler)</li>
<li><a href="http://ec.transcendusa.com/product/ItemDetail.asp?ItemID=TS2GUFM-V">Transcend TS2GUFM-V</a> (2GB Internal USB drive)</li>
<li>Extra 60mm fan (for front of case)</li>
</ul>
<p>The Transcend USB drive actually took a little while longer to arrive (as <a href="http://www.scan.co.uk/products/2gb-transcend-vertical-usb-industrial-flash-module">scan.co.uk</a> had to order it in specially), so I initially installed FreeNAS onto a USB thumb drive and later <a href="https://base6.com/2011/05/31/transferring-freenas-8-to-a-different-usb-drive/">transferred it to the Transcend USB drive with dd</a>.</p>
<p>FreeNAS seems pretty easy to use so far. FreeNAS 8.0 is a complete rewrite so unfortunately it only supports basic storage/sharing at the moment, however many more features are <a href="http://freenas.org/about/news/item/freenas-81-roadmap">on the way</a> in 8.1. Now to copy my data on and start using FreeNAS!</p><p>The post <a href="https://base6.com/2011/05/08/freenas-i3-setup/">FreeNAS i3 setup</a> first appeared on <a href="https://base6.com/">Base Six</a>.</p>]]></content:encoded>
					
					<wfw:commentRss>https://base6.com/2011/05/08/freenas-i3-setup/feed/</wfw:commentRss>
			<slash:comments>10</slash:comments>
		
		
			</item>
	</channel>
</rss>
