<?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>Thushan Fernando Uncut &#187; OpenSolaris</title>
	<atom:link href="http://www.thushanfernando.com/index.php/category/operating-systems/opensolaris/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.thushanfernando.com</link>
	<description>Not Even Remotely Dorky thoughts from a guy who never has enough time.</description>
	<lastBuildDate>Wed, 09 Mar 2011 04:51:48 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>OpenIndiana Announced, the fork to Oracle&#8217;s OpenSolaris!</title>
		<link>http://www.thushanfernando.com/index.php/2010/09/15/openindiana-announced-the-fork-to-oracles-opensolaris/</link>
		<comments>http://www.thushanfernando.com/index.php/2010/09/15/openindiana-announced-the-fork-to-oracles-opensolaris/#comments</comments>
		<pubDate>Wed, 15 Sep 2010 11:55:57 +0000</pubDate>
		<dc:creator>Thushan Fernando</dc:creator>
				<category><![CDATA[Beta]]></category>
		<category><![CDATA[Developer]]></category>
		<category><![CDATA[File Systems]]></category>
		<category><![CDATA[Kernel / Internals]]></category>
		<category><![CDATA[OpenSolaris]]></category>
		<category><![CDATA[Operating Systems]]></category>
		<category><![CDATA[dtrace]]></category>
		<category><![CDATA[illumos]]></category>
		<category><![CDATA[ips]]></category>
		<category><![CDATA[iso]]></category>
		<category><![CDATA[openindiana]]></category>
		<category><![CDATA[openindianna]]></category>
		<category><![CDATA[oracle]]></category>
		<category><![CDATA[ou_147]]></category>
		<category><![CDATA[snv_134]]></category>
		<category><![CDATA[solaris]]></category>
		<category><![CDATA[sun]]></category>
		<category><![CDATA[zfs]]></category>

		<guid isPermaLink="false">http://www.thushanfernando.com/?p=1277</guid>
		<description><![CDATA[Earlier today, we had the announcement for OpenIndiana. Aimed to be the de-facto OpenSolaris Distribution that tries to be binary and package compatible with Solaris 11 &#38; Solaris 11 Express. Its apart Illumos Community with 20 core developers providing (eventually) a stable branch with 100% free &#38; open source distribution. Not only that, you can [...]
Related posts:<ol>
<li><a href='http://www.thushanfernando.com/index.php/2008/12/03/opensolaris-200811-out-the-door/' rel='bookmark' title='OpenSolaris 2008.11 out the door!!!'>OpenSolaris 2008.11 out the door!!!</a></li>
<li><a href='http://www.thushanfernando.com/index.php/2009/11/03/zfs-gets-deduplication/' rel='bookmark' title='ZFS gets deduplication'>ZFS gets deduplication</a></li>
<li><a href='http://www.thushanfernando.com/index.php/2009/11/05/next-generation-linux-file-systems/' rel='bookmark' title='Next generation Linux file-systems'>Next generation Linux file-systems</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.thushanfernando.com/index.php/2010/09/15/openindiana-announced-the-fork-to-oracles-opensolaris/"><img class="alignright" src="http://openindiana.org/wp-content/uploads/2010/09/openindiana_logonew2_WP.png" alt="OpenIndiana" width="240" height="63" /></a>Earlier today, we had the <a href="http://openindiana.org/announcement/">announcement for OpenIndiana</a>. Aimed to be the <a href="http://www.openindiana.org/">de-facto OpenSolaris Distribution</a> that tries to be binary and package compatible with Solaris 11 &amp; Solaris 11 Express. Its apart <a href="http://www.illumos.org/">Illumos Community</a> with 20 core developers providing (eventually) a stable branch with 100% free &amp; open source distribution.</p>
<p>Not only that, you can also download a <a href="http://dlc-origin.openindiana.org/isos/147/">ready baked OpenIndiana distribution</a> (based on ou_147) or if you&#8217;re like me and still using <a href="http://www.genunix.org/dist/indiana/?C=M;O=D">OpenSolaris DEV snv_134</a>, you can <a href="http://wiki.openindiana.org:8080/display/oi/Installing+or+Upgrading">upgrade via the IPS management tools</a>. Having said that though, I&#8217;m not going to rush and <a href="http://www.thushanfernando.com/index.php/tag/zeus/">upgrade my zeus box</a> anytime soon as it will take time to settle in, but you can take the baked <acronym title="International Organization for Standardization">ISO</acronym>&#8217;s for a spin in a VM <img src='http://www.thushanfernando.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  I have found a few references to OpenSolaris still there and there is currently no xVM Xen (dom0) support nor lx (Linux) branded zones. Not to worry, keep an eye out on the <a rel="external" href="http://openindiana.org/home/roadmap/" target="_blank">roadmap</a> and <a rel="external" href="http://openindiana.org/support/release-schedule/" target="_blank">release schedule</a> for what they&#8217;re going to deliver.</p>
<p>You can get a copy of the <a href="http://dlc.openindiana.org/tmp/slides.pdf">OpenIndiana announcement presentation slides</a> as well or follow <a href="http://twitter.com/openindiana">@openIndiana</a> on twitter. Otherwise, see the <a rel="external" href="http://wiki.openindiana.org:8080/display/oi/Getting+Involved" target="_blank">Getting Involved guide</a> on the <a rel="external" href="http://wiki.openindiana.org/" target="_blank">OpenIndiana Wiki</a> and join in!</p>
<p>In a way, its good to know that the beloved OpenSolaris will still live &#8211; thanks to the community, but at the same time, how long that community will be turned on by developing and maintaining it will be interesting &#8211; though other forks of OpenSolaris are backing it (via Illumos) &#8211; like <a href="http://www.nexenta.org/">Nexenta</a> and <a href="http://schillix.berlios.de/pmwiki.php/Main/HomePage">Schillix</a> which has <a href="ftp://ftp.berlios.de/pub/schillix/AN-0.7.1i">just released</a> a version based on Ilumos. All in all, WATCH THIS PROJECT!</p><div name="googleone_share_1" style="position:relative;z-index:5;float: right; margin-left: 10px;"><g:plusone size="medium" count="1" href="http://www.thushanfernando.com/index.php/2010/09/15/openindiana-announced-the-fork-to-oracles-opensolaris/">{lang: 'en-GB'}</g:plusone></div><p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.thushanfernando.com%2Findex.php%2F2010%2F09%2F15%2Fopenindiana-announced-the-fork-to-oracles-opensolaris%2F&amp;title=OpenIndiana%20Announced%2C%20the%20fork%20to%20Oracle%26%238217%3Bs%20OpenSolaris%21" id="wpa2a_2"><img src="http://www.thushanfernando.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p><p>Related posts:<ol>
<li><a href='http://www.thushanfernando.com/index.php/2008/12/03/opensolaris-200811-out-the-door/' rel='bookmark' title='OpenSolaris 2008.11 out the door!!!'>OpenSolaris 2008.11 out the door!!!</a></li>
<li><a href='http://www.thushanfernando.com/index.php/2009/11/03/zfs-gets-deduplication/' rel='bookmark' title='ZFS gets deduplication'>ZFS gets deduplication</a></li>
<li><a href='http://www.thushanfernando.com/index.php/2009/11/05/next-generation-linux-file-systems/' rel='bookmark' title='Next generation Linux file-systems'>Next generation Linux file-systems</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.thushanfernando.com/index.php/2010/09/15/openindiana-announced-the-fork-to-oracles-opensolaris/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>OpenSolaris FIX: Server refused to allocate pty (SSH)</title>
		<link>http://www.thushanfernando.com/index.php/2010/05/11/opensolaris-fix-server-refused-to-allocate-pty-ssh/</link>
		<comments>http://www.thushanfernando.com/index.php/2010/05/11/opensolaris-fix-server-refused-to-allocate-pty-ssh/#comments</comments>
		<pubDate>Tue, 11 May 2010 13:53:01 +0000</pubDate>
		<dc:creator>Thushan Fernando</dc:creator>
				<category><![CDATA[Beta]]></category>
		<category><![CDATA[Developer]]></category>
		<category><![CDATA[Fixes & Tips]]></category>
		<category><![CDATA[Kernel / Internals]]></category>
		<category><![CDATA[OpenSolaris]]></category>
		<category><![CDATA[Operating Systems]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[fix]]></category>
		<category><![CDATA[hotfix]]></category>
		<category><![CDATA[how-to]]></category>
		<category><![CDATA[solaris]]></category>
		<category><![CDATA[ssh]]></category>
		<category><![CDATA[unix]]></category>

		<guid isPermaLink="false">http://www.thushanfernando.com/?p=1211</guid>
		<description><![CDATA[Just upgraded a friends OpenSolaris boxen to SNV_134 (latest available from the OpenSolaris dev repository) and after rebooting we realised we couldn&#8217;t SSH into it. Server refused to allocate pty DOH! This is caused by a known bug that has been around for a few builds now. You&#8217;ll need to modify /etc/minor_perm and add the [...]
Related posts:<ol>
<li><a href='http://www.thushanfernando.com/index.php/2009/11/05/next-generation-linux-file-systems/' rel='bookmark' title='Next generation Linux file-systems'>Next generation Linux file-systems</a></li>
<li><a href='http://www.thushanfernando.com/index.php/2008/12/03/opensolaris-200811-out-the-door/' rel='bookmark' title='OpenSolaris 2008.11 out the door!!!'>OpenSolaris 2008.11 out the door!!!</a></li>
<li><a href='http://www.thushanfernando.com/index.php/2009/11/22/in-the-zone-creating-opensolaris-zones/' rel='bookmark' title='In the Zone, Creating OpenSolaris Zones.'>In the Zone, Creating OpenSolaris Zones.</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Just upgraded a friends OpenSolaris boxen to <a href="http://pkg.opensolaris.org/dev/en/catalog.shtml?version=0.5.11%2C0.5.11-0.134&amp;action=Browse">SNV_134</a> (latest available from the <a href="http://pkg.opensolaris.org/dev/en/index.shtml">OpenSolaris dev repository</a>) and after rebooting we realised we couldn&#8217;t <acronym title="Secure Shell">SSH</acronym> into it.</p>
<blockquote><p>Server refused to allocate pty</p></blockquote>
<p>DOH! This is caused by a <a href="http://defect.opensolaris.org/bz/show_bug.cgi?id=12380">known bug that has been around for a few builds now</a>.</p>
<p>You&#8217;ll need to modify <code>/etc/minor_perm</code> and add the following to the bottom of the file.</p>
<pre>clone:ptmx 0666 root sys
</pre>
<p>And what happens if your terminals don&#8217;t accept keyboard input? You could drop back into the shell *or* be lazy like me, find gText editor in your Accessories, add it to the panel and change the properties to run it as a privileged user:</p>
<pre>pfexec gedit %U
</pre>
<p>Then run the file, open the  <code>/etc/minor_perm</code> file, save and reboot. Make sure you change back the shortcut path <img src='http://www.thushanfernando.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p><div name="googleone_share_1" style="position:relative;z-index:5;float: right; margin-left: 10px;"><g:plusone size="medium" count="1" href="http://www.thushanfernando.com/index.php/2010/05/11/opensolaris-fix-server-refused-to-allocate-pty-ssh/">{lang: 'en-GB'}</g:plusone></div><p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.thushanfernando.com%2Findex.php%2F2010%2F05%2F11%2Fopensolaris-fix-server-refused-to-allocate-pty-ssh%2F&amp;title=OpenSolaris%20FIX%3A%20Server%20refused%20to%20allocate%20pty%20%28SSH%29" id="wpa2a_4"><img src="http://www.thushanfernando.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p><p>Related posts:<ol>
<li><a href='http://www.thushanfernando.com/index.php/2009/11/05/next-generation-linux-file-systems/' rel='bookmark' title='Next generation Linux file-systems'>Next generation Linux file-systems</a></li>
<li><a href='http://www.thushanfernando.com/index.php/2008/12/03/opensolaris-200811-out-the-door/' rel='bookmark' title='OpenSolaris 2008.11 out the door!!!'>OpenSolaris 2008.11 out the door!!!</a></li>
<li><a href='http://www.thushanfernando.com/index.php/2009/11/22/in-the-zone-creating-opensolaris-zones/' rel='bookmark' title='In the Zone, Creating OpenSolaris Zones.'>In the Zone, Creating OpenSolaris Zones.</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.thushanfernando.com/index.php/2010/05/11/opensolaris-fix-server-refused-to-allocate-pty-ssh/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Upgrading non-Global OpenSolaris Zone to latest BE</title>
		<link>http://www.thushanfernando.com/index.php/2010/01/14/upgrading-non-global-opensolaris-zone-to-latest-be/</link>
		<comments>http://www.thushanfernando.com/index.php/2010/01/14/upgrading-non-global-opensolaris-zone-to-latest-be/#comments</comments>
		<pubDate>Thu, 14 Jan 2010 11:22:52 +0000</pubDate>
		<dc:creator>Thushan Fernando</dc:creator>
				<category><![CDATA[Developer]]></category>
		<category><![CDATA[File Systems]]></category>
		<category><![CDATA[Fixes & Tips]]></category>
		<category><![CDATA[Guides & How-To]]></category>
		<category><![CDATA[OpenSolaris]]></category>
		<category><![CDATA[Operating Systems]]></category>
		<category><![CDATA[be]]></category>
		<category><![CDATA[container]]></category>
		<category><![CDATA[global]]></category>
		<category><![CDATA[ipkg]]></category>
		<category><![CDATA[opensolaris zones]]></category>
		<category><![CDATA[pkg]]></category>
		<category><![CDATA[zone]]></category>
		<category><![CDATA[zones]]></category>

		<guid isPermaLink="false">http://www.thushanfernando.com/?p=1076</guid>
		<description><![CDATA[I&#8217;ve been tracking the latest dev version of OpenSolaris (as of writing I just upgraded to Nevada SNV 130 ) because of some issues surrounding CIFS in the 2009.06 image of OpenSolaris. To update to the latest BE, simply update your packages and image-update (after configuring the dev repository!). # pkg refresh --full # pkg [...]
Related posts:<ol>
<li><a href='http://www.thushanfernando.com/index.php/2009/10/18/part-ii-rebuilding-zeus-the-operating-system-filesystem-virtualisation/' rel='bookmark' title='Part II: Rebuilding ZEUS &#8211; The Operating System, FileSystem &amp; Virtualisation'>Part II: Rebuilding ZEUS &#8211; The Operating System, FileSystem &#038; Virtualisation</a></li>
<li><a href='http://www.thushanfernando.com/index.php/2009/10/16/setting-up-opensolaris-extras-repository-for-virtualbox-true-type-fonts-flash-javafx-sdk/' rel='bookmark' title='Setting up OpenSolaris Extras Repository for VirtualBox, True-Type Fonts, Flash &amp; JavaFX SDK'>Setting up OpenSolaris Extras Repository for VirtualBox, True-Type Fonts, Flash &#038; JavaFX SDK</a></li>
<li><a href='http://www.thushanfernando.com/index.php/2009/11/03/zfs-gets-deduplication/' rel='bookmark' title='ZFS gets deduplication'>ZFS gets deduplication</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been <a href="http://pkg.opensolaris.org/dev/en/index.shtml">tracking the latest dev version</a> of <a href="http://www.opensolaris.org/">OpenSolaris</a> (as of writing I just upgraded to <a href="http://hub.opensolaris.org/bin/view/Community+Group+x_win/changelogs-nv_130">Nevada SNV 130</a> ) because of <a href="http://opensolaris.org/jive/thread.jspa?messageID=437092">some issues surrounding CIFS in the 2009.06 image</a> of OpenSolaris.</p>
<p>To update to the latest BE, simply update your packages and image-update (after <a href="http://pkg.opensolaris.org/dev/en/index.shtml">configuring the dev repository</a>!).</p>
<pre># <strong>pkg </strong>refresh --full
# <strong>pkg </strong>image-update
# <strong>reboot</strong></pre>
<p>If you&#8217;ve <a href="http://www.thushanfernando.com/index.php/2009/11/22/in-the-zone-creating-opensolaris-zones/">created zones in your OpenSolaris system</a> after upgrading to the latest BE you will need to upgrade your zones as well. Here&#8217;s a simple guide on how to update a zone named <code>tomcat</code> to the BE on the <code>global</code> zone.</p>
<pre># <strong>zoneadm </strong>-z <em>tomcat</em> halt
# <strong>zoneadm </strong>-z <em>tomcat</em> detach
# <strong>zoneadm </strong>-z <em>tomcat</em> attach -u
# <strong>zoneadm </strong>-z <em>tomcat</em> boot
</pre>
<p>The output of the attach and upgrade command appears below, here I am upgrading from 127 to 130.</p>
<pre>Log File: /var/tmp/tomcat.attach_log.23aWZl
Attaching...

       Global zone version: entire@0.5.11,5.11-0.130:20091219T044839Z
   Non-Global zone version: entire@0.5.11,5.11-0.127:20091111T131831Z
           Publisher Check: Zone preferred publisher does not contain
                            entire@0.5.11,5.11-0.130:20091219T044839Z.
           Publisher Reset: Copying preferred publisher from global zone.
  Updating non-global zone: (Stage 1).  Output follows
DOWNLOAD                                  PKGS       FILES    XFER (<acronym title="Megabyte">MB</acronym>)
Completed                              130/130   6842/6842  191.0/191.0

PHASE                                        ACTIONS
Removal Phase                              3529/3529
Install Phase                              7108/7108
Update Phase                               5247/5247
  Updating non-global zone: (Stage 2).  Output follows
No updates necessary for this image.
  Updating non-global zone: Zone updated to entire@0.5.11,5.11-0.130:20091219T044839Z
Attach complete.
</pre>
<p>Thats it, the updated zones are now booted! Whilst I&#8217;m posting this, if you want to upgrade to a specific version of OpenSolaris you can do that too!</p>
<pre># <strong>pkg </strong>refresh --full
# <strong>pkg </strong>image-update --be-name opensolaris-128
</pre>
<p>This will upgrade your BE to 128 instead of the latest &#8211; 130.</p><div name="googleone_share_1" style="position:relative;z-index:5;float: right; margin-left: 10px;"><g:plusone size="medium" count="1" href="http://www.thushanfernando.com/index.php/2010/01/14/upgrading-non-global-opensolaris-zone-to-latest-be/">{lang: 'en-GB'}</g:plusone></div><p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.thushanfernando.com%2Findex.php%2F2010%2F01%2F14%2Fupgrading-non-global-opensolaris-zone-to-latest-be%2F&amp;title=Upgrading%20non-Global%20OpenSolaris%20Zone%20to%20latest%20BE" id="wpa2a_6"><img src="http://www.thushanfernando.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p><p>Related posts:<ol>
<li><a href='http://www.thushanfernando.com/index.php/2009/10/18/part-ii-rebuilding-zeus-the-operating-system-filesystem-virtualisation/' rel='bookmark' title='Part II: Rebuilding ZEUS &#8211; The Operating System, FileSystem &amp; Virtualisation'>Part II: Rebuilding ZEUS &#8211; The Operating System, FileSystem &#038; Virtualisation</a></li>
<li><a href='http://www.thushanfernando.com/index.php/2009/10/16/setting-up-opensolaris-extras-repository-for-virtualbox-true-type-fonts-flash-javafx-sdk/' rel='bookmark' title='Setting up OpenSolaris Extras Repository for VirtualBox, True-Type Fonts, Flash &amp; JavaFX SDK'>Setting up OpenSolaris Extras Repository for VirtualBox, True-Type Fonts, Flash &#038; JavaFX SDK</a></li>
<li><a href='http://www.thushanfernando.com/index.php/2009/11/03/zfs-gets-deduplication/' rel='bookmark' title='ZFS gets deduplication'>ZFS gets deduplication</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.thushanfernando.com/index.php/2010/01/14/upgrading-non-global-opensolaris-zone-to-latest-be/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>OpenSolaris cheatsheet</title>
		<link>http://www.thushanfernando.com/index.php/2009/12/15/opensolaris-cheatsheet/</link>
		<comments>http://www.thushanfernando.com/index.php/2009/12/15/opensolaris-cheatsheet/#comments</comments>
		<pubDate>Tue, 15 Dec 2009 12:20:14 +0000</pubDate>
		<dc:creator>Thushan Fernando</dc:creator>
				<category><![CDATA[Developer]]></category>
		<category><![CDATA[File Systems]]></category>
		<category><![CDATA[OpenSolaris]]></category>
		<category><![CDATA[Operating Systems]]></category>
		<category><![CDATA[cheatsheet]]></category>
		<category><![CDATA[dtrace]]></category>
		<category><![CDATA[solaris]]></category>
		<category><![CDATA[zfs]]></category>

		<guid isPermaLink="false">http://www.thushanfernando.com/?p=1049</guid>
		<description><![CDATA[Most excellent cheatsheet for OpenSolaris.{lang: 'en-GB'}Related posts: ZFS gets deduplication OpenSolaris 2008.11 out the door!!! Rebuilding Zeus &#8211; Part I.5: Change of heart, change of hardware.
Related posts:<ol>
<li><a href='http://www.thushanfernando.com/index.php/2009/11/03/zfs-gets-deduplication/' rel='bookmark' title='ZFS gets deduplication'>ZFS gets deduplication</a></li>
<li><a href='http://www.thushanfernando.com/index.php/2008/12/03/opensolaris-200811-out-the-door/' rel='bookmark' title='OpenSolaris 2008.11 out the door!!!'>OpenSolaris 2008.11 out the door!!!</a></li>
<li><a href='http://www.thushanfernando.com/index.php/2009/10/14/rebuilding-zeus-part-i-5-change-of-heart-change-of-hardware/' rel='bookmark' title='Rebuilding Zeus &#8211; Part I.5: Change of heart, change of hardware.'>Rebuilding Zeus &#8211; Part I.5: Change of heart, change of hardware.</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Most excellent <a href="http://opensolaris.wikia.com/wiki/OpenSolaris_Cheatsheet">cheatsheet for OpenSolaris</a>.</p><div name="googleone_share_1" style="position:relative;z-index:5;float: right; margin-left: 10px;"><g:plusone size="medium" count="1" href="http://www.thushanfernando.com/index.php/2009/12/15/opensolaris-cheatsheet/">{lang: 'en-GB'}</g:plusone></div><p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.thushanfernando.com%2Findex.php%2F2009%2F12%2F15%2Fopensolaris-cheatsheet%2F&amp;title=OpenSolaris%20cheatsheet" id="wpa2a_8"><img src="http://www.thushanfernando.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p><p>Related posts:<ol>
<li><a href='http://www.thushanfernando.com/index.php/2009/11/03/zfs-gets-deduplication/' rel='bookmark' title='ZFS gets deduplication'>ZFS gets deduplication</a></li>
<li><a href='http://www.thushanfernando.com/index.php/2008/12/03/opensolaris-200811-out-the-door/' rel='bookmark' title='OpenSolaris 2008.11 out the door!!!'>OpenSolaris 2008.11 out the door!!!</a></li>
<li><a href='http://www.thushanfernando.com/index.php/2009/10/14/rebuilding-zeus-part-i-5-change-of-heart-change-of-hardware/' rel='bookmark' title='Rebuilding Zeus &#8211; Part I.5: Change of heart, change of hardware.'>Rebuilding Zeus &#8211; Part I.5: Change of heart, change of hardware.</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.thushanfernando.com/index.php/2009/12/15/opensolaris-cheatsheet/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Sunshine of summer: Java EE6, Glassfish 3 and Netbeans 6.8 plus TeamCity 5!</title>
		<link>http://www.thushanfernando.com/index.php/2009/12/12/sunshine-of-summer-java-ee6-glassfish-3-and-netbeans-6-8-plus-teamcity-5/</link>
		<comments>http://www.thushanfernando.com/index.php/2009/12/12/sunshine-of-summer-java-ee6-glassfish-3-and-netbeans-6-8-plus-teamcity-5/#comments</comments>
		<pubDate>Sat, 12 Dec 2009 01:23:53 +0000</pubDate>
		<dc:creator>Thushan Fernando</dc:creator>
				<category><![CDATA[Beta]]></category>
		<category><![CDATA[Developer]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[OpenSolaris]]></category>
		<category><![CDATA[Operating Systems]]></category>
		<category><![CDATA[Tools / Products]]></category>
		<category><![CDATA[Web / Internets]]></category>
		<category><![CDATA[confluence]]></category>
		<category><![CDATA[ide]]></category>
		<category><![CDATA[j2ee]]></category>
		<category><![CDATA[j2se]]></category>
		<category><![CDATA[jira]]></category>
		<category><![CDATA[netbeans]]></category>
		<category><![CDATA[solaris]]></category>
		<category><![CDATA[sun]]></category>
		<category><![CDATA[teamcity]]></category>
		<category><![CDATA[tomcat]]></category>

		<guid isPermaLink="false">http://www.thushanfernando.com/?p=1041</guid>
		<description><![CDATA[What a whopper of a weekend, Sun has ratified Java EE 6 and also released Glassfish 3 and NetBeans 6.8 to celebrate. If that wasn&#8217;t enough JetBrains has also released TeamCity 5! You can read all about the Sun releases on InternetNews and catchup with whats new in Java EE 6 Overview from Suns site. [...]
Related posts:<ol>
<li><a href='http://www.thushanfernando.com/index.php/2009/10/16/setting-up-opensolaris-extras-repository-for-virtualbox-true-type-fonts-flash-javafx-sdk/' rel='bookmark' title='Setting up OpenSolaris Extras Repository for VirtualBox, True-Type Fonts, Flash &amp; JavaFX SDK'>Setting up OpenSolaris Extras Repository for VirtualBox, True-Type Fonts, Flash &#038; JavaFX SDK</a></li>
<li><a href='http://www.thushanfernando.com/index.php/2008/09/29/the-slick-new-developerfusioncom-is-soft-launched/' rel='bookmark' title='The Slick New DeveloperFusion.com is &#8216;soft-launched&#8217;'>The Slick New DeveloperFusion.com is &#8216;soft-launched&#8217;</a></li>
<li><a href='http://www.thushanfernando.com/index.php/2009/10/24/java-news-10-confluence-jira-atlassian-products-and-intelij-goes-opensource/' rel='bookmark' title='Java news: $10 Confluence, Jira &amp; Atlassian products, and InteliJ goes opensource!'>Java news: $10 Confluence, Jira &#038; Atlassian products, and InteliJ goes opensource!</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>What a whopper of a weekend, <a href="http://www.sun.com">Sun</a> has ratified <a href="http://java.sun.com/javaee/">Java EE 6</a> and also released <a href="https://glassfish.dev.java.net/downloads/v3-final.html">Glassfish 3</a> and <a href="http://netbeans.org/community/releases/68/">NetBeans 6.8</a> to celebrate. If that wasn&#8217;t enough <a href="http://www.jetbrains.com">JetBrains</a> has also released <a href="http://www.jetbrains.com/teamcity/">TeamCity 5</a>!</p>
<p>You can read all about the <a href="http://www.developer.com/java/ent/article.php/3852641/Its-Official-Sun-Debuts-Java-EE-6-Plus-Glassfish-v3-and-NetBeans-68.htm">Sun releases on InternetNews</a> and catchup with whats new in <a href="http://java.sun.com/developer/technicalArticles/JavaEE/JavaEE6Overview.html">Java EE 6 Overview from Suns site</a>.</p>
<p>Next weekend its time to move Confluence &amp; Jira (Glassfish 2) and TeamCity 5 (Tomcat) to Glassfish 3 in a <a href="http://www.thushanfernando.com/index.php/2009/11/22/in-the-zone-creating-opensolaris-zones/">opensolaris zone</a> and see how things progress. Did I mention I love the <a href="http://hub.opensolaris.org/bin/view/Community+Group+zones/">zones in OpenSolaris</a>?</p><div name="googleone_share_1" style="position:relative;z-index:5;float: right; margin-left: 10px;"><g:plusone size="medium" count="1" href="http://www.thushanfernando.com/index.php/2009/12/12/sunshine-of-summer-java-ee6-glassfish-3-and-netbeans-6-8-plus-teamcity-5/">{lang: 'en-GB'}</g:plusone></div><p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.thushanfernando.com%2Findex.php%2F2009%2F12%2F12%2Fsunshine-of-summer-java-ee6-glassfish-3-and-netbeans-6-8-plus-teamcity-5%2F&amp;title=Sunshine%20of%20summer%3A%20Java%20EE6%2C%20Glassfish%203%20and%20Netbeans%206.8%20plus%20TeamCity%205%21" id="wpa2a_10"><img src="http://www.thushanfernando.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p><p>Related posts:<ol>
<li><a href='http://www.thushanfernando.com/index.php/2009/10/16/setting-up-opensolaris-extras-repository-for-virtualbox-true-type-fonts-flash-javafx-sdk/' rel='bookmark' title='Setting up OpenSolaris Extras Repository for VirtualBox, True-Type Fonts, Flash &amp; JavaFX SDK'>Setting up OpenSolaris Extras Repository for VirtualBox, True-Type Fonts, Flash &#038; JavaFX SDK</a></li>
<li><a href='http://www.thushanfernando.com/index.php/2008/09/29/the-slick-new-developerfusioncom-is-soft-launched/' rel='bookmark' title='The Slick New DeveloperFusion.com is &#8216;soft-launched&#8217;'>The Slick New DeveloperFusion.com is &#8216;soft-launched&#8217;</a></li>
<li><a href='http://www.thushanfernando.com/index.php/2009/10/24/java-news-10-confluence-jira-atlassian-products-and-intelij-goes-opensource/' rel='bookmark' title='Java news: $10 Confluence, Jira &amp; Atlassian products, and InteliJ goes opensource!'>Java news: $10 Confluence, Jira &#038; Atlassian products, and InteliJ goes opensource!</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.thushanfernando.com/index.php/2009/12/12/sunshine-of-summer-java-ee6-glassfish-3-and-netbeans-6-8-plus-teamcity-5/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>In the Zone, Creating OpenSolaris Zones.</title>
		<link>http://www.thushanfernando.com/index.php/2009/11/22/in-the-zone-creating-opensolaris-zones/</link>
		<comments>http://www.thushanfernando.com/index.php/2009/11/22/in-the-zone-creating-opensolaris-zones/#comments</comments>
		<pubDate>Sun, 22 Nov 2009 04:08:34 +0000</pubDate>
		<dc:creator>Thushan Fernando</dc:creator>
				<category><![CDATA[Cool Tools]]></category>
		<category><![CDATA[Developer]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[Linux/Unix]]></category>
		<category><![CDATA[OpenSolaris]]></category>
		<category><![CDATA[Operating Systems]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[Virtualisation]]></category>
		<category><![CDATA[britney spears]]></category>
		<category><![CDATA[jails]]></category>
		<category><![CDATA[solaris]]></category>
		<category><![CDATA[solaris containers]]></category>
		<category><![CDATA[solaris zones]]></category>

		<guid isPermaLink="false">http://www.thushanfernando.com/?p=988</guid>
		<description><![CDATA[I&#8217;m really enjoying using OpenSolaris as our server / NAS at home, its a different ball game to Linux but an interesting one never the less. One of the cool features of Solaris are the Solaris  Zones (or Solaris Containers). Zones are an implementation of operating system-level virtualisation where the kernel isolates multiple instances of [...]
Related posts:<ol>
<li><a href='http://www.thushanfernando.com/index.php/2009/02/02/xkcd-security-in-the-real-world/' rel='bookmark' title='[XKCD] Security, in The Real World.'>[XKCD] Security, in The Real World.</a></li>
<li><a href='http://www.thushanfernando.com/index.php/2009/08/04/boffins-get-1000000-linux-kernels-running-as-virtual-machines/' rel='bookmark' title='Boffins get 1,000,000 Linux Kernels running as virtual machines!'>Boffins get 1,000,000 Linux Kernels running as virtual machines!</a></li>
<li><a href='http://www.thushanfernando.com/index.php/2009/04/25/think-outside-the-box-getting-virtualbox-2x-running-in-jaunty/' rel='bookmark' title='Think outside the box: Getting VirtualBox 2.x running in Jaunty'>Think outside the box: Getting VirtualBox 2.x running in Jaunty</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m really enjoying using <a href="http://www.opensolaris.org">OpenSolaris</a> as our server / <a href="http://www.thushanfernando.com/index.php/tag/zeus-rebuild/">NAS at home</a>, its a different ball game to Linux but an interesting one never the less. One of the cool features of Solaris are the <a href="http://www.sun.com/bigadmin/content/zones/">Solaris  Zones</a> (or <a href="http://en.wikipedia.org/wiki/Solaris_Containers">Solaris Containers</a>). Zones are an implementation of <a title="Operating system-level virtualization" href="http://en.wikipedia.org/wiki/Operating_system-level_virtualization">operating system-level virtualisation</a> where the kernel isolates multiple instances of the user-space available. Something like <a href="http://en.wikipedia.org/wiki/Chroot">chroot</a> but so much more. Unlike running under a <a href="http://en.wikipedia.org/wiki/Hypervisor">hypervisor</a> (like <a href="http://www.thushanfernando.com/index.php/tag/vmware/">VMWare</a> or <a href="http://www.thushanfernando.com/index.php/tag/virtualbox">VirtualBox</a>), Zone&#8217;s have very little (if any) overhead.</p>
<p>As I&#8217;ve come to realise, because of the way Solaris works in general, you can have multiple (isolated &amp; secure) Zones for each application service exposed by the server &#8211; eg. one for <a href="http://tomcat.apache.org/">Tomcat</a>, one for <a href="https://glassfish.dev.java.net/">Glassfish</a>, maybe both Apache 1.3.x and 2.x, <a href="http://www.mysql.com/">MySql</a>, <a href="http://www.postgresql.org/">Postgres</a> etc. Whats more, you can limit how much resources these Zones can utilise. They all have their own configuration including network routing (coupled with <a href="http://hub.opensolaris.org/bin/view/Project+crossbow/">OpenSolaris Crossbow</a>) and you can make for one kick ass setup that won&#8217;t break another area of the operating system.</p>
<h3>In the Zones.</h3>
<p>Here&#8217;s a guide on setting up a new <a href="http://hub.opensolaris.org/bin/view/Community+Group+zones/">Zone in OpenSolaris</a>, configuring it and booting it.</p>
<h4>Me Against the Music, its all in the global zone</h4>
<p>When we first install OpenSolaris we&#8217;ve already got ourselves into a zone (the parent to all other zones) which is known as the <code>global</code> Zone.</p>
<p>You can find this by trying out the following to list all the available zones on a virgin install of OpenSolaris.</p>
<pre>opensolaris# <strong>zoneadm list -vc</strong>
 ID NAME             STATUS     PATH                           BRAND    <acronym title="Internet Protocol">IP</acronym>
 0 global           running    /                              native   shared</pre>
<p>The output will be something like above. Now we can go about creating ourselves a zone for playing around in.</p>
<p>When working with zones, we only need to worry about three commands (damn I love that!). The <code>zoneadm</code> command to manage the physical zone, <code>zonecfg</code> command for configuring the zone and <code>zlogin</code> to login to the zone from the global zone.</p>
<p>First we have to do a bit of planning and thinking about what we&#8217;re going to do about this zone.</p>
<p>Here are few things to consider:</p>
<ul>
<li>What do you want to run in the zone?</li>
<li>Will it need networking and have it exposed outside of the machine?</li>
<li>Where will the zone reside on your disk?</li>
<li>Would you like to limit the amount of CPUs the zone can see?</li>
<li>Would you like to limit the amount of RAM the zone can utilise?</li>
<li>Do you want to automatically boot the Zone when OpenSolaris starts?</li>
</ul>
<p>For this post, we&#8217;re going to create a simple Zone (we won&#8217;t install anything).</p>
<h4>Toxic Zone</h4>
<p>Creating a zone we specify a zone to the <code>zonecfg</code> command.</p>
<pre>opensolaris# <strong>zonecfg -z toxic</strong></pre>
<p>You&#8217;ll get something like this appearing because teh zone doesn&#8217;t exist, thats fine.</p>
<pre><strong><strong><span style="font-weight: normal;">toxic: No such zone configured
Use 'create' to begin configuring a new zone.
</span></strong></strong></pre>
<p>Then you will be inside the <code>zonecfg </code>configuration.</p>
<p>Lets configure this zone to have the following:</p>
<ul>
<li>Reside in <code>/base/zones/</code></li>
<li>Autoboot with OpenSolaris</li>
<li>Shared <acronym title="Internet Protocol">IP</acronym> of <code>192.168.0.24</code> bound to physical interface <code>e1000g1</code></li>
</ul>
<p>Follow me:</p>
<pre><strong><strong><span style="font-weight: normal;">zonecfg:toxic&gt; <strong>create</strong>
zonecfg:toxic&gt; <strong>set zonepath=/base/zones/</strong>
zonecfg:toxic&gt; <strong>set autoboot=true</strong>
zonecfg:toxic&gt; <strong>add net</strong>
zonecfg:toxic:net&gt; <strong>set address=192.168.0.24</strong>
zonecfg:toxic:net&gt; <strong>set physical=e1000g1</strong>
zonecfg:toxic:net&gt; <strong>end</strong>
zonecfg:toxic&gt; <strong>verify</strong>
zonecfg:toxic&gt; <strong>commit</strong>
zonecfg:toxic&gt; </span>exit</strong></strong></pre>
<p>This will create the configuration, verify, write it and exit. You can verify it was created by running the list command again:</p>
<pre>opensolaris# <strong>zoneadm list -vc
<span style="font-weight: normal;">ID NAME             STATUS         PATH
0 global           running        /
- toxic            configured     /base/zones</span></strong></pre>
<p>Its currently in a <code>configured</code> state, you can read more about the<a href="http://docs.sun.com/app/docs/doc/819-2450/zones.intro-12?a=view"> Non-Global State Model</a> in the <a href="http://docs.sun.com/app/docs/coll/47.24">documentation</a>. Next thing to do is to install the zone &#8211; this will get the base packages setup and configured for use.</p>
<pre>opensolaris# <strong>zoneadm -z toxic install</strong></pre>
<h4>Everytime, boot her up.</h4>
<p>Next lets boot this bad baby up.</p>
<pre>opensolaris# <strong>zoneadm -z toxic boot</strong></pre>
<p>Now if we do a list again we&#8217;ll see that our state has changed to running.</p>
<pre>opensolaris# <strong>zoneadm list -vc
<span style="font-weight: normal;">ID NAME             STATUS         PATH
0 global           running        /
- toxic            running        /base/zones</span></strong></pre>
<p>Now we have to configure the zone itself &#8211; just like a real machine. For this we use the <code>zlogin</code> command to login to the zone console.</p>
<pre>opensolaris# <strong>zlogin toxic</strong>
[Connected to zone 'toxic' pts/5]
Last login: Sat Nov 21 17:52:43 on pts/5
Sun Microsystems Inc.   SunOS 5.11      snv_127 November 2008
root@toxic#</pre>
<p>After that we&#8217;re now in the <code>toxic</code> zone. Anything we do inside here, stays within this zone and won&#8217;t affect our global or other zones. But before we continue we really should configure our networking.</p>
<p>First lets modify our <code>/etc/nsswitch.conf</code> file with vi.</p>
<pre>...
passwd:     files
group:      files
hosts:      files <strong>dns</strong>
ipnodes:    files
networks:   file
...</pre>
<p>Make sure the hosts entry has dns as above. Next we need to configure the nameservers.</p>
<pre>toxic# <strong>echo 'nameserver 192.168.0.254' &gt; /etc/resolv.conf</strong></pre>
<p>That will create a <code>resolv.conf</code> file with the nameserver which you can get from the global zone as it would be different for everyone:</p>
<pre>opensolaris# <strong>cat /etc/resolv.conf</strong>
nameserver 192.168.0.254</pre>
<h4>Breath on me, reboot the zone.</h4>
<p>Now we can access the networking like the global zone. So you can do a package refresh and update-image too.</p>
<pre>toxic# <strong>pkg refresh &amp;&amp; pkg image-update</strong></pre>
<p>If it succeeds we have correctly setup our zone and its ready for use &#8211; you may want to reboot the zone however. To do this, exit the toxic console.</p>
<pre>toxic# <strong>exit</strong>
logout

[Connection to zone 'toxic' pts/5 closed]
opensolaris#</pre>
<p>Then lets reboot the zone.</p>
<pre>opensolaris# <strong>zoneadm -z toxic reboot</strong>
opensolaris# <strong>zlogin toxic</strong>
[Connected to zone 'toxic' pts/5]
Last login: Sat Nov 21 17:58:44 on pts/5
Sun Microsystems Inc.   SunOS 5.11      snv_127 November 2008
root@toxic#</pre>
<h4>Outrageous, removing the zones.</h4>
<p>Now how about removing this zone and trying again? First get out of the zone console and back to your global zone. Issue the halt command to shutdown the zone.</p>
<pre>root@toxic# <strong>exit</strong>
opensolaris# <strong>zoneadm -z toxic halt</strong><strong></strong></pre>
<p>Once stopped simply remove it.</p>
<pre>opensolaris# <strong>zoneadm -z toxic uninstall</strong>
opensolaris# <strong>zonecfg -z toxic delete</strong></pre>
<p>You can make sure its gone by using the list command. That&#8217;s all there is to it!</p>
<p>Now you can consider yourself, <em><a href="http://en.wikipedia.org/wiki/In_the_Zone">In The Zone</a></em>.</p><div name="googleone_share_1" style="position:relative;z-index:5;float: right; margin-left: 10px;"><g:plusone size="medium" count="1" href="http://www.thushanfernando.com/index.php/2009/11/22/in-the-zone-creating-opensolaris-zones/">{lang: 'en-GB'}</g:plusone></div><p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.thushanfernando.com%2Findex.php%2F2009%2F11%2F22%2Fin-the-zone-creating-opensolaris-zones%2F&amp;title=In%20the%20Zone%2C%20Creating%20OpenSolaris%20Zones." id="wpa2a_12"><img src="http://www.thushanfernando.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p><p>Related posts:<ol>
<li><a href='http://www.thushanfernando.com/index.php/2009/02/02/xkcd-security-in-the-real-world/' rel='bookmark' title='[XKCD] Security, in The Real World.'>[XKCD] Security, in The Real World.</a></li>
<li><a href='http://www.thushanfernando.com/index.php/2009/08/04/boffins-get-1000000-linux-kernels-running-as-virtual-machines/' rel='bookmark' title='Boffins get 1,000,000 Linux Kernels running as virtual machines!'>Boffins get 1,000,000 Linux Kernels running as virtual machines!</a></li>
<li><a href='http://www.thushanfernando.com/index.php/2009/04/25/think-outside-the-box-getting-virtualbox-2x-running-in-jaunty/' rel='bookmark' title='Think outside the box: Getting VirtualBox 2.x running in Jaunty'>Think outside the box: Getting VirtualBox 2.x running in Jaunty</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.thushanfernando.com/index.php/2009/11/22/in-the-zone-creating-opensolaris-zones/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Part III: Zeus rebuilt and configured!</title>
		<link>http://www.thushanfernando.com/index.php/2009/11/21/part-iii-zeus-rebuilt-and-configured/</link>
		<comments>http://www.thushanfernando.com/index.php/2009/11/21/part-iii-zeus-rebuilt-and-configured/#comments</comments>
		<pubDate>Sat, 21 Nov 2009 07:13:48 +0000</pubDate>
		<dc:creator>Thushan Fernando</dc:creator>
				<category><![CDATA[File Systems]]></category>
		<category><![CDATA[Hardware]]></category>
		<category><![CDATA[Linux/Unix]]></category>
		<category><![CDATA[OpenSolaris]]></category>
		<category><![CDATA[Operating Systems]]></category>
		<category><![CDATA[Virtualisation]]></category>
		<category><![CDATA[5050e]]></category>
		<category><![CDATA[amd]]></category>
		<category><![CDATA[GA-MA790X-UD4P]]></category>
		<category><![CDATA[gigabyte]]></category>
		<category><![CDATA[hcl]]></category>
		<category><![CDATA[raidz]]></category>
		<category><![CDATA[western digital]]></category>
		<category><![CDATA[zeus]]></category>
		<category><![CDATA[zeus rebuild]]></category>
		<category><![CDATA[zfs]]></category>
		<category><![CDATA[zpool]]></category>

		<guid isPermaLink="false">http://www.thushanfernando.com/?p=998</guid>
		<description><![CDATA[I&#8217;ve spent the last month working with the newly built zeus server which is now powered by OpenSolaris (2009.06). Here&#8217;s my final hardware specifications: CPU: AMD Athlon X2 5050e &#8211; 2.6Ghz (45W TDP, AMD-V) Motherboard: Gigabyte GA-MA790X-UD4P ( AMD 790X Chipset ) RAM: 2x Corsair TWIN2X4096-6400C5 (4Gb kit x 2 = 8Gb) Graphics: ASUS 9400GT [...]
Related posts:<ol>
<li><a href='http://www.thushanfernando.com/index.php/2009/10/18/part-ii-rebuilding-zeus-the-operating-system-filesystem-virtualisation/' rel='bookmark' title='Part II: Rebuilding ZEUS &#8211; The Operating System, FileSystem &amp; Virtualisation'>Part II: Rebuilding ZEUS &#8211; The Operating System, FileSystem &#038; Virtualisation</a></li>
<li><a href='http://www.thushanfernando.com/index.php/2009/10/14/rebuilding-zeus-part-i-5-change-of-heart-change-of-hardware/' rel='bookmark' title='Rebuilding Zeus &#8211; Part I.5: Change of heart, change of hardware.'>Rebuilding Zeus &#8211; Part I.5: Change of heart, change of hardware.</a></li>
<li><a href='http://www.thushanfernando.com/index.php/2009/04/19/rebuilding-zeus-part-1-preliminary-research-and-installing-ubuntu-904-rc1/' rel='bookmark' title='Rebuilding Zeus: Part 1 &#8211; Preliminary Research and Installing Ubuntu 9.04 RC1'>Rebuilding Zeus: Part 1 &#8211; Preliminary Research and Installing Ubuntu 9.04 RC1</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve spent the last month working with the newly built <a href="http://www.thushanfernando.com/index.php/tag/zeus/">zeus server</a> which is now powered by <a href="http://www.opensolaris.org">OpenSolaris</a> (<a href="http://www.opensolaris.com/learn/features/whats-new/200906/">2009.06</a>).</p>
<p>Here&#8217;s my final hardware specifications:</p>
<ul>
<li><strong>CPU:</strong> <a href="http://products.amd.com/en-ca/DesktopCPUDetail.aspx?id=487">AMD Athlon X2 5050e</a> &#8211; 2.6Ghz (45W TDP, <a href="http://www.amd.com/us-en/0,,3715_15781,00.html">AMD-V</a>)</li>
<li><strong>Motherboard: </strong><a onclick="javascript:pageTracker._trackPageview('/outbound/article/www.gigabyte.com.tw');" href="http://www.gigabyte.com.tw/Products/Motherboard/Products_Overview.aspx?ClassValue=Motherboard&amp;ProductID=3038&amp;ProductName=GA-MA790X-UD4P">Gigabyte GA-MA790X-UD4P</a> ( <a onclick="javascript:pageTracker._trackPageview('/outbound/article/www.amd.com');" href="http://www.amd.com/us/products/desktop/chipsets/7-series-discrete/Pages/amd-790x-chipset.aspx">AMD 790X Chipset</a> )</li>
<li><strong>RAM: </strong>2x<strong> </strong><a href="http://www.corsair.com/_datasheets/TWIN2X4096-6400C5.pdf">Corsair TWIN2X4096-6400C5</a> (4Gb kit x 2 = 8Gb)</li>
<li><strong>Graphics: </strong><a href="http://asus.com/product.aspx?P_ID=D2OPpSFCnK1DAaHA&amp;templete=2">ASUS 9400GT</a> PCI-Express</li>
<li><strong>Hard Disks:</strong>
<ul>
<li>rpool &#8211; 2x WD740ADFD &#8211; 74Gb 10K RPM, 16Mb Cache (mirror&#8217;d)</li>
<li>tank &#8211; 6x <a href="http://www.wdc.com/en/products/products.asp?driveid=503">WD1002FBYS</a> &#8211; 1TB, 7200RPM, 32Mb Cache (raidz)</li>
<li>base &#8211; 2x WD7500AAKS &#8211; 750Gb, 7200RPM, 16Mb (mirror&#8217;d)</li>
</ul>
</li>
<li><strong>Addon cards:</strong>
<ul>
<li>SATA &#8211; Silicon Image, Inc. SiI 3132 Serial ATA Raid II Controller</li>
<li>NICs &#8211; 2x Intel Corporation 82545GM Gigabit Ethernet Controller (e1000g)</li>
</ul>
</li>
</ul>
<p>I&#8217;ve finally managed to get the <a href="http://www.sun.com/bigadmin/hcl/data/systems/details/39463.html">GA-MA790X-UD4P on the OpenSolaris HCL list</a> &#8211; woo! Unfortunately the onboard NIC will not work in the 2009.06 release even though it is detected:</p>
<blockquote><p>Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express Gigabit Ethernet controller</p></blockquote>
<p>Maybe in a future release. Make sure you update the BIOS as OpenSolaris may have an issue with the <acronym title="Universal Serial Bus">USB</acronym> controller being &#8216;mis-configured&#8217; otherwise.</p>
<p>Just for kicks I went to <a href="http://www.jaycar.com.au/">Jaycar</a> and bought myself a <a href="http://www.jaycar.com.au/productView.asp?ID=MS6115&amp;keywords=power+meter&amp;form=KEYWORD">power usage meter</a> to measure the watts used by the new boxen (see a review of the <a href="http://www.dansdata.com/quickshot041.htm">Mains Power Meter on DansData</a>).</p>
<p><strong>Old Zeus</strong></p>
<ul>
<li><em>Idle:</em><strong> </strong>380W</li>
<li><em>Load:</em> 413W</li>
</ul>
<p><strong>New Zeus</strong></p>
<ul>
<li><em>Idle: </em>232W</li>
<li><em>Load:</em> 270W</li>
</ul>
<p>Nice, with an <a href="http://www.intel.com/technology/atom/">Intel Atom</a> based server it could go <em>_a lot_</em> lower, but I&#8217;m happy with this.</p><div name="googleone_share_1" style="position:relative;z-index:5;float: right; margin-left: 10px;"><g:plusone size="medium" count="1" href="http://www.thushanfernando.com/index.php/2009/11/21/part-iii-zeus-rebuilt-and-configured/">{lang: 'en-GB'}</g:plusone></div><p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.thushanfernando.com%2Findex.php%2F2009%2F11%2F21%2Fpart-iii-zeus-rebuilt-and-configured%2F&amp;title=Part%20III%3A%20Zeus%20rebuilt%20and%20configured%21" id="wpa2a_14"><img src="http://www.thushanfernando.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p><p>Related posts:<ol>
<li><a href='http://www.thushanfernando.com/index.php/2009/10/18/part-ii-rebuilding-zeus-the-operating-system-filesystem-virtualisation/' rel='bookmark' title='Part II: Rebuilding ZEUS &#8211; The Operating System, FileSystem &amp; Virtualisation'>Part II: Rebuilding ZEUS &#8211; The Operating System, FileSystem &#038; Virtualisation</a></li>
<li><a href='http://www.thushanfernando.com/index.php/2009/10/14/rebuilding-zeus-part-i-5-change-of-heart-change-of-hardware/' rel='bookmark' title='Rebuilding Zeus &#8211; Part I.5: Change of heart, change of hardware.'>Rebuilding Zeus &#8211; Part I.5: Change of heart, change of hardware.</a></li>
<li><a href='http://www.thushanfernando.com/index.php/2009/04/19/rebuilding-zeus-part-1-preliminary-research-and-installing-ubuntu-904-rc1/' rel='bookmark' title='Rebuilding Zeus: Part 1 &#8211; Preliminary Research and Installing Ubuntu 9.04 RC1'>Rebuilding Zeus: Part 1 &#8211; Preliminary Research and Installing Ubuntu 9.04 RC1</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.thushanfernando.com/index.php/2009/11/21/part-iii-zeus-rebuilt-and-configured/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>ZFS gets deduplication</title>
		<link>http://www.thushanfernando.com/index.php/2009/11/03/zfs-gets-deduplication/</link>
		<comments>http://www.thushanfernando.com/index.php/2009/11/03/zfs-gets-deduplication/#comments</comments>
		<pubDate>Tue, 03 Nov 2009 00:47:18 +0000</pubDate>
		<dc:creator>Thushan Fernando</dc:creator>
				<category><![CDATA[Developer]]></category>
		<category><![CDATA[File Systems]]></category>
		<category><![CDATA[OpenSolaris]]></category>
		<category><![CDATA[Operating Systems]]></category>
		<category><![CDATA[COW]]></category>
		<category><![CDATA[deduplication]]></category>
		<category><![CDATA[filesystems]]></category>
		<category><![CDATA[raid]]></category>
		<category><![CDATA[raidz]]></category>
		<category><![CDATA[solaris]]></category>
		<category><![CDATA[sun]]></category>
		<category><![CDATA[xfs]]></category>
		<category><![CDATA[zfs]]></category>

		<guid isPermaLink="false">http://www.thushanfernando.com/?p=966</guid>
		<description><![CDATA[ZFS now has deduplication support which is as easy as just setting a property on the file system. $ zfs set dedup=on tank/src Read Jeff Bonwick&#8217;s (the supremo source for ZFS) article as it covers everything you&#8217;d ever want to know about what deduplication is and the various strategies behind it. Can&#8217;t wait for it [...]
Related posts:<ol>
<li><a href='http://www.thushanfernando.com/index.php/2008/12/03/opensolaris-200811-out-the-door/' rel='bookmark' title='OpenSolaris 2008.11 out the door!!!'>OpenSolaris 2008.11 out the door!!!</a></li>
<li><a href='http://www.thushanfernando.com/index.php/2009/10/14/rebuilding-zeus-part-i-5-change-of-heart-change-of-hardware/' rel='bookmark' title='Rebuilding Zeus &#8211; Part I.5: Change of heart, change of hardware.'>Rebuilding Zeus &#8211; Part I.5: Change of heart, change of hardware.</a></li>
<li><a href='http://www.thushanfernando.com/index.php/2009/10/18/part-ii-rebuilding-zeus-the-operating-system-filesystem-virtualisation/' rel='bookmark' title='Part II: Rebuilding ZEUS &#8211; The Operating System, FileSystem &amp; Virtualisation'>Part II: Rebuilding ZEUS &#8211; The Operating System, FileSystem &#038; Virtualisation</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p><a href="http://blogs.sun.com/bonwick/en_US/entry/zfs_dedup">ZFS now has deduplication support</a> which is as easy as just setting a property on the file system.</p>
<blockquote><p>$ zfs set dedup=on tank/src</p></blockquote>
<p>Read <a href="http://blogs.sun.com/bonwick/en_US/">Jeff Bonwick&#8217;s</a> (the supremo source for ZFS) article as it covers everything you&#8217;d ever want to know about what deduplication is and the various strategies behind it. Can&#8217;t wait for it to be implemented in <a href="http://www.genunix.org/dist/indiana/">OpenSolaris 2010.02</a> its already been <a href="http://hg.genunix.org/onnv-gate.hg/rev/e2081f502306">integrated into the ON source base</a>.</p>
<p>Whilst on the subject of <a href="http://en.wikipedia.org/wiki/ZFS">ZFS</a>, there was a very good article posted on <a href="http://www.osnews.com">OSNews</a> recently regarding the <a href="http://www.osnews.com/story/22423/Should_ZFS_Have_a_fsck_Tool_">lack of <code>fsck</code> for ZFS</a>, it gives you a very good overview of ZFS, what <a href="http://en.wikipedia.org/wiki/Copy-on-write">COW</a> really implies, how it differs from journaling filesystems found in Linux and ofcourse regarding <code>fsck</code>.</p>
<p>And to compliment it all, <a href="http://mbruning.blogspot.com/2009/04/raidz-on-disk-format.html">a deeper look at the <acronym title="Redundant Array of Inexpensive Disks">RAID</acronym>-Z on disk format</a> in ZFS. Light reading for <a href="http://www.melbournecup.com/">Melbourne Cup Day</a>!</p><div name="googleone_share_1" style="position:relative;z-index:5;float: right; margin-left: 10px;"><g:plusone size="medium" count="1" href="http://www.thushanfernando.com/index.php/2009/11/03/zfs-gets-deduplication/">{lang: 'en-GB'}</g:plusone></div><p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.thushanfernando.com%2Findex.php%2F2009%2F11%2F03%2Fzfs-gets-deduplication%2F&amp;title=ZFS%20gets%20deduplication" id="wpa2a_16"><img src="http://www.thushanfernando.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p><p>Related posts:<ol>
<li><a href='http://www.thushanfernando.com/index.php/2008/12/03/opensolaris-200811-out-the-door/' rel='bookmark' title='OpenSolaris 2008.11 out the door!!!'>OpenSolaris 2008.11 out the door!!!</a></li>
<li><a href='http://www.thushanfernando.com/index.php/2009/10/14/rebuilding-zeus-part-i-5-change-of-heart-change-of-hardware/' rel='bookmark' title='Rebuilding Zeus &#8211; Part I.5: Change of heart, change of hardware.'>Rebuilding Zeus &#8211; Part I.5: Change of heart, change of hardware.</a></li>
<li><a href='http://www.thushanfernando.com/index.php/2009/10/18/part-ii-rebuilding-zeus-the-operating-system-filesystem-virtualisation/' rel='bookmark' title='Part II: Rebuilding ZEUS &#8211; The Operating System, FileSystem &amp; Virtualisation'>Part II: Rebuilding ZEUS &#8211; The Operating System, FileSystem &#038; Virtualisation</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.thushanfernando.com/index.php/2009/11/03/zfs-gets-deduplication/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Part II: Rebuilding ZEUS &#8211; The Operating System, FileSystem &amp; Virtualisation</title>
		<link>http://www.thushanfernando.com/index.php/2009/10/18/part-ii-rebuilding-zeus-the-operating-system-filesystem-virtualisation/</link>
		<comments>http://www.thushanfernando.com/index.php/2009/10/18/part-ii-rebuilding-zeus-the-operating-system-filesystem-virtualisation/#comments</comments>
		<pubDate>Sun, 18 Oct 2009 01:42:39 +0000</pubDate>
		<dc:creator>Thushan Fernando</dc:creator>
				<category><![CDATA[File Systems]]></category>
		<category><![CDATA[Guides & How-To]]></category>
		<category><![CDATA[Hardware]]></category>
		<category><![CDATA[Linux/Unix]]></category>
		<category><![CDATA[OpenSolaris]]></category>
		<category><![CDATA[Operating Systems]]></category>
		<category><![CDATA[Virtualisation]]></category>
		<category><![CDATA[amd]]></category>
		<category><![CDATA[ASUS]]></category>
		<category><![CDATA[ati]]></category>
		<category><![CDATA[chipset]]></category>
		<category><![CDATA[core]]></category>
		<category><![CDATA[corsair]]></category>
		<category><![CDATA[geforce]]></category>
		<category><![CDATA[gigabyte]]></category>
		<category><![CDATA[Intel]]></category>
		<category><![CDATA[msi]]></category>
		<category><![CDATA[nforce]]></category>
		<category><![CDATA[nvidia]]></category>
		<category><![CDATA[solaris]]></category>
		<category><![CDATA[tdp]]></category>
		<category><![CDATA[virtualbox]]></category>
		<category><![CDATA[western digital]]></category>
		<category><![CDATA[zeus]]></category>
		<category><![CDATA[zeus rebuild]]></category>
		<category><![CDATA[zfs]]></category>

		<guid isPermaLink="false">http://www.thushanfernando.com/?p=898</guid>
		<description><![CDATA[Now that I&#8217;ve decided what I want out of the server (and the hardware I&#8217;ve got), its time to workout what operating system to run the system on. Currently, ZEUS is running on Ubuntu Gutsy (7.10) which is running LVM with an XFS volume holding approximately 2.5Tb worth of data. There&#8217;s a cron job that [...]
Related posts:<ol>
<li><a href='http://www.thushanfernando.com/index.php/2009/10/14/rebuilding-zeus-part-i-5-change-of-heart-change-of-hardware/' rel='bookmark' title='Rebuilding Zeus &#8211; Part I.5: Change of heart, change of hardware.'>Rebuilding Zeus &#8211; Part I.5: Change of heart, change of hardware.</a></li>
<li><a href='http://www.thushanfernando.com/index.php/2009/04/19/rebuilding-zeus-part-1-preliminary-research-and-installing-ubuntu-904-rc1/' rel='bookmark' title='Rebuilding Zeus: Part 1 &#8211; Preliminary Research and Installing Ubuntu 9.04 RC1'>Rebuilding Zeus: Part 1 &#8211; Preliminary Research and Installing Ubuntu 9.04 RC1</a></li>
<li><a href='http://www.thushanfernando.com/index.php/2008/12/18/sun-ushers-in-virtualbox-21-with-cool-new-features/' rel='bookmark' title='Sun ushers in VirtualBox 2.1 with cool new features!'>Sun ushers in VirtualBox 2.1 with cool new features!</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Now that <a href="http://www.thushanfernando.com/index.php/2009/10/06/part-i-rebuilding-zeus-the-journey-of-training-the-next-home-server/">I&#8217;ve decided what I want out of the server</a> (and <a href="http://www.thushanfernando.com/index.php/2009/10/14/rebuilding-zeus-part-i-5-change-of-heart-change-of-hardware/">the hardware I&#8217;ve got</a>), its time to workout what operating system to run the system on. Currently, ZEUS is running on <a href="https://wiki.ubuntu.com/GutsyGibbon">Ubuntu Gutsy (7.10)</a> which is running <a href="http://en.wikipedia.org/wiki/Logical_Volume_Manager_(Linux)">LVM</a> with an <a href="http://oss.sgi.com/projects/xfs/">XFS volume</a> holding approximately 2.5Tb worth of data. There&#8217;s a <a href="http://www.thushanfernando.com/index.php/2009/01/25/maintaining-your-xfs-with-xfs-fsr/">cron job that defrags the XFS volume</a> to keep things in order.</p>
<h2>The Operating System</h2>
<p>As the operating system is no longer maintained (my oversight into how long it would survive) I have to find an <acronym title="Operating System">OS</acronym> that supports the hardware platform without hacky hacky bits (and by this I mean avoiding <a href="http://www.thushanfernando.com/index.php/2009/04/19/rebuilding-zeus-part-1-preliminary-research-and-installing-ubuntu-904-rc1/">buggy ACPI and issues with the NForce4 chipset and IRQ problems</a>) and has a file system that will benefit long term.</p>
<p>There were a few considerations:</p>
<ul>
<li><strong><a href="http://releases.ubuntu.com/hardy/">Ubuntu 8.04.x LTS</a></strong><br />
I like Ubuntu, I&#8217;m comfortable with the user land and find the <a href="http://en.wikipedia.org/wiki/Deb_%28file_format%29">Debian package system</a> (in particular the dependency resolving) most impressive. Hardware is well supported and 8.04.3 (at the time of writing) boots on the hardware I <a href="http://www.thushanfernando.com/index.php/2009/10/06/part-i-rebuilding-zeus-the-journey-of-training-the-next-home-server/">originally selected</a> (Intel) and <a href="http://www.thushanfernando.com/index.php/2009/10/14/rebuilding-zeus-part-i-5-change-of-heart-change-of-hardware/">the new configuration I recently selected</a> (AMD). I could most definitely use <a href="http://kernelnewbies.org/Ext4">Ext4</a> but <a href="http://www.h-online.com/open/Ext4-data-loss-explanations-and-workarounds--/news/112892">the problems with data-loss</a> (which I&#8217;ve reproduced on several occasions on desktop machines) scare me.<em>FileSystem:</em> I&#8217;d have to adopt either XFS or Ext4 on an LVM to factor in future-proofing, maybe get some fakeRAID happening for redundancy.<em><br />
Installation</em>: comes with a Server edition that&#8217;s bare bones allowing it to be a minimalistic installation which is always nice!</li>
<li><strong><a href="http://releases.ubuntu.com/9.04/">Ubuntu 9.04</a></strong><br />
Initially when <a href="http://www.thushanfernando.com/index.php/2009/04/19/rebuilding-zeus-part-1-preliminary-research-and-installing-ubuntu-904-rc1/">I started to rebuild Zeus back in April</a> I wanted to use Ubuntu 9.04, I was really excited about <a href="http://ext4.wiki.kernel.org/index.php/Main_Page">Ext4</a> and the promise of a brand-spanking new file-system and what it would bring to the table. Unfortunately after using Ext4 with 9.04 I&#8217;ve come to realise its probably not the wisest to trust your data with it just yet &#8211; unless you get yourself a UPS! Laptop seems to be chugging nicely though.<em>Installation</em>: Like LTS, comes with a Server edition that&#8217;s bare bones allowing it to be a minimalistic installation which is always nice! (copy/paste!) Unfortunately picking 9.04 when <a href="http://www.ubuntu.com/testing/karmic/beta">9.10 is just around the corner</a> is not going to be ideal, I&#8217;ll be stuck with where I am right now in a year or so.</li>
</ul>
<ul>
<li><strong><a href="http://www.centos.org">CentOS 5.3</a> or wait for <a href="http://www.thushanfernando.com/index.php/2009/09/03/redhat-5-4-released-centos-5-4-is-coming-soon/">CentOS 5.4 coming soon</a>!</strong><br />
CentOS is based off <a href="http://www.redhat.com/rhel/">Redhat Enterprise Linux</a> and having only started using CentOS after joining <a href="http://www.hsd.com.au">HSD</a> (though my first splash in Linux was with <a href="http://web.archive.org/web/19991127153700/http://bowtie.com.au/">Bowtie Redhat Linux 6.0</a> &#8211; I still have the <acronym title="Compact Disc">CD</acronym>!) I find the RHEL clone to be stable and solid as a rock! <a href="http://www.thushanfernando.com/index.php/2009/09/03/redhat-5-4-released-centos-5-4-is-coming-soon/">CentOS 5.4 will (thanks to RHEL 5.4) bring</a> some <a href="http://www.linux-kvm.org/">KVM</a> goodness that is a high priority on my list.</p>
<p><em>FileSystem:</em> Ext4 is not in the RHEL5 stream (have to wait for RHEL6 &#8211; which is a good thing!) so the best bet here is to use XFS with LVM.<em><br />
Installation</em>: Customised <a href="http://wiki.centos.org/TipsAndTricks/KickStart">via kickstarts</a> or setup a <a href="https://fedorahosted.org/cobbler/">cobbler</a> server to install via PXE.</li>
<li><strong><a href="http://opensolaris.org/">OpenSolaris</a></strong><br />
OpenSolaris has some really exciting technologies that are worth a look at, but in particular is <a href="http://opensolaris.org/os/community/zfs/">ZFS</a>. <a href="http://www.infoworld.com/t/platforms/sun-zfs-breaks-all-rules-512?page=0,2">ZFS breaks all the rules</a> &#8211; and <a href="http://storagemojo.com/zfs-threat-or-menace-pt-i/">for a good reason</a>. I&#8217;ve yet to really use Solaris &#8211; quite cosy with Linux, but <a href="http://wikis.sun.com/display/SolarisDeveloper/Migrating+from+Linux+to+Solaris+or+OpenSolaris">there&#8217;s nothing like getting used to another <acronym title="Operating System">OS</acronym></a> by jumping straight into the deep end!</p>
<p><em>FileSystem:</em> ZFS all the way baby!<em><br />
Installation</em>: Installation is via a LiveCD, I&#8217;ve looked into customising the installation so it removes some bits I don&#8217;t which I&#8217;ll discuss later but its quite fiddly.</li>
</ul>
<p>So in case the sudden<a href="http://www.thushanfernando.com/index.php/tag/opensolaris/"> influx of OpenSolaris posts</a> didnt give you the hint, I decided on OpenSolaris to power the new iZeus 2.0, actually <a href="http://www.theage.com.au/business/media-and-marketing/unhappy-little-vegemites-vent-their-fury-over-isnack-20-20090928-g997.html">no that sounds lame</a>, zeusy will be the new ZEUS until ZEUS is retired in which case zeusy becomes zeus (confused?).</p>
<h2>Why ZFS?</h2>
<p>ZFS is one of those file-systems <a href="http://www.opensolaris.org/os/community/zfs/">you look at and think</a>, wow! Why <a href="http://www.opensolaris.org/os/community/zfs/whatis/">didn&#8217;t anyone else think of that before</a>?</p>
<ul>
<li><em>Very</em> simple administration &#8211; you only use two commands, <tt>zpool</tt> and <tt>zfs</tt>.</li>
<li>Highly scalable &#8211; 128-bit means we can hold 16 <a href="http://en.wikipedia.org/wiki/Exabyte">exabytes</a> or 18 Million terabytes worth of data! More porn for you! XFS can no doubt handle the TBs we use for our home boxes now, but no-chance you can get the performance or benefits of ZFS in Ext3/Ext4 or XFS.</li>
<li>Data integrity to heal a filesystem (no fsck&#8217;ing around!) &#8211; 256bit checksuming to protect data, if ZFS detects a problem it will attempt to reconstruct the bad block and continue on its merry way (utilising available redundancy)</li>
<li>Compression &#8211; you can elect to compress a particular file-system or a hierarchy just by setting one command! I&#8217;m thinking things like logs here.</li>
<li>No hardware dependency &#8211; JBOD on a controller, let ZFS maintain the <acronym title="Redundant Array of Inexpensive Disks">RAID</acronym> volumes in software. Checkout Michael Pryc&#8217;s crazy <a href="http://blogs.sun.com/migi/entry/playing_with_zfs_filesystem">adventure with ZFS using <acronym title="Universal Serial Bus">USB</acronym> thumb drives</a> and <a href="http://blogs.sun.com/constantin/entry/opensolaris_home_server_zfs_and">Constantin&#8217;s original voyage with <acronym title="Universal Serial Bus">USB</acronym> drives</a>! <acronym title="Redundant Array of Inexpensive Disks">RAID</acronym>-Z is essentially <acronym title="Redundant Array of Inexpensive Disks">RAID</acronym>-5 without the write-hole problems has plagued it if power is lost during a write, it can also survive a loss of a drive (with RAIDZ-2 you can loose two drives).</li>
<li>Happy snaps for free! Snapshot (a live) file-system as many times as you like, again one easy command. Its like that tendency to hit {CTRL+S} when your working in Windows from back in the days of Windows 9x, snapshot regularly!</li>
</ul>
<p>So ZFS sounds much like marketing spiel right now, best thing since sliced bread, cooler than a cucumber, and you&#8217;d be right it is cool and the best thing since filesystems came to being. Over the coming days I&#8217;ll post some more on my musings with ZFS &#8211; keeping in mind that I&#8217;m still learning these things. It helps to have lots of hardware to play with, but even if you don&#8217;t, you can knock up a virtual version of OpenSolaris in <a href="http://www.virtualbox.org">VirtualBox</a>, create some virtual disks and try it out.</p>
<p>There are a few caveats that I&#8217;ve come across though using ZFS, one is memory! ZFS will try and cache as much data as it can in RAM, so if you have 8Gb of RAM (as I have in this box) it will happily use as much of it as it can afford. Rightfully so, I was getting ~96MB/s transfering a 16Gb <acronym title="Motion Picture Experts Group">MPEG</acronym> from one box to the other over our Gig link (thats from one end of the house to the other!) mind you this was just a test configuration using 2x <a href="http://wdc.custhelp.com/cgi-bin/wdc.cfg/php/enduser/std_adp.php?p_faqid=1441">74Gb Western Digital Raptors</a> (<a href="http://www.anandtech.com/storage/showdoc.aspx?i=2922">WD740ADFD</a>) in a <acronym title="Redundant Array of Inexpensive Disks">RAID</acronym>-0 style hitting a single <a href="http://wdc.custhelp.com/cgi-bin/wdc.cfg/php/enduser/std_adp.php?p_faqid=1405">150Gb Western Digital Raptor</a> (<a href="http://www.anandtech.com/storage/showdoc.aspx?i=2690">WD1500ADFD</a>). They could have gone much higher, but I was happy with that.</p>
<p>There are also (as of writing) no recovery tools for ZFS, but these are slated to arrive soon (Q4 2009) which is quite scary after you read <a href="http://www.opensolaris.org/jive/thread.jspa?threadID=108213&amp;tstart=0">this post about a guy loosing 10Tb worth of data</a>, however a possible <a href="http://www.opensolaris.org/jive/thread.jspa?threadID=85794">revert to an older uberblock may fix some problems</a>.</p>
<h2>Virtualisation</h2>
<p>Initially I wanted to <a href="http://www.thushanfernando.com/index.php/2009/10/06/part-i-rebuilding-zeus-the-journey-of-training-the-next-home-server/">concentrate quite a bit on Virtualisation</a>, I tried Xen on OpenSolaris. It was quite easy to <a href="http://jp.opensolaris.org/os/community/xen/docs/2008_11_dom0/">setup a Xen Dom0 in OpenSolaris</a> but with the 2009.06 release you <a href="http://jp.opensolaris.org/os/community/xen/docs/configuring-dom0">had to tweak the Xen setup a bit</a>. I wasn&#8217;t too enthusiastic about using Xen after seeing the performance lag in Windows in my musings. Instead I&#8217;m opting for my crush, <a href="http://www.virtualbox.org">VirtualBox</a>.</p>
<p>So why use VirtualBox when you can get a bare-metal hypervisor? Firstly, performance seems to be sluggish with Xen for me (I didn&#8217;t investigate this too much), secondly I want to be able to run the latest and greatest <acronym title="Operating System">OS</acronym>&#8217;s out without worrying about upgrading Xen (I&#8217;m a sucker for <acronym title="Operating System">OS</acronym>&#8217;s!). VirtualBox development has accelerated at a feverish pace, I started with VirtualBox 1.3 in 2007 and its come an insanely long way since then. When a new release comes along, its as easy as updating VirtualBox and getting all the benefits. Plus with <a href="http://www.thushanfernando.com/index.php/2009/04/21/heat-of-the-moment-breaking-news-oracle-buys-sun-microsystems/">SunOracle</a>&#8216;s backing of VirtualBox you know things are going to work well on OpenSolaris, the <a href="http://www.thushanfernando.com/index.php/2009/10/16/setting-up-opensolaris-extras-repository-for-virtualbox-true-type-fonts-flash-javafx-sdk/">Extras repository of VirtualBox</a> makes it as easy as doing a pkg update.</p>
<p>I&#8217;m still quite intrigued by the way KVM is heading and how it will pan out, but for the future zeus, it will be VirtualBox.</p><div name="googleone_share_1" style="position:relative;z-index:5;float: right; margin-left: 10px;"><g:plusone size="medium" count="1" href="http://www.thushanfernando.com/index.php/2009/10/18/part-ii-rebuilding-zeus-the-operating-system-filesystem-virtualisation/">{lang: 'en-GB'}</g:plusone></div><p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.thushanfernando.com%2Findex.php%2F2009%2F10%2F18%2Fpart-ii-rebuilding-zeus-the-operating-system-filesystem-virtualisation%2F&amp;title=Part%20II%3A%20Rebuilding%20ZEUS%20%26%238211%3B%20The%20Operating%20System%2C%20FileSystem%20%26%23038%3B%20Virtualisation" id="wpa2a_18"><img src="http://www.thushanfernando.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p><p>Related posts:<ol>
<li><a href='http://www.thushanfernando.com/index.php/2009/10/14/rebuilding-zeus-part-i-5-change-of-heart-change-of-hardware/' rel='bookmark' title='Rebuilding Zeus &#8211; Part I.5: Change of heart, change of hardware.'>Rebuilding Zeus &#8211; Part I.5: Change of heart, change of hardware.</a></li>
<li><a href='http://www.thushanfernando.com/index.php/2009/04/19/rebuilding-zeus-part-1-preliminary-research-and-installing-ubuntu-904-rc1/' rel='bookmark' title='Rebuilding Zeus: Part 1 &#8211; Preliminary Research and Installing Ubuntu 9.04 RC1'>Rebuilding Zeus: Part 1 &#8211; Preliminary Research and Installing Ubuntu 9.04 RC1</a></li>
<li><a href='http://www.thushanfernando.com/index.php/2008/12/18/sun-ushers-in-virtualbox-21-with-cool-new-features/' rel='bookmark' title='Sun ushers in VirtualBox 2.1 with cool new features!'>Sun ushers in VirtualBox 2.1 with cool new features!</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.thushanfernando.com/index.php/2009/10/18/part-ii-rebuilding-zeus-the-operating-system-filesystem-virtualisation/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>FIX: OpenSolaris Package Manager fails after adding Extras Repository</title>
		<link>http://www.thushanfernando.com/index.php/2009/10/16/fix-opensolaris-package-manager-fails-after-adding-extras-repository/</link>
		<comments>http://www.thushanfernando.com/index.php/2009/10/16/fix-opensolaris-package-manager-fails-after-adding-extras-repository/#comments</comments>
		<pubDate>Fri, 16 Oct 2009 11:21:28 +0000</pubDate>
		<dc:creator>Thushan Fernando</dc:creator>
				<category><![CDATA[Fixes & Tips]]></category>
		<category><![CDATA[Guides & How-To]]></category>
		<category><![CDATA[OpenSolaris]]></category>
		<category><![CDATA[Operating Systems]]></category>

		<guid isPermaLink="false">http://www.thushanfernando.com/?p=911</guid>
		<description><![CDATA[After setting up the extras repository for OpenSolaris I tried to install VirtualBox via the package manager. thushan@zeusy:~$ pfexec pkg install virtualbox Traceback (most recent call last): File "/usr/bin/pkg", line 2598, in ? __ret = main_func() File "/usr/bin/pkg", line 2541, in main_func return install(mydir, pargs) File "/usr/bin/pkg", line 710, in install update_index=update_index) File "/usr/lib/python2.4/vendor-packages/pkg/client/api.py", line [...]
No related posts.]]></description>
			<content:encoded><![CDATA[<p>After <a href="http://www.thushanfernando.com/index.php/2009/10/16/setting-up-opensolaris-extras-repository-for-virtualbox-true-type-fonts-flash-javafx-sdk/">setting up the extras repository</a> for <a href="http://www.opensolaris.org/">OpenSolaris</a> I tried to install <a href="http://www.virtualbox.org/">VirtualBox</a> via the package manager.</p>
<pre><strong>thushan@zeusy:~$ pfexec pkg install virtualbox
Traceback (most recent call last):
  File "/usr/bin/pkg", line 2598, in ?
    __ret = main_func()
  File "/usr/bin/pkg", line 2541, in main_func
    return install(mydir, pargs)
  File "/usr/bin/pkg", line 710, in install
    update_index=update_index)
  File "/usr/lib/python2.4/vendor-packages/pkg/client/api.py", line 203, in plan_install
    self.log_operation_end(error=e)
  File "/usr/lib/python2.4/vendor-packages/pkg/client/api.py", line 1410, in log_operation_end
    self.img.history.log_operation_end(error=error, result=result)
  File "/usr/lib/python2.4/vendor-packages/pkg/client/history.py", line 680, in log_operation_end
    self.operation_result = result
  File "/usr/lib/python2.4/vendor-packages/pkg/client/history.py", line 279, in __setattr__
    raise AttributeError("'history' object attribute '%s' "
AttributeError: 'history' object attribute 'operation_result' cannot be set before 'operation_name'.

pkg: This is an internal error.  Please let the developers know about this
problem by filing a bug at http://defect.opensolaris.org and including the
above traceback and this message.  The version of pkg(5) is '87d6ba4c8e1c'.
</strong></pre>
<p>Uh-oh, what the hell did I break now I thought? After some messing about I realised the time on the machine was a few hours behind &#8211; this was just installed on the <a href="http://www.thushanfernando.com/index.php/2009/10/14/rebuilding-zeus-part-i-5-change-of-heart-change-of-hardware/">new hardware I picked up the other day</a>, the certificates were timestamped and I figured this was probably a clash of the space-time continuum. Instead of opting to manually set the time, I let it <a href="http://www.thushanfernando.com/index.php/2009/10/04/keeping-track-of-time-with-ntp-in-linux/">sync (periodically) with an NTP Server local to us here in Melbourne</a>.</p>
<p>To do this, we enter our NTP server in <tt>/etc/inet/ntp.conf</tt> like so:</p>
<blockquote><p>server ntp.mel.connect.com.au</p></blockquote>
<p>Then we tell it to update itself:</p>
<pre><strong>thushan@zeusy:~$ pfexec ntpq -p
 remote           refid      st t when poll reach   delay   offset    disp
==============================================================================
*yarrina.connect mumnunah.csse.u  2 u   20   64  377    50.22  -11.747    0.44</strong></pre>
<p>Done, now you&#8217;ll find that your package manager will no longer fail with the stack-trace as the timestamps will match correctly!</p>
<p><strong>UPDATE:</strong> There&#8217;s <a href="http://defect.opensolaris.org/bz/show_bug.cgi?id=9223">already a bug report about this</a> in the <a href="http://defect.opensolaris.org/">OpenSolaris Bugzilla</a>.</p><div name="googleone_share_1" style="position:relative;z-index:5;float: right; margin-left: 10px;"><g:plusone size="medium" count="1" href="http://www.thushanfernando.com/index.php/2009/10/16/fix-opensolaris-package-manager-fails-after-adding-extras-repository/">{lang: 'en-GB'}</g:plusone></div><p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.thushanfernando.com%2Findex.php%2F2009%2F10%2F16%2Ffix-opensolaris-package-manager-fails-after-adding-extras-repository%2F&amp;title=FIX%3A%20OpenSolaris%20Package%20Manager%20fails%20after%20adding%20Extras%20Repository" id="wpa2a_20"><img src="http://www.thushanfernando.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p><p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://www.thushanfernando.com/index.php/2009/10/16/fix-opensolaris-package-manager-fails-after-adding-extras-repository/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

