<?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>unixwiz &#187; Zones/Containers</title>
	<atom:link href="http://blogs.sungeek.net/unixwiz/category/solaris/zonescontainers/feed/" rel="self" type="application/rss+xml" />
	<link>http://blogs.sungeek.net/unixwiz</link>
	<description>anything dealing with *NIX or what ever I want to write about</description>
	<lastBuildDate>Fri, 02 Jul 2010 02:28:16 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Mediatomb and Solaris 10</title>
		<link>http://blogs.sungeek.net/unixwiz/2009/06/13/mediatomb-and-solaris-10/</link>
		<comments>http://blogs.sungeek.net/unixwiz/2009/06/13/mediatomb-and-solaris-10/#comments</comments>
		<pubDate>Sun, 14 Jun 2009 03:28:05 +0000</pubDate>
		<dc:creator>unixwiz</dc:creator>
				<category><![CDATA[Random Stuff]]></category>
		<category><![CDATA[Solaris]]></category>
		<category><![CDATA[Zones/Containers]]></category>
		<category><![CDATA[mediatomb]]></category>
		<category><![CDATA[ps3]]></category>
		<category><![CDATA[replaytv]]></category>

		<guid isPermaLink="false">http://blogs.sungeek.net/unixwiz/?p=1140</guid>
		<description><![CDATA[Now that I rebuilt the server, it was time to put media tomb on it to share media with the PS3. To get it to compile on Solaris (fresh 05/09 Update 7 install patched with the latest security and recommended patches), there are a couple of things you have to do (most of this is [...]]]></description>
			<content:encoded><![CDATA[<p>Now that I rebuilt the server, it was time to put media tomb on it to share media with the PS3. To get it to compile on Solaris (fresh 05/09 Update 7 install patched with the latest security and recommended patches), there are a couple of things you have to do (most of this is from <a href="http://blogs.sun.com/constantin/entry/mediatomb_on_solaris">http://blogs.sun.com/constantin/entry/mediatomb_on_solaris</a> with some additional stuff I had to do:</p>
<p>1. Download the latest version of the &#8220;file&#8221; program from ftp://ftp.astron.com/pub/file/ (my case the current is 5.03)<br />
2. Unzip/untar the file<br />
3. Configure and run make:</p>
<div class="codesnip-container" >
<div class="codesnip" style="font-family: monospace;"><span class="kw2">gzip</span> -d file<span class="nu0">-5.03</span>.<span class="kw2">tar</span>.gz<br />
<span class="kw2">tar</span> -xvf file<span class="nu0">-5.03</span>.<span class="kw2">tar</span><br />
<span class="kw3">cd</span> file<span class="nu0">-5.03</span><br />
./configure &#8211;<span class="re2">prefix=</span>/usr/<span class="kw3">local</span>/<span class="kw2">file</span><br />
<span class="kw2">gmake</span><br />
<span class="kw2">su</span> &#8211; root -c <span class="st0">&quot;gmake install&quot;</span></div>
</div>
<p>3. There are a bunch of other requirements for mediatomb, the easiest way to get them is to use www.blastwave.org. The packages that I installed are:<br />
 CSWbdb4<br />
 CSWbzip2<br />
 CSWcurl<br />
 CSWcurlrt<br />
 CSWexpat<br />
 CSWfaac<br />
 CSWfaad2<br />
 CSWfconfig<br />
 CSWffmpeg<br />
 CSWffmpeglib<br />
 CSWftype2<br />
 CSWgcc3corert<br />
 CSWgcc3g++rt<br />
 CSWgcrypt<br />
 CSWggettext<br />
 CSWgpgerr<br />
 CSWiconv<br />
 CSWid3lib<br />
 CSWimlib2<br />
 CSWisaexec<br />
 CSWlame<br />
 CSWliba52<br />
 CSWlibid3tag<br />
 CSWlibidn<br />
 CSWlibnet<br />
 CSWlibogg<br />
 CSWlibsdl<br />
 CSWlibssh2<br />
 CSWlibtool<br />
 CSWlibtoolrt<br />
 CSWlibx11<br />
 CSWlibxau<br />
 CSWlibxcb<br />
 CSWlibxdmcp<br />
 CSWncurses<br />
 CSWoldaprt<br />
 CSWossl<br />
 CSWossldevel<br />
 CSWosslrt<br />
 CSWosslutils<br />
 CSWpixman<br />
 CSWpng<br />
 CSWsasl<br />
 CSWsdlmixer<br />
 CSWsqlite3<br />
 CSWsqlite3dev<br />
 CSWstl4<br />
 CSWsunmath<br />
 CSWtaglibgcc<br />
 CSWtheora<br />
 CSWtiff<br />
 CSWungif<br />
 CSWvorbis<br />
 CSWxvid<br />
 CSWzlib</p>
<p>4. Once these are installed, you can download mediatomb and compile it. <a href="http://mediatomb.cc/pages/download">http://mediatomb.cc/pages/download</a></p>
<div class="codesnip-container" >
<div class="codesnip" style="font-family: monospace;"><span class="kw2">gzip</span> -d mediatomb<span class="nu0">-0.11</span><span class="nu0">.0</span>.<span class="kw2">tar</span>.gz<br />
<span class="kw2">tar</span> -xvf mediatomb<span class="nu0">-0.11</span><span class="nu0">.0</span>.<span class="kw2">tar</span><br />
<span class="kw3">cd</span> mediatomb<span class="nu0">-0.11</span><span class="nu0">.0</span><br />
./configure &#8211;<span class="re2">prefix=</span>/mediatomb &#8211;enable-iconv-lib &#8211;with-iconv-<span class="re2">h=</span>/opt/csw/include &#8211;with-iconv-<span class="re2">libs=</span>/opt/csw/lib &#8211;enable-libmagic &#8211;with-magic-<span class="re2">h=</span>/usr/<span class="kw3">local</span>/<span class="kw2">file</span>/include &#8211;with-magic-<span class="re2">libs=</span>/usr/<span class="kw3">local</span>/<span class="kw2">file</span>/lib &#8211;with-taglib-<span class="re2">cfg=</span>/opt/csw/bin/taglib-config &#8211;with-curl-<span class="re2">cfg=</span>/opt/csw/bin/curl-config &#8211;with-sqlite3-<span class="re2">libs=</span>/opt/csw/lib &#8211;with-sqlite3-<span class="re2">h=</span>/opt/csw/include &#8211;with-<span class="re2">search=</span>/opt/csw &#8211;with-id3lib-<span class="re2">h=</span>/opt/csw/include &#8211;with-id3-<span class="re2">libs=</span>/opt/csw/lib<br />
<span class="kw2">gmake</span></div>
</div>
<p>However before you can run gmake, you need to edit a couple of files. One is the src/main.cc, you need to comment out lines 128 through 141. This is not needed for Solaris. The second file to edit is a result of this:</p>
<p>During the compile I got an error that looked like this:</p>
<div class="codesnip-container" >
<div class="codesnip" style="font-family: monospace;">../src/url.<span class="kw2">cc</span>:<span class="nu0">78</span>:<span class="nu0">53</span>: macro <span class="st0">&quot;curl_easy_setopt&quot;</span> requires <span class="nu0">3</span> arguments, but only <span class="nu0">2</span> given<br />
../src/url.<span class="kw2">cc</span>: In member <span class="kw1">function</span> `zmm::Ref&lt;zmm ::StringBuffer&gt; URL::download<span class="br0">&#40;</span>zmm::String, long int*, CURL*, bool, bool, bool<span class="br0">&#41;</span><span class="st0">&#8216;:<br />
../src/url.cc:78: warning: statement is a reference, not call, to function `curl_easy_setopt&#8217;</span></div>
</div>
<p>To fix it edit the src/url.cc file and on line 78 change it from this:</p>
<div class="codesnip-container" >
<div class="codesnip" style="font-family: monospace;">curl_easy_setopt<span class="br0">&#40;</span>curl_handle, CURLOPT_NOBODY<span class="br0">&#41;</span>;</div>
</div>
<p>to this :</p>
<div class="codesnip-container" >
<div class="codesnip" style="font-family: monospace;">curl_easy_setopt<span class="br0">&#40;</span>curl_handle, CURLOPT_NOBODY, <span class="nu0">1</span><span class="br0">&#41;</span>;</div>
</div>
<p>Then rerun gmake . Once the compile is finished, su to root and do a gmake install, it will place all the media tomb stuff in /mediatomb. (I am using a Zone on a Solaris 10 machine so / has plenty of space).</p>
<p>I then created a user for mediatomb to be run under, so a user and group called mediatmb were created, and all the /mediatomb directories and files were changed to be owned by mediatmb</p>
<p>Once that was done, login as the mediatmb user and create a script in /mediatmb/bin with the following in it:</p>
<div class="codesnip-container" >
<div class="codesnip" style="font-family: monospace;"><span class="re2">LD_LIBRARY_PATH=</span>/opt/csw/lib:/usr/<span class="kw3">local</span>/<span class="kw2">file</span>/lib:/usr/sfw/lib<br />
<span class="kw3">export</span> LD_LIBRARY_PATH<br />
./mediatomb &#8211;ip x.x.x.x &#8211;port <span class="nu0">49194</span> &#8211;daemon &#8211;pidfile /tmp/mediatomb.pid &#8211;<span class="re2">logfile=</span>/tmp/mediatomb.log</div>
</div>
<p>where x.x.x.x is the IP address of the machine you are running it on. In Constantin&#8217;s blog, he mentioned also using the interface, but I found that it had problems since this was a zone. So instead of using the interface, I used the IP address of the zone.</p>
<p>The changes I made to the config.xml in the ~/.mediatomb directory are as follows:</p>
<div class="codesnip-container" >-bash-3.00$ diff orig-config.xml config.xml<br />
6a7<br />
&gt;       &lt;account user=&#8221;unixwiz&#8221; password=&#8221;video&#8221;/&gt;<br />
23c24<br />
&lt; &lt;protocolInfo extend=&#8221;no&#8221;/&gt;&lt;!&#8211; For PS3 support change to &#8220;yes&#8221; &#8211;&gt;<br />
&#8212;<br />
&gt;     &lt;protocolinfo extend=&#8221;yes&#8221;/&gt;&lt;!&#8211; For PS3 support change to &#8220;yes&#8221; &#8211;&gt;<br />
44a46<br />
&gt;     &lt;magic -file&gt;/usr/local/file/share/misc/magic.mgc&lt;/magic&gt;<br />
46a49,50<br />
&gt;       &lt;map from=&#8221;mpg&#8221; to=&#8221;video/mpeg&#8221;/&gt;<br />
&gt;       &lt;map from=&#8221;JPG&#8221; to=&#8221;image/jpeg&#8221;/&gt;<br />
61c65<br />
&lt; &lt;!&#8211; &lt;map from=&#8221;avi&#8221; to=&#8221;video/divx&#8221;/&gt; &#8211;&gt;<br />
&#8212;<br />
&gt;         &lt;map from=&#8221;avi&#8221; to=&#8221;video/divx&#8221;/&gt;</div>
<p>Now all you have to do is login to the web interface and add the media, following mediatomb&#8217;s documentation.</p>
<p>Some interesting things I have found with it:</p>
<p>1. If your PS3 is on wireless it may have problems streaming mp4, but not mpeg2. Weird I know as the mpeg2 was solid streaming at 370kb/s, but it couldn&#8217;t handle the mp4. Switching to a hardwired connection fixed that problem.</p>
<p>2. If you happen to be a ReplayTV user [cause TiVO is a wanna be replay <img src='http://blogs.sungeek.net/unixwiz/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' />  ] you can use MediaTomb in conjunction with <a href="http://dvarchive.org/">DVArchive</a>, which also runs nicely in my Solaris zone. Just point a media directory at the Local_Guide directory and mediatomb will stream every MPEG2 file in that directory to your PS3. Which is pretty damn cool.</p>
<p>3. The PS3 is very pickly about it&#8217;s mp4 type files. Some that I made with <a href="http://handbrake.fr/">handbrake</a> don&#8217;t work, but ones I did with <a href="http://www.ffmpegx.com/">ffmpegx</a> worked once I put the hardwired connection in. </p>
<p>4. I have not tried any of the transcoding stuff. I would rather do that before and not bog down my server doing that.</p>
<p>5. I need to do a lot of reading on how to make folders and the such so that my collection is organized and not just all under one directory.</p>
<p>For those interested:<br />
My compile environment is setup like this:</p>
<div class="codesnip-container" >
<div class="codesnip" style="font-family: monospace;"><span class="re2">PATH=</span>/bin:/sbin:/usr/bin:/usr/sbin:/usr/sfw/bin:/usr/ccs/bin:/usr/<span class="kw3">local</span>/bin:/opt/csw/bin<br />
<span class="re2">SHELL=</span>/bin/tcsh</div>
</div>
<p></zmm></p>
]]></content:encoded>
			<wfw:commentRss>http://blogs.sungeek.net/unixwiz/2009/06/13/mediatomb-and-solaris-10/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>OpenSolaris vs Solaris</title>
		<link>http://blogs.sungeek.net/unixwiz/2008/10/13/opensolaris-vs-solaris/</link>
		<comments>http://blogs.sungeek.net/unixwiz/2008/10/13/opensolaris-vs-solaris/#comments</comments>
		<pubDate>Tue, 14 Oct 2008 01:23:39 +0000</pubDate>
		<dc:creator>unixwiz</dc:creator>
				<category><![CDATA[OpenSolaris]]></category>
		<category><![CDATA[Rant]]></category>
		<category><![CDATA[Solaris]]></category>
		<category><![CDATA[Zones/Containers]]></category>

		<guid isPermaLink="false">http://blogs.sungeek.net/unixwiz/?p=940</guid>
		<description><![CDATA[This weekend I went to install the new Communications Suite with Convergence and I decieded to install OpenSolaris 2008.5 on my machine and put the Comms Suite in a zone on it (so I could easily blow it away after my testing was done..) Let me be probably not the first to say that OpenSolaris [...]]]></description>
			<content:encoded><![CDATA[<p>This weekend I went to install the new <a href="http://www.sun.com/aboutsun/media/features/2008-0725/index.jsp">Communications Suite with Convergence</a> and I decieded to install <a href="http://www.opensolaris.com/">OpenSolaris 2008.5</a> on my machine and put the Comms Suite in a zone on it (so I could easily blow it away after my testing was done..)</p>
<p>Let me be probably not the first to say that OpenSolaris != Solaris.. I have been using Solaris 10 since it was in beta, and OpenSolaris through me for a couple of loops&#8230;</p>
<p>First are some of the cool things I liked:</p>
<p>1. The interface, it is updated and seemed a lot faster.</p>
<p>2. The ease of &#8220;patching&#8221; only took about half an hour to do a pkg image update.</p>
<p>3. Zfs root made it easy to roll back changes..</p>
<p>Now the parts that i had problems with and did not like too well.</p>
<p>1. I had to download a driver for my ethernet card as the one Sun delivers (sk98sol) is still too old and did not support my card which is one built on to a 3+ year old motherboard.</p>
<p>2. To create a zone, you MUST have a network connection (and at least to the internet for the time being). This really made me mad as I sometimes don&#8217;t have access to the Internet, and if I need to create a zone, I don&#8217;t want to have to wait for it to download 200+ Mb of packages, that are already on the machine in the first place.</p>
<p>3. No more &#8220;full root zones&#8221;, I created a zone in the hopes of installing the Comms Suite in it, only to find out that it was not a full root zone and stuff that is required by the Comms Installer to be there wasn&#8217;t and therefor I could not install it&#8230; Such simple things like unzip and perl are missing from the newly created zone.</p>
<p>In the end, I ended up reinstalling the box with Solaris 10 05/08, which was a task in itself. See when you install OpenSolaris it makes the root drive zfs, and did  some weird things to the VTOC. Therefore when I went in to do the install of the &#8220;older&#8221; Solaris 10 05/08, the installer would show me the disk, let me &#8220;carve&#8221; it up like I wanted in the gui and via command line, but when the install went to go on, the installer always came back saying that there was not enough disk to install Solaris. What I ended up having to do was go and do a &#8220;format -e&#8221; and then fdisk and delete the Solaris partition that was made by OpenSolaris, and let the Solaris installer create it&#8217;s own fdisk partition again.</p>
<p>So after finally getting Solaris 10 installed and the latest Recommended/Security/Sun Alert patches put on, I called it a night and left the Comms install for next weekend.</p>
<p>Overall I think OpenSolaris is going in the right direction, but there needs to be a lot of things fixed in it.. The biggest is the zones, there should be an option for &#8220;cloning&#8221; the already installed OS, since it is already on a ZFS pool. The second is that there should be an option when creating the zone as to what kind of zone it should be, whether a full (which would load every package, so you don&#8217;t have to try and do it  your self), sparse or maybe a new one called Jail which has everything in it read only.</p>
]]></content:encoded>
			<wfw:commentRss>http://blogs.sungeek.net/unixwiz/2008/10/13/opensolaris-vs-solaris/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Solaris 10 with zones and patching</title>
		<link>http://blogs.sungeek.net/unixwiz/2006/09/24/solaris-10-with-zones-and-patching/</link>
		<comments>http://blogs.sungeek.net/unixwiz/2006/09/24/solaris-10-with-zones-and-patching/#comments</comments>
		<pubDate>Sun, 24 Sep 2006 15:20:06 +0000</pubDate>
		<dc:creator>unixwiz</dc:creator>
				<category><![CDATA[Solaris]]></category>
		<category><![CDATA[Sun]]></category>
		<category><![CDATA[Work]]></category>
		<category><![CDATA[Zones/Containers]]></category>

		<guid isPermaLink="false">http://blogs.sungeek.net/unixwiz/?p=640</guid>
		<description><![CDATA[One little draw back I have noticed about using zones on solaris 10 is the amount of time it takes to patch a machine. Right now I am waiting on a SunFire 890 with 8 processors and 16gb of ram with 12 zones (counting the global) to finish patching. I started it at around 8:54 [...]]]></description>
			<content:encoded><![CDATA[<p>One little draw back I have noticed about using zones on solaris 10 is the amount of time it takes to patch a machine. Right now I am waiting on a SunFire 890 with 8 processors and 16gb of ram with 12 zones (counting the global) to finish patching. I started it at around 8:54 this morning and it is now 11:16 and there are still 2 or 3 patches left to go. Since all the zones are basicly sparse zones, I wonder why it takes so much longer to do the patching? I also hope all this patching fixes my <a href="http://blogs.sungeek.net/unixwiz/?p=636">Power supply problem</a> We have replaced the power supplies a couple of times, and the power distribution bored. I put the latest OBP on it this morning and it did not seem to fix it either. So hopefully after this set of patches are done, I will have a better idea whether it is a hardware or software problem.</p>
]]></content:encoded>
			<wfw:commentRss>http://blogs.sungeek.net/unixwiz/2006/09/24/solaris-10-with-zones-and-patching/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Interesting Sun Ray problem</title>
		<link>http://blogs.sungeek.net/unixwiz/2006/09/14/interesting-sun-ray-problem/</link>
		<comments>http://blogs.sungeek.net/unixwiz/2006/09/14/interesting-sun-ray-problem/#comments</comments>
		<pubDate>Fri, 15 Sep 2006 03:05:53 +0000</pubDate>
		<dc:creator>unixwiz</dc:creator>
				<category><![CDATA[Computer Hardware]]></category>
		<category><![CDATA[Interesting]]></category>
		<category><![CDATA[Solaris]]></category>
		<category><![CDATA[Sun]]></category>
		<category><![CDATA[Sun Ray]]></category>
		<category><![CDATA[Thin Clients]]></category>
		<category><![CDATA[Work]]></category>
		<category><![CDATA[Zones/Containers]]></category>

		<guid isPermaLink="false">http://blogs.sungeek.net/unixwiz/?p=636</guid>
		<description><![CDATA[I got called the other night by our operations group because the keyboard and mouse would not work on their 3 head group of Sun Ray 150&#8242;s. So I went in and killed their session and had them restart it, did not work. So I went looking in the log files and saw this: Sep [...]]]></description>
			<content:encoded><![CDATA[<p>I got called the other night by our operations group because the keyboard and mouse would not work on their 3 head group of Sun Ray 150&#8242;s. So I went in and killed their session and had them restart it, did not work. So I went looking in the log files and saw this:</p>
<div class="codesnip-container" >Sep 11 17:53:41 [10.198.11.221.2.2]  0&#215;0.0x1c392b7 0:3:ba:3c:1b:c1 USB: enable change: 2 lost enable state!<br />
Sep 11 17:53:41 [10.198.11.221.2.2]  0&#215;0.0x1c392b7 0:3:ba:3c:1b:c1 USB: enable change: 4 lost enable state!<br />
Sep 11 20:28:44 [10.198.11.221.2.2]  0&#215;0.0x2a1 0:3:ba:3c:1b:c1 USB: usb port 1 overcurrent<br />
Sep 11 20:28:46 [10.198.11.221.2.2]  0&#215;0.0&#215;307 0:3:ba:3c:1b:c1 USB: usb port 2 overcurrent<br />
Sep 11 20:28:46 [10.198.11.221.2.2]  0&#215;0.0x36d 0:3:ba:3c:1b:c1 USB: usb port 3 overcurrent<br />
Sep 11 20:28:47 [10.198.11.221.2.2]  0&#215;0.0x3d3 0:3:ba:3c:1b:c1 USB: usb port 4 overcurrent<br />
Sep 11 20:28:48 [10.198.11.221.2.2]  0&#215;0.0&#215;439 0:3:ba:3c:1b:c1 USB: usb port 5 overcurrent<br />
Sep 11 20:45:34 [10.198.11.221.2.2]  0&#215;0.0&#215;291 0:3:ba:3c:1b:c1 USB: usb hub port 4 overcurrent!<br />
Sep 11 20:45:35 [10.198.11.221.2.2]  0&#215;0.0x2f9 0:3:ba:3c:1b:c1 USB: usb hub port 1 overcurrent!<br />
Sep 11 20:45:36 [10.198.11.221.2.2]  0&#215;0.0x35f 0:3:ba:3c:1b:c1 USB: usb hub port 2 overcurrent!<br />
Sep 11 20:45:37 [10.198.11.221.2.2]  0&#215;0.0x3c5 0:3:ba:3c:1b:c1 USB: usb hub port 3 overcurrent!<br />
Sep 11 20:45:38 [10.198.11.221.2.2]  0&#215;0.0x42b 0:3:ba:3c:1b:c1 USB: usb hub port 5 overcurrent!<br />
Sep 11 20:46:21 [10.198.11.221.2.2]  0&#215;0.0&#215;304 0:3:ba:3c:1b:c1 USB: usb hub port 1 overcurrent!<br />
Sep 11 20:46:22 [10.198.11.221.2.2]  0&#215;0.0x36a 0:3:ba:3c:1b:c1 USB: usb hub port 2 overcurrent!<br />
Sep 11 20:46:23 [10.198.11.221.2.2]  0&#215;0.0x3d0 0:3:ba:3c:1b:c1 USB: usb hub port 3 overcurrent!<br />
Sep 11 20:46:24 [10.198.11.221.2.2]  0&#215;0.0&#215;436 0:3:ba:3c:1b:c1 USB: usb hub port 4 overcurrent!<br />
Sep 11 20:46:25 [10.198.11.221.2.2]  0&#215;0.0x49c 0:3:ba:3c:1b:c1 USB: usb hub port 5 overcurrent!</div>
<p>Well that could not be good. So I ended up going in to the office. Tried unplugging the Sun Ray and plugging it back in. This is when I saw the 9 D error icon. Nice little icon with a picture of a USB connector and a yellow triangle. So I unplugged it and disconnected the keyboard and mouse and then plugged it back in. Still got the same error. The funny thing about the error is, it is listed as this in the docs:</p>
<blockquote><p>This is an over current condition on the USB bus, i.e., the total number of devices draws too much current . Consider using a powered hub.</p></blockquote>
<p>So now I ended up swaping it out with one that was in my office and rebuilding the multi-head group, and they were all set. The interesting thing about it is that the status LED stayed green, instead of turning amber. So the next morning I tried it on a different server (the original server it was attached to is running SRSS 2.0 still) that was running SRSS 3.1, this time nothing showed up in the log files, but the Sun Ray still showed the USB 9 icon and the keyboard and mouse did not work. So I ended up calling it in for replacement. It is nice that the Sun Ray&#8217;s have a long warrenty period. This one was bought 2 or 3 years ago. </p>
<p>In an unrelated note, I have to go in early to get a power backplane replaced in one of our V890&#8242;s because we have went through three power supplies in the PS0 slot in under a month. The bad part about this is the 890 has 11 zones on it and 1TB of disk, so we are going to have some services out while Sun replaces the backplane and power supply. Hopefully this will fix it though.</p>
]]></content:encoded>
			<wfw:commentRss>http://blogs.sungeek.net/unixwiz/2006/09/14/interesting-sun-ray-problem/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Zfs on home server</title>
		<link>http://blogs.sungeek.net/unixwiz/2006/07/24/zfs-on-home-server/</link>
		<comments>http://blogs.sungeek.net/unixwiz/2006/07/24/zfs-on-home-server/#comments</comments>
		<pubDate>Tue, 25 Jul 2006 01:45:41 +0000</pubDate>
		<dc:creator>unixwiz</dc:creator>
				<category><![CDATA[Solaris]]></category>
		<category><![CDATA[ZFS]]></category>
		<category><![CDATA[Zones/Containers]]></category>

		<guid isPermaLink="false">http://blogs.sungeek.net/unixwiz/?p=614</guid>
		<description><![CDATA[Time to Backup 300+ gig of data: 8 hours Time to install Solaris 10 06/06 : 1 hour Time to fix the PATA controller card: 10 minutes Time to create a mirrored 387 gig ZFS file system: 5.2 seconds For some people MS Windows is the only thing they know, but for others if you [...]]]></description>
			<content:encoded><![CDATA[<p>Time to Backup 300+ gig of data: 8 hours<br />
Time to install Solaris 10 06/06 : 1 hour<br />
Time to fix the PATA controller card: 10 minutes<br />
Time to create a mirrored 387 gig ZFS file system: 5.2 seconds</p>
<p>For some people MS Windows is the only thing they know, but for others if you use Solaris and ZFS, things go much faster and are much better.</p>
<p>Now that I have a ZFS file system, I can clone my zones instead of having to install each one.  I really like zfs!</p>
<p>One note, that I came across creating a zfs file system. One of the disks previously had a ufs file system on it and it would not let me create the pool. to get around it I did this:</p>
<div class="codesnip-container" >
<div class="codesnip" style="font-family: monospace;">zpool create -f tempspace c1d0s0</div>
</div>
<p>The error that caused me to do this was:</p>
<div class="codesnip-container" ># zpool create tempspace c1d0s0<br />
invalid vdev specification<br />
use &#8216;-f&#8217; to override the following errors:<br />
/dev/dsk/c1d0s0 contains a ufs filesystem.</div>
]]></content:encoded>
			<wfw:commentRss>http://blogs.sungeek.net/unixwiz/2006/07/24/zfs-on-home-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Solaris on Sun AMD cheaper than linux on whitebox</title>
		<link>http://blogs.sungeek.net/unixwiz/2006/06/01/solaris-on-sun-amd-cheaper-than-linux-on-whitebox/</link>
		<comments>http://blogs.sungeek.net/unixwiz/2006/06/01/solaris-on-sun-amd-cheaper-than-linux-on-whitebox/#comments</comments>
		<pubDate>Thu, 01 Jun 2006 22:24:25 +0000</pubDate>
		<dc:creator>unixwiz</dc:creator>
				<category><![CDATA[Interesting]]></category>
		<category><![CDATA[Solaris]]></category>
		<category><![CDATA[Sun]]></category>
		<category><![CDATA[Zones/Containers]]></category>

		<guid isPermaLink="false">http://blogs.sungeek.net/unixwiz/?p=587</guid>
		<description><![CDATA[Just finished watching this video from Marc Andreeseen, talking about ning.com (New social web app site he has started). one of the things he talks about is the cost of using Linux vs Solaris, pretty interesting listen&#8230; The numbers he mentioned: They had assumed that Linux on white boxes would be their best option and [...]]]></description>
			<content:encoded><![CDATA[<p>Just finished watching <a href="http://news.com.com/1606-2-6034378.html">this video</a> from Marc Andreeseen, talking about ning.com (New social web app site he has started). one of the things he talks about is the cost of using Linux vs Solaris, pretty interesting listen&#8230;</p>
<p>The numbers he mentioned: They had assumed that Linux on white boxes would be their best option and cheapest option because of a total open source stack of software. These are fully loaded costs per server for 36 months, including electricity, space and support:</p>
<p>- Intel whitebox hardware + Linux software: $10,350<br />
- AMD whitebox hardware + Linux software: $9,180<br />
- Non-Sun AMD (whitebox) hardware + Solaris: $5,700<br />
- Sun&#8217;s AMD hardware + Solaris: $4,760</p>
<p>Pay close attention to the end of the video when he talks about Linux Support costs. </p>
]]></content:encoded>
			<wfw:commentRss>http://blogs.sungeek.net/unixwiz/2006/06/01/solaris-on-sun-amd-cheaper-than-linux-on-whitebox/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>TSM and Solaris containers</title>
		<link>http://blogs.sungeek.net/unixwiz/2006/04/11/tsm-and-solaris-containers/</link>
		<comments>http://blogs.sungeek.net/unixwiz/2006/04/11/tsm-and-solaris-containers/#comments</comments>
		<pubDate>Wed, 12 Apr 2006 02:33:45 +0000</pubDate>
		<dc:creator>unixwiz</dc:creator>
				<category><![CDATA[IBM]]></category>
		<category><![CDATA[Solaris]]></category>
		<category><![CDATA[Tivoli]]></category>
		<category><![CDATA[Zones/Containers]]></category>

		<guid isPermaLink="false">http://blogs.sungeek.net/unixwiz/?p=566</guid>
		<description><![CDATA[Since i have not had a chance yet to look at the new 5.3.3 client to see if/how they fixed the zones problem I will post how I did it. First off, for what ever reason IBM/Tivoli decided that the config files (dsm.sys/dsm.opt) should go in /usr/bin. Why I don&#8217;t have a clue but that [...]]]></description>
			<content:encoded><![CDATA[<p>Since i have not had a chance yet to look at the new 5.3.3 client to see if/how they fixed the zones problem I will post how I did it.</p>
<p>First off, for what ever reason IBM/Tivoli decided that the config files (dsm.sys/dsm.opt) should go in /usr/bin. Why I don&#8217;t have a clue but that is not a place where they should go. What is even worse is that when you install the client it puts symlinks to /usr/bin/dsm.[opt|sys] in the /opt/tivoli/tsm/client/ba/bin directory. </p>
<div class="codesnip-container" >/opt/tivoli/tsm/client/ba/bin> ls -la dsm.*<br />
lrwxrwxrwx   1 root     bin           33 Dec 21 08:21 dsm.opt -> ../../../../../../usr/bin/dsm.opt<br />
-r&#8211;r&#8211;r&#8211;   1 root     bin          782 May 18  2005 dsm.opt.smp<br />
lrwxrwxrwx   1 root     bin           33 Dec 21 08:21 dsm.sys -> ../../../../../../usr/bin/dsm.sys<br />
-r&#8211;r&#8211;r&#8211;   1 root     bin          971 May 18  2005 dsm.sys.smp</div>
<p>What is even better is how they make the symlinks&#8230; Any ways to get TSM to work in zones, what I did was change the order the symlinks are. I put the actual config files in /opt/tivoli/tsm/client/ba/bin and then did a symlink in /usr/bin to the /opt/tivoli/tsm/client/ba/bin directory in the global zone (as the /usr filesystem in the non global zones are read only), so now I have this:</p>
<div class="codesnip-container" >/usr/bin> ls -la dsm*<br />
lrwxrwxrwx   1 root     root          37 Jul 22  2005 dsm.opt -> /opt/tivoli/tsm/client/ba/bin/dsm.opt<br />
lrwxrwxrwx   1 root     root          37 Jul 22  2005 dsm.sys -> /opt/tivoli/tsm/client/ba/bin/dsm.sys</div>
<p>This way each zone can have their own dsm.[opt|sys].. There is one &#8220;gotcha&#8221; with this method, make sure you back up your files before you upgrade the client. I am not sure at the moment whether they would be removed if you upgrade the client or not. Technically the files  (dsm.[sys|opt]) should go in /etc and then symlinks from /usr/bin and /opt/tivoli/tsm/client/ba/bin to them.</p>
<p><b>N.B. This is probably unsupported by IBM and you use at your own risk.</b></p>
<p>Technorati Tags: <a href="http://technorati.com/tag/Tivoli" rel="tag">Tivoli</a>, <a href="http://technorati.com/tag/TSM" rel="tag">TSM</a>, <a href="http://technorati.com/tag/Solaris" rel="tag">Solaris</a>, <a href="http://technorati.com/tag/Containers" rel="tag">Containers</a>, <a href="http://technorati.com/tag/Zones" rel="tag">Zones</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blogs.sungeek.net/unixwiz/2006/04/11/tsm-and-solaris-containers/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>bigboy domain quirks</title>
		<link>http://blogs.sungeek.net/unixwiz/2006/03/27/bigboy-domain-quirks/</link>
		<comments>http://blogs.sungeek.net/unixwiz/2006/03/27/bigboy-domain-quirks/#comments</comments>
		<pubDate>Tue, 28 Mar 2006 03:53:13 +0000</pubDate>
		<dc:creator>unixwiz</dc:creator>
				<category><![CDATA[Interesting]]></category>
		<category><![CDATA[Solaris]]></category>
		<category><![CDATA[Zones/Containers]]></category>

		<guid isPermaLink="false">http://blogs.sungeek.net/unixwiz/?p=559</guid>
		<description><![CDATA[Well I had 120+ zones created and then the script stopped.. I ran out of inodes on my 1.1TB file system. So I deleted the zones and recreated the file system with the -T option to see if that will help any.. On a side bar, I decided to see exactly how fast this domain [...]]]></description>
			<content:encoded><![CDATA[<p>Well I had 120+ zones created and then the script stopped.. I ran out of inodes on my 1.1TB file system. So I deleted the zones and recreated the file system with the -T option to see if that will help any..</p>
<p>On a side bar, I decided to see exactly how fast this domain was. (Wish I would have got one of the trial T2000 machines to compare againest, but that is another story).. So my test was to see how long it would take to compile Apache + PHP on the machine. Here are the results:</p>
<p>Compiling PHP 5.0.4</p>
<p>Single thread using make and gcc</p>
<p>real    2m27.49s<br />
user    2m10.31s<br />
sys     0m7.35s</p>
<p>Single thread using gmake and gcc<br />
real    2m26.58s<br />
user    2m10.26s<br />
sys     0m7.02s</p>
<p>48 threads using gmake and gcc<br />
real    0m16.00s<br />
user    2m14.58s<br />
sys     0m12.58s</p>
<p>Apache+PHP<br />
Single thread using make and gcc<br />
real    0m14.63s<br />
user    0m10.38s<br />
sys     0m1.15s</p>
<p>Single thread using gmake and gcc<br />
real    0m14.33s<br />
user    0m10.33s<br />
sys     0m1.08s</p>
<p>48 threads with gmake and gcc<br />
real    0m4.02s<br />
user    0m10.47s<br />
sys     0m1.94s</p>
<p>Needless to say it is pretty darn fast. Need to find something a little larger to play with and maybe use the Sun Studio Compilers to see how much of a difference that makes.</p>
]]></content:encoded>
			<wfw:commentRss>http://blogs.sungeek.net/unixwiz/2006/03/27/bigboy-domain-quirks/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Overhead of Software raid.</title>
		<link>http://blogs.sungeek.net/unixwiz/2006/03/25/overhead-of-software-raid/</link>
		<comments>http://blogs.sungeek.net/unixwiz/2006/03/25/overhead-of-software-raid/#comments</comments>
		<pubDate>Sun, 26 Mar 2006 04:15:59 +0000</pubDate>
		<dc:creator>unixwiz</dc:creator>
				<category><![CDATA[Solaris]]></category>
		<category><![CDATA[Sun]]></category>
		<category><![CDATA[X2100]]></category>
		<category><![CDATA[Zones/Containers]]></category>

		<guid isPermaLink="false">http://blogs.sungeek.net/unixwiz/?p=556</guid>
		<description><![CDATA[Well as I posted the other day about the E25K domain and creating zones. I have started to create some zones on the X2100 tonight. With 2 SATA drives mirrored, and the machine idle it takes 6:32 minutes to create a zone. So almost twice as long as the E25K machine with the 1.1TB file [...]]]></description>
			<content:encoded><![CDATA[<p>Well as I posted the other day about the E25K domain and creating zones. I have started to create some zones on the X2100 tonight. With 2 SATA drives mirrored, and the machine idle it takes 6:32 minutes to create a zone. So almost twice as long as the E25K machine with the 1.1TB file system stripped across 17 drives and 6 SCSI controllers. Compared to the V890 which has a 3 disk raid 5 array, it would appear that using the SVM software raid is a real performance hit. The drives in the V890 are even fibre channel drives, but it still takes 30 minutes to create a zone on that machine. So how do we speed it up? not sure at the moment. On the one v890 I have Solaris 10 on, I have to quit using Raid 5 for the zones file system and went to Raid 10 (1+0) to get it to speed up, but unfortunatly I did not have enough drives in the second V890 to do that. If any one has any good tips on how to speed up SVM Raid 5 array&#8217;s let me know.</p>
]]></content:encoded>
			<wfw:commentRss>http://blogs.sungeek.net/unixwiz/2006/03/25/overhead-of-software-raid/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Large Sun Domain</title>
		<link>http://blogs.sungeek.net/unixwiz/2006/03/23/large-sun-domain/</link>
		<comments>http://blogs.sungeek.net/unixwiz/2006/03/23/large-sun-domain/#comments</comments>
		<pubDate>Fri, 24 Mar 2006 00:22:29 +0000</pubDate>
		<dc:creator>unixwiz</dc:creator>
				<category><![CDATA[Interesting]]></category>
		<category><![CDATA[Solaris]]></category>
		<category><![CDATA[Work]]></category>
		<category><![CDATA[Zones/Containers]]></category>

		<guid isPermaLink="false">http://blogs.sungeek.net/unixwiz/?p=553</guid>
		<description><![CDATA[We installed some new UltraSparc IV+ boards in our E25K yesterday, and to &#8220;test&#8221; the new boards, we decided to make one huge domain. (it is not every day I get to play with a large domain like this, usually they are 8 or 16 way). Well the domain has 24 cores, and 98GB of [...]]]></description>
			<content:encoded><![CDATA[<p>We installed some new UltraSparc IV+ boards in our E25K yesterday, and to &#8220;test&#8221; the new boards, we decided to make one huge domain. (it is not every day I get to play with a large domain like this, usually they are 8 or 16 way). Well the domain has 24 cores, and 98GB of ram, and 1.1 TeraBytes of disk. What better way to test it then install Solaris 10 and create as many zones as I can. I started the process this morning, and each zone took about 3.5 minutes to create. (I was doing one at a time, assigning 254 zones per ethernet card, and with 12 ethernet cards, I figured I could get about 3048 zones on the machine. After 7 hours I have 120 zones on the machine, but unfortunatly I have to shut the domain down as it appears one of our System Controllers (SC1) fried it self, and we can&#8217;t turn it off or on, so Sun will be in tonight and we are going to shut the whole box down and replace the bad SC and then boot it back up. I think once that is done, I will start the script back up again and let it run all night, 3 of them at a time. Needless to say this box &#8220;spanked&#8221; my v890 with 8 x 1.2GHZ UltraVI cores with 16 gig of ram. I created a zone on it today and it took about 30 minutes to do on that machine.</p>
<p>Output from creating one zone on the E25K:</p>
<div class="codesnip-container" ># zonecfg -z oscar -f oscar.cfg<br />
# time zoneadm -z oscar install<br />
Preparing to install zone <oscar>.<br />
Creating list of files to copy from the global zone.<br />
Copying &lt;2573> files to the zone.<br />
Initializing zone product registry.<br />
Determining zone package initialization order.<br />
Preparing to initialize &lt;917> packages on the zone.<br />
Initialized &lt;917> packages on zone.<br />
Zone </oscar><oscar> is initialized.<br />
The file  contains a log of the zone installation.</p>
<p>real     3:29.7<br />
user       57.9<br />
sys      1:18.3<br />
</oscar></div>
]]></content:encoded>
			<wfw:commentRss>http://blogs.sungeek.net/unixwiz/2006/03/23/large-sun-domain/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
