<?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>Tork Wrench &#187; solaris</title>
	<atom:link href="http://www.torkwrench.com/tag/solaris/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.torkwrench.com</link>
	<description>Things I learnt today, working on IBM Lotus Web Content Management.</description>
	<lastBuildDate>Tue, 17 Aug 2010 06:50:47 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Workaround for Solaris 10 slow boot on VMware ESX 4.0</title>
		<link>http://www.torkwrench.com/2010/07/02/workaround-for-solaris-10-slow-boot-on-vmware-esx-4-0/</link>
		<comments>http://www.torkwrench.com/2010/07/02/workaround-for-solaris-10-slow-boot-on-vmware-esx-4-0/#comments</comments>
		<pubDate>Thu, 01 Jul 2010 22:32:32 +0000</pubDate>
		<dc:creator>Graham</dc:creator>
				<category><![CDATA[random]]></category>
		<category><![CDATA[tip]]></category>
		<category><![CDATA[esx]]></category>
		<category><![CDATA[solaris]]></category>
		<category><![CDATA[VMware]]></category>
		<category><![CDATA[workaround]]></category>

		<guid isPermaLink="false">http://www.torkwrench.com/?p=248</guid>
		<description><![CDATA[When installing Solaris 10 as a VMware guest, the boot sequence is very slow. Here's how to fix it. <a href="http://www.torkwrench.com/2010/07/02/workaround-for-solaris-10-slow-boot-on-vmware-esx-4-0/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>When building a Solaris x64 guest on VMware , the boot sequence when booting from the Solaris DVD seems to take forever. About 5 minutes in fact.  Which is really annoying if you are trying to automate installing Solaris and you need to restart 50 times a day. The part I am talking about is after you select to boot Solaris from the grub menu &#8211; there is a sequence of dots that comes up until the next Solaris kernel seems to load. Incidentally the guest&#8217;s CPU goes to 100% during this sequence, which could be an issue if you are running on a loaded system.</p>
<p>Luckily there is a workaround. Go into the &#8216;edit settings&#8217; screen for the Solaris guest and click the options tab. Change the Guest Operating System Version to Solaris 10 32 Bit, instead of 64 bit. Then the boot goes more like this:</p>
<p><img src="http://www.torkwrench.com/wp-content/plugins/flash-video-player/default_video_player.gif" /></p>
<p>I made a screen cast of the slow boot as well, but it literally is the same thing as above, except it just goes on for 5 minutes. It could be the most boring video on the internet. The fast boot video above is probably the second most boring video on the internet! It&#8217;s just a hard problem to explain in words.</p>
<p>This setting doesn&#8217;t mean that you&#8217;ll be running a 32 bit OS or anything either &#8211; as far as I can tell it doesn&#8217;t do anything besides fix the slow boot problem! </p>
]]></content:encoded>
			<wfw:commentRss>http://www.torkwrench.com/2010/07/02/workaround-for-solaris-10-slow-boot-on-vmware-esx-4-0/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
