<?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>Zein&#039;s place on the net &#187; Nexenta</title>
	<atom:link href="http://ahmed.elze.in/blog/category/nexenta/feed/" rel="self" type="application/rss+xml" />
	<link>http://ahmed.elze.in/blog</link>
	<description>my views on Australia, Egypt, Linux and other stuff</description>
	<lastBuildDate>Tue, 19 Apr 2011 04:40:40 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2</generator>
		<item>
		<title>Home ZFS NAS Upgrade</title>
		<link>http://ahmed.elze.in/blog/2008/08/08/home-zfs-nas-upgrade/</link>
		<comments>http://ahmed.elze.in/blog/2008/08/08/home-zfs-nas-upgrade/#comments</comments>
		<pubDate>Fri, 08 Aug 2008 20:09:00 +0000</pubDate>
		<dc:creator>Ahmed</dc:creator>
				<category><![CDATA[Nexenta]]></category>
		<category><![CDATA[OpenSolaris]]></category>
		<category><![CDATA[ZFS]]></category>

		<guid isPermaLink="false">http://www.azein.com/blog/2008/08/08/home-zfs-nas-upgrade/</guid>
		<description><![CDATA[Ever since I put together my low budget NAS, I have been wanting to upgrade it. Initially it was a proof of concept, now it needs to be low power and functional. The old NAS was a 32-bit system (32-bit makes ZFS crawl). I wanted a low power and cheap 64 bit system and so [...]]]></description>
			<content:encoded><![CDATA[<p>Ever since I put together my low budget NAS, I have been wanting to upgrade it. Initially it was a proof of concept, now it needs to be low power and functional. The old NAS was a 32-bit system (32-bit makes ZFS crawl). I wanted a low power and cheap 64 bit system and so I ended up getting a atom 230 based mini-itx system from Intel&#8230; The <a href="http://www.intel.com/Products/Desktop/Motherboards/D945GCLF/D945GCLF-overview.htm">D945GCLF</a>. I fitted 1GB of RAM and used a 4GB CF card as the hard disk (via a CF-IDE adapter). For the OS I used ncp 2.0 alpha 1 (based on Ubuntu Hardy).</p>
<p>I had a few problems with Nexenta on this board:</p>
<li>The installation of Nexenta went fine on the CF card, but come time to reboot, I received a &#8220;GRUB stage2 read error&#8221;. I spent a couple of days trying to figure out what was wrong but as I did not succeed, I am using an old HDD for now.</li>
<li>The 2nd issue is that Nexenta kept booting up into 32 bit. This was due to grub not recognizing the atom as 64-bit. This was solved by hard coding &#8221;amd64&#8221; in place of &#8221;$ISADIR&#8221; in the menu.lst file of grub. Full details of this bug can be found <a href="http://opensolaris.org/jive/thread.jspa?messageID=267045&#038;tstart=0">here</a> and <a href="http://bugs.opensolaris.org/bugdatabase/view_bug.do?bug_id=6720893">here</a>. Use <code>isainfo -vk</code> to make sure</li>
<li>The last issue is that the onboard LAN chip is not supported. The chip is a Realtek 8136 and shows up as &#8221;pciex10ec,8136&#8221;. For now I have installed an old Netgear PCI card</li>
<p>Once I get me NAS up and running, I will then spend some more time trying to fix the CF card issue. The onboard LAN issue will solve itself in time. Until then, I can wait.</p>
]]></content:encoded>
			<wfw:commentRss>http://ahmed.elze.in/blog/2008/08/08/home-zfs-nas-upgrade/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>menu.lst issue with Nexenta and ZFS root</title>
		<link>http://ahmed.elze.in/blog/2008/02/23/menulst-issue-with-nexenta-and-zfs-root/</link>
		<comments>http://ahmed.elze.in/blog/2008/02/23/menulst-issue-with-nexenta-and-zfs-root/#comments</comments>
		<pubDate>Sat, 23 Feb 2008 03:24:33 +0000</pubDate>
		<dc:creator>Ahmed</dc:creator>
				<category><![CDATA[Nexenta]]></category>
		<category><![CDATA[OpenSolaris]]></category>
		<category><![CDATA[ZFS]]></category>

		<guid isPermaLink="false">http://www.azein.com/blog/2008/02/23/menulst-issue-with-nexenta-and-zfs-root/</guid>
		<description><![CDATA[The grub menu in Nexenta is modified thought editing the menu.lst file. However the menu.lst file in question resides in the syspool file system (the root file system is syspool/rootfs-nmu-000. This is accomplished by: mount -F zfs syspool /media/temp vi /media/temp/boot/grub/menu.lst umount /media/temp/]]></description>
			<content:encoded><![CDATA[<p>The grub menu in Nexenta is modified thought editing the <code>menu.lst</code> file. However the <code>menu.lst</code> file in question resides in the <code>syspool</code> file system (the root file system is <code>syspool/rootfs-nmu-000</code>. This is accomplished by:</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">mount -F zfs syspool /media/temp
vi /media/temp/boot/grub/menu.lst
umount /media/temp/</pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://ahmed.elze.in/blog/2008/02/23/menulst-issue-with-nexenta-and-zfs-root/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Nexenta SATA ACPI woes</title>
		<link>http://ahmed.elze.in/blog/2008/02/23/nexenta-sata-acpi-woes/</link>
		<comments>http://ahmed.elze.in/blog/2008/02/23/nexenta-sata-acpi-woes/#comments</comments>
		<pubDate>Sat, 23 Feb 2008 03:22:44 +0000</pubDate>
		<dc:creator>Ahmed</dc:creator>
				<category><![CDATA[Nexenta]]></category>
		<category><![CDATA[OpenSolaris]]></category>

		<guid isPermaLink="false">http://www.azein.com/blog/2008/02/23/nexenta-sata-acpi-woes/</guid>
		<description><![CDATA[About 2 weeks a go I bought my self a Syba 4 port PCI SATA controller based on the sil3144 chip. I then spent a week trying to figure out why, while working perfectly in Linux and FreeBSD, I couldn&#8217;t get it to work in Nexenta. After flashing the card with the non-raid version and [...]]]></description>
			<content:encoded><![CDATA[<p>About 2 weeks a go I bought my self a <a href="http://www.syba.com/Product/Info/Id/34">Syba 4 port PCI SATA controller</a> based on the sil3144 chip. I then spent a week trying to figure out why, while working perfectly in Linux and FreeBSD, I couldn&#8217;t get it to work in Nexenta. After flashing the card with the non-raid version and a lot of googling, I decided to try a different flavor of opensolaris just in case. I downloaded <a href="http://www.genunix.org/distributions/belenix_site/">BeleniX</a> and gave it a go only to have the same problem. The <a href="http://www.genunix.org/distributions/belenix_site/">BeleniX</a> CD has a &#8220;no acpi&#8221; option which I tried just for the sake of it. I was very pleased of course when the controller actually worked. The no acpi option is passed to the opensolaris kernel via a &#8220;-B apci-user-options=2&#8243; more info <a href="http://blogs.sun.com/chewmyblog/date/20050614">here</a></p>
]]></content:encoded>
			<wfw:commentRss>http://ahmed.elze.in/blog/2008/02/23/nexenta-sata-acpi-woes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>NAS based on Nexenta and ZFS</title>
		<link>http://ahmed.elze.in/blog/2008/01/30/nas-based-on-nexenta-and-zfs/</link>
		<comments>http://ahmed.elze.in/blog/2008/01/30/nas-based-on-nexenta-and-zfs/#comments</comments>
		<pubDate>Wed, 30 Jan 2008 13:40:42 +0000</pubDate>
		<dc:creator>Ahmed</dc:creator>
				<category><![CDATA[Me]]></category>
		<category><![CDATA[Nexenta]]></category>
		<category><![CDATA[OpenSolaris]]></category>
		<category><![CDATA[ZFS]]></category>

		<guid isPermaLink="false">http://www.azein.com/blog/2008/01/30/nas-based-on-nexenta-and-zfs/</guid>
		<description><![CDATA[For some time now I have been flirting with the idea of getting myself a Network Attached Storage (NAS). I get excited about the idea of having all my important files and stuff on a single device that supports raid 1. I can then reinstall Ubuntu on my laptop as many times as I want [...]]]></description>
			<content:encoded><![CDATA[<p>For some time now I have been flirting with the idea of getting myself a Network Attached Storage (NAS). I get excited about the idea of having all my important files and stuff on a single device that supports raid 1. I can then reinstall Ubuntu on my laptop as many times as I want without having to worry about moving data somewhere safe first. I will not have to give up my laptop to my wife because that is where we keep all our personal digital photos and videos and she really wants to send the latest snapshots of our daughter to her mother&#8230; NOW.</p>
<p>If you look at what is available on the market you can see that the cost of these devices are tremendous. The much cheaper alternative is to build something myself. I had a dual PIII 800MHz machine but I thought that was an over kill. I want this to consume the least possible amount of power and to run as cool as possible. When I found a old celeron machine at Uni I decided that I would put something together. I attached 3x 14GB IDE hard disks and a CD drive and had myself an ugly but functional machine.</p>
<p>I looked at <a href="http://www.freenas.org/">FreeNAS</a> which is based on <a href="http://m0n0.ch/wall/">monowall</a> which in turn is a based on a minimal <a href="http://www.freebsd.org/">FreeBSD</a> system. What is really cool about FreeNAS that it easily fits on a USB or CF disk and moves your machine towards being an appliance with all the benefits that include less heat and better reliability. </p>
<p>Being a bit paranoid I decided I would not accept anything less than ZFS for my data. I believe it is the only file system that detects silent data corruption. It also has a lot of hype surrounding it and I have being wanting to play around with it for a while. The current versions of FreeNAS do not have ZFS support, but when FreeBSD 7.0 comes out it will have native ZFS support. This means that FreeNAS will gain ZFS support at some stage. I, however do not want to wait. </p>
<p>Enter Nexenta, a distribution based on opensolaris with a GNU userland. I wasn&#8217;t completely at home, coming from a Linux background and I noticed that some of the command line tools support different command line options, but here is the best thing about Nexenta&#8230; It uses apt for its package management. I truly believe that apt is the best tool out there and is what drew me to Debian in the first place. It also has some nifty features like support for ZFS root file system and a tool called apt-clone that takes a ZFS snapshot of the system before major upgrades and allows you to revert if the upgrade goes wrong. All this without rebooting so no downtime. To summarize Nexenta is an interesting project and I will use it to build my NAS.</p>
<p>I installed Nexenta Alpha7 and created a zpool out of 2 of the disks changed the mount point to <code>/mydata</code> and shared it via NFS (ZFS has built in NFS/NFS4)</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">zpool create mydata mirror c0d1 c1d0
zfs <span style="color: #000000; font-weight: bold;">set</span> <span style="color: #007800;">mountpoint</span>=<span style="color: #000000; font-weight: bold;">/</span>mydata mydata
zfs <span style="color: #000000; font-weight: bold;">set</span> <span style="color: #007800;">sharenfs</span>=on mydata</pre></div></div>

<p>After a while I realized that the Alpha7 version was not the latest and I wasn&#8217;t able to upgrade to the latest via apt! I installed Nexenta 1.0 RC3 and was able to import my old (mydata) ZFS pool. running <code>zpool import</code> will show all available pools that can be imported.</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">root@sun:~# zpool import
  pool: home
    id: 14253621109838762705
 state: ONLINE
status: The pool is formatted using an older on-disk version.
action: The pool can be imported using its name or numeric identifier, though
        some features will not be available without an explicit 'zpool upgrade'.
config:
&nbsp;
        home        ONLINE
          c0d0s1    ONLINE
&nbsp;
  pool: mydata
    id: 7749473723610951541
 state: ONLINE
status: The pool is formatted using an older on-disk version.
action: The pool can be imported using its name or numeric identifier, though
        some features will not be available without an explicit 'zpool upgrade'.
config:
&nbsp;
        mydata      ONLINE
          mirror    ONLINE
            c0d1    ONLINE
            c1d0    ONLINE</pre></div></div>

<p>I had to use -f (force) to import my previous pool</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">root@sun:~# zpool import mydata
cannot import 'mydata': pool may be in use from other system
use '-f' to import anyway
root@sun:~# zpool import -f mydata</pre></div></div>

<p>I was then able to upgrade the ZFS pool</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">root@sun:~# zpool upgrade
This system is currently running ZFS pool version 10.
&nbsp;
The following pools are out of date, and can be upgraded.  After being
upgraded, these pools will no longer be accessible by older software versions.
&nbsp;
VER  POOL
---  ------------
 3   mydata
&nbsp;
Use 'zpool upgrade -v' for a list of available versions and their associated
features.
root@sun:~# zpool upgrade mydata
This system is currently running ZFS pool version 10.
&nbsp;
Successfully upgraded 'mydata' from version 3 to version 10</pre></div></div>

<p>And finaly I get to see my pool up and running</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">root@sun:~# zpool list mydata
NAME     SIZE   USED  AVAIL    CAP  HEALTH  ALTROOT
mydata  12.6G  9.30G  3.33G    73%  ONLINE  -
root@sun:~# zfs list mydata
NAME     USED  AVAIL  REFER  MOUNTPOINT
mydata  9.30G  3.13G  9.30G  /mydata</pre></div></div>

<p>I must say I am happy with my NAS. All I need is to get some large disks in there and I am good to go. I also look forward to get some experience with Nexenta and ZFS. I wonder if you can fit Nexenta onto a 128MB or 256MB CF card?</p>
]]></content:encoded>
			<wfw:commentRss>http://ahmed.elze.in/blog/2008/01/30/nas-based-on-nexenta-and-zfs/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>

