<?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>thattommyhall.com &#187; ZFS</title>
	<atom:link href="http://www.thattommyhall.com/category/zfs/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.thattommyhall.com</link>
	<description>A Random Walk Through Idea Space</description>
	<lastBuildDate>Sun, 08 Jan 2012 11:42:23 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Building A Backblaze Storage Pod</title>
		<link>http://www.thattommyhall.com/2010/01/05/building-a-backblaze-storage-pod/</link>
		<comments>http://www.thattommyhall.com/2010/01/05/building-a-backblaze-storage-pod/#comments</comments>
		<pubDate>Tue, 05 Jan 2010 12:41:38 +0000</pubDate>
		<dc:creator>tom</dc:creator>
				<category><![CDATA[101]]></category>
		<category><![CDATA[BackBlazePod]]></category>
		<category><![CDATA[ZFS]]></category>

		<guid isPermaLink="false">http://www.thattommyhall.com/?p=107</guid>
		<description><![CDATA[[edit]You can buy BackBlaze pods now at OpenStorageSystems [/edit] A while ago I saw the Backblaze storage pod and was impressed. Like many others I thought: I want one Wouldn&#8217;t it work great with ZFS The hardware sucks Building one I used to make and sell storage servers using Linux a while ago with media [...]]]></description>
			<content:encoded><![CDATA[<p>[edit]You can buy BackBlaze pods now at <a HREF="http://www.openstoragesystems.co.uk/products/backblaze-storage-pod">OpenStorageSystems</a> [/edit]</p>
<p>A while ago I saw the <a href="http://blog.backblaze.com/2009/09/01/petabytes-on-a-budget-how-to-build-cheap-cloud-storage/" target="_blank">Backblaze storage pod</a> and was impressed.</p>
<p><a href="http://www.thattommyhall.com/wp-content/uploads/2010/01/pod.jpg"><img class="alignnone size-medium wp-image-113" title="pod" src="http://www.thattommyhall.com/wp-content/uploads/2010/01/pod-300x221.jpg" alt="" width="300" height="221" /></a></p>
<p>Like many others I thought:</p>
<ul>
<li>I want one</li>
<li>Wouldn&#8217;t it work great with ZFS</li>
<li>The hardware sucks</li>
</ul>
<h3>Building one</h3>
<p>I used to make and sell storage servers using Linux a while ago with media streaming software and easy setup (before all the ready-rolled ones came out) so the software side is not a major challenge. Backblaze have released a template for the cases and a list of other components and coincidentally a good friend is a Mechanical Design Engineer and can work on it for me. The cost for the cases drops precipitously if you buy in bulk and he is looking at making it able to be stored flat and easily assembled by folding edges together so I will take the plunge and buy a load, if anyone wants to get hold of some, please get in touch.</p>
<h3>ZFS</h3>
<p>As soon as you see so many disks in a case like that, it&#8217;s hard not to think of Sun&#8217;s Thumper and ZFS.</p>
<p><a href="http://www.thattommyhall.com/wp-content/uploads/2010/01/X4540.jpg"><img class="alignnone size-medium wp-image-112" title="X4540" src="http://www.thattommyhall.com/wp-content/uploads/2010/01/X4540-300x165.jpg" alt="" width="300" height="165" /></a><a href="http://www.thattommyhall.com/wp-content/uploads/2010/01/k3_sunfire-x4540_5.jpg"><img class="alignnone size-medium wp-image-111" title="k3_sunfire-x4540_5" src="http://www.thattommyhall.com/wp-content/uploads/2010/01/k3_sunfire-x4540_5-300x239.jpg" alt="" width="176" height="140" /></a></p>
<p>I&#8217;ve <a href="http://www.thattommyhall.com/category/zfs/" target="_blank">blogged about ZFS</a> before and given talks on it. With so many disks to fail (either noisily or silently)  data loss is inevitable (and worse &#8211; you may not even be alerted), ZFS would solve this (or at least ensure you know about it). BackBlaze use custom application logic to work around this, using TomCat and HTTPS.</p>
<h3>It&#8217;s Not Highly Available</h3>
<p>A chap at Sun has a critique <a href="http://www.c0t0d0s0.org/archives/5899-Some-perspective-to-this-DIY-storage-server-mentioned-at-Storagemojo.html" target="_blank">here </a>that is totally spot on and he makes a few great points about subtle changes to Sun&#8217;s design to accommodate vibration, noise and electromagnetic radiation. In so many ways the hardware is inadequate and does not have the uptime characteristics of a device in Suns range. That said though an individual device from Sun is not as HA as, say, an EMC SAN (with mirrored write cache, dual SPs etc) as it too relies mostly on commodity hardware. For FiveNines availability you need to decide what you are doing to protect against device failure anyway, the BackBlaze devices just fail faster &#8211; that&#8217;s your trade-off.</p>
<h3>It wont be fast</h3>
<p>That is largely a feature of the disks and the controllers; you could get a better motherboard, disks and faster controllers, perhaps eschew the port multipliers too, if performance is a problem. A very cool new feature of ZFS (<a href="http://blogs.sun.com/brendan/entry/test" target="_blank">L2ARC</a> / <a href="http://blogs.sun.com/brendan/entry/hybrid_storage_pool_top_speeds" target="_blank">Hybrid Storage Pools</a>) allows for using SSD as a second level cache, that would help. In linux <a href="http://users.cis.fiu.edu/~zhaom/dmcache/index.html">dm-cache</a> (or <a href="http://kernelnewbies.org/KernelProjects/DmCache">here</a>)  could probably achieve something similar.</p>
<h3>How can you make it HA?</h3>
<p>This is really another blog (and a few weeks work hacking out the ideas), but I can think of several ways of doing what BackBlaze do in their software stack to export files (via NFS, SMB or other protocol) or block devices (ATAoE, iSCSI, NBD etc) in a robust manner.</p>
<ul>
<li><a href="http://www.sun.com/software/solaris/zfs_learning_center.jsp" target="_blank">ZFS</a></li>
<li><a href="http://www.sun.com/software/products/lustre/" target="_blank">Lustre</a></li>
<li><a href="http://www.gluster.org/" target="_blank">GlustreFS</a></li>
<li><a href="http://wiki.samba.org/index.php/Clustered_Samba">Clustered Samba</a> (or <a href="http://ctdb.samba.org/samba.html">here</a>)</li>
<li><a href="http://www.windowsnetworking.com/articles_tutorials/Windows2003-Distributed-File-System.html" target="_blank">DFS</a></li>
<li><a href="http://www.pnfs.com/">pNFS</a></li>
<li>RAID1 / <a href="http://www.linuxjournal.com/article/3778" target="_blank">NBD</a></li>
<li><a href="http://www.linux-ha.org/DRBD" target="_blank">DRBD</a></li>
<li><a href="http://www.linux-kvm.com/content/sheepdog-distributed-storage-management-qemukvm">sheepdog</a></li>
<li><a href="http://hadoop.apache.org/common/docs/current/hdfs_user_guide.html#Overview" target="_blank">HDFS</a></li>
<li><a href="http://www.dragonflybsd.org/hammer/hammer.pdf" target="_blank">Hammer</a> ?</li>
</ul>
<p>I have ordered some of the port multipliers, got my friend working on the case and will buy the sundry bits over the next few days.</p>
<p>This is one of my<a href="http://www.thattommyhall.com/2010/01/03/101-goals-in-1001-days/">101 goals</a></p>
<p class="facebook"><a href="http://www.facebook.com/share.php?u=http://www.thattommyhall.com/2010/01/05/building-a-backblaze-storage-pod/" target="_blank" title="Share on Facebook">Share on Facebook</a></p>]]></content:encoded>
			<wfw:commentRss>http://www.thattommyhall.com/2010/01/05/building-a-backblaze-storage-pod/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>ZFS, it&#8217;s sometimes good to know how screwed you are.</title>
		<link>http://www.thattommyhall.com/2009/02/11/zfs-its-sometimes-good-to-know-how-screwed-you-are/</link>
		<comments>http://www.thattommyhall.com/2009/02/11/zfs-its-sometimes-good-to-know-how-screwed-you-are/#comments</comments>
		<pubDate>Wed, 11 Feb 2009 21:30:02 +0000</pubDate>
		<dc:creator>tom</dc:creator>
				<category><![CDATA[OpenSolaris]]></category>
		<category><![CDATA[ZFS]]></category>

		<guid isPermaLink="false">http://www.thattommyhall.com/2009/02/11/zfs-its-sometimes-good-to-know-how-screwed-you-are/</guid>
		<description><![CDATA[I have just had a disk fail on my NAS, actually it happened ages ago but I was too broke to replace it. At the same time as one being faulted, another was degraded through having too many errors. Below is my interaction with ZFS to discover the extent of the problem and &#8220;fix&#8221; it. [...]]]></description>
			<content:encoded><![CDATA[<p>I have just had a disk fail on my NAS, actually it happened ages ago but I was too broke to replace it. At the same time as one being faulted, another was degraded through having too many errors. Below is my interaction with ZFS to discover the extent of the problem and &#8220;fix&#8221; it.</p>
<p><span id="more-72"></span></p>
<p>(this is after I had swapped out c2t1d0, only then did I know I had data corruption, should have periodically scrubed the pool!)</p>
<p>Lets see how bad it is<br />
<code><br />
root@nas:~# zpool status<br />
pool: Toms<br />
state: DEGRADED<br />
status: One or more devices has experienced an error resulting in data<br />
corruption.  Applications may be affected.<br />
action: Restore the file in question if possible.  Otherwise restore the<br />
entire pool from backup.<br />
see: http://www.sun.com/msg/ZFS-8000-8A<br />
scrub: resilver completed after 4h57m with 163802 errors on Sun Feb  8 16:47:46 2009<br />
config</p>
<p>NAME        STATE     READ WRITE CKSUM<br />
Toms        DEGRADED    35     0  320K<br />
raidz1    DEGRADED    35     0  320K<br />
c2t0d0  DEGRADED     0     0     0  too many errors<br />
c2t2d0  DEGRADED    89     0     3  too many errors<br />
c2t1d0  ONLINE       0     0     0<br />
c2t4d0  DEGRADED    12     0   243  too many errors<br />
raidz1    ONLINE       0     0     0<br />
c2t5d0  ONLINE       0     0     0<br />
c2t7d0  ONLINE       0     0     0<br />
c2t3d0  ONLINE       0     0     0<br />
c2t6d0  ONLINE       0     0     0</p>
<p>errors: 140338 data errors, use '-v' for a list</p>
<p>pool: syspool<br />
state: ONLINE<br />
scrub: none requested<br />
config:</p>
<p>NAME        STATE     READ WRITE CKSUM<br />
syspool     ONLINE       0     0     0<br />
c1t1d0s0  ONLINE       0     0     0</p>
<p>errors: No known data errors<br />
</code> </p>
<p>Ok, so what files are affected<br />
<code><br />
root@nas:~# zpool status -v<br />
..................(cut)<br />
/share/TalkingBooks/TTC/Concert Masterworks/CD10-Track07.mp3<br />
/share/TalkingBooks/TTC/Science in the Twentieth Century A Social-Intellectual Survey/09-10 - Subterranean Fury.mp3<br />
/share/TalkingBooks/TTC/Foundations of Western Civilization/45-2 - The Protestant Reformation - John Calvin.mp3<br />
/share/TalkingBooks/TTC/The Long 19th Century, European History from 1789 to 1917/05.05 The Napoleonic Era, 1799-1815.mp3<br />
/share/TalkingBooks/TTC/Great World Religions - Islam/Lecture 6d Paths To God -- Islamic Law And Mysticism.mp3<br />
/share/TalkingBooks/TTC/History of Ancient Egypt/Lecture 23 The Murder of Tutankhamen.mp3<br />
/share/TalkingBooks/TTC/The Symphony/00-02 Page 20-21.jpg<br />
/share/TalkingBooks/TTC/The United States And The Middle East 1914- 9-11/19-3 The First Palestinian Intifada.mp3<br />
/share/TalkingBooks/TTC/World of Byzantium/TTC - World of Byzantium - Guidebook Part 2/[World.of.Byzantium.part.II]16-17.jpg<br />
/share/TalkingBooks/TTC/How to Read and Understand Poetry/13 Free Verse Track 2.mp3<br />
/share/Tunes/Tom Jones - Reload/04 All Mine with Divine Comedy.mp3<br />
/share/Tunes/Tom Jones - Reload/10 Sometimes We Cry with Van Morrison.mp3<br />
/share/Tunes/Tom Jones - Reload/08 You Need Love Like I Do with Heather Small.mp3<br />
/share/Tunes/Tom Jones - Reload/07 Sexbomb with Mousse T.mp3<br />
/share/Tunes/Tom Jones - Reload/06 I'm Left, You're Right, She's Gone with James Dean Bradfield.mp3<br />
..................(cut)<br />
</code></p>
<p>Lets take a snapshot before we delete anything<br />
<code><br />
root@nas:~# zfs list<br />
NAME                             USED  AVAIL  REFER  MOUNTPOINT<br />
Toms                            1.78T   421G  40.4K  none<br />
Toms@one                            0      -  40.4K  -<br />
Toms/share                      1.43T   421G  31.3G  /share<br />
Toms/share/500G                  336G   421G   336G  /share/500G<br />
Toms/share/Notes                38.9G   421G  38.9G  /share/Notes<br />
Toms/share/SetupFiles           72.1G   421G  72.1G  /share/SetupFiles<br />
Toms/share/TalkingBooks          144G   421G   144G  /share/TalkingBooks<br />
Toms/share/Tunes                61.5G   421G  61.5G  /share/Tunes<br />
Toms/share/Videos                337G   421G   337G  /share/Videos<br />
Toms/share/apps                 28.4K   421G  28.4K  /share/apps<br />
Toms/share/downloads             359G   421G   359G  /share/downloads<br />
Toms/share/files                34.6G   421G  34.6G  /share/files<br />
Toms/share/xbox                 52.8G   421G  52.8G  /share/xbox<br />
Toms/tom                        7.59G   421G  7.59G  /tom<br />
syspool                         1.17G   225G    23K  none<br />
syspool/rootfs-nmu-000          1.17G   225G  1.12G  legacy<br />
syspool/rootfs-nmu-000@initial  49.8M      -   631M </code></p>
<p>root@nas:~# zfs snapshot Toms@b4delete<br />
root@nas:~# zfs list<br />
NAME                             USED  AVAIL  REFER  MOUNTPOINT<br />
Toms                            1.78T   421G  40.4K  none<br />
Toms@one                            0      &#8211;  40.4K  -<br />
Toms@b4delete                       0      &#8211;  40.4K  -<br />
Toms/share                      1.43T   421G  31.3G  /share<br />
Toms/share/500G                  336G   421G   336G  /share/500G<br />
Toms/share/Notes                38.9G   421G  38.9G  /share/Notes<br />
Toms/share/SetupFiles           72.1G   421G  72.1G  /share/SetupFiles<br />
Toms/share/TalkingBooks          144G   421G   144G  /share/TalkingBooks<br />
Toms/share/Tunes                61.5G   421G  61.5G  /share/Tunes<br />
Toms/share/Videos                337G   421G   337G  /share/Videos<br />
Toms/share/apps                 28.4K   421G  28.4K  /share/apps<br />
Toms/share/downloads             359G   421G   359G  /share/downloads<br />
Toms/share/files                34.6G   421G  34.6G  /share/files<br />
Toms/share/xbox                 52.8G   421G  52.8G  /share/xbox<br />
Toms/tom                        7.59G   421G  7.59G  /tom<br />
Toms/vffs                        349G   421G   349G  /vffs<br />
syspool                         1.17G   225G    23K  none<br />
syspool/rootfs-nmu-000          1.17G   225G  1.12G  legacy<br />
syspool/rootfs-nmu-000@initial  49.8M      &#8211;   631M  -<br />
Just how many file are effected?<br />
<code><br />
root@nas:~# zpool status -v | grep " /share/" | wc -l<br />
2618<br />
</code></p>
<p>Lets get rid (probably can be done neater, I had to google for the sed syntax to strip whitespace.)<br />
<code><br />
root@nas:~# zpool status -v | grep " /share" | sed 's/^[ \t]*//;s/[ \t]*$//' | xargs -d "\n" rm<br />
root@nas:~# zpool status -v | grep " /share/" | wc -l<br />
0<br />
</code><br />
No bad files now</p>
<p>Clear the errors on the disks (hopefully they are not really ALL bad)<br />
<code><br />
root@nas:~# zpool clear Toms<br />
root@nas:~# zpool status<br />
pool: Toms<br />
state: ONLINE<br />
status: One or more devices has experienced an error resulting in data<br />
corruption.  Applications may be affected.<br />
action: Restore the file in question if possible.  Otherwise restore the<br />
entire pool from backup.<br />
see: http://www.sun.com/msg/ZFS-8000-8A<br />
scrub: resilver completed after 4h57m with 163802 errors on Sun Feb  8 16:47:46 2009<br />
config:</code></p>
<p>NAME        STATE     READ WRITE CKSUM<br />
Toms        ONLINE       0     0     0<br />
raidz1    ONLINE       0     0     0<br />
c2t0d0  ONLINE       0     0     0<br />
c2t2d0  ONLINE       0     0     0<br />
c2t1d0  ONLINE       0     0     0<br />
c2t4d0  ONLINE       0     0     0<br />
raidz1    ONLINE       0     0     0<br />
c2t5d0  ONLINE       0     0     0<br />
c2t7d0  ONLINE       0     0     0<br />
c2t3d0  ONLINE       0     0     0<br />
c2t6d0  ONLINE       0     0     0</p>
<p>errors: 140338 data errors, use &#8216;-v&#8217; for a list</p>
<p>pool: syspool<br />
state: ONLINE<br />
scrub: none requested<br />
config:</p>
<p>NAME        STATE     READ WRITE CKSUM<br />
syspool     ONLINE       0     0     0<br />
c1t1d0s0  ONLINE       0     0     0</p>
<p>errors: No known data errors<br />
Still some errors, need to figure out what this means<br />
<code><br />
root@nas:/share# zpool status -v<br />
..................(cut)<br />
Toms/share/TalkingBooks:&lt;0x61ff&gt;<br />
Toms/share/TalkingBooks:&lt;0x62ff&gt;<br />
Toms/share/TalkingBooks:&lt;0x64ff&gt;<br />
Toms/share/TalkingBooks:&lt;0x65ff&gt;<br />
Toms/share/Tunes:&lt;0x239&gt;<br />
Toms/share/Tunes:&lt;0x247&gt;<br />
Toms/share/Tunes:&lt;0x34e&gt;<br />
Toms/share/Tunes:&lt;0x47f&gt;<br />
..................(cut)<br />
</code></p>
<p class="facebook"><a href="http://www.facebook.com/share.php?u=http://www.thattommyhall.com/2009/02/11/zfs-its-sometimes-good-to-know-how-screwed-you-are/" target="_blank" title="Share on Facebook">Share on Facebook</a></p>]]></content:encoded>
			<wfw:commentRss>http://www.thattommyhall.com/2009/02/11/zfs-its-sometimes-good-to-know-how-screwed-you-are/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Databases and Lustre on ZFS&#8217;s DMU, New CIFS Stuff</title>
		<link>http://www.thattommyhall.com/2008/04/03/databases-and-lustre-on-zfss-dmu-new-cifs-stuff/</link>
		<comments>http://www.thattommyhall.com/2008/04/03/databases-and-lustre-on-zfss-dmu-new-cifs-stuff/#comments</comments>
		<pubDate>Thu, 03 Apr 2008 12:12:03 +0000</pubDate>
		<dc:creator>tom</dc:creator>
				<category><![CDATA[ZFS]]></category>

		<guid isPermaLink="false">http://www.thattommyhall.com/2008/04/03/databases-and-lustre-on-zfss-dmu-new-cifs-stuff/</guid>
		<description><![CDATA[When I first heard about ZFS and its features, I was intrigued by a comment by Bill More about the possibility of having a database or other app directly consume the DMU that ZFS uses for filesystems or volumes. After I did a spot of research when editing the ZFS page on Wikipedia I noticed [...]]]></description>
			<content:encoded><![CDATA[<p>When I first heard about ZFS and its features, I was intrigued by a comment by Bill More about the possibility  of having a database or other app directly consume the DMU that ZFS uses for filesystems or volumes. After I did a spot of research when editing the ZFS page on Wikipedia I noticed the &#8220;Last Word In Filesystems&#8221; pdf has been updated since I last looked, here are the 2 pages that excited me. With Suns recent acquisition of MySQL and lustre we seem to have arrived there now. Lustre support is excellent as it solves the only failing of ZFS, that it is not clustered.<br />
<a href="http://www.thattommyhall.com/wp-content/uploads/2008/04/zfs_universal.jpg" onclick="return false;" title="Direct link to file"><img src="http://www.thattommyhall.com/wp-content/uploads/2008/04/zfs_universal.thumbnail.jpg" alt="zfs_universal.jpg" height="118" width="171" /></a></p>
<p>The in-kernel CIFS stuff gets a mention too<br />
<a href="http://www.thattommyhall.com/wp-content/uploads/2008/04/zfs_cifs.jpg" onclick="return false;" title="Direct link to file"><img src="http://www.thattommyhall.com/wp-content/uploads/2008/04/zfs_cifs.thumbnail.jpg" alt="zfs_cifs.jpg" height="116" width="171" /></a><a href="http://www.thattommyhall.com/wp-admin/upload.php?style=inline&amp;tab=browse-all&amp;post_id=52&amp;_wpnonce=4c95e753ca&amp;ID=54&amp;action=view&amp;paged" id="file-link-54" title="zfs_cifs.jpg" class="file-link image"><br />
</a></p>
<p>Great work<a href="http://www.thattommyhall.com/wp-admin/upload.php?style=inline&amp;tab=browse-all&amp;post_id=52&amp;_wpnonce=4c95e753ca&amp;ID=54&amp;action=view&amp;paged" id="file-link-54" title="zfs_cifs.jpg" class="file-link image"> 			 </a></p>
<p>See <a href="www.opensolaris.org/os/community/zfs/docs/zfs_last.pdf" target="_blank">the full presentation</a> and Bill Moore&#8217;s <a href="http://www.sun.com/software/media/real/zfs_learningcenter/high_bandwidth.html" target="_blank">slightly outdated video</a></p>
<p class="facebook"><a href="http://www.facebook.com/share.php?u=http://www.thattommyhall.com/2008/04/03/databases-and-lustre-on-zfss-dmu-new-cifs-stuff/" target="_blank" title="Share on Facebook">Share on Facebook</a></p>]]></content:encoded>
			<wfw:commentRss>http://www.thattommyhall.com/2008/04/03/databases-and-lustre-on-zfss-dmu-new-cifs-stuff/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Two Thumpers For Tommy?</title>
		<link>http://www.thattommyhall.com/2008/04/03/two-thumpers-for-tommy/</link>
		<comments>http://www.thattommyhall.com/2008/04/03/two-thumpers-for-tommy/#comments</comments>
		<pubDate>Thu, 03 Apr 2008 12:01:14 +0000</pubDate>
		<dc:creator>tom</dc:creator>
				<category><![CDATA[hardware]]></category>
		<category><![CDATA[ZFS]]></category>

		<guid isPermaLink="false">http://www.thattommyhall.com/2008/04/03/two-thumpers-for-tommy/</guid>
		<description><![CDATA[After me banging on for a year about how cool ZFS is, my boss is finally convinced and wants to get a Thumper (or 2). Depending on budgetary constraints we may be getting a couple of these to implement a warm backup solution for our current data and about 5 years worth from now (they [...]]]></description>
			<content:encoded><![CDATA[<p>After me banging on for a year about how cool ZFS is, my boss is finally convinced and wants to get a Thumper (or 2). Depending on budgetary constraints we may be getting a couple of these to implement a warm backup solution for our current data and about 5 years worth from now (they are 24Tb each)</p>
<p><a href="http://www.thattommyhall.com/wp-content/uploads/2008/04/thumper1.jpg" title="thumper1.jpg"><img src="http://www.thattommyhall.com/wp-content/uploads/2008/04/thumper1.jpg" alt="thumper1.jpg" /></a></p>
<p><a href="http://www.thattommyhall.com/wp-content/uploads/2008/04/thumper2.jpg" title="thumper2.jpg"><img src="http://www.thattommyhall.com/wp-content/uploads/2008/04/thumper2.jpg" alt="thumper2.jpg" /></a></p>
<p>48 Drives in a 4U rackmount for 20k, great value and unbeatable storage density.</p>
<p class="facebook"><a href="http://www.facebook.com/share.php?u=http://www.thattommyhall.com/2008/04/03/two-thumpers-for-tommy/" target="_blank" title="Share on Facebook">Share on Facebook</a></p>]]></content:encoded>
			<wfw:commentRss>http://www.thattommyhall.com/2008/04/03/two-thumpers-for-tommy/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>OpenSolaris Gets In-Kernel CIFS Server</title>
		<link>http://www.thattommyhall.com/2007/11/11/opensolaris-gets-in-kernel-cifs-server/</link>
		<comments>http://www.thattommyhall.com/2007/11/11/opensolaris-gets-in-kernel-cifs-server/#comments</comments>
		<pubDate>Sun, 11 Nov 2007 22:08:26 +0000</pubDate>
		<dc:creator>tom</dc:creator>
				<category><![CDATA[OpenSolaris]]></category>
		<category><![CDATA[Samba]]></category>
		<category><![CDATA[ZFS]]></category>

		<guid isPermaLink="false">http://www.thattommyhall.com/2007/11/11/opensolaris-gets-in-kernel-cifs-server/</guid>
		<description><![CDATA[Exporting a ZFS filesystem via NFS is easy, you just use the command zfs set sharesmb=on POOLNAME/FSNAME In order to share via CIFS (sometimes called SMB) to windows clients, you used to have to use Samba. This is not a problem for simple setups that dont use Active Directory, but can be a pain if [...]]]></description>
			<content:encoded><![CDATA[<p>Exporting a ZFS filesystem via NFS is easy, you just use the command</p>
<p><code>zfs set sharesmb=on POOLNAME/FSNAME</code></p>
<p>In order to share via CIFS (sometimes called SMB) to windows clients, you used to have to use Samba.  This is not a problem for simple setups that dont use Active Directory, but can be a pain if you do as the ACL model in Windows is completely different to Unix (One of the few areas Windows is better in my opinion). Samba get around this by adding <a href="http://www.opensourcehowto.org/how-to/samba/openldap-lam-samba-as-pdc.html" target="_blank">hooking up to OpenLDAP</a>, adding a <a href="http://us1.samba.org/samba/ftp/slides/vfs.pdf" target="_blank">VFS layer</a> (pdf) and <a href="http://searchenterpriselinux.techtarget.com/originalContent/0,289142,sid39_gci1225944,00.html">reimplementing Kerboros/LDAP</a> to match the Microsoft version, all of which are far from trivial to set up. I love Samba and think it is one of the best pieces of free software there is.</p>
<p>Sun have just released a CIFS implementation in the SunOS kernel, based on a stack that they got when they bought Procom. As well as serving up files via CIFS, they have modified the ACL system to be a sort of hybrid or old style Posix and Windows style ones. I think they have been planning this for a while as NFSv4 ACLs are similar to NTFS ones but still map on to Posix style eventually. So the end result is you will be able to write</p>
<p><code>zfs set sharecifs=on POOLNAME/FSNAME</code></p>
<p>and have the filesystem exported. The fact that it is in-kernel and integrated with ZFS is cool, but this on-disk storing of the ACL information is the best feature. Check out  <a href="http://blogs.sun.com/mws/entry/unified_posix_and_windows_credentials" target="_blank">Mike Shapiro</a> and <a href="http://blogs.sun.com/amw/entry/cifs_in_solaris" target="_blank">Alan Wright</a>&#8216;s blogs on the topic, the <a href="http://opensolaris.org/os/community/arc/caselog/2007/064/final-materials/spec-txt/" target="_blank">full spec</a> and the <a href="http://opensolaris.org/os/project/cifs-server/" target="_blank">project page</a> for more details.</p>
<p>That is not to say Samba is useless, I was very excited by the  examples <a href="http://www.edplese.com/samba-with-zfs.html" target="_blank">here</a>, particularly the patch to implement shadow copies using ZFS, but maybe people will move away from it in favour of a more tightly integrated in-kernel implementation. The CIFS client in Linux is now in-kernel (still written by the Samba guys though) as it is in SunOS and Darwin (Sun ported the Darwin version).  Untill NFSv4, Samba was definitely the best way to share files between Unixes, due to some nifty <a href="http://uranus.it.swin.edu.au/~jn/linux/smbfs/" target="_blank">Posix Extensions</a> and the throughput from the efficient implementation (beating in-kernel NFS from Linux in my testing, it may still be the best way). Samba beats Windows servers for throughput and number of clients served, the SMBTorture suite they developed even got <a href="http://linuxgazette.net/119/dyckoff.html" target="_blank">mentioned</a> (search for Evil Empire) by a Microsoft guy as they now use it to test their implementation.</p>
<p>When I get it on my NAS, I&#8217;ll post benchmarks.</p>
<p class="facebook"><a href="http://www.facebook.com/share.php?u=http://www.thattommyhall.com/2007/11/11/opensolaris-gets-in-kernel-cifs-server/" target="_blank" title="Share on Facebook">Share on Facebook</a></p>]]></content:encoded>
			<wfw:commentRss>http://www.thattommyhall.com/2007/11/11/opensolaris-gets-in-kernel-cifs-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Why I love ZFS</title>
		<link>http://www.thattommyhall.com/2007/11/04/why-i-love-zfs/</link>
		<comments>http://www.thattommyhall.com/2007/11/04/why-i-love-zfs/#comments</comments>
		<pubDate>Sun, 04 Nov 2007 20:59:08 +0000</pubDate>
		<dc:creator>tom</dc:creator>
				<category><![CDATA[Nexenta]]></category>
		<category><![CDATA[OpenSolaris]]></category>
		<category><![CDATA[ZFS]]></category>

		<guid isPermaLink="false">http://www.thattommyhall.com/?p=9</guid>
		<description><![CDATA[No silent data corruption because of a checksum on each block, copy on write means no fsck EVER (it does not even have one), no RAID5 write hole, add disks to the pool on the fly, put volumes there as well as filesystems and export them via iSCSI or NFS, quotas, compression and it is [...]]]></description>
			<content:encoded><![CDATA[<p>No silent data corruption because of a checksum on each block, copy on write means no fsck EVER (it does not even have one), no <a href="http://en.wikipedia.org/wiki/RAID_5#RAID_5_performance" target="_blank">RAID5 write hole</a>, add disks to the pool on the fly, put volumes there as well as filesystems and export them via iSCSI or NFS, quotas, compression and it is easy to use. Check it out <a href="http://www.opensolaris.org/os/community/zfs/whatis/" target="_blank">here,</a> or watch this <a href="http://video.google.com/videoplay?docid=8164805665567899891&amp;q=ZFS" target="_blank">video</a><code><strong> </strong></code></p>
<p>It is so easy to use, here is my command line session when adding  4 disks to my array. Took me perhaps 5 minutes and its worth noting that there was no pause between issuing each command as its all pretty much instant. I had to import the pool at the beginning as I had just installed OpenSolaris developer edition to see if it was any better than <a href="http://www.gnusolaris.org" target="_blank">Nexenta</a> (it was not). The spacing of the output is a little off, but hopefully its still understandable.</p>
<p><code><strong># zfs list</strong><br />
no datasets available<br />
<strong># zpool import Toms</strong><br />
cannot import 'Toms': pool may be in use from other system<br />
use '-f' to import anyway<br />
<strong># zpool import -f Toms<br />
# zfs list</strong><br />
NAME                      USED  AVAIL  REFER  MOUNTPOINT<br />
Toms                     1.33T  9.84G  40.4K  none<br />
Toms/500G                 723G  9.84G   723G  /share/500G<br />
Toms/Notes               25.9G  9.84G  25.9G  /share/Notes<br />
Toms/files               25.6G  9.84G  25.6G  /share/files<br />
Toms/share                532G  9.84G  46.4K  /share<br />
Toms/share/SetupFiles    72.2G  9.84G  72.2G  /share/SetupFiles<br />
Toms/share/TalkingBooks   139G  9.84G   139G  /share/TalkingBooks<br />
Toms/share/Tunes         57.5G  9.84G  57.5G  /share/Tunes<br />
Toms/share/Videos         263G  9.84G   263G  /share/Videos<br />
Toms/share/apps           159M  9.84G   159M  /share/apps<br />
Toms/share/downloads     26.9K  9.84G  26.9K  /share/downloads<br />
Toms/xbox                50.7G  9.84G  50.7G  /share/xbox<br />
<strong># zpool status</strong><br />
pool: Toms<br />
state: ONLINE<br />
status: The pool is formatted using an older on-disk format.  The pool can<br />
still be used, but some features are unavailable.<br />
action: Upgrade the pool using 'zpool upgrade'.  Once this is done, the<br />
pool will no longer be accessible on older software versions.<br />
scrub: none requested<br />
config:</code></p>
<p>NAME        STATE     READ WRITE CKSUM<br />
Toms        ONLINE       0     0     0<br />
raidz1    ONLINE       0     0     0<br />
c2t3d0  ONLINE       0     0     0<br />
c2t0d0  ONLINE       0     0     0<br />
c2t2d0  ONLINE       0     0     0<br />
c2t1d0  ONLINE       0     0     0</p>
<p>errors: No known data errors</p>
<p><strong># zpool add Toms raidz c2t4d0 c2t5d0 c2t6d0 c2t7d0</strong><br />
invalid vdev specification<br />
use &#8216;-f&#8217; to override the following errors:<br />
/dev/dsk/c2t4d0s0 is part of exported or potentially active ZFS pool<br />
mypool. Please see zpool(1M).<br />
<strong># zpool add -f Toms raidz c2t4d0 c2t5d0 c2t6d0 c2t7d0<br />
# zpool status</strong><br />
pool: Toms<br />
state: ONLINE<br />
status: The pool is formatted using an older on-disk format.  The pool can<br />
still be used, but some features are unavailable.<br />
action: Upgrade the pool using &#8216;zpool upgrade&#8217;.  Once this is done, the<br />
pool will no longer be accessible on older software versions.<br />
scrub: none requested<br />
config:</p>
<p>NAME        STATE     READ WRITE CKSUM<br />
Toms        ONLINE       0     0     0<br />
raidz1    ONLINE       0     0     0<br />
c2t3d0  ONLINE       0     0     0<br />
c2t0d0  ONLINE       0     0     0<br />
c2t2d0  ONLINE       0     0     0<br />
c2t1d0  ONLINE       0     0     0<br />
raidz1    ONLINE       0     0     0<br />
c2t4d0  ONLINE       0     0     0<br />
c2t5d0  ONLINE       0     0     0<br />
c2t6d0  ONLINE       0     0     0<br />
c2t7d0  ONLINE       0     0     0</p>
<p>errors: No known data errors<br />
<strong># zfs list</strong><br />
NAME                      USED  AVAIL  REFER  MOUNTPOINT<br />
Toms                     1.33T   888G  40.4K  none<br />
Toms/500G                 723G   888G   723G  /share/500G<br />
Toms/Notes               25.9G   888G  25.9G  /share/Notes<br />
Toms/files               25.6G   888G  25.6G  /share/files<br />
Toms/share                532G   888G  46.4K  /share<br />
Toms/share/SetupFiles    72.2G   888G  72.2G  /share/SetupFiles<br />
Toms/share/TalkingBooks   139G   888G   139G  /share/TalkingBooks<br />
Toms/share/Tunes         57.5G   888G  57.5G  /share/Tunes<br />
Toms/share/Videos         263G   888G   263G  /share/Videos<br />
Toms/share/apps           159M   888G   159M  /share/apps<br />
Toms/share/downloads     26.9K   888G  26.9K  /share/downloads<br />
Toms/xbox                50.7G   888G  50.7G  /share/xbox<br />
<strong># zpool upgrade Toms</strong><br />
This system is currently running ZFS pool version 8.</p>
<p>Successfully upgraded &#8216;Toms&#8217; from version 7 to version 8</p>
<p class="facebook"><a href="http://www.facebook.com/share.php?u=http://www.thattommyhall.com/2007/11/04/why-i-love-zfs/" target="_blank" title="Share on Facebook">Share on Facebook</a></p>]]></content:encoded>
			<wfw:commentRss>http://www.thattommyhall.com/2007/11/04/why-i-love-zfs/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to get a solaris kernel and GNU userland</title>
		<link>http://www.thattommyhall.com/2007/11/03/how-to-get-a-solaris-kernel-and-gnu-userland/</link>
		<comments>http://www.thattommyhall.com/2007/11/03/how-to-get-a-solaris-kernel-and-gnu-userland/#comments</comments>
		<pubDate>Sat, 03 Nov 2007 17:43:43 +0000</pubDate>
		<dc:creator>tom</dc:creator>
				<category><![CDATA[Nexenta]]></category>
		<category><![CDATA[OpenSolaris]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[ZFS]]></category>

		<guid isPermaLink="false">http://www.thattommyhall.com/?p=6</guid>
		<description><![CDATA[I love the SunOS kernel. ZFS, Dtrace, Zones all make it desirable. But OpenSolaris is a code repository, not a distribution and you have to go elsewhere if you want a free distro. Nexenta looked the most promising, but then went quiet for a while (at least on their webpage) after shifting their focus to [...]]]></description>
			<content:encoded><![CDATA[<p>I love the SunOS kernel. ZFS, Dtrace, Zones all make it desirable. But OpenSolaris is a code repository, not a distribution and you have to go elsewhere if you want a free distro. <a href="http://www.gnusolaris.org">Nexenta</a> looked the most promising, but then went quiet for a while (at least on their webpage) after shifting their focus to a smaller package set they called Nexenta Core Platform. I was very pleased to see an offer of collaboration from the Debian project leader in their forums and now <a href="http://www.nexenta.com/corp/index.php?option=com_content&amp;task=blogsection&amp;id=4&amp;Itemid=67" target="_blank">Nexenta.com</a> has released a new NAS package (not free though) and at the same time Suns &#8220;<a href="http://www.opensolaris.org/os/project/indiana/" target="_blank">Project Nevada</a>&#8221; seems to be bearing fruit after hiring Ian Murdock (the chap who started Debian)</p>
<p>OpenSolaris Developer/Community editions pale in comparision to Ubuntu for range of packages and usability, perhaps Nevada can sort it out. I am hopeful that Nexenta get it together and be the GNU/Solaris distro I really want (see <a href="http://martinman.net/software/nexenta">here</a> for some screencasts by Martin Man showing how cool it already is).</p>
<p class="facebook"><a href="http://www.facebook.com/share.php?u=http://www.thattommyhall.com/2007/11/03/how-to-get-a-solaris-kernel-and-gnu-userland/" target="_blank" title="Share on Facebook">Share on Facebook</a></p>]]></content:encoded>
			<wfw:commentRss>http://www.thattommyhall.com/2007/11/03/how-to-get-a-solaris-kernel-and-gnu-userland/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

