<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Alan Hargreaves&#039; Blog</title>
	<atom:link href="http://alanhargreaves.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://alanhargreaves.wordpress.com</link>
	<description>The ramblings of an Australian SaND TSC* Principal Field Technologist</description>
	<lastBuildDate>Tue, 27 Sep 2011 10:29:15 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='alanhargreaves.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://1.gravatar.com/blavatar/71a06b4e64bd373ab65c713d6b84a68f?s=96&#038;d=http%3A%2F%2Fs2.wp.com%2Fi%2Fbuttonw-com.png</url>
		<title>Alan Hargreaves&#039; Blog</title>
		<link>http://alanhargreaves.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://alanhargreaves.wordpress.com/osd.xml" title="Alan Hargreaves&#039; Blog" />
	<atom:link rel='hub' href='http://alanhargreaves.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Supportfiles.sun.com has moved (and changed address)</title>
		<link>http://alanhargreaves.wordpress.com/2011/09/27/supportfiles-sun-com-has-moved-and-changed-address/</link>
		<comments>http://alanhargreaves.wordpress.com/2011/09/27/supportfiles-sun-com-has-moved-and-changed-address/#comments</comments>
		<pubDate>Tue, 27 Sep 2011 10:29:15 +0000</pubDate>
		<dc:creator>Alan</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://alanhargreaves.wordpress.com/?p=646</guid>
		<description><![CDATA[Over the last couple of hours the physical location of the supportfiles.sun.com server changed. The benefit is that the machine is now in the same building as the machines that we use to analyse your uploads, so getting the data onto those machines is now substantially faster. What do I have to do to take [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=alanhargreaves.wordpress.com&amp;blog=11700611&amp;post=646&amp;subd=alanhargreaves&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Over the last couple of hours the physical location of the supportfiles.sun.com server changed. The benefit is that the machine is now in the same building as the machines that we use to analyse your uploads, so getting the data onto those machines is now substantially faster.</p>
<p>What do I have to do to take advantage of this?</p>
<p>If you are using the DNS to look it up, then nothing, the DNS has changed over to using the new address. However, if you are using the IP address, you need to start using the new one. We are still uploading from the old server for the moment, but it is a substantially slower link. The new address is 192.18.110.60.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/alanhargreaves.wordpress.com/646/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/alanhargreaves.wordpress.com/646/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/alanhargreaves.wordpress.com/646/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/alanhargreaves.wordpress.com/646/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/alanhargreaves.wordpress.com/646/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/alanhargreaves.wordpress.com/646/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/alanhargreaves.wordpress.com/646/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/alanhargreaves.wordpress.com/646/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/alanhargreaves.wordpress.com/646/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/alanhargreaves.wordpress.com/646/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/alanhargreaves.wordpress.com/646/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/alanhargreaves.wordpress.com/646/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/alanhargreaves.wordpress.com/646/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/alanhargreaves.wordpress.com/646/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=alanhargreaves.wordpress.com&amp;blog=11700611&amp;post=646&amp;subd=alanhargreaves&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://alanhargreaves.wordpress.com/2011/09/27/supportfiles-sun-com-has-moved-and-changed-address/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/3ee13228d9c774126be81b40e3b4679a?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Alan</media:title>
		</media:content>
	</item>
		<item>
		<title>What are these door things?</title>
		<link>http://alanhargreaves.wordpress.com/2011/08/01/625/</link>
		<comments>http://alanhargreaves.wordpress.com/2011/08/01/625/#comments</comments>
		<pubDate>Mon, 01 Aug 2011 07:21:43 +0000</pubDate>
		<dc:creator>Alan</dc:creator>
				<category><![CDATA[Solaris]]></category>
		<category><![CDATA[Solaris Express]]></category>
		<category><![CDATA[Work]]></category>

		<guid isPermaLink="false">http://alanhargreaves.wordpress.com/?p=625</guid>
		<description><![CDATA[I recently had cause to pass on an article that I wrote for the now defunct Australian Sun Customer magazine (On#Sun) on the subject of doors. It occurred to me that I really should put this on the blog. Hopefully this will give some insight as to why I think doors are really cool. Where [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=alanhargreaves.wordpress.com&amp;blog=11700611&amp;post=625&amp;subd=alanhargreaves&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I recently had cause to pass on an article that I wrote for the now defunct Australian Sun Customer magazine (On#Sun) on the subject of doors. It occurred to me that I really should put this on the blog. Hopefully this will give some insight as to why I think doors are really cool.</p>
<hr />
<h1>Where does this door go?</h1>
<p>If you have had a glance through <code>/etc</code> you may have come across some files with door in their name. You may also have noticed calls to door functions if you have run truss over commands that interact with the name resolver routines or password entry lookup.</p>
<h2>The Basic Idea (an example)</h2>
<p>Imagine that you have an application that does two things. First, it provides lookup function into a potentially slow database (e.g. the DNS). Second, it caches the results to minimise having to make the slower calls.</p>
<p>There are already a number of ways that we could call the cached lookup function from a client (e.g. RPCs &amp; sockets), but these require that we give up the cpu and wait for a response from another process. Even for a potentially fast operation, it could be some time<br />
before the client is next scheduled. Wouldn&#8217;t it be nice if we could complete the operation within our time slice? Well, this is what the door interface accomplishes.</p>
<h2>The Server</h2>
<p>When you initialise a door server, a number of threads are made available to run a particular function within the server. I&#8217;ll call this function the door function. These threads are created as if they had made a call to <code>door_return()</code> from within the door function. The server will associate a file and an open file descriptor with this function.</p>
<h2>The Client</h2>
<p>When the client initialises, it opens the door file and specifies the file descriptor when it calls <code>door_call()</code>, along with some buffers for arguments and return values. The kernel uses this file descriptor to work out how to call the door function in the server.</p>
<p>At this point the kernel gets a little clever. Execution is transferred directly to an idle door thread in the server process, which runs as if the door function had been called with the arguments that the client specified. As it runs in the server context, it has access to all of the<br />
global variables and other functions available to that process. When the door function is complete, instead of using <code>return()</code>, it calls <code>door_return()</code>. Execution is transferred back to the client with the result returned in a buffer we passed <code>door_call()</code>. The server thread is left sleeping in <code>door_return()</code>.</p>
<p>If we did not have to give up the CPU in the door function, then we have just gained a major speed increase. If we did have to give it up, then we didn&#8217;t really lose anything, as the overhead is only small.</p>
<p>This is how services such as the name service cache daemon (nscd) work. Library functions such as <code>gethostbyname()</code>, <code>getpwent()</code> and indeed any call whose behaviour is defined in <i>/etc/nsswitch.conf</i> are implemented with door calls to nscd. <strike>Syslog also uses this interface so that processes are not slowed down substantially because of syslog calls. The door function simply places the request in a queue (a fast operation) for another syslog thread to look after and then calls door_return()</strike><br />
<i>(that&#8217;s actually <b>not</b> how syslog uses it)</i>.</p>
<p>For further information see the section 9 man pages on door_create, door_info, door_return and door_call.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/alanhargreaves.wordpress.com/625/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/alanhargreaves.wordpress.com/625/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/alanhargreaves.wordpress.com/625/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/alanhargreaves.wordpress.com/625/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/alanhargreaves.wordpress.com/625/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/alanhargreaves.wordpress.com/625/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/alanhargreaves.wordpress.com/625/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/alanhargreaves.wordpress.com/625/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/alanhargreaves.wordpress.com/625/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/alanhargreaves.wordpress.com/625/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/alanhargreaves.wordpress.com/625/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/alanhargreaves.wordpress.com/625/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/alanhargreaves.wordpress.com/625/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/alanhargreaves.wordpress.com/625/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=alanhargreaves.wordpress.com&amp;blog=11700611&amp;post=625&amp;subd=alanhargreaves&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://alanhargreaves.wordpress.com/2011/08/01/625/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/3ee13228d9c774126be81b40e3b4679a?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Alan</media:title>
		</media:content>
	</item>
		<item>
		<title>I have a performance problem</title>
		<link>http://alanhargreaves.wordpress.com/2011/06/27/i-have-a-performance-problem/</link>
		<comments>http://alanhargreaves.wordpress.com/2011/06/27/i-have-a-performance-problem/#comments</comments>
		<pubDate>Mon, 27 Jun 2011 08:59:46 +0000</pubDate>
		<dc:creator>Alan</dc:creator>
				<category><![CDATA[Solaris]]></category>
		<category><![CDATA[Work]]></category>

		<guid isPermaLink="false">http://alanhargreaves.wordpress.com/?p=616</guid>
		<description><![CDATA[So start 95% of the performance calls that I receive. They usually continue something like: I have gathered some *stat data for you (eg the guds tool from Document 1285485.1), can you please root cause our problem? So, do you think you could? Neither can I, based on this my answer inevitably has to be [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=alanhargreaves.wordpress.com&amp;blog=11700611&amp;post=616&amp;subd=alanhargreaves&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>So start 95% of the performance calls that I receive. They usually continue something like:</p>
<blockquote><p>I have gathered some *stat data for you (eg the guds tool from Document 1285485.1), can you please root cause our problem?</p></blockquote>
<p>So, do you think you could?</p>
<p>Neither can I, based on this my answer inevitably has to be &#8220;No&#8221;.</p>
<p>Given this kind of problem statement, I have no idea about the expectations, the boundary conditions, or even the application. The answer may as well be &#8220;Performance problems? Consult your local Doctor for Viagra&#8221;. It&#8217;s really not a lot to go on.</p>
<p>So, What kind of problem description is going to allow me to start work on the issue that is being seen? I don&#8217;t doubt that there really is an issue, it just needs to be pinned down somewhat.</p>
<p>What behavior exactly are you expecting to see?</p>
<p>Be specific and use business metrics. For example &#8220;run-time&#8221;, &#8220;response-time&#8221; and &#8220;throughput&#8221;.</p>
<p>This helps us define exit criteria.</p>
<p>Now, let&#8217;s look at the system that is having problems.</p>
<p>How is what you are seeing different? Use the same type of metrics.</p>
<p>The answers to these two questions take us a long way towards being able to work a call.</p>
<p>Even more helpful are answers to questions like</p>
<p>Has this system ever worked to expectation?</p>
<p>If so, when did it start exhibiting this behavior?</p>
<p>Is the problem always present, or does it sometimes work to expectation?</p>
<p>If it sometimes works to expectation, when are you seeing the problem? Is there any discernible pattern?</p>
<p>Is the impact of the problem getting better, worse, or remaining constant?</p>
<p>What kind of differences are there between when the system was performing to expectation and when it is not?</p>
<p>Are there other machines where we could expect to see the same issue (eg similar usage and load), but are not? Again, differences?</p>
<p>Once we start to gather information like this we start to build up a much clearer picture of exactly what we need to investigate, and what we need to achieve so that both you and me agree that the problem has been solved.</p>
<p>Please help get that figure of poorly defined problem statements down from its current 95% value.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/alanhargreaves.wordpress.com/616/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/alanhargreaves.wordpress.com/616/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/alanhargreaves.wordpress.com/616/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/alanhargreaves.wordpress.com/616/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/alanhargreaves.wordpress.com/616/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/alanhargreaves.wordpress.com/616/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/alanhargreaves.wordpress.com/616/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/alanhargreaves.wordpress.com/616/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/alanhargreaves.wordpress.com/616/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/alanhargreaves.wordpress.com/616/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/alanhargreaves.wordpress.com/616/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/alanhargreaves.wordpress.com/616/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/alanhargreaves.wordpress.com/616/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/alanhargreaves.wordpress.com/616/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=alanhargreaves.wordpress.com&amp;blog=11700611&amp;post=616&amp;subd=alanhargreaves&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://alanhargreaves.wordpress.com/2011/06/27/i-have-a-performance-problem/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/3ee13228d9c774126be81b40e3b4679a?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Alan</media:title>
		</media:content>
	</item>
		<item>
		<title>Thunderbird imapd and OpenSSL 1.0</title>
		<link>http://alanhargreaves.wordpress.com/2011/06/15/thunderbird-imapd-and-openssl-1-0/</link>
		<comments>http://alanhargreaves.wordpress.com/2011/06/15/thunderbird-imapd-and-openssl-1-0/#comments</comments>
		<pubDate>Wed, 15 Jun 2011 00:49:52 +0000</pubDate>
		<dc:creator>Alan</dc:creator>
				<category><![CDATA[Solaris]]></category>
		<category><![CDATA[Solaris Express]]></category>
		<category><![CDATA[Work]]></category>

		<guid isPermaLink="false">http://alanhargreaves.wordpress.com/?p=610</guid>
		<description><![CDATA[I upgraded my internal Solaris 11 build last night and this morning noticed that I was getting error popups from thunderbird like: SSL received a record that exceeded the maximum permissible length. Searching the web didn&#8217;t help me a lot except for this one which suggested that I try telneting to port 993 on the [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=alanhargreaves.wordpress.com&amp;blog=11700611&amp;post=610&amp;subd=alanhargreaves&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I upgraded my internal Solaris 11 build last night and this morning noticed that I was getting error popups from thunderbird like:</p>
<blockquote><p>SSL received a record that exceeded the maximum permissible length.</p></blockquote>
<p>Searching the web didn&#8217;t help me a lot except for <a href="http://bobpeers.com/technical/telnet_imap#login">this one</a> which suggested that I try telneting to port 993 on the server to see what it looked like.</p>
<p>When I did this and saw a complaint about <code>imapd</code> not being able to open <code>libssl.so.0.9.8</code> that I twigged that this must have been the build that we went to openssl 1.0 on.</p>
<p>This meant that I needed to rebuild <code>imapd</code>. Well I already have done most of the work here <a href="http://alanhargreaves.wordpress.com/2010/05/25/nevada-to-opensolaris-sun-ray-on-sparc-part-4-imapd/">here</a>.</p>
<p>The sad thing was it looks like something else changed and some structure elements have names different to what imapd was expecting in a (DIR *).</p>
<p>Adding  <code>-D__USE_LEGACY_PROTOTYPES__</code>  to the <code>EXTRACFLAGS</code> macro in the top level <code>Makefile</code> allowed the build to complete. After putting the new binary into place, thunderbird is happy talking to this server again.</p>
<p><strong>Update #1</strong></p>
<p>I also needed to rebuild proxytunnel. I think that&#8217;s all that I had that linked against libssl.0.9.8.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/alanhargreaves.wordpress.com/610/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/alanhargreaves.wordpress.com/610/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/alanhargreaves.wordpress.com/610/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/alanhargreaves.wordpress.com/610/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/alanhargreaves.wordpress.com/610/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/alanhargreaves.wordpress.com/610/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/alanhargreaves.wordpress.com/610/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/alanhargreaves.wordpress.com/610/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/alanhargreaves.wordpress.com/610/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/alanhargreaves.wordpress.com/610/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/alanhargreaves.wordpress.com/610/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/alanhargreaves.wordpress.com/610/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/alanhargreaves.wordpress.com/610/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/alanhargreaves.wordpress.com/610/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=alanhargreaves.wordpress.com&amp;blog=11700611&amp;post=610&amp;subd=alanhargreaves&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://alanhargreaves.wordpress.com/2011/06/15/thunderbird-imapd-and-openssl-1-0/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/3ee13228d9c774126be81b40e3b4679a?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Alan</media:title>
		</media:content>
	</item>
		<item>
		<title>Sun Ray on Solaris 11 SPARC</title>
		<link>http://alanhargreaves.wordpress.com/2011/05/27/sun-ray-on-solaris-11-sparc/</link>
		<comments>http://alanhargreaves.wordpress.com/2011/05/27/sun-ray-on-solaris-11-sparc/#comments</comments>
		<pubDate>Fri, 27 May 2011 03:16:05 +0000</pubDate>
		<dc:creator>Alan</dc:creator>
				<category><![CDATA[Solaris]]></category>
		<category><![CDATA[Solaris Express]]></category>
		<category><![CDATA[Work]]></category>

		<guid isPermaLink="false">http://alanhargreaves.wordpress.com/?p=601</guid>
		<description><![CDATA[After an experience I had yesterday, I need to say a little more than I did at Nevada to OpenSolaris Sun Ray on SPARC (part 5 – Sun Ray Server 4.2). It seems that I missed something. Part of the configuration that is done at install time sets up a small LDAP server, but instead [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=alanhargreaves.wordpress.com&amp;blog=11700611&amp;post=601&amp;subd=alanhargreaves&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>After an experience I had yesterday, I need to say a little more than I did at <a href="http://alanhargreaves.wordpress.com/2010/07/26/nevada-to-opensolaris-sun-ray-on-sparc-part-5-%e2%80%93-sun-ray-server-4-2/" title="Nevada to OpenSolaris Sun Ray on SPARC (part 5 – Sun Ray Server 4.2)">Nevada to OpenSolaris Sun Ray on SPARC (part 5 – Sun Ray Server 4.2)</a>.</p>
<p>It seems that I missed something.</p>
<p>Part of the configuration that is done at install time sets up a small LDAP server, but instead of pointing at localhost, it points at the machine name. In general this is not a problem. Unfortunately as I moved the disk image from one machine to another, changing the host information, I didn&#8217;t realise that it was still talking to the server on my lab machine that I had used to build the image.</p>
<p>This was not a problem until the other night when someone else booked that machine and installed something else on it. All of a sudden I could no longer get access to my Sun Ray sessions.</p>
<p>I spent a while trying to address the problem, but didn&#8217;t get very far (probably because I don&#8217;t have a lot of skills in the Sun Ray area).</p>
<p>I had noticed some blog postings about a new release of Sun Ray software out (5.2) that includes the 4.3 Sun Ray Server software in it that I had been hearing some good things about with regards to Solaris 11.</p>
<p>I figured it was time to bite the bullet.</p>
<p>The first thing to do was to clone myself another boot environment so that if it did go really badly wrong I could go back and attempt to recover from the current broken point.</p>
<pre>
# beadm create Solaris11-sr5.2
# beadm activate Solaris11-sr5.2
</pre>
<p></p>
<p>Have to love ZFS root for instant clones.</p>
<p>I then rebooted into that new boot environment and removed the 4.2 software (I found the instructions for this are in the <a href="http://download.oracle.com/docs/cd/E21907_01/PDF/EN/SRSS4dot2InstallGuide(Solaris).pdf">installation guide for 4.2</a>).</p>
<pre>
# cd /opt/SUNWut/sbin
# ./utconfig -u
# cd /
# /opt/SUNWut/sbin/utinstall -u
</pre>
<p></p>
<p>Well that was pretty painless.</p>
<p>I had previously downloaded and unzipped the <a href="http://www.oracle.com/technetwork/server-storage/sunrayproducts/downloads/index.html">software</a> so all I needed to do now was to run</p>
<pre>
# ./utsetup
</pre>
<p></p>
<p>and pretty much accept the defaults. This was an incredibly painless install in comparison to installing the previous version (well done folks), although in hindsight I should have stuck to the defaults a little more closely than I did as I found that I couldn&#8217;t get the DTU to connect, indeed it would either hang actually reboot the DTU.</p>
<p>Looking in /var/opt/SUNWut/log/messages, I saw the following</p>
<pre>
May 26 22:29:23 vesvi utauthd: [ID 355619 user.info] WatchIO UNEXPECTED: Connection from 10.191.128.12 is not allowed
May 26 22:29:23 vesvi utauthd: [ID 572381 user.info] WatchIO UNEXPECTED: 10.191.128.12 protocolError: networkNotAllowed
May 26 22:29:23 vesvi utauthd: [ID 303596 user.info] WatchIO UNEXPECTED: WatchIO.doRemove(null)
</pre>
<p></p>
<p>and it suddenly twigged that I&#8217;d answered the allow LAN connections question wrong.</p>
<p>Unfortunately I found that I can&#8217;t use <code>utadm</code> to fix this as I don&#8217;t have the DHCP packages installed on this machine (I have to see if there is a bug logged on that), but if you look at my previous writeup I had to address exactly this before. You have to make allowLANConnections true in /etc/opt/SUNWut/auth.props</p>
<pre>
# Allow LAN Connections
#       This parameter enforces the policy that only terminals on the
#       private Sunray interconnect can attach to the server. Connection
#       attempts from other network interfaces, including the local loopback
#       interface, will be rejected.
#
allowLANConnections = true
</pre>
<p></p>
<p>Doing a cold restart of the software allowed me to start using my Sun Ray at home again</p>
<pre>
# /opt/SUNWut/sbin/utrestart -c
</pre>
<p></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/alanhargreaves.wordpress.com/601/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/alanhargreaves.wordpress.com/601/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/alanhargreaves.wordpress.com/601/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/alanhargreaves.wordpress.com/601/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/alanhargreaves.wordpress.com/601/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/alanhargreaves.wordpress.com/601/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/alanhargreaves.wordpress.com/601/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/alanhargreaves.wordpress.com/601/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/alanhargreaves.wordpress.com/601/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/alanhargreaves.wordpress.com/601/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/alanhargreaves.wordpress.com/601/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/alanhargreaves.wordpress.com/601/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/alanhargreaves.wordpress.com/601/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/alanhargreaves.wordpress.com/601/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=alanhargreaves.wordpress.com&amp;blog=11700611&amp;post=601&amp;subd=alanhargreaves&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://alanhargreaves.wordpress.com/2011/05/27/sun-ray-on-solaris-11-sparc/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/3ee13228d9c774126be81b40e3b4679a?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Alan</media:title>
		</media:content>
	</item>
		<item>
		<title>Making audio default to a second sound device in Solaris 11</title>
		<link>http://alanhargreaves.wordpress.com/2011/04/17/making-audio-default-to-a-second-sound-device-in-solaris-11/</link>
		<comments>http://alanhargreaves.wordpress.com/2011/04/17/making-audio-default-to-a-second-sound-device-in-solaris-11/#comments</comments>
		<pubDate>Sun, 17 Apr 2011 02:01:17 +0000</pubDate>
		<dc:creator>Alan</dc:creator>
				<category><![CDATA[Solaris]]></category>
		<category><![CDATA[Solaris Express]]></category>
		<category><![CDATA[Work]]></category>

		<guid isPermaLink="false">http://alanhargreaves.wordpress.com/?p=595</guid>
		<description><![CDATA[It finally got to me. I&#8217;ve got a nice USB audio adapter that I use at home on my Tecra M11, but I was only ever able to get firefox to use the builtin audio on Solaris 11. I could make it work under Virtual Box by importing it, but I have a nice sound [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=alanhargreaves.wordpress.com&amp;blog=11700611&amp;post=595&amp;subd=alanhargreaves&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>It finally got to me. I&#8217;ve got a nice USB audio adapter that I use at home on my Tecra M11, but I was only ever able to get firefox to use the builtin audio on Solaris 11. I could make it work under Virtual Box by importing it, but I have a nice sound setup in my office and I really wanted to use the Roland/Cakewalk UA-1G natively.</p>
<p>Searching the web found me lots of people asking the question and nothing in the way of answers.</p>
<p>I&#8217;d already tried</p>
<p><code># cd /dev<br />
# rm audio audioctl<br />
# ln -s sound/1 audio<br />
# ln -s sound/1ctl audioctl</code></p>
<p>but flash was still playing through the internal speakers.</p>
<p>The answer came when I ran <em>pfiles</em> on the <em>firefox-bin</em> process, I noticed that it had the <em>dsp</em> device for the internal audio controller open.</p>
<p>What I had forgotten was</p>
<p><code># rm dsp<br />
# ln -s dsp1 dsp</code></p>
<p>I went and started a <a href="http://www.youtube.com/watch?v=wyOZCUpjgXE">youtube video</a> and had to immediately halt it as the volume through the other device had been set WAY too high, but yea that&#8217;s all it took.</p>
<p>The creation of a script called audio that takes an argument of the device is then trivial, and left as an exercise for the reader (yes I&#8217;ve already written one).</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/alanhargreaves.wordpress.com/595/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/alanhargreaves.wordpress.com/595/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/alanhargreaves.wordpress.com/595/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/alanhargreaves.wordpress.com/595/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/alanhargreaves.wordpress.com/595/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/alanhargreaves.wordpress.com/595/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/alanhargreaves.wordpress.com/595/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/alanhargreaves.wordpress.com/595/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/alanhargreaves.wordpress.com/595/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/alanhargreaves.wordpress.com/595/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/alanhargreaves.wordpress.com/595/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/alanhargreaves.wordpress.com/595/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/alanhargreaves.wordpress.com/595/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/alanhargreaves.wordpress.com/595/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=alanhargreaves.wordpress.com&amp;blog=11700611&amp;post=595&amp;subd=alanhargreaves&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://alanhargreaves.wordpress.com/2011/04/17/making-audio-default-to-a-second-sound-device-in-solaris-11/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/3ee13228d9c774126be81b40e3b4679a?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Alan</media:title>
		</media:content>
	</item>
		<item>
		<title>A plea to security auditors</title>
		<link>http://alanhargreaves.wordpress.com/2011/03/18/a-plea-to-security-auditors/</link>
		<comments>http://alanhargreaves.wordpress.com/2011/03/18/a-plea-to-security-auditors/#comments</comments>
		<pubDate>Fri, 18 Mar 2011 05:01:20 +0000</pubDate>
		<dc:creator>Alan</dc:creator>
				<category><![CDATA[Security]]></category>
		<category><![CDATA[Solaris]]></category>

		<guid isPermaLink="false">http://alanhargreaves.wordpress.com/?p=589</guid>
		<description><![CDATA[When you give your customers the list of &#8220;vulnerabilities&#8221; to take up with their vendor, can you please make sure of a couple of things? Actually identify the security vulnerability with a reference so we don&#8217;t have to try to interpret your vague description of it (a pointer to one of the sites that reports [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=alanhargreaves.wordpress.com&amp;blog=11700611&amp;post=589&amp;subd=alanhargreaves&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>When you give your customers the list of &#8220;vulnerabilities&#8221; to take up with their vendor, can you please make sure of a couple of things?</p>
<ol>
<li>Actually identify the security vulnerability with a reference so we don&#8217;t have to try to interpret your vague description of it (a pointer to one of the sites that reports security vulnerabilities isn&#8217;t that hard is it?)</li>
<li>Verify that the system really is vulnerable. As I pointed out in an <a href="http://alanhargreaves.wordpress.com/2011/02/21/apache-patches-on-solaris-10/">earlier blog</a>, looking at the version label is not always enough to say that a version is vulnerable. Let alone the fact that sometimes even <a href="http://alanhargreaves.wordpress.com/2011/03/16/mcafee-data-file-6282-reporting-a-trojan-on-solaris-sparc-and-x64/">the best of tools get false positives</a>.</li>
</ol>
<p>One call I have been dealing with over the last few days identified that a customer was vulnerable to five different items. After working out what was really meant by three of them I was able to determine that they were vulnerabilities that we put patches out for back in 2003 and the customer had patches on the system that included these fixes. If the scanner software had probed the vulnerability it would have seen the product in question safe. Of the other two, &#8220;rexec&#8221; was commented out of /etc/inetd.conf and netstat -a showed nothing listening on port 512, and they actually did still have rshd running, which they needed to turn off.</p>
<p>Because of the vagueness of the descriptions I was given I had to spend quite some time researching three of those vulnerabilities to find exactly what they meant (not helped by how old they were).</p>
<p>You can probably imagine how pleased I was at having to spend time doing this research when I have other calls in my queue that really also needed attention, only to find out that it could all have been avoided.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/alanhargreaves.wordpress.com/589/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/alanhargreaves.wordpress.com/589/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/alanhargreaves.wordpress.com/589/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/alanhargreaves.wordpress.com/589/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/alanhargreaves.wordpress.com/589/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/alanhargreaves.wordpress.com/589/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/alanhargreaves.wordpress.com/589/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/alanhargreaves.wordpress.com/589/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/alanhargreaves.wordpress.com/589/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/alanhargreaves.wordpress.com/589/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/alanhargreaves.wordpress.com/589/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/alanhargreaves.wordpress.com/589/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/alanhargreaves.wordpress.com/589/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/alanhargreaves.wordpress.com/589/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=alanhargreaves.wordpress.com&amp;blog=11700611&amp;post=589&amp;subd=alanhargreaves&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://alanhargreaves.wordpress.com/2011/03/18/a-plea-to-security-auditors/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/3ee13228d9c774126be81b40e3b4679a?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Alan</media:title>
		</media:content>
	</item>
		<item>
		<title>McAfee data file 6282 reporting a trojan on Solaris (SPARC and x64) ?</title>
		<link>http://alanhargreaves.wordpress.com/2011/03/16/mcafee-data-file-6282-reporting-a-trojan-on-solaris-sparc-and-x64/</link>
		<comments>http://alanhargreaves.wordpress.com/2011/03/16/mcafee-data-file-6282-reporting-a-trojan-on-solaris-sparc-and-x64/#comments</comments>
		<pubDate>Wed, 16 Mar 2011 00:02:50 +0000</pubDate>
		<dc:creator>Alan</dc:creator>
				<category><![CDATA[Security]]></category>
		<category><![CDATA[Solaris]]></category>
		<category><![CDATA[Work]]></category>

		<guid isPermaLink="false">http://alanhargreaves.wordpress.com/?p=575</guid>
		<description><![CDATA[I had a few support calls today and yesterday with folks asking us about their scanners reporting: Found the PWS-SPyEye!env.a trojan !!! against a lot of different files on Solaris ranging from database install executables to parts of a python patch. I found a thread on the McAfee community site discussing this. It wasn&#8217;t only [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=alanhargreaves.wordpress.com&amp;blog=11700611&amp;post=575&amp;subd=alanhargreaves&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I had a few support calls today and yesterday with folks asking us about their scanners reporting:</p>
<pre>Found the PWS-SPyEye!env.a trojan !!!</pre>
<p>against a lot of different files on Solaris ranging from database install executables to parts of a python patch.</p>
<p>I found a <a href="https://community.mcafee.com/message/180034">thread</a> on the McAfee community site discussing this. It wasn&#8217;t only Solaris that was having the problem. There were a few people who had run tests against files which had not been modified (and stored on DVD) from before the time that this trojan hit being reported as vulnerable.</p>
<p>I had another look this morning and it appears that these reports only occur on version 6282 of the virus definitions file and that todays file (version 6286) no longer shows these files as hits.</p>
<p>Before logging an Oracle support call if you see this, could you try updating the virus definitions file to at least version 6286?</p>
<p>Kudos to McAfee for sorting this out quickly.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/alanhargreaves.wordpress.com/575/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/alanhargreaves.wordpress.com/575/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/alanhargreaves.wordpress.com/575/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/alanhargreaves.wordpress.com/575/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/alanhargreaves.wordpress.com/575/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/alanhargreaves.wordpress.com/575/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/alanhargreaves.wordpress.com/575/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/alanhargreaves.wordpress.com/575/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/alanhargreaves.wordpress.com/575/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/alanhargreaves.wordpress.com/575/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/alanhargreaves.wordpress.com/575/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/alanhargreaves.wordpress.com/575/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/alanhargreaves.wordpress.com/575/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/alanhargreaves.wordpress.com/575/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=alanhargreaves.wordpress.com&amp;blog=11700611&amp;post=575&amp;subd=alanhargreaves&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://alanhargreaves.wordpress.com/2011/03/16/mcafee-data-file-6282-reporting-a-trojan-on-solaris-sparc-and-x64/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/3ee13228d9c774126be81b40e3b4679a?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Alan</media:title>
		</media:content>
	</item>
		<item>
		<title>Nevada to OpenSolaris Sun Ray on SPARC (part 8 &#8211; back to original hardware)</title>
		<link>http://alanhargreaves.wordpress.com/2011/03/14/nevada-to-opensolaris-sun-ray-on-sparc-part-8-back-to-original-hardware/</link>
		<comments>http://alanhargreaves.wordpress.com/2011/03/14/nevada-to-opensolaris-sun-ray-on-sparc-part-8-back-to-original-hardware/#comments</comments>
		<pubDate>Mon, 14 Mar 2011 05:46:36 +0000</pubDate>
		<dc:creator>Alan</dc:creator>
				<category><![CDATA[Solaris]]></category>
		<category><![CDATA[Solaris Express]]></category>
		<category><![CDATA[Work]]></category>

		<guid isPermaLink="false">http://alanhargreaves.wordpress.com/?p=564</guid>
		<description><![CDATA[It&#8217;s been a long path to get here, including a little experimenting with having an Ultra45 as the final destination box (the fact that it only had 1gb memory in it turned out to be a show stopper for any kind of desktop work). And yes I know it&#8217;s not called OpenSolaris anymore, but I [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=alanhargreaves.wordpress.com&amp;blog=11700611&amp;post=564&amp;subd=alanhargreaves&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>It&#8217;s been a long path to get here, including a little experimenting with having an Ultra45 as the final destination box (the fact that it only had 1gb memory in it turned out to be a show stopper for any kind of desktop work).</p>
<p>And yes I know it&#8217;s not called OpenSolaris anymore, but I really wanted to stick with the title to keep these articles together.</p>
<p>Last Wednesday I bit the bullet and migrated back to my original hardware which was slightly better specced than what I had been using in the lab.</p>
<p>I did learn some things in this final step which hopefully if anyone ever has to do something like this again will be beneficial.</p>
<p><strong>Cloning the boot disk</strong></p>
<p>While I could have moved the 72gb disk I had in the lab machine directly into the target box, I was reluctant to do so as I did not have another 72gb disk to use as a mirror and I was under the (mistaken &#8211; see later) impression that the target had a pair of 36 gb disks in it.</p>
<p>As we had trouble sourcing a pair of 72gb disks, I sourced a pair of 142gb ones and put one of them into the second disk slot in the lab box.</p>
<p><strong>Lesson #1</strong></p>
<p><em>You cannot hot swap disks in a Sun Blade 2000. There is a microswitch that powers down the machine when you take the side off. I discovered this by watching the fans spin down on side removal. Sigh.</em></p>
<p>After powering up and booting again we need to add this disk as a mirror. It&#8217;s not important that it is larger than the disk I am mirroring, ZFS will only use what it needs on this larger disk to mirror the smaller. I also didn&#8217;t want to partition it to match sizes as once I was done I wanted to grow the zpool to the entire available size.</p>
<p>Well actually I did adjust the partition tables, but only to give me the full disk on slice 0 (yes I could have used slice 2, but neatness counts).</p>
<p>OK we add c6t2d0s0 as a mirror to <em>rpool</em></p>
<pre>
# zpool attach rpool c6t1d0s0 c6t2d0s0
</pre>
<p></p>
<p>and then we wait for it to resilver.</p>
<p>I also updated hosts so that it also had the address of the machine that I was going to move the disk to.</p>
<p>I was not sure about whether or not I could boot a detached zpool mirror or if I had to simply pull the disk and move it to the new machine.</p>
<p><strong>Lesson #2</strong></p>
<p><em>Don&#8217;t detach the mirror before removing it from teh source system to the target. You will get a Failed to boot with a message like &#8220;Failed to boot detached mirror&#8221;.</em></p>
<p>Move the disk back to the source machine and re-attach:</p>
<pre>
zpool attach rpool c6t2d0s0 c6t2d0s0
</pre>
<p></p>
<p>and wait another few hours for resilvering.</p>
<p>This time on putting this disk into slot 1, the machine booted.</p>
<p>Brought it up single user and modified <em>/etc/hostname.eri0</em> and <em>/etc/nodename</em>. Rebooted to be sure everything took. Why was it still coming up with the source machine name, and why can it not contact the local NIS server?</p>
<p><strong>Lesson #3</strong></p>
<p><em>Current builds of Solaris 11 development have moved the nodename to be a property in SMF.</em></p>
<p>Looking at <em>/lib/svc/method/identity-node</em> we see both how to set this AND why <em>/etc/nodename</em> was not helpful.</p>
<p><em>/etc/nodename</em> is only used if there is no SMF property for <em>config/nodename</em> in <em>svc:/system/identity:node</em>. When it is used here the startup method removes the file after using it. If the property exists, it will never look at that file again. To change this property you need to use <em>svccfg</em>.</p>
<pre>
# svccfg -s svc:/system/identity:node setpropconfig/nodename = astring: vesvi
</pre>
<p></p>
<p>Where <em>vesvi</em> was the name of my target machine.</p>
<p>The method also does a:</p>
<pre>
svcadm refresh svc:/system/identity:node
</pre>
<p></p>
<p>Which I did and then rebooted again for good measure to make sure the interfaces came up correctly.</p>
<p>Hmmmm, it still isn&#8217;t seeing the NIS servers. DOH! In our lab we have our routers advertise themselves. On the normal network, router addresses are handed out with DHCP. As I have a static address, &#8230;</p>
<p>Booted back to single user and added the router address to <em>/etc/defaultrouter</em> and things looked much better. Indeed it looks like Sun Ray had come up. I was worried that I would need to dig into the guts of that configuration as well, but it appears not (though at a later time I will go through my notes to verify this).</p>
<p>I mentioned earlier that I thought that the target machine only had a pair of 36gb disks in it. When I took them out I noticed that they were actually 72gb disks. *CLICK* when I originally migrated to this machine from my old Ultra 80 when it died, I had 36gb disks, I must have done the mirror trick there too. What I had forgotten to do was to grow the zpool.</p>
<pre>
# zpool set autoexpand=on rpool
</pre>
<p></p>
<p>and we now have a 142gb non-mirrored rpool.</p>
<p>The last major step was to put the other 142gb disk in the machine and set up the mirror. Before I did so I checked the current configuration:</p>
<pre>
  pool: rpool
 state: ONLINE
config:

	NAME          STATE     READ WRITE CKSUM
	rpool         ONLINE       0     0     0
	  c6t2d0s0    ONLINE       0     0     0

errors: No known data errors
</pre>
<p></p>
<p>Hang on, I said that I had put the disk into slot 1. Oh yes, c6t2d0s0 is the label on the disk. It just happened to not reflect the actually installed location. This could have made putting the other disk into c6t2d0s0 interesting.</p>
<p>On powering the machine down, I moved that disk into slot 2 and put the new disk into slot 1. It&#8217;s nice how ZFS really doesn&#8217;t care where you put the disks.</p>
<p>This time I booted from disk2 at <em>OBP</em> and it came up properly. Instead of working standing up at a vdu attached to the serial port of this machine, I went back to my desk and logged into a Sun Ray session on it.</p>
<p>Adding the other side of the mirror:</p>
<pre>
# zpool attach rpool c6t2d0s0 c6t1d0s0
</pre>
<p></p>
<p>and wait for the resilvering (which only took 44 minutes this time).</p>
<pre>
  pool: rpool
 state: ONLINE
 scan: resilvered 34.6G in 0h44m with 0 errors on Wed Mar  9 21:46:45 2011
config:

	NAME          STATE     READ WRITE CKSUM
	rpool         ONLINE       0     0     0
	  mirror-0    ONLINE       0     0     0
	    c6t1d0s0  ONLINE       0     0     0
	    c6t2d0s0  ONLINE       0     0     0

errors: No known data errors
</pre>
<p></p>
<p>I&#8217;m now running on the original hardware with something much lighter than the old nevada build I had on it and it looks like I have all the services that I need.</p>
<p>I will say that after putting up with swapping whenever I wanted to do something on the Ultra45, the SB2000 with 4gb feels so much better.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/alanhargreaves.wordpress.com/564/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/alanhargreaves.wordpress.com/564/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/alanhargreaves.wordpress.com/564/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/alanhargreaves.wordpress.com/564/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/alanhargreaves.wordpress.com/564/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/alanhargreaves.wordpress.com/564/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/alanhargreaves.wordpress.com/564/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/alanhargreaves.wordpress.com/564/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/alanhargreaves.wordpress.com/564/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/alanhargreaves.wordpress.com/564/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/alanhargreaves.wordpress.com/564/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/alanhargreaves.wordpress.com/564/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/alanhargreaves.wordpress.com/564/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/alanhargreaves.wordpress.com/564/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=alanhargreaves.wordpress.com&amp;blog=11700611&amp;post=564&amp;subd=alanhargreaves&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://alanhargreaves.wordpress.com/2011/03/14/nevada-to-opensolaris-sun-ray-on-sparc-part-8-back-to-original-hardware/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/3ee13228d9c774126be81b40e3b4679a?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Alan</media:title>
		</media:content>
	</item>
		<item>
		<title>Apache patches on Solaris 10</title>
		<link>http://alanhargreaves.wordpress.com/2011/02/21/apache-patches-on-solaris-10/</link>
		<comments>http://alanhargreaves.wordpress.com/2011/02/21/apache-patches-on-solaris-10/#comments</comments>
		<pubDate>Mon, 21 Feb 2011 09:04:14 +0000</pubDate>
		<dc:creator>Alan</dc:creator>
				<category><![CDATA[Security]]></category>
		<category><![CDATA[Solaris]]></category>
		<category><![CDATA[Work]]></category>

		<guid isPermaLink="false">http://alanhargreaves.wordpress.com/?p=552</guid>
		<description><![CDATA[This is a blog posting with a bit of self-interest attached. The self interest being to try to save myself some unnecessary support call handling. You may have seen the Sun Security blog addressing the CVE-2010-1452 mod_dav Vulnerability in Apache 2.0.x HTTP Server issue. The patches that this blog points to mention in the README [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=alanhargreaves.wordpress.com&amp;blog=11700611&amp;post=552&amp;subd=alanhargreaves&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>This is a blog posting with a bit of self-interest attached. The self interest being to try to save myself some unnecessary support call handling.</p>
<p>You may have seen the Sun Security blog addressing the <a href="http://blogs.sun.com/security/entry/cve_2010_1452_mod_dav">CVE-2010-1452 mod_dav Vulnerability in Apache 2.0.x HTTP Server</a> issue.</p>
<p>The patches that this blog points to mention in the README</p>
<pre>
        6972023 upgrade httpd to 2.2.16 (CVE-2010-1452, CVE-2010-2068)
</pre>
<p></p>
<p>This bug synopsis is misleading. The patch does not actually upgrade httpd to 2.2.16. What it does is to backport the fixes for the CVEs mentioned. The patch README should be shortly updated to make this clearer.</p>
<p>Now, that being said you may also note after installation that it still identifies as Apache 2.0.63 and you may have concerns about <a href="http://www.apache.org/dist/httpd/CHANGES_2.0.64">vulnerabilities addressed in 2.0.64</a> mentioned on the Apache web site.</p>
<p>The way that we maintain Apache on Solaris 10 is not to drop in new releases as they happen, rather we take the fixes mentioned and backport them to our 2.0.63 codebase.</p>
<p>Inside the patch are two files called README.sfw.</p>
<pre>
        usr/share/src/apache2/README.sfw
        usr/share/src/apache2/modperl/README.sfw
</pre>
<p></p>
<p>If you have the Apache source product installed these files will be installed/updated on your system. If you do not, the files will still be present in the actual patch and you can find them under one of the <code>reloc</code> directories. At the end of these files we document which fixes have been backported.</p>
<p><strong>Please</strong> consult these files before logging support calls asking questions of the form &#8220;Is your version of Apache is vulnerable to &#8230;?&#8221;</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/alanhargreaves.wordpress.com/552/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/alanhargreaves.wordpress.com/552/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/alanhargreaves.wordpress.com/552/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/alanhargreaves.wordpress.com/552/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/alanhargreaves.wordpress.com/552/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/alanhargreaves.wordpress.com/552/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/alanhargreaves.wordpress.com/552/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/alanhargreaves.wordpress.com/552/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/alanhargreaves.wordpress.com/552/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/alanhargreaves.wordpress.com/552/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/alanhargreaves.wordpress.com/552/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/alanhargreaves.wordpress.com/552/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/alanhargreaves.wordpress.com/552/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/alanhargreaves.wordpress.com/552/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=alanhargreaves.wordpress.com&amp;blog=11700611&amp;post=552&amp;subd=alanhargreaves&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://alanhargreaves.wordpress.com/2011/02/21/apache-patches-on-solaris-10/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/3ee13228d9c774126be81b40e3b4679a?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Alan</media:title>
		</media:content>
	</item>
	</channel>
</rss>
