<?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>Weblog for Asbjorn &#187; clearcase</title>
	<atom:link href="http://www.asbjornriedel.com/category/clearcase-administration-and-tips/feed" rel="self" type="application/rss+xml" />
	<link>http://www.asbjornriedel.com</link>
	<description>Not just another WordPress weblog</description>
	<lastBuildDate>Tue, 23 Aug 2011 18:14:24 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>FlexLM License Server for ClearCase</title>
		<link>http://www.asbjornriedel.com/clearcase-administration-and-tips/flexlm-license-server-for-clearcase</link>
		<comments>http://www.asbjornriedel.com/clearcase-administration-and-tips/flexlm-license-server-for-clearcase#comments</comments>
		<pubDate>Sat, 17 Jan 2009 16:53:13 +0000</pubDate>
		<dc:creator>Asbjorn</dc:creator>
				<category><![CDATA[clearcase]]></category>
		<category><![CDATA[clearcase administration]]></category>
		<category><![CDATA[flexlm]]></category>

		<guid isPermaLink="false">http://www.asbjornriedel.com/?p=140</guid>
		<description><![CDATA[With more and more users and applications with licenses, the use of a centralized license server is becoming important. But what happens if the license server goes down. With FlexLM it is possible to implement a redundant license server solution. &#8230; <a href="http://www.asbjornriedel.com/clearcase-administration-and-tips/flexlm-license-server-for-clearcase">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>With more and more users and applications with licenses, the use of a centralized license server is becoming important.</p>
<p>But what happens if the license server goes down.</p>
<p>With FlexLM it is possible to implement a redundant license server solution.</p>
<p>The configuration is as follows: </p>
<p>1 Master License Server<br />
2 Redundant License Servers<br />
3 Machines in Different locations<br />
Automatic Failover Implemented by FlexLM</p>
<p><img class="aligncenter size-full wp-image-141" title="hardware configuration" src="http://www.asbjornriedel.com/wp-content/uploads/2009/03/hardwareconfig.jpg" alt="hardware configuration" width="365" height="225" /></p>
<p> </p>
<p>License Server allocation:</p>
<ul>
<li>Master server</li>
<li>Secondary server</li>
<li>Quorum server, will never be master</li>
</ul>
<p>Benefits:</p>
<ul>
<li>High Availability</li>
<li>No single point of failure</li>
<li>Master Server down, Secondary Server takes over as Master and communicates with Quorum server</li>
<li>Secondary Server down, Master Server communicates with Quorum server</li>
<li>Quorum Server down, no change</li>
</ul>
<p>In case of 2 servers down, Windows users with a valid license will still be able to work.<br />
License is cached for 3 days or until the license servers come back.</p>
<p>The License File is generated on the IBM Rational Site</p>
<p>All floating licenses are added to one file (default)</p>
<p>In case of other products (Non IBM) the product must be added manually to this license file after generation</p>
<p>Copies of the license file must be on all servers (simple scp command to do this)</p>
<p><strong>Automatic startup (Solaris 10)</strong></p>
<ul>
<li>smf (Service Management Facility) startup</li>
<li>All servers start at boot time</li>
<li>License available when 2 servers started</li>
<li>Dedicated user for all 3 servers created</li>
<li>Script for restart of servers from master server</li>
</ul>
<p>FlexLM service definition in smf is named svc:/network/flexlm:flexlm</p>
<p>Import of the flexlm configuration file</p>
<ul>
<li>svccfg import /opt/rational/config/flexlm.xml</li>
</ul>
<p> </p>
<p>cat  /opt/rational/config/flexlm.xml<br />
&lt;?xml version=&#8221;1.0&#8243;?&gt;<br />
&lt;!DOCTYPE service_bundle SYSTEM &#8220;/usr/share/lib/xml/dtd/service_bundle.dtd.1&#8243;&gt;</p>
<p>&lt;service_bundle type=&#8217;manifest&#8217; name=&#8217;LNFflexlm:flexlm&#8217;&gt;</p>
<p>&lt;service<br />
        name=&#8217;network/flexlm&#8217;<br />
        type=&#8217;service&#8217;<br />
        version=&#8217;1&#8242;&gt;<br />
        &lt;single_instance /&gt;</p>
<p>        &lt;instance name=&#8217;flexlm&#8217; enabled=&#8217;false&#8217;&gt;<br />
                &lt;!&#8211;<br />
                  Wait for network interfaces to be initialized.<br />
                &#8211;&gt;<br />
                &lt;dependency name=&#8217;network&#8217;<br />
                    grouping=&#8217;require_all&#8217;<br />
                    restart_on=&#8217;error&#8217;<br />
                    type=&#8217;service&#8217;&gt;<br />
                    &lt;service_fmri value=&#8217;svc:/milestone/network:default&#8217;/&gt;<br />
                &lt;/dependency&gt;</p>
<p>                &lt;!&#8211;<br />
                  Wait for all local filesystems to be mounted.<br />
                &#8211;&gt;<br />
                &lt;dependency name=&#8217;filesystem-local&#8217;<br />
                    grouping=&#8217;require_all&#8217;<br />
                    restart_on=&#8217;none&#8217;<br />
                    type=&#8217;service&#8217;&gt;<br />
                    &lt;service_fmri<br />
                        value=&#8217;svc:/system/filesystem/local:default&#8217;/&gt;<br />
                &lt;/dependency&gt;</p>
<p>                &lt;exec_method<br />
                        type=&#8217;method&#8217;<br />
                        name=&#8217;start&#8217;<br />
                        exec=&#8217;/lib/svc/method/flexlm start&#8217;<br />
                        timeout_seconds=&#8217;60&#8242;&gt;<br />
                        &lt;method_context&gt;<br />
                                &lt;method_credential user=&#8217;nobody&#8217; group=&#8217;noaccess&#8217;/&gt;<br />
                        &lt;/method_context&gt;<br />
                &lt;/exec_method&gt;<br />
                &lt;exec_method<br />
                        type=&#8217;method&#8217;<br />
                        name=&#8217;stop&#8217;<br />
                        exec=&#8217;/lib/svc/method/flexlm stop&#8217;<br />
                        timeout_seconds=&#8217;60&#8242;&gt;<br />
                        &lt;method_context&gt;<br />
                                &lt;method_credential user=&#8217;nobody&#8217; group=&#8217;noaccess&#8217;/&gt;<br />
                        &lt;/method_context&gt;<br />
                &lt;/exec_method&gt;<br />
                &lt;exec_method<br />
                        type=&#8217;method&#8217;<br />
                        name=&#8217;refresh&#8217;<br />
                        exec=&#8217;/lib/svc/method/flexlm refresh&#8217;<br />
                        timeout_seconds=&#8217;60&#8242;&gt;<br />
                        &lt;method_context&gt;<br />
                                &lt;method_credential user=&#8217;nobody&#8217; group=&#8217;noaccess&#8217;/&gt;<br />
                        &lt;/method_context&gt;<br />
                &lt;/exec_method&gt;<br />
        &lt;/instance&gt;</p>
<p>        &lt;stability value=&#8217;Evolving&#8217; /&gt;</p>
<p>        &lt;template&gt;<br />
                &lt;common_name&gt;<br />
                        &lt;loctext xml:lang=&#8217;C'&gt;<br />
                                FLEXlm License Manager<br />
                        &lt;/loctext&gt;<br />
                &lt;/common_name&gt;<br />
                &lt;documentation&gt;<br />
                        &lt;doc_link name=&#8217;flexlm&#8217;<br />
                                uri=&#8217;file://@CLIENT_BASEDIR@/share/doc/flexlm/&#8217; /&gt;<br />
                &lt;/documentation&gt;<br />
        &lt;/template&gt;<br />
&lt;/service&gt;<br />
&lt;/service_bundle&gt;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.asbjornriedel.com/clearcase-administration-and-tips/flexlm-license-server-for-clearcase/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Moving ClearCase Views</title>
		<link>http://www.asbjornriedel.com/clearcase-administration-and-tips/moving-clearcase-views</link>
		<comments>http://www.asbjornriedel.com/clearcase-administration-and-tips/moving-clearcase-views#comments</comments>
		<pubDate>Thu, 06 Mar 2008 08:48:29 +0000</pubDate>
		<dc:creator>Asbjorn</dc:creator>
				<category><![CDATA[clearcase]]></category>
		<category><![CDATA[clearcase administration]]></category>
		<category><![CDATA[move clearcase view]]></category>

		<guid isPermaLink="false">http://www.asbjornriedel.com/?p=96</guid>
		<description><![CDATA[When a view server becomes too small, old or in any other way needs to be replaced it is often the case that users have views, they do not want to loose. Here is a process to move a view &#8230; <a href="http://www.asbjornriedel.com/clearcase-administration-and-tips/moving-clearcase-views">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>When a view server becomes too small, old or in any other way needs to be replaced it is often the case that users have views, they do not want to loose.</p>
<p>Here is a process to move a view from one server to another.</p>
<p>First we need to find the details of the view:</p>
<p><b>cleartool lsview -l TheView</b></p>
<p>Tag: <b>TheView</b><br />
  Global path: /home/storage/views/TestView.vws<br />
  Server host: viewserver01<br />
  Region: unix<br />
  Active: YES<br />
  View tag <b>uuid:6f8a1caf.08c411de.8016.00:01:d4:a2:88:10</b><br />
View on host: viewserver01<br />
View server access path: /home/storage/views/TestView.vws<br />
View uuid: 6f8a1caf.08c411de.8016.00:01:d4:a2:88:10<br />
View owner: viewusers/asbjorn</p>
<p>Making view read only and stopping it.</p>
<p><b>cleartool chview -readonly TheView</b></p>
<p><b>cleartool endview -server TheView</b></p>
<p>The reformat view is not mandatory, however when moving a view from CC 2003.06 to CC 7 it can come in handy.</p>
<p><b>cleartool reformatview -dump /home/storage/views/TheView.vws</b></p>
<p>Remove the references to the view from the registry.</p>
<p><b>cleartool rmtag -view TheView</b></p>
<p><b>cleartool unregister -view -uuid 6f8a1caf.08c411de.8016.00:01:d4:a2:88:10</b></p>
<p>Now make a tarfile of the view storage, then untar this file on the new server in the desired location.</p>
<p>When the restore have been successful, register the view in the new location</p>
<p><b>cleartool register -view -host viewserver02 -hpath /home/storage/views/TheView.vws /home/storage/views/TheView.vws</b><br />
<b>cleartool mktag -view -replace -tag TheView -host `hostname` -gpath /home/storage/views/TheView.vws /home/storage/views/TheView.vws</b></p>
<p>Again you may not need to do the following step.</p>
<p><b>cleartool reformatview -load -tag TheView</b></p>
<p>Start the view, and your view is now on the new server.</p>
<p><b>cleartool startview TheView</b></p>
]]></content:encoded>
			<wfw:commentRss>http://www.asbjornriedel.com/clearcase-administration-and-tips/moving-clearcase-views/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

