<?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>StarBlog &#187; solaris</title>
	<atom:link href="http://my.stargazer.at/tag/solaris/feed/" rel="self" type="application/rss+xml" />
	<link>http://my.stargazer.at</link>
	<description>my two cents on life - including taxes and duties...</description>
	<lastBuildDate>Fri, 30 Jul 2010 19:51:27 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1-alpha</generator>
<cloud domain='my.stargazer.at' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
		<item>
		<title>Doing iSCSI targets on ZFS</title>
		<link>http://my.stargazer.at/2010/01/07/doing-iscsi-targets-on-zfs/</link>
		<comments>http://my.stargazer.at/2010/01/07/doing-iscsi-targets-on-zfs/#comments</comments>
		<pubDate>Thu, 07 Jan 2010 06:51:48 +0000</pubDate>
		<dc:creator>Stargazer</dc:creator>
				<category><![CDATA[IT Related stuff]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[solaris]]></category>
		<category><![CDATA[zfs]]></category>

		<guid isPermaLink="false">http://my.stargazer.at/?p=1056</guid>
		<description><![CDATA[As ZFS did quite well here &#8211; even after messing around with disks, I decided to give it another try. This time I am out to use its features on other systems. But to do so, I need to share it. As I am running virtual machines, it would be nice to have iSCSI shares [...]]]></description>
			<content:encoded><![CDATA[<p>As ZFS did quite well here &#8211; even after messing around with disks, I decided to give it another try. This time I am out to use its features on other systems. But to do so, I need to share it. As I am running virtual machines, it would be nice to have iSCSI shares to (ab)use. So let&#8217;s do it by starting the service:</p>
<blockquote><p># svcadm enable iscsitgt</p></blockquote>
<p><span id="more-1056"></span>As my Solaris install is still quite fresh I got a spare disk in it. It should carry my iscsi pool which I will just call &#8216;iscsistore&#8217;. Keeping it on a separate disk allows me to export it independently. So here we go:</p>
<blockquote><p># zpool create iscsistore c0t1d0</p></blockquote>
<p>If you think that I have to mess around with dd now to write containers, you&#8217;re wrong. ZFS does this for us elegantly:</p>
<blockquote><p># zfs create -s -V 10gb iscsistore/zvol</p></blockquote>
<p>Now the iSCSI shares:</p>
<blockquote><p># zfs set shareiscsi=on iscsistore/zvol</p></blockquote>
<p>We check:</p>
<blockquote><p># iscsitadm list target -v</p></blockquote>
<p>And that&#8217;s it. We&#8217;re ready to roll. Simple and easy. Simply ZFS.</p>
<hr /><small>Copyright &copy; 2010<br />Please note that this feed is for private use only. All other usage, including the distribution or reproduction of multiple copies, performance or otherwise use in a public way of the images or text require the authorization of the author.<br />(digitalfingerprint: 0f46ca51d0fa4e6588e24f0bf2b80fed)</small>]]></content:encoded>
			<wfw:commentRss>http://my.stargazer.at/2010/01/07/doing-iscsi-targets-on-zfs/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Disk failure and ZFS</title>
		<link>http://my.stargazer.at/2010/01/04/plattenausfall-bei-zfs/</link>
		<comments>http://my.stargazer.at/2010/01/04/plattenausfall-bei-zfs/#comments</comments>
		<pubDate>Mon, 04 Jan 2010 00:41:42 +0000</pubDate>
		<dc:creator>Stargazer</dc:creator>
				<category><![CDATA[IT Related stuff]]></category>
		<category><![CDATA[solaris]]></category>
		<category><![CDATA[zfs]]></category>

		<guid isPermaLink="false">http://my.stargazer.at/?p=1055</guid>
		<description><![CDATA[ZFS is a beautiful filesystem &#8211; even in case of hardware failures, as it was build to deal with them. Allow me to demonstrate a defective disk on a Raid-Z1 pool. As long as only one disk breaks down, it is still functional &#8211; even while rebuilding. To do the recovery, we need to locate [...]]]></description>
			<content:encoded><![CDATA[<p>ZFS is a beautiful filesystem &#8211; even in case of hardware failures, as it was build to deal with them. Allow me to demonstrate a defective disk on a Raid-Z1 pool. As long as only one disk breaks down, it is still functional &#8211; even while rebuilding.</p>
<p>To do the recovery, we need to locate the bad disk, which happens by typing &#8216;zpool status -x&#8217;:</p>
<p><span id="more-1055"></span><br />
<blockquote>
<pre>  pool: MyPool
 state: DEGRADED
status: One or more devices could not be opened.  Sufficient replicas exist for
        the pool to continue functioning in a degraded state.
action: Attach the missing device and online it using 'zpool online'.
   see: http://www.sun.com/msg/ZFS-8000-2Q
 scrub: none requested
config:

        NAME        STATE     READ WRITE CKSUM
        Ahsay       DEGRADED     0     0     0
          raidz1    DEGRADED     0     0     0
            c1t0d5  ONLINE       0     0     0
            c1t0d6  ONLINE       0     0     0
            c1t0d7  UNAVAIL      0     0     0  cannot open
            c1t0d8  ONLINE       0     0     0

errors: No known data errors
</pre>
</blockquote>
<p>The defective disk is c1t0d7. If the disk isn&#8217;t damaged, you can try to bring it back online using the command &#8216;zpool online
<pool> <disk>&#8216;. In our case it would be &#8216;zpool online MyPool c1t0d7&#8242;</p>
<p>If this works, anything is fine again, but if you need to put the disk at another LUN, it gets a new ID. In that case you need to use &#8216;zpool replace
<pool> <disk> [disk]&#8216; &#8211; the latter parameter is the new place of the disk. As I just overwrote the disk using dd, it stays at the same place, so &#8216;zpool replace MyPool c1t0d7&#8242; is sufficient to integrate it back into the pool and it starts to rebuild:</p>
<blockquote><pre>
pool: MyPool
 state: DEGRADED
status: One or more devices is currently being resilvered.  The pool will
        continue to function, possibly in a degraded state.
action: Wait for the resilver to complete.
 scrub: resilver in progress for 0h0m, 0.00% done, 517h14m to go
config:

        NAME              STATE     READ WRITE CKSUM
        Ahsay             DEGRADED     0     0     0
          raidz1          DEGRADED     0     0     0
            c1t0d5        ONLINE       0     0     0
            c1t0d6        ONLINE       0     0     0
            replacing     DEGRADED     0     0     7
              c1t0d7s0/o  FAULTED      0     0     0  corrupted data
              c1t0d7      ONLINE       0     0     0  3.54M resilvered
            c1t0d8        ONLINE       0     0     0

errors: No known data errors</pre>
</blockquote>
<p>After the rebuild, the so called &#8216;resilvering&#8217; completed, the topic is history and we are done with it: short and sweet. In my opinion it&#8217;s even a little too easy to be true, as the whole system could stay online and working all the time.</p>
<hr /><small>Copyright &copy; 2010<br />Please note that this feed is for private use only. All other usage, including the distribution or reproduction of multiple copies, performance or otherwise use in a public way of the images or text require the authorization of the author.<br />(digitalfingerprint: 0f46ca51d0fa4e6588e24f0bf2b80fed)</small>]]></content:encoded>
			<wfw:commentRss>http://my.stargazer.at/2010/01/04/plattenausfall-bei-zfs/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>My first glance at OpenSolaris</title>
		<link>http://my.stargazer.at/2009/12/23/my-first-glance-at-opensolaris/</link>
		<comments>http://my.stargazer.at/2009/12/23/my-first-glance-at-opensolaris/#comments</comments>
		<pubDate>Wed, 23 Dec 2009 17:50:19 +0000</pubDate>
		<dc:creator>Stargazer</dc:creator>
				<category><![CDATA[IT Related stuff]]></category>
		<category><![CDATA[solaris]]></category>

		<guid isPermaLink="false">http://my.stargazer.at/?p=1052</guid>
		<description><![CDATA[Today I was having my first glance at OpenSolaris. Getting the ISO burned, booting the LiveCD and all this didn&#8217;t take long and the system was booted, welcoming me with a Gnome Desktop environment &#8211; which I personally dislike for several reasons &#8211; but at least it is something to work with. And don&#8217;t forget: [...]]]></description>
			<content:encoded><![CDATA[<p>Today I was having my first glance at OpenSolaris. Getting the ISO burned, booting the LiveCD and all this didn&#8217;t take long and the system was booted, welcoming me with a Gnome Desktop environment &#8211; which I personally dislike for several reasons &#8211; but at least it is something to work with. And don&#8217;t forget: Solaris is the system offering ZFS underneath, which should be worth a look. So I clicked the install icon on the desktop and waited for the process to complete.</p>
<p><span id="more-1052"></span>As the system finally rebooted, it was up and running. It seemed to me, like I could start working and so I fired up a browser and &#8211; had a network issue on screen. It looks like something went definitively wrong.</p>
<p>As an old Linux guy, I changed to the shell environment and checked the network card: cable attached, link up, ip address set up, gateway and nameserver are looking fine. So where&#8217;s the problem?</p>
<p>To make sure it isn&#8217;t the DNS server, I tried to ping its IP and it replied. Even nslookup delivered a fine result &#8211; but the system refused to do so. As I am on a Unix system here, there is no reason to feel lost at that point, but I did until I remembered the nsswitch.conf file which defines the way lookups are handled:</p>
<blockquote><p>passwd:files<br />
shadow:files<br />
group:files<br />
hosts: files<br />
bootparams:files<br />
ethers:files<br />
netmasks:files<br />
networks:files<br />
protocols:files<br />
rpc:files<br />
services:files<br />
automount:files<br />
aliases:files
</p></blockquote>
<p>The problem was found in the line saying &#8216;hosts: files&#8217; as it defines that no DNS server is queried for resolving hostnames. So changing it to &#8216;hosts: files dns&#8217; did the trick and I am finally online.</p>
<hr /><small>Copyright &copy; 2010<br />Please note that this feed is for private use only. All other usage, including the distribution or reproduction of multiple copies, performance or otherwise use in a public way of the images or text require the authorization of the author.<br />(digitalfingerprint: 0f46ca51d0fa4e6588e24f0bf2b80fed)</small>]]></content:encoded>
			<wfw:commentRss>http://my.stargazer.at/2009/12/23/my-first-glance-at-opensolaris/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
	</channel>
</rss>
