<?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>unixpowered.com &#187; sun cluster</title>
	<atom:link href="http://www.unixpowered.com/blog/category/sun-cluster/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.unixpowered.com/blog</link>
	<description></description>
	<lastBuildDate>Wed, 21 Jul 2010 13:42:57 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=abc</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Trussing processes on Sun Cluster?</title>
		<link>http://www.unixpowered.com/blog/2010/04/02/trussing-processes-on-sun-cluster/</link>
		<comments>http://www.unixpowered.com/blog/2010/04/02/trussing-processes-on-sun-cluster/#comments</comments>
		<pubDate>Fri, 02 Apr 2010 15:41:02 +0000</pubDate>
		<dc:creator>somedude</dc:creator>
				<category><![CDATA[solaris]]></category>
		<category><![CDATA[solaris tips]]></category>
		<category><![CDATA[solaris utilities]]></category>
		<category><![CDATA[sun cluster]]></category>

		<guid isPermaLink="false">http://www.unixpowered.com/blog/?p=461</guid>
		<description><![CDATA[One of the apps running on Sun Cluster was randomly crashing. So, I decided to take a look what was happening. Yeah, there is DTrace in Solaris 10. Since I am pretty comfortable with truss I decided to give that a shot first:
root@node1 # truss -p 27462
truss: process is traced: 27462
root@node1 # 
That&#8217;s it. No [...]]]></description>
			<content:encoded><![CDATA[<p>One of the apps running on Sun Cluster was randomly crashing. So, I decided to take a look what was happening. Yeah, there is DTrace in Solaris 10. Since I am pretty comfortable with <a title="truss man page" href="http://docs.sun.com/app/docs/doc/816-5165/truss-1?l=en&amp;a=view&amp;q=truss" target="_self"><em>truss</em></a> I decided to give that a shot first:</p>
<p><code>root@node1 # <strong>truss -p 27462</strong><br />
truss: process is traced: 27462<br />
root@node1 # </code></p>
<p>That&#8217;s it. No <em>truss</em> output, nothing. That was weird. <em>truss</em> will not work if there is a debugger attached to the process to be traced, which was not the case. So, I figured it might have something to do with the fact that the process is handled by the cluster software.</p>
<p>Finaly, NOTES section of <a title="pmfadm manpage" href="http://docs.sun.com/app/docs/doc/819-0582/6n30g7iep?l=en&amp;a=view&amp;q=pmfadm" target="_self"><em>pmfadm</em> manpage</a> gave me the answer:</p>
<blockquote><p>To avoid collisions with other controlling processes. truss(1) does not allow tracing a process that it detects as being controlled by another process by way of the /proc interface. Since rpc.pmfd(1M) uses the /proc interface to monitor processes and their descendents, those processes that are submitted to rpc.pmfd by way of pmfadm cannot be traced or debugged.</p></blockquote>
<p>So, Dtrace it was. Thankfully, Brendan Gregg already did the hard work for me, by creating <a title="Brendan Gregg's DTrace truss" href="http://www.brendangregg.com/dtrace.html" target="_self">DTrace version</a> of <em>truss</em>. The more you know&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.unixpowered.com/blog/2010/04/02/trussing-processes-on-sun-cluster/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Sun Cluster&#039;s scconf</title>
		<link>http://www.unixpowered.com/blog/2008/05/09/sun-clusters-scconf/</link>
		<comments>http://www.unixpowered.com/blog/2008/05/09/sun-clusters-scconf/#comments</comments>
		<pubDate>Fri, 09 May 2008 18:48:54 +0000</pubDate>
		<dc:creator>somedude</dc:creator>
				<category><![CDATA[solaris utilities]]></category>
		<category><![CDATA[sun cluster]]></category>

		<guid isPermaLink="false">http://wayciak.wordpress.com/?p=32</guid>
		<description><![CDATA[Using scconf you can view some useful information about Sun Cluster configuration such as information about cluster transport, disksets, etc.
Using multiple v&#8217;s you can increase output verbosity. It&#8217;s pretty useful especially if you inherited the cluster.
I added this command to my previous list, as well.
root@node1 # scconf -p -v
Cluster name:      [...]]]></description>
			<content:encoded><![CDATA[<p>Using scconf you can view some useful information about Sun Cluster configuration such as information about cluster transport, disksets, etc.<br />
Using multiple v&#8217;s you can increase output verbosity. It&#8217;s pretty useful especially if you inherited the cluster.<br />
I added this command to my <a title="Useful Sun Cluster commands" href="index.php/archives/2008/03/25/useful-sun-cluster-commands/" target="_self">previous list</a>, as well.</p>
<p><code>root@node1 # <strong>scconf -p -v</strong><br />
Cluster name:                                      cluster<br />
Cluster ID:                                        0x4538908A<br />
Cluster install mode:                              disabled<br />
Cluster private net:                               172.16.0.0<br />
Cluster private netmask:                           255.255.0.0<br />
Cluster new node authentication:                   unix<br />
Cluster new node list:                             &lt;. - Exclude all nodes&gt;<br />
Cluster transport heart beat timeout:              10000<br />
Cluster transport heart beat quantum:              1000<br />
Cluster nodes:                                     node1 node2</code></p>
<p><code>Cluster node name:                                 node1<br />
(node1) Node ID:                                 1<br />
(node1) Node enabled:                            yes<br />
(node1) Node private hostname:                   clusternode1-priv<br />
(node1) Node quorum vote count:                  1<br />
(node1) Node reservation key:                    0x4538908A00000001<br />
(node1) Node transport adapters:                 ce2 ce0</code></p>
<p><code>(node1) Node transport adapter:                  ce2<br />
(node1:ce2) Adapter enabled:                   yes<br />
(node1:ce2) Adapter transport type:            dlpi<br />
(node1:ce2) Adapter property:                  device_name=ce<br />
(node1:ce2) Adapter property:                  device_instance=2<br />
(node1:ce2) Adapter property:                  lazy_free=1<br />
(node1:ce2) Adapter property:                  dlpi_heartbeat_timeout=10000<br />
(node1:ce2) Adapter property:                  dlpi_heartbeat_quantum=1000<br />
(node1:ce2) Adapter property:                  nw_bandwidth=80<br />
(node1:ce2) Adapter property:                  bandwidth=70<br />
(node1:ce2) Adapter property:                  netmask=255.255.255.128<br />
(node1:ce2) Adapter property:                  ip_address=172.16.0.129<br />
(node1:ce2) Adapter port names:                0</code></p>
<p><code> (node1:ce2) Adapter port:                      0<br />
(node1:ce2@0) Port enabled:                  yes</code></p>
<p><code>(node1) Node transport adapter:                  ce0<br />
(node1:ce0) Adapter enabled:                   yes<br />
(node1:ce0) Adapter transport type:            dlpi<br />
(node1:ce0) Adapter property:                  device_name=ce<br />
(node1:ce0) Adapter property:                  device_instance=0<br />
(node1:ce0) Adapter property:                  lazy_free=1<br />
(node1:ce0) Adapter property:                  dlpi_heartbeat_timeout=10000<br />
(node1:ce0) Adapter property:                  dlpi_heartbeat_quantum=1000<br />
(node1:ce0) Adapter property:                  nw_bandwidth=80<br />
(node1:ce0) Adapter property:                  bandwidth=70<br />
(node1:ce0) Adapter property:                  netmask=255.255.255.128<br />
(node1:ce0) Adapter property:                  ip_address=172.16.1.1<br />
(node1:ce0) Adapter port names:                0</code></p>
<p><code> (node1:ce0) Adapter port:                      0<br />
(node1:ce0@0) Port enabled:                  yes</code></p>
<p><code>Cluster node name:                                 node2<br />
(node2) Node ID:                                 2<br />
(node2) Node enabled:                            yes<br />
(node2) Node private hostname:                   clusternode2-priv<br />
(node2) Node quorum vote count:                  1<br />
(node2) Node reservation key:                    0x4538908A00000002<br />
(node2) Node transport adapters:                 ce2 ce0</code></p>
<p><code>(node2) Node transport adapter:                  ce2<br />
(node2:ce2) Adapter enabled:                   yes<br />
(node2:ce2) Adapter transport type:            dlpi<br />
(node2:ce2) Adapter property:                  device_name=ce<br />
(node2:ce2) Adapter property:                  device_instance=2<br />
(node2:ce2) Adapter property:                  lazy_free=1<br />
(node2:ce2) Adapter property:                  dlpi_heartbeat_timeout=10000<br />
(node2:ce2) Adapter property:                  dlpi_heartbeat_quantum=1000<br />
(node2:ce2) Adapter property:                  nw_bandwidth=80<br />
(node2:ce2) Adapter property:                  bandwidth=70<br />
(node2:ce2) Adapter property:                  netmask=255.255.255.128<br />
(node2:ce2) Adapter property:                  ip_address=172.16.0.130<br />
(node2:ce2) Adapter port names:                0</code></p>
<p><code> (node2:ce2) Adapter port:                      0<br />
(node2:ce2@0) Port enabled:                  yes</code></p>
<p><code>(node2) Node transport adapter:                  ce0<br />
(node2:ce0) Adapter enabled:                   yes<br />
(node2:ce0) Adapter transport type:            dlpi<br />
(node2:ce0) Adapter property:                  device_name=ce<br />
(node2:ce0) Adapter property:                  device_instance=0<br />
(node2:ce0) Adapter property:                  lazy_free=1<br />
(node2:ce0) Adapter property:                  dlpi_heartbeat_timeout=10000<br />
(node2:ce0) Adapter property:                  dlpi_heartbeat_quantum=1000<br />
(node2:ce0) Adapter property:                  nw_bandwidth=80<br />
(node2:ce0) Adapter property:                  bandwidth=70<br />
(node2:ce0) Adapter property:                  netmask=255.255.255.128<br />
(node2:ce0) Adapter property:                  ip_address=172.16.1.2<br />
(node2:ce0) Adapter port names:                0</code></p>
<p><code>(node2:ce0) Adapter port:                      0<br />
(node2:ce0@0) Port enabled:                  yes</code></p>
<p><code>Cluster transport junctions:                       switch1 switch2</code></p>
<p><code>Cluster transport junction:                        switch1<br />
(switch1) Junction enabled:                      yes<br />
(switch1) Junction type:                         switch<br />
(switch1) Junction port names:                   1 2</code></p>
<p><code>(switch1) Junction port:                         1<br />
(switch1@1) Port enabled:                      yes</code></p>
<p><code>(switch1) Junction port:                         2<br />
(switch1@2) Port enabled:                      yes</code></p>
<p><code>Cluster transport junction:                        switch2<br />
(switch2) Junction enabled:                      yes<br />
(switch2) Junction type:                         switch<br />
(switch2) Junction port names:                   1 2</code></p>
<p><code> (switch2) Junction port:                         1<br />
(switch2@1) Port enabled:                      yes</code></p>
<p><code>(switch2) Junction port:                         2<br />
(switch2@2) Port enabled:                      yes</code></p>
<p><code>Cluster transport cables</code></p>
<p><code> Endpoint            Endpoint            State<br />
--------            --------            -----<br />
Transport cable:   node1:ce2@0         switch1@1           Enabled<br />
Transport cable:   node1:ce0@0         switch2@1           Enabled<br />
Transport cable:   node2:ce2@0         switch1@2           Enabled<br />
Transport cable:   node2:ce0@0         switch2@2           Enabled</code></p>
<p><code>Quorum devices:                                    d9</code></p>
<p><code>Quorum device name:                                d9<br />
(d9) Quorum device votes:                        1<br />
(d9) Quorum device enabled:                      yes<br />
(d9) Quorum device name:                         /dev/did/rdsk/d9s2<br />
(d9) Quorum device hosts (enabled):              node1 node2<br />
(d9) Quorum device hosts (disabled):<br />
(d9) Quorum device access mode:                  scsi2</code></p>
<p><code>Device group name:                                 dskset1-dg</code><br />
<code>(appset1-dg) Device group type:                  SVM<br />
(appset1-dg) Device group failback enabled:      no<br />
(appset1-dg) Device group node list:             node1, node2<br />
(appset1-dg) Device group ordered node list:     yes<br />
(appset1-dg) Device group desired number of secondaries: 1<br />
(appset1-dg) Device group diskset name:          dskset1-dg</code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.unixpowered.com/blog/2008/05/09/sun-clusters-scconf/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Increasing number of NFS servers on Sun Cluster</title>
		<link>http://www.unixpowered.com/blog/2008/04/04/increasing-number-of-nfs-servers-on-sun-cluster/</link>
		<comments>http://www.unixpowered.com/blog/2008/04/04/increasing-number-of-nfs-servers-on-sun-cluster/#comments</comments>
		<pubDate>Fri, 04 Apr 2008 17:57:00 +0000</pubDate>
		<dc:creator>somedude</dc:creator>
				<category><![CDATA[nfs]]></category>
		<category><![CDATA[solaris tips]]></category>
		<category><![CDATA[solaris utilities]]></category>
		<category><![CDATA[sun cluster]]></category>

		<guid isPermaLink="false">http://wayciak.wordpress.com/?p=20</guid>
		<description><![CDATA[By default Solaris 10 starts 16 NFS servers to handle NFS requests. You can tune this by editing /etc/default/nfs file.
&#60;-----------------SNIP----------------&#62;
# Maximum number of concurrent NFS requests.
# Equivalent to last numeric argument on nfsd command line.
NFSD_SERVERS=16
&#60;-----------------SNIP----------------&#62;
Changing above variables did not seem to have any effects on how many NFS server Sun Cluster started. Poking around I [...]]]></description>
			<content:encoded><![CDATA[<p>By default Solaris 10 starts 16 NFS servers to handle NFS requests. You can tune this by editing <em>/etc/default/nfs</em> file.</p>
<pre>&lt;-----------------SNIP----------------&gt;</pre>
<p><code># Maximum number of concurrent NFS requests.<br />
# Equivalent to last numeric argument on nfsd command line.<br />
NFSD_SERVERS=16</code></p>
<pre>&lt;-----------------SNIP----------------&gt;</pre>
<p>Changing above variables did not seem to have any effects on how many NFS server Sun Cluster started. Poking around I found <em>nfs_start_daemons</em> script which is part of <em>SUNWscnfs</em> package. In my case it was in <em>/opt/SUNWscnfs/bin</em> directory. It turns out that this script is looking at pre-Solaris 10 <em>nfs.server</em> init script to determine if more than 16 NFS servers are supposed to be started. In Solaris 10 NFS server as most of the services is handled by SMF. The <em>/etc/init.d/nfs.server</em> script is still present, probably due to legacy reasons, but it simply calls <em>svcadm</em> command to start NFS. Here is the relevant section of <em>nfs_start_daemons</em> script:</p>
<pre>&lt;-----------------SNIP----------------&gt;</pre>
<p><code>DEFAULT_NFSDCMD="/usr/lib/nfs/nfsd -a 16"<br />
if [ -f /etc/init.d/nfs.server ]; then<br />
NFSDCMD="`egrep '^[^#]*/usr/lib/nfs/nfsd' \<br />
/etc/init.d/nfs.server \<br />
2&gt;/dev/null | head -1`"<br />
fi</code></p>
<pre>&lt;-----------------SNIP----------------&gt;</pre>
<p>In order to increase number of NFS server that get started by Sun Cluster, you must change the number 16 above to something higher like 1024.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.unixpowered.com/blog/2008/04/04/increasing-number-of-nfs-servers-on-sun-cluster/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Useful Sun Cluster commands</title>
		<link>http://www.unixpowered.com/blog/2008/03/25/useful-sun-cluster-commands/</link>
		<comments>http://www.unixpowered.com/blog/2008/03/25/useful-sun-cluster-commands/#comments</comments>
		<pubDate>Tue, 25 Mar 2008 18:18:22 +0000</pubDate>
		<dc:creator>somedude</dc:creator>
				<category><![CDATA[solaris]]></category>
		<category><![CDATA[solaris utilities]]></category>
		<category><![CDATA[sun cluster]]></category>

		<guid isPermaLink="false">http://wayciak.wordpress.com/?p=10</guid>
		<description><![CDATA[Some useful Sun Cluster commands
Shut down a resource group:
scswitch -F -g [RESOURCE_GROUP_NAME]
Bring up a resource group:
scswitch -Z -g [RESOURCE_GROUP_NAME]
Move failover resource group to node_name:
scswitch -z -g [RESOURCE_GROUP_NAME] -h [NODE_NAME]
Restart resource group:
scswitch -R -h [NODE_NAME] -g [RESOURCE_GROUP_NAME]
Evacuate all resources from node_name:
scswitch -S -h [NODE_NAME]
Disable resource:
scswitch -n -j [RESOURCE]
Enable resource:
scswitch -e -j [RESOURCE]
Clear STOP_FAILED on resource:
scswitch -c [...]]]></description>
			<content:encoded><![CDATA[<p>Some useful Sun Cluster commands</p>
<p>Shut down a resource group:<br />
<code>scswitch -F -g [RESOURCE_GROUP_NAME]</code></p>
<p>Bring up a resource group:<br />
<code>scswitch -Z -g [RESOURCE_GROUP_NAME]</code></p>
<p>Move failover resource group to node_name:<br />
<code>scswitch -z -g [RESOURCE_GROUP_NAME] -h [NODE_NAME]</code></p>
<p>Restart resource group:<br />
<code>scswitch -R -h [NODE_NAME] -g [RESOURCE_GROUP_NAME]</code></p>
<p>Evacuate all resources from node_name:<br />
<code>scswitch -S -h [NODE_NAME]</code></p>
<p>Disable resource:<br />
<code>scswitch -n -j [RESOURCE]</code></p>
<p>Enable resource:<br />
<code>scswitch -e -j [RESOURCE]</code></p>
<p>Clear STOP_FAILED on resource:<br />
<code>scswitch -c -j [RESOURCE] -h [NODE_NAME] -f STOP_FAILED</code></p>
<p>Disable resource&#8217;s fault monitor:<br />
<code>scswitch -n -M -j [RESOURCE]</code></p>
<p>Enable resource&#8217;s fault monitor:<br />
<code>scswitch -e -M -j [RESOURCE]</code></p>
<p>Enable resource&#8217;s fault monitor:<br />
<code>scswitch -e -M -j [RESOURCE]</code></p>
<p>Lists currently configured DID&#8217;s:<br />
<code>scdidadm -L</code></p>
<p>Put a new device under cluster control:<br />
<code>scgdevs</code></p>
<p>Displays status of the cluster, resources, resource groups, etc.:<br />
<code>scstat</code></p>
<p>Display useful setup info about cluster nodes, cluster transport, disksets, etc.:<br />
<code>scconf -p -v</code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.unixpowered.com/blog/2008/03/25/useful-sun-cluster-commands/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>

<!-- www.000webhost.com Analytics Code -->
<script type="text/javascript" src="http://analytics.hosting24.com/count.php"></script>
<noscript><a href="http://www.hosting24.com/"><img src="http://analytics.hosting24.com/count.php" alt="web hosting" /></a></noscript>
<!-- End Of Analytics Code -->
