<?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; tip</title>
	<atom:link href="http://www.torkwrench.com/category/tip/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>Wed, 04 Jan 2012 22:33:20 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Getting the IBM Bootable Media Creator (BoMC) to run on Ubuntu 10.04</title>
		<link>http://www.torkwrench.com/2011/12/30/getting-the-ibm-bootable-media-creator-bomc-to-run-on-ubuntu-10-04/</link>
		<comments>http://www.torkwrench.com/2011/12/30/getting-the-ibm-bootable-media-creator-bomc-to-run-on-ubuntu-10-04/#comments</comments>
		<pubDate>Thu, 29 Dec 2011 23:11:26 +0000</pubDate>
		<dc:creator>Graham</dc:creator>
				<category><![CDATA[howto]]></category>
		<category><![CDATA[tip]]></category>

		<guid isPermaLink="false">http://www.torkwrench.com/?p=372</guid>
		<description><![CDATA[How to get the IBM Bootable Media Creator (BoMC) to run on Ubuntu <a href="http://www.torkwrench.com/2011/12/30/getting-the-ibm-bootable-media-creator-bomc-to-run-on-ubuntu-10-04/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>IBM Bootable Media Creator (BoMC) is a  nifty tool that will create a customized boot iso for installing drivers and firmware on your System x machines. You tell BoMC what hardware you are running and it  goes out and downloads all the latest firmware, and then it wraps it up in an iso that you can boot from to update the hardware.</p>
<p>If you&#8217;d like to create your BoMC iso using Ubuntu , you might&#8217;ve noticed that BoMC doesn&#8217;t support it.</p>
<p>I&#8217;m on 10.04 and found that using the RHEL5 binary worked. At the time of writing, the name of the file is ibm_utl_bomc_3.00_rhel5_i386.bin . I tried the RHEL6 one first and it complained about a missing libssl library (libssl.so.10) so I would guess if you are on a newer version of Ubuntu, you should use this one instead.</p>
<p>You might see this error when executing it, and it will cause the downloads to fail</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">Can't find OS info file!</div></div>
<p>Simply execute this to create an Redhat release file at /etc/redhat-release , and this will make BoMC work.</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">sudo echo &quot;Red Hat Enterprise Linux Server release 5.0 (Santiago)&quot; &gt; /etc/redhat-release</div></div>
<p>Then simply execute it like this, put in your machine details, and out comes the iso:</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">sudo ./ibm_utl_bomc_3.00_rhel5_i386.bin</div></div>
]]></content:encoded>
			<wfw:commentRss>http://www.torkwrench.com/2011/12/30/getting-the-ibm-bootable-media-creator-bomc-to-run-on-ubuntu-10-04/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>D-Bus library appears to be incorrectly set up; failed to read machine uuid: Failed to open &#8220;/var/lib/dbus/machine-id&#8221;</title>
		<link>http://www.torkwrench.com/2011/12/16/d-bus-library-appears-to-be-incorrectly-set-up-failed-to-read-machine-uuid-failed-to-open-varlibdbusmachine-id/</link>
		<comments>http://www.torkwrench.com/2011/12/16/d-bus-library-appears-to-be-incorrectly-set-up-failed-to-read-machine-uuid-failed-to-open-varlibdbusmachine-id/#comments</comments>
		<pubDate>Fri, 16 Dec 2011 04:24:17 +0000</pubDate>
		<dc:creator>Graham</dc:creator>
				<category><![CDATA[tip]]></category>

		<guid isPermaLink="false">http://www.torkwrench.com/?p=366</guid>
		<description><![CDATA[How to solve the problem of not having a machine-id file on Linux <a href="http://www.torkwrench.com/2011/12/16/d-bus-library-appears-to-be-incorrectly-set-up-failed-to-read-machine-uuid-failed-to-open-varlibdbusmachine-id/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>A simple fix for once. I usually see this problem when I&#8217;ve installed a barebones / headless system and then wanted to add xorg to it later.</p>
<p>This particular time, this error cropped up when trying to run Eclipse Memory Analyzer over a X11 Forwarding session using SSH. Eclipse would throw this error and fail to start.</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">process 3104: D-Bus library appears to be incorrectly set up; failed to read machine uuid: Failed to open &quot;/var/lib/dbus/machine-id&quot;: No such file or directory<br />
See the manual page for dbus-uuidgen to correct this issue.<br />
&nbsp; D-Bus not built with -rdynamic so unable to print a backtrace<br />
JVMDUMP006I Processing dump event &quot;abort&quot;, detail &quot;&quot; - please wait.<br />
JVMDUMP032I JVM requested System dump using '/root/mem/mat/core.20111216.145922.3104.0001.dmp' in response to an event<br />
JVMDUMP010I System dump written to /root/mem/mat/core.20111216.145922.3104.0001.dmp<br />
JVMDUMP032I JVM requested Java dump using '/root/mem/mat/javacore.20111216.145922.3104.0002.txt' in response to an event<br />
JVMDUMP010I Java dump written to /root/mem/mat/javacore.20111216.145922.3104.0002.txt<br />
JVMDUMP032I JVM requested Snap dump using '/root/mem/mat/Snap.20111216.145922.3104.0003.trc' in response to an event<br />
JVMDUMP010I Snap dump written to /root/mem/mat/Snap.20111216.145922.3104.0003.trc<br />
JVMDUMP013I Processed dump event &quot;abort&quot;, detail &quot;&quot;.</div></div>
<p>To fix it, 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">dbus-uuidgen &gt; /var/lib/dbus/machine-id</div></div>
<p>If you don&#8217;t have dbus-uuidgen , it&#8217;s in the <strong>dbus</strong> package, which can be installed by issuing yum install dbus (of course!).</p>
<p>Happy weekend!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.torkwrench.com/2011/12/16/d-bus-library-appears-to-be-incorrectly-set-up-failed-to-read-machine-uuid-failed-to-open-varlibdbusmachine-id/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>What sort of disk is VMware ESXi running on?</title>
		<link>http://www.torkwrench.com/2011/09/14/what-sort-of-disk-is-vmware-esxi-running-on/</link>
		<comments>http://www.torkwrench.com/2011/09/14/what-sort-of-disk-is-vmware-esxi-running-on/#comments</comments>
		<pubDate>Wed, 14 Sep 2011 02:25:13 +0000</pubDate>
		<dc:creator>Graham</dc:creator>
				<category><![CDATA[tip]]></category>

		<guid isPermaLink="false">http://www.torkwrench.com/?p=332</guid>
		<description><![CDATA[How to tell which disk VMware ESXi is booting from. <a href="http://www.torkwrench.com/2011/09/14/what-sort-of-disk-is-vmware-esxi-running-on/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>#Edit 5th Jan, 2012#<br />
OMG &#8211; Don&#8217;t read all this crap, I&#8217;ve stumbled on how to actually do this properly. Just run this:</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">~ # esxcfg-info -e<br />
boot type: visor-usb</div></div>
<p>Boom!</p>
<p>#Original Post#<br />
We&#8217;re working on a boot from SAN &#8216;modernization&#8217; project at the moment. Which is another way to say we&#8217;re getting rid of it. It&#8217;s way too complicated! And if the SAN goes down, all the boot partitions go with it. This just introduces an extra dependency that can completely nullify any fault tolerant or HA strategies that you may have in place in the vSphere layer. No prizes for guessing who this has happened to recently!</p>
<p>What to do instead? The new HS22V blade systems we are using have a tiny little usb port on the motherboard where you can install a USB key. Load ESXi on it, and you&#8217;re golden.</p>
<p><a href="http://www.torkwrench.com/wp-content/uploads/2011/09/usb-key.jpg"><img src="http://www.torkwrench.com/wp-content/uploads/2011/09/usb-key.jpg" alt="The key " title="usb-key" width="320" height="240" class="aligncenter size-full wp-image-333" /></a></p>
<p>So I need to make a list of which hosts need fixing up and which are booting from usb already or are using local storage. We&#8217;d started this process recently but want to step it up now. But which ESXi machines in the farm are booting from what ? How can you tell?</p>
<p>With fdisk of course &#8211; simply enable Remote Tech Support mode (<a href="http://kb.vmware.com/kb/1017910">see here for details</a>) and ssh into your host.</p>
<p>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">fdisk -l</div></div>
<p>and look for the &#8216;*&#8217; in the boot column. That&#8217;s the partition that ESXi is booting from. If you see a device called /dev/disks/mpx.vmhba32:C0:T0:L0 , you&#8217;re booting from usb. If the device is something more like /dev/disks/naa.600508e000000000194a56b4310b4804 you are booting from SAN or a local disk. </p>
<p>Here&#8217;s the fdisk output for my usb stick.</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">Disk /dev/disks/mpx.vmhba32:C0:T0:L0: 2038 MB, 2038431744 bytes<br />
64 heads, 32 sectors/track, 1944 cylinders<br />
Units = cylinders of 2048 * 512 = 1048576 bytes<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Device Boot &nbsp; &nbsp; &nbsp;Start &nbsp; &nbsp; &nbsp; &nbsp; End &nbsp; &nbsp; &nbsp;Blocks &nbsp;Id System<br />
/dev/disks/mpx.vmhba32:C0:T0:L0p1 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 5 &nbsp; &nbsp; &nbsp; 900 &nbsp; &nbsp;917504 &nbsp; &nbsp;5 &nbsp;Extended<br />
/dev/disks/mpx.vmhba32:C0:T0:L0p4 &nbsp; * &nbsp; &nbsp; &nbsp; &nbsp; 1 &nbsp; &nbsp; &nbsp; &nbsp; 4 &nbsp; &nbsp; &nbsp;4080 &nbsp; &nbsp;4 &nbsp;FAT16 &lt;32M<br />
/dev/disks/mpx.vmhba32:C0:T0:L0p5 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 5 &nbsp; &nbsp; &nbsp; 254 &nbsp; &nbsp;255984 &nbsp; &nbsp;6 &nbsp;FAT16<br />
/dev/disks/mpx.vmhba32:C0:T0:L0p6 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 255 &nbsp; &nbsp; &nbsp; 504 &nbsp; &nbsp;255984 &nbsp; &nbsp;6 &nbsp;FAT16<br />
/dev/disks/mpx.vmhba32:C0:T0:L0p7 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 505 &nbsp; &nbsp; &nbsp; 614 &nbsp; &nbsp;112624 &nbsp; fc &nbsp;VMKcore<br />
/dev/disks/mpx.vmhba32:C0:T0:L0p8 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 615 &nbsp; &nbsp; &nbsp; 900 &nbsp; &nbsp;292848 &nbsp; &nbsp;6 &nbsp;FAT16</div></div>
]]></content:encoded>
			<wfw:commentRss>http://www.torkwrench.com/2011/09/14/what-sort-of-disk-is-vmware-esxi-running-on/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Replacing an NetApp NVRAM IV battery</title>
		<link>http://www.torkwrench.com/2010/10/13/replacing-an-netapp-nvram-iv-battery/</link>
		<comments>http://www.torkwrench.com/2010/10/13/replacing-an-netapp-nvram-iv-battery/#comments</comments>
		<pubDate>Tue, 12 Oct 2010 23:41:08 +0000</pubDate>
		<dc:creator>Graham</dc:creator>
				<category><![CDATA[tip]]></category>
		<category><![CDATA[dodgy hack]]></category>
		<category><![CDATA[FAS960C]]></category>
		<category><![CDATA[Filer]]></category>
		<category><![CDATA[NetApp]]></category>

		<guid isPermaLink="false">http://www.torkwrench.com/?p=274</guid>
		<description><![CDATA[How to replace your old NetApp Filer NVRAM IV battery. <a href="http://www.torkwrench.com/2010/10/13/replacing-an-netapp-nvram-iv-battery/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.torkwrench.com/2010/08/17/how-to-overide-a-netapp-filer-missing-battery-shutdown/">Earlier </a>I posted about how to stop your NetApp Filer from shutting itself down every 24 hours if it had a bad battery. Clearly this isn&#8217;t the best solution, it would probably be better to replace the battery completely. Then you get the benefit of battery backed cache if you have the bad luck to lose power.</p>
<p>So to try to fix this situation, I had a really good hunt on the internet for sites selling a battery specific to this model. The best I could find was a company that would sell me a whole new NVRAM IV card for $2500 USD! At least it had a refurbished battery, but it was a little more than I wanted to spend.</p>
<p>I ended up taking the battery to a auto battery shop on a lark and the guy there reckoned he could sort me out. I left the original one with him for around two weeks. He ended up selling me a Sanyo SCB-53P0941 . It cost about $80 bucks. It was a little bit bigger than the original one and wouldn&#8217;t fit on the NVRAM IV housing, so I lashed it in place with a cable tie. </p>
<div id="attachment_277" class="wp-caption aligncenter" style="width: 650px"><a href="http://www.torkwrench.com/wp-content/uploads/2010/10/img_0345-Modified.jpg"><img src="http://www.torkwrench.com/wp-content/uploads/2010/10/img_0345-Modified-1024x771.jpg" alt="As you can see from this horrible photo, I have an old iPhone." title="fas960c battery" width="640" height="481" class="size-large wp-image-277" /></a><p class="wp-caption-text">As you can see from this horrible photo, I have an old iPhone.</p></div>
<p>It took about a day to charge up but now it looks like things are good, as you can see by the log below:</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">netapp*&gt; environment status chassis NVRAM4-battery-7<br />
NVRAM4-battery-7 ok.<br />
netapp*&gt;</div></div>
<p>The original battery looked like it had a chip in it, so I thought it might need to grafted on to the new battery, but it&#8217;s pretty stock. Now you can sleep at night, knowing that you won&#8217;t lose any data. Obviously, this is very dodgy and you shouldn&#8217;t connect some battery that a random dude in an auto parts store sent you. Our NetApp Filer (FAS960C) is so old that it is out of support, so I had nothing to lose, and the information for a blog post to gain.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.torkwrench.com/2010/10/13/replacing-an-netapp-nvram-iv-battery/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to get rid of SECJ0055E error message in WebSphere Portal</title>
		<link>http://www.torkwrench.com/2010/10/12/how-to-get-rid-of-secj0055e-error-message-in-websphere-portal/</link>
		<comments>http://www.torkwrench.com/2010/10/12/how-to-get-rid-of-secj0055e-error-message-in-websphere-portal/#comments</comments>
		<pubDate>Mon, 11 Oct 2010 23:44:34 +0000</pubDate>
		<dc:creator>Graham</dc:creator>
				<category><![CDATA[howto]]></category>
		<category><![CDATA[tip]]></category>
		<category><![CDATA[portal]]></category>
		<category><![CDATA[Portal 6.0]]></category>
		<category><![CDATA[Portal 6.1]]></category>
		<category><![CDATA[WebSphere Application Server]]></category>
		<category><![CDATA[WebSphere Portal]]></category>

		<guid isPermaLink="false">http://www.torkwrench.com/?p=266</guid>
		<description><![CDATA[SECJ0055E is a WebSphere error message you might see in your SystemOut.log if you have changed your WAS Admin Password. Here is how to get rid of the message. <a href="http://www.torkwrench.com/2010/10/12/how-to-get-rid-of-secj0055e-error-message-in-websphere-portal/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>On a Portal 6.0 server I&#8217;m working on, I kept seeing the following error message in my SystemOut.log . It came up every half hour.</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">[10/11/10 12:17:41:439 EST] 0000005b MethodDelegat A &nbsp; SECJ0055E: Authentication failed for wasadmin. The user id or password may have been entered incorrectly or misspelled. &nbsp;The user id may not exist, the account could have expired or disabled. &nbsp;The password may have expired.</div></div>
<p>But my Was Password was correct. I had set it myself and just used it to log into the admin console. </p>
<p>The key is the &#8220;MethodDelegat&#8221; part of the log message. This column is the source of the log message.  &#8220;Delegate method&#8221; made me think of bundled applications that use the RunAsRole . The pznscheduler application runs on a schedule, and sure enough also has a RunAsRole associated with it. </p>
<p>So what has happened, is that the WAS password has changed but the password is also saved with the pznscheduler application, and that saved password hasn&#8217;t been changed. Quite simply, there is a mismatch. This can happen on 6.1 and 7.0, and may also be related to the Portal Admin Password &#8211; it just depends which user is mapped as the RunAsRole . There are more applications that use the RunAsRole for Portal 6.0 .</p>
<p>For 6.0 here are the default out of the box applications you need to worry about when changing the password. LWP_TAI, pznscheduler, LWP_CAI, LWP_Security_Ext.</p>
<p>Of course, you may have other custom applications you need to worry about. The LWP apps use the Portal Admin user by default, so that&#8217;s why I didn&#8217;t have to change them.</p>
<p>For 6.1 you should check pznscheduler and CatalogHandler and for 7.0 the pznscheduler application is the only one you need to worry about. </p>
<p>So to fix it up, if you log into the WAS Admin Console and look for the pznscheduler app in the list of Enterprise Applications, you will see the &#8220;Map RunAs roles to users&#8221; link like in the picture below.</p>
<p><a href="http://www.torkwrench.com/wp-content/uploads/2010/10/runas1.png"><img src="http://www.torkwrench.com/wp-content/uploads/2010/10/runas1.png" alt="" title="runas" width="908" height="683" class="aligncenter size-full wp-image-271" /></a></p>
<p>Then in the next dialog, reenter the new password.</p>
<p><a href="http://www.torkwrench.com/wp-content/uploads/2010/10/runas2.png"><img src="http://www.torkwrench.com/wp-content/uploads/2010/10/runas2.png" alt="" title="runas2" width="728" height="683" class="aligncenter size-full wp-image-269" /></a></p>
<p>This dialog can be a bit funny so you may have to play around with it a bit. Restart Portal and the error should be gone!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.torkwrench.com/2010/10/12/how-to-get-rid-of-secj0055e-error-message-in-websphere-portal/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to add additional packages to a CentOS repo</title>
		<link>http://www.torkwrench.com/2010/10/07/how-to-add-additional-packages-to-a-centos-repo/</link>
		<comments>http://www.torkwrench.com/2010/10/07/how-to-add-additional-packages-to-a-centos-repo/#comments</comments>
		<pubDate>Thu, 07 Oct 2010 00:07:09 +0000</pubDate>
		<dc:creator>Graham</dc:creator>
				<category><![CDATA[random]]></category>
		<category><![CDATA[tip]]></category>
		<category><![CDATA[createrepo rpm fedora centos]]></category>

		<guid isPermaLink="false">http://www.torkwrench.com/?p=262</guid>
		<description><![CDATA[How to add packages to a CentOS repo. <a href="http://www.torkwrench.com/2010/10/07/how-to-add-additional-packages-to-a-centos-repo/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>About 6 months ago, I posted instructions about how to add rpm packages to your local Fedora repository. The recommendations I made there don&#8217;t apply to CentOS in specific circumstances.</p>
<p>So I wanted to add an rpm for the Rational Build Forge agent to my CentOS install tree. The machine that hosts my RHEL/CentOS/Fedora repositories is an old Fedora 10 machine. One of the reasons why I blog about this stuff is to keep notes, so when I forget how to do something, it is easy to go back and  copy and paste the esoteric command I am looking for. So I looked up the old post on how to add packages to a repo and after copying in the Build Forge rpm, I ran the following command:</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">createrepo --update -g repodata/comps.xml .</div></div>
<p>Then I edited my kickstart file to include the new package and tried to run the install. Immediately I got the following error:</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">&quot;Unable to read package metadata. This may be due to a missing repodata directory. Please ensure that your install tree has been correctly generated. failure: repodata/primary/xml.gz from anaconda-base-200901061732.x86_64: [Errno 256] No more mirrors to try.&quot;</div></div>
<p>The command createrepo looks over your rpms and creates a bunch of metadata for them that yum reads when deciding to do updates. This metadata is saved in a folder called repodata, and I thought that the resulting folder might&#8217;ve been at the wrong tree. So I kept rerunning the install with the repodata folder in different places, all the while watching the apache logs to make sure the installer was hitting the right places and not getting too many 404 errors. This didn&#8217;t seem to be going anywhere until eventually I found an interesting bug report <a href="https://fedorahosted.org/cobbler/ticket/463">here.</a> </p>
<p>Apparently the createrepo command has changed at 0.9.7. The default checksum routine that it now uses is sha256, where before it just used sha. You will recall that the server I am using as a repository is a Fedora 10 machine. The CentOS/RHEL version of the installation engine (named anaconda) doesn&#8217;t understand sha256, only the older sha checksum routine. So when the CentOS version of anaconda hits a repodata folder generated by createrepo running on Fedora 10, it just sees it as garbage. </p>
<p>The workaround is to force createrepo to use the sha algorithm, like so:</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">createrepo -s sha -o . -g repodata/comps.xml .</div></div>
<p>If you had a CentOS/RHEL only environment, this obviously wouldn&#8217;t happen, so this problem is quite localized. And will almost definitely go away with RHEL6, because that version of anaconda will be able to understand sha256. </p>
]]></content:encoded>
			<wfw:commentRss>http://www.torkwrench.com/2010/10/07/how-to-add-additional-packages-to-a-centos-repo/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<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>Why doesn&#8217;t the WCM authoring portlet come up after installing Portal?</title>
		<link>http://www.torkwrench.com/2010/06/30/why-doesnt-the-wcm-authoring-portlet-come-up-after-installing-portal/</link>
		<comments>http://www.torkwrench.com/2010/06/30/why-doesnt-the-wcm-authoring-portlet-come-up-after-installing-portal/#comments</comments>
		<pubDate>Wed, 30 Jun 2010 01:29:46 +0000</pubDate>
		<dc:creator>Graham</dc:creator>
				<category><![CDATA[tip]]></category>

		<guid isPermaLink="false">http://www.torkwrench.com/?p=245</guid>
		<description><![CDATA[Possible reasons why the WCM authoring portlet doesn't display on a new install of Portal. <a href="http://www.torkwrench.com/2010/06/30/why-doesnt-the-wcm-authoring-portlet-come-up-after-installing-portal/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Hey a Q and A post! Let&#8217;s hope the Q gets &#8216;A-ed&#8217;. </p>
<p>Peter commented on my <a href="http://www.torkwrench.com/2009/05/04/getting-websphere-portal-to-install-on-ubuntu/">post</a> about installing Portal on Ubuntu, and my response got a bit long, so I thought it might might a good post by itself.</p>
<p>Peter writes: </p>
<p><em>got thru the install but WCM doesnt appear in the admin (for libraries) or UI. can you confirm you can see the WCM stuff in yr portal? and maybe share wpinstalllog.txt with me?</em></p>
<p>Hey Peter,</p>
<p>When WCM doesn&#8217;t come up, it could be a couple of things : </p>
<p>The simplest explanation is that you&#8217;ve selected the &#8216;admin&#8217; install in the setup wizard, so you get a blank Portal out of the box. You can validate this in the PortalServer/wps.properties file, the property <strong>WPInstallType</strong> will tell you what sort of install you have done. To add WCM to an admin install, run the task:</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">wp_profile/ConfigEngine/ConfigEngine.sh configure-wcm-authoring -DPortalAdminPwd=&lt;password&gt; -DWasPassword=&lt;password&gt; .</div></div>
<p>Log into Portal and you should see the WCM stuff under the content tab.</p>
<p>It could also be that you have installed the server version of Portal. Check the file PortalServer/wps.properties and check the value of <strong>WPFamilyName</strong> . It should read WPFamilyName=content. If it says something else you&#8217;ve installed the &#8216;server&#8217; version of the software &#8211; which doesn&#8217;t include WCM. This is the worst problem because you basically have to reinstall again &#8211; there&#8217;s no way to add WCM to a server version. You can see which downloaded files make up each version of Portal in the download documents for each release. The download document for the server version is <a href="http://www-01.ibm.com/support/docview.wss?uid=swg24024422">here</a>, and the content version is <a href="http://www-01.ibm.com/support/docview.wss?rs=688&#038;uid=swg24024338">here</a>.  I hope this isn&#8217;t your problem <img src='http://www.torkwrench.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  </p>
<p>With 6.0 (not valid for 6.1, but I&#8217;ll include it anyway), on Linux you can get a problem where the WCM authoring page and portlet are there, but don&#8217;t render properly &#8211; the inside of the portlet is just blank. I&#8217;ve covered this before in this <a href="http://www.torkwrench.com/2009/04/01/javalangunsatisfiedlinkerror/">post.</a>  </p>
<p>Let us know how you go Peter!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.torkwrench.com/2010/06/30/why-doesnt-the-wcm-authoring-portlet-come-up-after-installing-portal/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>mod_was_ap22_http.so wrong ELF class: ELFCLASS32</title>
		<link>http://www.torkwrench.com/2010/06/09/mod_was_ap22_http-so-wrong-elf-class-elfclass32/</link>
		<comments>http://www.torkwrench.com/2010/06/09/mod_was_ap22_http-so-wrong-elf-class-elfclass32/#comments</comments>
		<pubDate>Tue, 08 Jun 2010 22:39:42 +0000</pubDate>
		<dc:creator>Graham</dc:creator>
				<category><![CDATA[tip]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[IHS]]></category>
		<category><![CDATA[WebSphere Application Server]]></category>

		<guid isPermaLink="false">http://www.torkwrench.com/?p=228</guid>
		<description><![CDATA[Simple fix to an error seen when using the 32 bit WebSphere Application Server plugin with 64 bit Apache <a href="http://www.torkwrench.com/2010/06/09/mod_was_ap22_http-so-wrong-elf-class-elfclass32/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m experimenting with running Apache on our servers instead of IBM HTTP Server. This could be an advantage in terms of security updates &#8211; if a particular security vulnerability is fixed in Apache, it is going to be much easier to apply it by typing <strong>yum update</strong> than going to the IBM site and downloading the latest update and then struggling through the WAS Update Installer. </p>
<p>Anyway, when trying this out, I got this error when starting Apache. This error is pretty straightforward :</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">Starting httpd: httpd: Syntax error on line 993 of /etc/httpd/conf/httpd.conf: Cannot load /opt/WebSphere70/Plugin/bin/mod_was_ap22_http.so into server: /opt/WebSphere70/Plugin/bin/mod_was_ap22_http.so: wrong ELF class: ELFCLASS32</div></div>
<p>This simply means that the wrong version of the plugin is installed. I&#8217;m using 64 bit linux and 64 bit Apache, but the 32 bit version of the WAS Plugin. Reinstalling the 64 bit version made it work fine.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.torkwrench.com/2010/06/09/mod_was_ap22_http-so-wrong-elf-class-elfclass32/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</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>
	</channel>
</rss>