<enclosure url="http://www.torkwrench.com/wp-content/uploads/2010/07/solaris-10-boot-good.flv" length="1606803" type="video/x-flv" />
		</item>
		<item>
		<title>CWUPI0033E on Solaris 10 when installing WAS</title>
		<link>http://www.torkwrench.com/2010/05/13/cwupi0033e-on-solaris-10-when-installing-was/</link>
		<comments>http://www.torkwrench.com/2010/05/13/cwupi0033e-on-solaris-10-when-installing-was/#comments</comments>
		<pubDate>Thu, 13 May 2010 02:57:58 +0000</pubDate>
		<dc:creator>Graham</dc:creator>
				<category><![CDATA[random]]></category>
		<category><![CDATA[tip]]></category>
		<category><![CDATA[dtrace]]></category>
		<category><![CDATA[solaris]]></category>
		<category><![CDATA[WebSphere Application Server]]></category>

		<guid isPermaLink="false">http://www.torkwrench.com/?p=224</guid>
		<description><![CDATA[How to fix this 'out of disk space' error when installing WebSphere Application Server on Solaris 10.  <a href="http://www.torkwrench.com/2010/05/13/cwupi0033e-on-solaris-10-when-installing-was/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Here&#8217;s a weird one for you. We were trying to install 6.1.0.3 on a Solaris 10 system to do some tests. The Portal install would fail after about 10 minutes. In the /tmp/wpinstalllog.txt file, it was clear that the problem was due to a failure in the internal WebSphere Application Server install. (When you install Portal, the Portal installer will kick off it&#8217;s own silent install of WAS).</p>
<p>The first thing to do when debugging a WAS install problem is to look at the logs in ~/waslogs . These indicated the following problem:</p>
<div class="codecolorer-container text dawn" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;height:300px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">CWUPI0033E: <br />
There is insufficient free disk space on the system: <br />
<br />
/opt/WebSphere/AppServer:<br />
&nbsp; &nbsp; &nbsp; Required: 1403 MB<br />
&nbsp; &nbsp; &nbsp; Available: 0 MB<br />
<br />
/var/tmp/:<br />
&nbsp; &nbsp; &nbsp; Required: 1403 MB<br />
&nbsp; &nbsp; &nbsp; Available: 0 MB<br />
<br />
/opt/.ibm/.nif:<br />
&nbsp; &nbsp; &nbsp; Required: 2 MB<br />
&nbsp; &nbsp; &nbsp; Available: 0 MB<br />
<br />
Please ensure that there is enough free disk space<br />
on all required filesystems and restart the installation.<br />
<br />
If /var/tmp/ , /opt/WebSphere/AppServer <br />
and /opt/.ibm/.nif are on the same partition, <br />
then the amount of space required is the sum of the space<br />
required on /var/tmp/ , /opt/WebSphere/AppServer and <br />
/opt/.ibm/.nif.</div></div>
<p>My system had heaps of space on it! Surely the installer wouldn&#8217;t even run if there was 0 MB free! The method that the installer used to determine how much disk space was free was failing. But how does the installer figure out how much disk space is free? After lots of poking and prodding around I stumbled on <a href="http://www.sun.com/bigadmin/content/dtrace/">dtrace</a>. I had heard of it before, but never had the opportunity to use it. Dtrace is a mechanism to instrument and probe the tiniest little interactions on a Solaris/BSD/OSX machine. Being so powerful, it has a steep learning curve. <a href="http://www.brendangregg.com/DTrace/dtrace_oneliners.txt">This collection of handy dtrace oneliners was really helpful. </a> </p>
<p>I kicked off the WAS install portion of the Portal install and ran this dtrace command in another window.</p>
<div class="codecolorer-container text dawn" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">dtrace -n 'syscall::open*:entry { printf(&quot;%s %s&quot;,execname,copyinstr(arg0)); }' -o trace.log</div></div>
<p>It captured each file interaction that occurred when running the install. Luckily the WAS install failed after about 30 seconds, so there wasn&#8217;t too much data to wade through. </p>
<p>Here is the dtrace log (trace.log from the command above). Something called gushellsupport.sh is calling df (standard unix disk free command). This must be how the installer determines how much disk space is free. The column on the left is the pid of the install process (which is java) . The library files on the far right are what is being called by each executable; the next column over to the left.</p>
<div class="codecolorer-container text dawn" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">&nbsp; 0 &nbsp;44056 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; open64:entry gushellsupport.s /var/tmp/ismp003/gushellsupport.sh<br />
&nbsp; 0 &nbsp;43668 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; open:entry df /var/ld/ld.config<br />
&nbsp; 0 &nbsp;43668 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; open:entry df /lib/libcmd.so.1<br />
&nbsp; 0 &nbsp;43668 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; open:entry df /lib/libc.so.1<br />
&nbsp; 0 &nbsp;43668 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; open:entry df /usr/dt/lib/nls/msg/C/SUNW_OST_OSCMD.cat<br />
&nbsp; 0 &nbsp;43668 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; open:entry df /usr/lib/locale/C/LC_MESSAGES/SUNW_OST_OSCMD.mo<br />
&nbsp; 0 &nbsp;43668 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; open:entry df /var/ld/ld.config<br />
&nbsp; 0 &nbsp;43668 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; open:entry df /lib/libcmd.so.1<br />
&nbsp; 0 &nbsp;43668 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; open:entry df /lib/libc.so.1<br />
&nbsp; 0 &nbsp;43668 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; open:entry df /etc/mnttab<br />
&nbsp; 0 &nbsp;43668 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; open:entry df /usr/dt/lib/nls/msg/C/SUNW_OST_OSCMD.cat<br />
&nbsp; 0 &nbsp;43668 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; open:entry df /usr/lib/locale/C/LC_MESSAGES/SUNW_OST_OSCMD.mo</div></div>
<p>This script, gushellsupport.sh, is owned by InstallShield so I can&#8217;t publish the contents of it. But it has a diskcheck function in it that relies on &#8216;/usr/xpg4/bin/df&#8217; which I didn&#8217;t have installed. Solaris has many different versions of the same tools that are left behind for backwards compatibility. When installing this system initially, I used the &#8220;Core System Support&#8221; option in the Solaris install to build a lean, quick machine. Unfortunately it didn&#8217;t come with this legacy version of df. </p>
<p>df belongs in a package called SUNWxcu4. To install it, mount your Solaris CD and go to the directory Solaris_10/Product/ . In there, copy the subdirectory &#8216;SUNWxcu4&#8242; to /var/spool/pkg and run</p>
<div class="codecolorer-container text dawn" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">pkgadd SUNWxcu4</div></div>
<p>If you rerun the install again it&#8217;ll work since gushellsupport.sh is calling the correct version of df. Talk about obscure huh? </p>
]]></content:encoded>
			<wfw:commentRss>http://www.torkwrench.com/2010/05/13/cwupi0033e-on-solaris-10-when-installing-was/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Can you tell me how to get, how to get to the Solaris boot prompt?</title>
		<link>http://www.torkwrench.com/2009/03/24/can-you-tell-me-how-to-get-how-to-get-to-the-solaris-boot-prompt/</link>
		<comments>http://www.torkwrench.com/2009/03/24/can-you-tell-me-how-to-get-how-to-get-to-the-solaris-boot-prompt/#comments</comments>
		<pubDate>Tue, 24 Mar 2009 09:12:03 +0000</pubDate>
		<dc:creator>Graham</dc:creator>
				<category><![CDATA[howto]]></category>
		<category><![CDATA[solaris]]></category>
		<category><![CDATA[sparc]]></category>

		<guid isPermaLink="false">http://www.torkwrench.com/?p=24</guid>
		<description><![CDATA[Whenever I have to install Solaris (on SPARC), I never remember how to get it to boot from a cd.  Sparc machines have their own bios system, which comes up as a  this minimal, black on white serif-ey command prompt. &#8230; <a href="http://www.torkwrench.com/2009/03/24/can-you-tell-me-how-to-get-how-to-get-to-the-solaris-boot-prompt/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Whenever I have to install Solaris (on SPARC), I never remember how to get it to boot from a cd.  Sparc machines have their own bios system, which comes up as a  this minimal, black on white serif-ey command prompt. You can type commands like:</p>
<p>boot cdrom</p>
<p>&#8230; and it&#8217;ll boot from the cd rom.</p>
<p>But how to get to the boot menu? Sun machines come with a special keyboard which has a extra row beyond the num pad. There&#8217;s a key there labeled STOP, and the &#8216;Sun Way&#8217; of getting to the boot shell / bios prompt is to hit STOP + A at the same time. I&#8217;ve never got one of these keyboards around (we&#8217;re using a massive KVM thingy) so I&#8217;m forever googling to figure out how to send STOP &#8211; A to my Sparc box without having to get to the</p>
<p>So here&#8217;s what you do. In normal Solaris, just type :</p>
<p>init 0</p>
<p>And it&#8217;ll drop you to the boot prompt. From there go <strong>boot cdrom </strong>and you&#8217;re done.</p>
<div>As an aside I always thought it was funny that in the Solaris install program, they have all these different name resolution schemes you can set, and DNS (the one you basically always want) is the third selection down. Guys, come on, no one uses NIS+ anymore, give it a break! Probably not *that* funny, maybe just a little bit funny.</div>
]]></content:encoded>
			<wfw:commentRss>http://www.torkwrench.com/2009/03/24/can-you-tell-me-how-to-get-how-to-get-to-the-solaris-boot-prompt/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
