<?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>Sys-Admin Information&#039;s &#187; Solaris</title>
	<atom:link href="http://sysinfo.bascomp.org/category/solaris/feed/" rel="self" type="application/rss+xml" />
	<link>http://sysinfo.bascomp.org</link>
	<description></description>
	<lastBuildDate>Fri, 23 Apr 2010 09:43:23 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Boot archive error or corrupt</title>
		<link>http://sysinfo.bascomp.org/2009/05/boot-archive-error-or-corrupt/</link>
		<comments>http://sysinfo.bascomp.org/2009/05/boot-archive-error-or-corrupt/#comments</comments>
		<pubDate>Fri, 01 May 2009 06:50:45 +0000</pubDate>
		<dc:creator>Hendrawan</dc:creator>
				<category><![CDATA[Common Problem]]></category>
		<category><![CDATA[Solaris]]></category>
		<category><![CDATA[bootadm]]></category>
		<category><![CDATA[boot_archive]]></category>

		<guid isPermaLink="false">http://sysinfo.bascomp.org/?p=216</guid>
		<description><![CDATA[A few weeks ago, I got a little problem with my solaris box, namely solaris won't boot because the boot archive was corrupt, *sigh*. Anyway the boot archive in solaris 10 was contain kernel module and configuration file was needed for solaris to startup the system.
Error:

module /platform/i86pc/boot_archive error 3 bad or corrupt data while decompressing [...]]]></description>
			<content:encoded><![CDATA[<p>A few weeks ago, I got a little problem with my solaris box, namely solaris won't boot because the boot archive was corrupt, *sigh*. Anyway the boot archive in solaris 10 was contain kernel module and configuration file was needed for solaris to startup the system.</p>
<p><strong>Error:</strong></p>
<blockquote><p>
module /platform/i86pc/boot_archive error 3 bad or corrupt data while decompressing file
</p></blockquote>
<p><strong>Workaround:</strong></p>
<p>Boot up your solaris in "solaris failsafe mode", next solaris image will mount with writeable mode on "/a" mount point</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sh</span><span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #c20cb9; font-weight: bold;">rm</span> <span style="color: #660033;">-f</span> <span style="color: #000000; font-weight: bold;">/</span>a<span style="color: #000000; font-weight: bold;">/</span>platform<span style="color: #000000; font-weight: bold;">/</span>i86pc<span style="color: #000000; font-weight: bold;">/</span>boot_archive
<span style="color: #c20cb9; font-weight: bold;">sh</span><span style="color: #000000; font-weight: bold;">&gt;</span> bootadm update-archive <span style="color: #660033;">-R</span> <span style="color: #000000; font-weight: bold;">/</span>a
<span style="color: #c20cb9; font-weight: bold;">sh</span><span style="color: #000000; font-weight: bold;">&gt;</span> reboot</pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://sysinfo.bascomp.org/2009/05/boot-archive-error-or-corrupt/feed/</wfw:commentRss>
		<slash:comments>12</slash:comments>
		</item>
		<item>
		<title>IP multipathing on Solaris 10 with Hanic (NIC Redundancy with one IP)</title>
		<link>http://sysinfo.bascomp.org/2009/04/ip-multipathing-on-solaris-10-with-hanic-nic-redundancy-with-one-ip/</link>
		<comments>http://sysinfo.bascomp.org/2009/04/ip-multipathing-on-solaris-10-with-hanic-nic-redundancy-with-one-ip/#comments</comments>
		<pubDate>Sat, 25 Apr 2009 09:20:55 +0000</pubDate>
		<dc:creator>Hendrawan</dc:creator>
				<category><![CDATA[Multipath I/O]]></category>
		<category><![CDATA[Solaris]]></category>
		<category><![CDATA[hanic]]></category>
		<category><![CDATA[ipmp]]></category>

		<guid isPermaLink="false">http://sysinfo.bascomp.org/?p=209</guid>
		<description><![CDATA[Hanic ?
Do you know what's that.
Yes, Hanic is NIC Redundancy with one IP, hanic was made by "Partha Subramanian", and based on perl, hanic more simply and powerfull than IPMP, the default solaris IP multipathing. Why hanic was simply, in hanic we unnecessary to defined all requirement for respective NIC , just install, run and [...]]]></description>
			<content:encoded><![CDATA[<p>Hanic ?<br />
Do you know what's that.<br />
Yes, <a href="http://www.sun.com/bigadmin/jsp/descFile.jsp?url=descAll/hanic_nic_redundanc">Hanic</a> is <a href="http://en.wikipedia.org/wiki/Network_card">NIC</a> Redundancy with one IP, <a href="http://www.sun.com/bigadmin/jsp/descFile.jsp?url=descAll/hanic_nic_redundanc">hanic</a> was made by "Partha Subramanian", and based on perl, <a href="http://www.sun.com/bigadmin/jsp/descFile.jsp?url=descAll/hanic_nic_redundanc">hanic</a> more simply and powerfull than IPMP, the default solaris IP multipathing. Why <a href="http://www.sun.com/bigadmin/jsp/descFile.jsp?url=descAll/hanic_nic_redundanc">hanic</a> was simply, in <a href="http://www.sun.com/bigadmin/jsp/descFile.jsp?url=descAll/hanic_nic_redundanc">hanic</a> we unnecessary to defined all requirement for respective <a href="http://en.wikipedia.org/wiki/Network_card">NIC</a> , just install, run and ready to failover.</p>
<p>Bellow, this is the step by step for <a href="http://www.sun.com/bigadmin/jsp/descFile.jsp?url=descAll/hanic_nic_redundanc">hanic</a> used.</p>
<p>1. First of all, we must got the <a href="http://www.sun.com/bigadmin/jsp/descFile.jsp?url=descAll/hanic_nic_redundanc">hanic</a> source as usually</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">bash</span><span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #c20cb9; font-weight: bold;">wget</span> http:<span style="color: #000000; font-weight: bold;">//</span>www.sun.com<span style="color: #000000; font-weight: bold;">/</span>bigadmin<span style="color: #000000; font-weight: bold;">/</span>scripts<span style="color: #000000; font-weight: bold;">/</span>submittedScripts<span style="color: #000000; font-weight: bold;">/</span>hanic.tar.gz</pre></div></div>

<p>2. Show your <a href="http://en.wikipedia.org/wiki/Network_card">NIC</a> for me</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">bash</span><span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #c20cb9; font-weight: bold;">ifconfig</span> e1000g0 plumb
<span style="color: #c20cb9; font-weight: bold;">bash</span><span style="color: #000000; font-weight: bold;">&gt;</span> ifconifg e1000g1 plumb</pre></div></div>


<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">bash</span><span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #c20cb9; font-weight: bold;">vi</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>hosts
192.168.85.3    training.bascomp.org    training</pre></div></div>

<p>3. Install <a href="http://www.sun.com/bigadmin/jsp/descFile.jsp?url=descAll/hanic_nic_redundanc">hanic</a> on your system</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">bash</span><span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #c20cb9; font-weight: bold;">gunzip</span> hanic.tar.gz<span style="color: #000000; font-weight: bold;">|</span><span style="color: #c20cb9; font-weight: bold;">tar</span> xvf -
<span style="color: #c20cb9; font-weight: bold;">bash</span><span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #7a0874; font-weight: bold;">cd</span> hanic
<span style="color: #c20cb9; font-weight: bold;">bash</span><span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #c20cb9; font-weight: bold;">chmod</span> +x <span style="color: #000000; font-weight: bold;">*</span>
<span style="color: #c20cb9; font-weight: bold;">bash</span><span style="color: #000000; font-weight: bold;">&gt;</span> .<span style="color: #000000; font-weight: bold;">/</span>hanic.install</pre></div></div>

<p>As usually software installation you must follow the guide, something like this.<br />
Define your primary and secondary <a href="http://en.wikipedia.org/wiki/Network_card">NIC</a>, type your IP Address, your netmask and then reboot your system, for completed the installation.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">bash</span><span style="color: #000000; font-weight: bold;">&gt;</span> init <span style="color: #000000;">6</span></pre></div></div>

<p><span id="more-209"></span></p>
<p>4. Failover IP Address</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">bash</span><span style="color: #000000; font-weight: bold;">&gt;</span> hanic -monitor;hanic <span style="color: #660033;">-cleanup</span>
<span style="color: #c20cb9; font-weight: bold;">bash</span><span style="color: #000000; font-weight: bold;">&gt;</span> hanic <span style="color: #660033;">-status</span>
&nbsp;
STATUS - HA NIC Monitoring
<span style="color: #660033;">-------------------------------------------------</span>
State       Active<span style="color: #7a0874; font-weight: bold;">&#40;</span>Passive<span style="color: #7a0874; font-weight: bold;">&#41;</span>    PID
<span style="color: #660033;">-------------------------------------------------</span>
Running     e1000g1<span style="color: #7a0874; font-weight: bold;">&#40;</span>e1000g0<span style="color: #7a0874; font-weight: bold;">&#41;</span>   <span style="color: #000000;">1081</span>
<span style="color: #660033;">-------------------------------------------------</span></pre></div></div>

<p>Oke. seem to be <a href="http://www.sun.com/bigadmin/jsp/descFile.jsp?url=descAll/hanic_nic_redundanc">hanic</a> work as predictable, furthermore we test the fail over with <strong>"switch"</strong> command, whereabout <strong>"switch"</strong> do the switch ip address from primary NIC to secondary NIC.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">bash</span><span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #c20cb9; font-weight: bold;">ifconfig</span> <span style="color: #660033;">-a</span>
e1000g1: <span style="color: #007800;">flags</span>=<span style="color: #000000;">1000843</span><span style="color: #000000; font-weight: bold;">&amp;</span>lt;UP,BROADCAST,RUNNING,MULTICAST,IPv4<span style="color: #000000; font-weight: bold;">&amp;</span>gt; mtu <span style="color: #000000;">1500</span> index <span style="color: #000000;">6</span>
inet 192.168.85.3 netmask ffffff00 broadcast 192.168.85.255
ether <span style="color: #000000;">8</span>:<span style="color: #000000;">0</span>:<span style="color: #000000;">27</span>:<span style="color: #000000;">86</span>:2e:c4</pre></div></div>


<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">bash</span><span style="color: #000000; font-weight: bold;">&gt;</span> hanic <span style="color: #660033;">-status</span>
&nbsp;
STATUS - HA NIC Monitoring
<span style="color: #660033;">-------------------------------------------------</span>
State       Active<span style="color: #7a0874; font-weight: bold;">&#40;</span>Passive<span style="color: #7a0874; font-weight: bold;">&#41;</span>    PID
<span style="color: #660033;">-------------------------------------------------</span>
Running     e1000g1<span style="color: #7a0874; font-weight: bold;">&#40;</span>e1000g0<span style="color: #7a0874; font-weight: bold;">&#41;</span>   <span style="color: #000000;">1081</span>
<span style="color: #660033;">-------------------------------------------------</span></pre></div></div>


<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">bash</span><span style="color: #000000; font-weight: bold;">&gt;</span> hanic <span style="color: #660033;">-switch</span>
&nbsp;
<span style="color: #c20cb9; font-weight: bold;">bash</span><span style="color: #000000; font-weight: bold;">&gt;</span> hanic <span style="color: #660033;">-status</span>
&nbsp;
STATUS - HA NIC Monitoring
<span style="color: #660033;">-------------------------------------------------</span>
State       Active<span style="color: #7a0874; font-weight: bold;">&#40;</span>Passive<span style="color: #7a0874; font-weight: bold;">&#41;</span>    PID
<span style="color: #660033;">-------------------------------------------------</span>
Running     e1000g0<span style="color: #7a0874; font-weight: bold;">&#40;</span>e1000g1<span style="color: #7a0874; font-weight: bold;">&#41;</span>   <span style="color: #000000;">1081</span>
<span style="color: #660033;">-------------------------------------------------</span>
&nbsp;
<span style="color: #c20cb9; font-weight: bold;">bash</span><span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #c20cb9; font-weight: bold;">ifconfig</span> <span style="color: #660033;">-a</span>
e1000g0: <span style="color: #007800;">flags</span>=<span style="color: #000000;">1000843</span><span style="color: #000000; font-weight: bold;">&amp;</span>lt;UP,BROADCAST,RUNNING,MULTICAST,IPv4<span style="color: #000000; font-weight: bold;">&amp;</span>gt; mtu <span style="color: #000000;">1500</span> index <span style="color: #000000;">7</span>
inet 192.168.85.3 netmask ffffff00 broadcast 192.168.85.255
ether <span style="color: #000000;">8</span>:<span style="color: #000000;">0</span>:<span style="color: #000000;">27</span>:<span style="color: #000000;">82</span>:<span style="color: #000000;">21</span>:<span style="color: #000000;">80</span></pre></div></div>

<p>5. Failover offline interface<br />
Oke works perfect ha, now lets start second trial, for this situation try to offline the active network interface, and see what's going, for monitoring this trial, you can see wheter the connection drop or not with ping command.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">bash</span><span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #c20cb9; font-weight: bold;">ifconfig</span> <span style="color: #660033;">-a</span>
e1000g0: <span style="color: #007800;">flags</span>=<span style="color: #000000;">1000843</span><span style="color: #000000; font-weight: bold;">&amp;</span>lt;UP,BROADCAST,RUNNING,MULTICAST,IPv4<span style="color: #000000; font-weight: bold;">&amp;</span>gt; mtu <span style="color: #000000;">1500</span> index <span style="color: #000000;">3</span>
inet 192.168.85.3 netmask ffffff00 broadcast 192.168.85.255
ether <span style="color: #000000;">8</span>:<span style="color: #000000;">0</span>:<span style="color: #000000;">27</span>:<span style="color: #000000;">82</span>:<span style="color: #000000;">21</span>:<span style="color: #000000;">80</span>
&nbsp;
<span style="color: #c20cb9; font-weight: bold;">bash</span><span style="color: #000000; font-weight: bold;">&gt;</span> hanic <span style="color: #660033;">-offline</span>
&nbsp;
<span style="color: #c20cb9; font-weight: bold;">bash</span><span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #c20cb9; font-weight: bold;">ifconfig</span> <span style="color: #660033;">-a</span>
e1000g1: <span style="color: #007800;">flags</span>=<span style="color: #000000;">1000843</span><span style="color: #000000; font-weight: bold;">&amp;</span>lt;UP,BROADCAST,RUNNING,MULTICAST,IPv4<span style="color: #000000; font-weight: bold;">&amp;</span>gt; mtu <span style="color: #000000;">1500</span> index <span style="color: #000000;">4</span>
inet 192.168.85.3 netmask ffffff00 broadcast 192.168.85.255
ether <span style="color: #000000;">8</span>:<span style="color: #000000;">0</span>:<span style="color: #000000;">27</span>:<span style="color: #000000;">86</span>:2e:c4
&nbsp;
<span style="color: #c20cb9; font-weight: bold;">bash</span><span style="color: #000000; font-weight: bold;">&gt;</span> hanic <span style="color: #660033;">-status</span>
&nbsp;
STATUS - HA NIC Monitoring
<span style="color: #660033;">-------------------------------------------------</span>
State       Active<span style="color: #7a0874; font-weight: bold;">&#40;</span>Passive<span style="color: #7a0874; font-weight: bold;">&#41;</span>    PID
<span style="color: #660033;">-------------------------------------------------</span>
Running     e1000g1<span style="color: #7a0874; font-weight: bold;">&#40;</span>e1000g0<span style="color: #7a0874; font-weight: bold;">&#41;</span>   <span style="color: #000000;">1081</span>
<span style="color: #660033;">-------------------------------------------------</span></pre></div></div>

<p>Source from: <a href="http://dot.choosen.net/2009/04/06/ip-multipathing-on-solaris-10-with-hanic-nic-redundancy-with-one-ip/">http://dot.choosen.net/2009/04/06/ip-multipathing-on-solaris-10-with-hanic-nic-redundancy-with-one-ip/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://sysinfo.bascomp.org/2009/04/ip-multipathing-on-solaris-10-with-hanic-nic-redundancy-with-one-ip/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Mirroring/Unmirroring on Solaris 10</title>
		<link>http://sysinfo.bascomp.org/2009/04/mirroring-on-solaris-10/</link>
		<comments>http://sysinfo.bascomp.org/2009/04/mirroring-on-solaris-10/#comments</comments>
		<pubDate>Sat, 25 Apr 2009 07:49:43 +0000</pubDate>
		<dc:creator>Hendrawan</dc:creator>
				<category><![CDATA[SVM]]></category>
		<category><![CDATA[Solaris]]></category>
		<category><![CDATA[raid1]]></category>

		<guid isPermaLink="false">http://sysinfo.bascomp.org/?p=202</guid>
		<description><![CDATA[Post kali ini dengan bahasa indonesia tentunya, akan membahas mengenai membuat mirror dan melepaskan mirror di solaris 10 x86.
sekedar informasi, RAID-1 yang dikenal dengan mirror ini sangat populer untuk tingkat data redudansi juga faster writeable performance,
RAID-1 biasanya digunakan untuk system operasi ditempatkan, dan juga untuk aplikasi dengan tingkat penulisan yang tinggi, contoh Redolog.
Memang sangat di [...]]]></description>
			<content:encoded><![CDATA[<p>Post kali ini dengan bahasa indonesia tentunya, akan membahas mengenai membuat mirror dan melepaskan mirror di solaris 10 x86.<br />
sekedar informasi, RAID-1 yang dikenal dengan mirror ini sangat populer untuk tingkat data redudansi juga faster writeable performance,<br />
RAID-1 biasanya digunakan untuk system operasi ditempatkan, dan juga untuk aplikasi dengan tingkat penulisan yang tinggi, contoh Redolog.<br />
Memang sangat di yakinin bahwa untuk pembahasan mengenai RAID-1 ini sangat-sangat banyak bertebaran di internet, tapi apalah daya untuk kepentingan dokumentasi kita bahas disini.<br />
Postingan RAID-1 ini menggunakan solaris volume manager (SVM), dan 2 disk dengan size yang sama.</p>
<p>Magic code here.<br />
Dibawah ini adalah kondisi awal sebelum 2 disk baru diinstallasi di system.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sh</span><span style="color: #000000; font-weight: bold;">&gt;</span> cfgadm <span style="color: #660033;">-al</span>
Ap_Id                          Type         Receptacle   Occupant     Condition
sata0<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">0</span>::dsk<span style="color: #000000; font-weight: bold;">/</span>c1t0d0            disk         connected    configured   ok</pre></div></div>

<p>Kita lanjut untuk rekonfigur boot proses dan updating /dev dan /devices.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sh</span><span style="color: #000000; font-weight: bold;">&gt;</span> devfsadm <span style="color: #660033;">-C</span>
<span style="color: #c20cb9; font-weight: bold;">sh</span><span style="color: #000000; font-weight: bold;">&gt;</span> cfgadm <span style="color: #660033;">-al</span>
Ap_Id                          Type         Receptacle   Occupant     Condition
sata0<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">0</span>::dsk<span style="color: #000000; font-weight: bold;">/</span>c1t0d0            disk         connected    configured   ok
sata0<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">1</span>::dsk<span style="color: #000000; font-weight: bold;">/</span>c1t1d0            disk         connected    configured   ok
sata0<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">2</span>::dsk<span style="color: #000000; font-weight: bold;">/</span>c1t2d0            disk         connected    configured   ok</pre></div></div>

<p>Oke setelah semua persiapan selesai, kita lanjut dengan membuat RAID-1nya.</p>
<p><span id="more-202"></span></p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sh</span><span style="color: #000000; font-weight: bold;">&gt;</span> format c1t1d0</pre></div></div>

<p>lalu buat 2 partisi, satu untuk data dan satulagi untuk metadatanya disimpan, biasanya di slice 7.<br />
Setelahnya kita salin format partisi dari disk primary ke disk secondary, dan dilanjut dengan membuat state databasenya.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sh</span><span style="color: #000000; font-weight: bold;">&gt;</span> prtvtoc <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>rdsk<span style="color: #000000; font-weight: bold;">/</span>c1t1d0s2 <span style="color: #000000; font-weight: bold;">|</span>fmthard <span style="color: #660033;">-s</span> - <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>rdsk<span style="color: #000000; font-weight: bold;">/</span>c1t2d0s2
<span style="color: #c20cb9; font-weight: bold;">sh</span><span style="color: #000000; font-weight: bold;">&gt;</span> metadb <span style="color: #660033;">-a</span> <span style="color: #660033;">-f</span> <span style="color: #660033;">-c</span> <span style="color: #000000;">3</span> c1t1d0s7 c1t2d0s7</pre></div></div>


<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sh</span><span style="color: #000000; font-weight: bold;">&gt;</span> metadb
        flags           first blk       block count
     a m  pc luo        <span style="color: #000000;">16</span>              <span style="color: #000000;">8192</span>            <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>dsk<span style="color: #000000; font-weight: bold;">/</span>c1t1d0s7
     a    pc luo        <span style="color: #000000;">8208</span>            <span style="color: #000000;">8192</span>            <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>dsk<span style="color: #000000; font-weight: bold;">/</span>c1t1d0s7
     a    pc luo        <span style="color: #000000;">16400</span>           <span style="color: #000000;">8192</span>            <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>dsk<span style="color: #000000; font-weight: bold;">/</span>c1t1d0s7
     a    pc luo        <span style="color: #000000;">16</span>              <span style="color: #000000;">8192</span>            <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>dsk<span style="color: #000000; font-weight: bold;">/</span>c1t2d0s7
     a    pc luo        <span style="color: #000000;">8208</span>            <span style="color: #000000;">8192</span>            <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>dsk<span style="color: #000000; font-weight: bold;">/</span>c1t2d0s7
     a    pc luo        <span style="color: #000000;">16400</span>           <span style="color: #000000;">8192</span>            <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>dsk<span style="color: #000000; font-weight: bold;">/</span>c1t2d0s7</pre></div></div>

<p>Setelah konfirm, lanjut dengan membuat raid 1 nya.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sh</span><span style="color: #000000; font-weight: bold;">&gt;</span> metainit <span style="color: #660033;">-f</span> d70 <span style="color: #000000;">1</span> <span style="color: #000000;">1</span> c1t1d0s3
<span style="color: #c20cb9; font-weight: bold;">sh</span><span style="color: #000000; font-weight: bold;">&gt;</span> metainit <span style="color: #660033;">-f</span> d71 <span style="color: #000000;">1</span> <span style="color: #000000;">1</span> c1t2d0s3
<span style="color: #c20cb9; font-weight: bold;">sh</span><span style="color: #000000; font-weight: bold;">&gt;</span> metainit d69 <span style="color: #660033;">-m</span> d70
<span style="color: #c20cb9; font-weight: bold;">sh</span><span style="color: #000000; font-weight: bold;">&gt;</span> metattach d69 d71</pre></div></div>


<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sh</span><span style="color: #000000; font-weight: bold;">&gt;</span> metastat d69
d69: Mirror
    Submirror <span style="color: #000000;">0</span>: d70
      State: Okay         
    Submirror <span style="color: #000000;">1</span>: d71
      State: Resyncing    
    Resync <span style="color: #000000; font-weight: bold;">in</span> progress: <span style="color: #000000;">35</span> <span style="color: #000000; font-weight: bold;">%</span> <span style="color: #000000; font-weight: bold;">done</span>
    Pass: <span style="color: #000000;">1</span>
    Read option: roundrobin <span style="color: #7a0874; font-weight: bold;">&#40;</span>default<span style="color: #7a0874; font-weight: bold;">&#41;</span>
    Write option: parallel <span style="color: #7a0874; font-weight: bold;">&#40;</span>default<span style="color: #7a0874; font-weight: bold;">&#41;</span>
    Size: <span style="color: #000000;">4194304</span> blocks <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000;">2.0</span> GB<span style="color: #7a0874; font-weight: bold;">&#41;</span>
&nbsp;
d70: Submirror of d69
    State: Okay         
    Size: <span style="color: #000000;">4194304</span> blocks <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000;">2.0</span> GB<span style="color: #7a0874; font-weight: bold;">&#41;</span>
    Stripe <span style="color: #000000;">0</span>:
        Device     Start Block  Dbase        State Reloc Hot Spare
        c1t1d0s3          <span style="color: #000000;">0</span>     No            Okay   Yes 
&nbsp;
&nbsp;
d71: Submirror of d69
    State: Resyncing    
    Size: <span style="color: #000000;">4194304</span> blocks <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000;">2.0</span> GB<span style="color: #7a0874; font-weight: bold;">&#41;</span>
    Stripe <span style="color: #000000;">0</span>:
        Device     Start Block  Dbase        State Reloc Hot Spare
        c1t2d0s3          <span style="color: #000000;">0</span>     No            Okay   Yes</pre></div></div>

<p>Terlihat sedang dalam proses resync (Resync in progress: 35 % done),<br />
kita lanjut dengan membuat mount pointnya.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sh</span><span style="color: #000000; font-weight: bold;">&gt;</span> newfs <span style="color: #660033;">-f</span> <span style="color: #000000;">4096</span> <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>md<span style="color: #000000; font-weight: bold;">/</span>rdsk<span style="color: #000000; font-weight: bold;">/</span>d69
<span style="color: #c20cb9; font-weight: bold;">sh</span><span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #c20cb9; font-weight: bold;">mkdir</span> <span style="color: #000000; font-weight: bold;">/</span>apps
<span style="color: #c20cb9; font-weight: bold;">sh</span><span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #c20cb9; font-weight: bold;">vi</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>vfstab
<span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>md<span style="color: #000000; font-weight: bold;">/</span>dsk<span style="color: #000000; font-weight: bold;">/</span>d69 <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>md<span style="color: #000000; font-weight: bold;">/</span>rdsk<span style="color: #000000; font-weight: bold;">/</span>d69 <span style="color: #000000; font-weight: bold;">/</span>apps ufs <span style="color: #000000;">2</span> <span style="color: #c20cb9; font-weight: bold;">yes</span> -</pre></div></div>


<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">shell<span style="color: #000000; font-weight: bold;">&gt;</span> mountall
shell<span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #c20cb9; font-weight: bold;">df</span> <span style="color: #660033;">-F</span> ufs -h<span style="color: #000000; font-weight: bold;">|</span><span style="color: #c20cb9; font-weight: bold;">grep</span> apps
<span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>md<span style="color: #000000; font-weight: bold;">/</span>dsk<span style="color: #000000; font-weight: bold;">/</span>d69        1.9G   2.0M   1.9G     <span style="color: #000000;">1</span><span style="color: #000000; font-weight: bold;">%</span>    <span style="color: #000000; font-weight: bold;">/</span>apps</pre></div></div>

<p>Oke lanjut dengan Unmirroringnya, biar komplit.<br />
Lakukan "metadetach" untuk membuat one-way mirror.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sh</span><span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #c20cb9; font-weight: bold;">umount</span> <span style="color: #000000; font-weight: bold;">/</span>apps
<span style="color: #c20cb9; font-weight: bold;">sh</span><span style="color: #000000; font-weight: bold;">&gt;</span> metadetach d69 d71
d69: submirror d71 is detached</pre></div></div>

<p>Verfiy...</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sh</span><span style="color: #000000; font-weight: bold;">&gt;</span> metastat d69
d69: Mirror
    Submirror <span style="color: #000000;">0</span>: d70
      State: Okay         
    Pass: <span style="color: #000000;">1</span>
    Read option: roundrobin <span style="color: #7a0874; font-weight: bold;">&#40;</span>default<span style="color: #7a0874; font-weight: bold;">&#41;</span>
    Write option: parallel <span style="color: #7a0874; font-weight: bold;">&#40;</span>default<span style="color: #7a0874; font-weight: bold;">&#41;</span>
    Size: <span style="color: #000000;">4194304</span> blocks <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000;">2.0</span> GB<span style="color: #7a0874; font-weight: bold;">&#41;</span>
&nbsp;
d70: Submirror of d69
    State: Okay         
    Size: <span style="color: #000000;">4194304</span> blocks <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000;">2.0</span> GB<span style="color: #7a0874; font-weight: bold;">&#41;</span>
    Stripe <span style="color: #000000;">0</span>:
        Device     Start Block  Dbase        State Reloc Hot Spare</pre></div></div>

<p>Tahap akhir adalah, "metaclear" untuk meng-clear mirror dan submirrornya.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sh</span><span style="color: #000000; font-weight: bold;">&gt;</span> metaclear <span style="color: #660033;">-r</span> d69
d69: Mirror is cleared
d70: Concat<span style="color: #000000; font-weight: bold;">/</span>Stripe is cleared
<span style="color: #c20cb9; font-weight: bold;">sh</span><span style="color: #000000; font-weight: bold;">&gt;</span> metaclear d71
d71: Concat<span style="color: #000000; font-weight: bold;">/</span>Stripe is cleared</pre></div></div>

<p>Jangan lupa untuk menghilangkan "/apps" dari /etc/vfstabnya.</p>
]]></content:encoded>
			<wfw:commentRss>http://sysinfo.bascomp.org/2009/04/mirroring-on-solaris-10/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PowerPath show &quot;unlic&quot; status</title>
		<link>http://sysinfo.bascomp.org/2009/03/powerpath-show-unlic-status/</link>
		<comments>http://sysinfo.bascomp.org/2009/03/powerpath-show-unlic-status/#comments</comments>
		<pubDate>Mon, 23 Mar 2009 13:02:32 +0000</pubDate>
		<dc:creator>Hendrawan</dc:creator>
				<category><![CDATA[Multipath I/O]]></category>
		<category><![CDATA[Solaris]]></category>

		<guid isPermaLink="false">http://sysinfo.bascomp.org/?p=121</guid>
		<description><![CDATA[Unlic indicates that unlicensed PowerPath is running for a CLARiiON array (no license key has been installed), Unlicensed defaults to "basic Fail/Over policy, we made change yet.

bash&#62; powermt display dev=emcpower0a&#124;grep policy
state=alive; policy=BasicFailover; priority=0; queued-IOs=0


bash&#62; powermt display dev=emcpower0a
Pseudo name=emcpower0a
CLARiiON ID=CK200071500374 &#91;SERVER&#93;
Logical device ID=60060160F0CE1A00185D33F95722DD11 &#91;LUN 25 SERVER&#93;
state=alive; policy=BasicFailover; priority=0; queued-IOs=0
Owner: default=SP B, current=SP B    [...]]]></description>
			<content:encoded><![CDATA[<p>Unlic indicates that unlicensed PowerPath is running for a CLARiiON array (no license key has been installed), Unlicensed defaults to "basic Fail/Over policy, we made change yet.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">bash</span><span style="color: #000000; font-weight: bold;">&gt;</span> powermt display <span style="color: #007800;">dev</span>=emcpower0a<span style="color: #000000; font-weight: bold;">|</span><span style="color: #c20cb9; font-weight: bold;">grep</span> policy
<span style="color: #007800;">state</span>=alive; <span style="color: #007800;">policy</span>=BasicFailover; <span style="color: #007800;">priority</span>=<span style="color: #000000;">0</span>; queued-IOs=<span style="color: #000000;">0</span></pre></div></div>


<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">bash</span><span style="color: #000000; font-weight: bold;">&gt;</span> powermt display <span style="color: #007800;">dev</span>=emcpower0a
Pseudo <span style="color: #007800;">name</span>=emcpower0a
CLARiiON <span style="color: #007800;">ID</span>=CK200071500374 <span style="color: #7a0874; font-weight: bold;">&#91;</span>SERVER<span style="color: #7a0874; font-weight: bold;">&#93;</span>
Logical device <span style="color: #007800;">ID</span>=60060160F0CE1A00185D33F95722DD11 <span style="color: #7a0874; font-weight: bold;">&#91;</span>LUN <span style="color: #000000;">25</span> SERVER<span style="color: #7a0874; font-weight: bold;">&#93;</span>
<span style="color: #007800;">state</span>=alive; <span style="color: #007800;">policy</span>=BasicFailover; <span style="color: #007800;">priority</span>=<span style="color: #000000;">0</span>; queued-IOs=<span style="color: #000000;">0</span>
Owner: <span style="color: #007800;">default</span>=SP B, <span style="color: #007800;">current</span>=SP B       Array failover mode: <span style="color: #000000;">1</span>
==============================================================================
<span style="color: #660033;">----------------</span> Host <span style="color: #660033;">---------------</span>   - Stor -   <span style="color: #660033;">--</span> I<span style="color: #000000; font-weight: bold;">/</span>O Path -  <span style="color: #660033;">--</span> Stats <span style="color: #660033;">---</span>
<span style="color: #666666; font-style: italic;">###  HW Path                I/O Paths    Interf.   Mode    State  Q-IOs Errors</span>
==============================================================================
<span style="color: #000000;">3072</span> pci<span style="color: #000000; font-weight: bold;">@</span><span style="color: #000000;">8</span>,<span style="color: #000000;">700000</span><span style="color: #000000; font-weight: bold;">/</span>SUNW,qlc<span style="color: #000000; font-weight: bold;">@</span><span style="color: #000000;">3</span><span style="color: #000000; font-weight: bold;">/</span>fp<span style="color: #000000; font-weight: bold;">@</span><span style="color: #000000;">0</span>,<span style="color: #000000;">0</span> c5t5006016239A02677d0s0 SP A2     active  alive      <span style="color: #000000;">0</span>      <span style="color: #000000;">0</span>
<span style="color: #000000;">3072</span> pci<span style="color: #000000; font-weight: bold;">@</span><span style="color: #000000;">8</span>,<span style="color: #000000;">700000</span><span style="color: #000000; font-weight: bold;">/</span>SUNW,qlc<span style="color: #000000; font-weight: bold;">@</span><span style="color: #000000;">3</span><span style="color: #000000; font-weight: bold;">/</span>fp<span style="color: #000000; font-weight: bold;">@</span><span style="color: #000000;">0</span>,<span style="color: #000000;">0</span> c5t5006016A39A02677d0s0 SP B2     active  alive      <span style="color: #000000;">0</span>      <span style="color: #000000;">0</span>
<span style="color: #000000;">3074</span> pci<span style="color: #000000; font-weight: bold;">@</span><span style="color: #000000;">8</span>,<span style="color: #000000;">700000</span><span style="color: #000000; font-weight: bold;">/</span>SUNW,qlc<span style="color: #000000; font-weight: bold;">@</span><span style="color: #000000;">3</span>,<span style="color: #000000;">1</span><span style="color: #000000; font-weight: bold;">/</span>fp<span style="color: #000000; font-weight: bold;">@</span><span style="color: #000000;">0</span>,<span style="color: #000000;">0</span> c6t5006016339A02677d0s0 SP A3     unlic   alive      <span style="color: #000000;">0</span>      <span style="color: #000000;">0</span>
<span style="color: #000000;">3074</span> pci<span style="color: #000000; font-weight: bold;">@</span><span style="color: #000000;">8</span>,<span style="color: #000000;">700000</span><span style="color: #000000; font-weight: bold;">/</span>SUNW,qlc<span style="color: #000000; font-weight: bold;">@</span><span style="color: #000000;">3</span>,<span style="color: #000000;">1</span><span style="color: #000000; font-weight: bold;">/</span>fp<span style="color: #000000; font-weight: bold;">@</span><span style="color: #000000;">0</span>,<span style="color: #000000;">0</span> c6t5006016B39A02677d0s0 SP B3     unlic   alive      <span style="color: #000000;">0</span>      <span style="color: #000000;">0</span></pre></div></div>

<p><strong>Workaround</strong><br />
1. powermt check_registration<br />
2. powermt set policy=co dev=all (Set the Policy to co = Clariion Optimization)<br />
3. powermt display dev=all<br />
4. powermt save</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">bash</span><span style="color: #000000; font-weight: bold;">&gt;</span> powermt display <span style="color: #007800;">dev</span>=emcpower0a<span style="color: #000000; font-weight: bold;">|</span><span style="color: #c20cb9; font-weight: bold;">grep</span> policy
<span style="color: #007800;">state</span>=alive; <span style="color: #007800;">policy</span>=CLAROpt; <span style="color: #007800;">priority</span>=<span style="color: #000000;">0</span>; queued-IOs=<span style="color: #000000;">0</span></pre></div></div>


<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">bash</span><span style="color: #000000; font-weight: bold;">&gt;</span> powermt display <span style="color: #007800;">dev</span>=emcpower0a
Pseudo <span style="color: #007800;">name</span>=emcpower0a
CLARiiON <span style="color: #007800;">ID</span>=CK200071500374 <span style="color: #7a0874; font-weight: bold;">&#91;</span>SERVER<span style="color: #7a0874; font-weight: bold;">&#93;</span>
Logical device <span style="color: #007800;">ID</span>=60060160F0CE1A00185D33F95722DD11 <span style="color: #7a0874; font-weight: bold;">&#91;</span>LUN <span style="color: #000000;">25</span> SERVER<span style="color: #7a0874; font-weight: bold;">&#93;</span>
<span style="color: #007800;">state</span>=alive; <span style="color: #007800;">policy</span>=CLAROpt; <span style="color: #007800;">priority</span>=<span style="color: #000000;">0</span>; queued-IOs=<span style="color: #000000;">0</span>
Owner: <span style="color: #007800;">default</span>=SP B, <span style="color: #007800;">current</span>=SP B       Array failover mode: <span style="color: #000000;">1</span>
==============================================================================
<span style="color: #660033;">----------------</span> Host <span style="color: #660033;">---------------</span>   - Stor -   <span style="color: #660033;">--</span> I<span style="color: #000000; font-weight: bold;">/</span>O Path -  <span style="color: #660033;">--</span> Stats <span style="color: #660033;">---</span>
<span style="color: #666666; font-style: italic;">###  HW Path                I/O Paths    Interf.   Mode    State  Q-IOs Errors</span>
==============================================================================
<span style="color: #000000;">3072</span> pci<span style="color: #000000; font-weight: bold;">@</span><span style="color: #000000;">8</span>,<span style="color: #000000;">700000</span><span style="color: #000000; font-weight: bold;">/</span>SUNW,qlc<span style="color: #000000; font-weight: bold;">@</span><span style="color: #000000;">3</span><span style="color: #000000; font-weight: bold;">/</span>fp<span style="color: #000000; font-weight: bold;">@</span><span style="color: #000000;">0</span>,<span style="color: #000000;">0</span> c5t5006016239A02677d0s0 SP A2     active  alive      <span style="color: #000000;">0</span>      <span style="color: #000000;">0</span>
<span style="color: #000000;">3072</span> pci<span style="color: #000000; font-weight: bold;">@</span><span style="color: #000000;">8</span>,<span style="color: #000000;">700000</span><span style="color: #000000; font-weight: bold;">/</span>SUNW,qlc<span style="color: #000000; font-weight: bold;">@</span><span style="color: #000000;">3</span><span style="color: #000000; font-weight: bold;">/</span>fp<span style="color: #000000; font-weight: bold;">@</span><span style="color: #000000;">0</span>,<span style="color: #000000;">0</span> c5t5006016A39A02677d0s0 SP B2     active  alive      <span style="color: #000000;">0</span>      <span style="color: #000000;">0</span>
<span style="color: #000000;">3074</span> pci<span style="color: #000000; font-weight: bold;">@</span><span style="color: #000000;">8</span>,<span style="color: #000000;">700000</span><span style="color: #000000; font-weight: bold;">/</span>SUNW,qlc<span style="color: #000000; font-weight: bold;">@</span><span style="color: #000000;">3</span>,<span style="color: #000000;">1</span><span style="color: #000000; font-weight: bold;">/</span>fp<span style="color: #000000; font-weight: bold;">@</span><span style="color: #000000;">0</span>,<span style="color: #000000;">0</span> c6t5006016339A02677d0s0 SP A3     active  alive      <span style="color: #000000;">0</span>      <span style="color: #000000;">0</span>
<span style="color: #000000;">3074</span> pci<span style="color: #000000; font-weight: bold;">@</span><span style="color: #000000;">8</span>,<span style="color: #000000;">700000</span><span style="color: #000000; font-weight: bold;">/</span>SUNW,qlc<span style="color: #000000; font-weight: bold;">@</span><span style="color: #000000;">3</span>,<span style="color: #000000;">1</span><span style="color: #000000; font-weight: bold;">/</span>fp<span style="color: #000000; font-weight: bold;">@</span><span style="color: #000000;">0</span>,<span style="color: #000000;">0</span> c6t5006016B39A02677d0s0 SP B3     active  alive      <span style="color: #000000;">0</span>      <span style="color: #000000;">0</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://sysinfo.bascomp.org/2009/03/powerpath-show-unlic-status/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Set hostname without reboot</title>
		<link>http://sysinfo.bascomp.org/2008/04/set-hostname-without-reboot/</link>
		<comments>http://sysinfo.bascomp.org/2008/04/set-hostname-without-reboot/#comments</comments>
		<pubDate>Mon, 28 Apr 2008 07:00:46 +0000</pubDate>
		<dc:creator>Gun nee</dc:creator>
				<category><![CDATA[Solaris]]></category>
		<category><![CDATA[Tips & Tricks]]></category>

		<guid isPermaLink="false">http://sysinfo.bascomp.org/?p=51</guid>
		<description><![CDATA[
bash&#62; uname -a
SunOS Trojan 5.9 Generic_118558-33 sun4u sparc SUNW,Netra-T12

replace old "hostname" with new "hostname" in file /etc/hosts, /etc/nodename, /etc/hostname."ethernet_port_name", /etc/net/ticlts/hosts, /etc/net/ticotsord/hosts, /etc/net/ticots/hosts

bash&#62; vi /etc/hosts
bash&#62; vi /etc/nodename
bash&#62; vi /etc/hostname.bge0
bash&#62; vi /etc/net/ticlts/hosts
bash&#62; vi /etc/net/ticotsord/hosts
bash&#62; vi /etc/net/ticots/hosts

and then execute command :

hostname &#34;new hostname&#34;


bash&#62; hostname worm
bash&#62; . /.profile

]]></description>
			<content:encoded><![CDATA[
<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">bash</span><span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #c20cb9; font-weight: bold;">uname</span> <span style="color: #660033;">-a</span>
SunOS Trojan <span style="color: #000000;">5.9</span> Generic_118558-<span style="color: #000000;">33</span> sun4u sparc SUNW,Netra-T12</pre></div></div>

<p>replace old "hostname" with new "hostname" in file /etc/hosts, /etc/nodename, /etc/hostname."ethernet_port_name", /etc/net/ticlts/hosts, /etc/net/ticotsord/hosts, /etc/net/ticots/hosts</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">bash</span><span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #c20cb9; font-weight: bold;">vi</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>hosts
<span style="color: #c20cb9; font-weight: bold;">bash</span><span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #c20cb9; font-weight: bold;">vi</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>nodename
<span style="color: #c20cb9; font-weight: bold;">bash</span><span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #c20cb9; font-weight: bold;">vi</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>hostname.bge0
<span style="color: #c20cb9; font-weight: bold;">bash</span><span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #c20cb9; font-weight: bold;">vi</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>net<span style="color: #000000; font-weight: bold;">/</span>ticlts<span style="color: #000000; font-weight: bold;">/</span>hosts
<span style="color: #c20cb9; font-weight: bold;">bash</span><span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #c20cb9; font-weight: bold;">vi</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>net<span style="color: #000000; font-weight: bold;">/</span>ticotsord<span style="color: #000000; font-weight: bold;">/</span>hosts
<span style="color: #c20cb9; font-weight: bold;">bash</span><span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #c20cb9; font-weight: bold;">vi</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>net<span style="color: #000000; font-weight: bold;">/</span>ticots<span style="color: #000000; font-weight: bold;">/</span>hosts</pre></div></div>

<p>and then execute command :</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">hostname &quot;new hostname&quot;</pre></div></div>


<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">bash</span><span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #c20cb9; font-weight: bold;">hostname</span> worm
<span style="color: #c20cb9; font-weight: bold;">bash</span><span style="color: #000000; font-weight: bold;">&gt;</span> . <span style="color: #000000; font-weight: bold;">/</span>.profile</pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://sysinfo.bascomp.org/2008/04/set-hostname-without-reboot/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ssh[23593]: [ID 530472 user.error] Kerberos mechanism library initialization error:</title>
		<link>http://sysinfo.bascomp.org/2008/03/ssh23593-id-530472-usererror-kerberos-mechanism-library-initialization-error/</link>
		<comments>http://sysinfo.bascomp.org/2008/03/ssh23593-id-530472-usererror-kerberos-mechanism-library-initialization-error/#comments</comments>
		<pubDate>Mon, 24 Mar 2008 02:29:31 +0000</pubDate>
		<dc:creator>Hendrawan</dc:creator>
				<category><![CDATA[Common Problem]]></category>
		<category><![CDATA[Solaris]]></category>

		<guid isPermaLink="false">http://sysinfo.bascomp.org/2008/03/24/ssh23593-id-530472-usererror-kerberos-mechanism-library-initialization-error/</guid>
		<description><![CDATA[When I log via ssh to another machine

bash&#62; ssh gandalf@rohan.lotr.com
unable to initialize mechanism library &#91;/usr/lib/gss/gl/mech_krb5.so&#93;

the following message appears was appears

rohan.lotr.com sshd[23418]: [ID 530472 auth.error] Kerberos mechanism library initialization error:
Can't open/find Kerberos /etc/krb5/krb5.conf

Workaround:
Edit /etc/ssh/ssh_config and add the following

Host *
StrictHostKeyChecking no
GSSAPIKeyExchange no
GSSAPIAuthentication no

And
Edit /etc/ssh/sshd_config and add the following

GSSAPIAuthentication no
GSSAPIKeyExchange no
GSSAPIStoreDelegatedCredentials no

]]></description>
			<content:encoded><![CDATA[<p>When I log via ssh to another machine</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">bash</span><span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #c20cb9; font-weight: bold;">ssh</span> gandalf<span style="color: #000000; font-weight: bold;">@</span>rohan.lotr.com
unable to initialize mechanism library <span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>gss<span style="color: #000000; font-weight: bold;">/</span>gl<span style="color: #000000; font-weight: bold;">/</span>mech_krb5.so<span style="color: #7a0874; font-weight: bold;">&#93;</span></pre></div></div>

<p>the following message appears was appears</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">rohan.lotr.com sshd[23418]: [ID 530472 auth.error] Kerberos mechanism library initialization error:
Can't open/find Kerberos /etc/krb5/krb5.conf</pre></div></div>

<p><strong>Workaround:</strong></p>
<p>Edit <strong>/etc/ssh/ssh_config</strong> and add the following</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">Host *
StrictHostKeyChecking no
GSSAPIKeyExchange no
GSSAPIAuthentication no</pre></div></div>

<p>And<br />
Edit <strong>/etc/ssh/sshd_config</strong> and add the following</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">GSSAPIAuthentication no
GSSAPIKeyExchange no
GSSAPIStoreDelegatedCredentials no</pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://sysinfo.bascomp.org/2008/03/ssh23593-id-530472-usererror-kerberos-mechanism-library-initialization-error/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Comparison Kernel parameter Solaris9 and Solaris10</title>
		<link>http://sysinfo.bascomp.org/2008/03/kernel-parameter-tuning-comparison-solaris9-and-10/</link>
		<comments>http://sysinfo.bascomp.org/2008/03/kernel-parameter-tuning-comparison-solaris9-and-10/#comments</comments>
		<pubDate>Tue, 04 Mar 2008 11:27:12 +0000</pubDate>
		<dc:creator>Hell-me</dc:creator>
				<category><![CDATA[Solaris]]></category>
		<category><![CDATA[Tunable Parameters]]></category>
		<category><![CDATA[shminfo_shmmax]]></category>
		<category><![CDATA[Solaris Tuneable parameter]]></category>
		<category><![CDATA[Tuning]]></category>

		<guid isPermaLink="false">http://sysinfo.bascomp.org/2008/03/04/kernel-parameter-tuning-comparison-solaris9-and-10/</guid>
		<description><![CDATA[SERVER - Solaris9 -  Oracle9i .....[compare]..... SERVER - solaris10 - Oracle10g
[  Solaris9] forceload:sys/shmsys
[Solaris10] recommended not set, server impact long time for boot up
[  Solaris9] forceload:sys/semsys
[Solaris10]recommended not set, server impact long time for boot up
[  Solaris9] set shmsys:shminfo_shmmax=51539607552
[Solaris10] projmod -s -K "project.max-shm-memory=(priv,48g,deny)" user.oracle
[  Solaris9] set shmsys:shminfo_shmmin=1
[Solaris10] Obsolete in the Solaris 9 [...]]]></description>
			<content:encoded><![CDATA[<p>SERVER - Solaris9 -  Oracle9i .....[<strong>compare</strong>]..... SERVER - solaris10 - Oracle10g</p>
<p><cite>[  Solaris9]</cite> forceload:sys/shmsys<br />
<cite2>[Solaris10]</cite2> recommended not set, server impact long time for boot up</p>
<p><cite>[  Solaris9]</cite> forceload:sys/semsys<br />
<cite2>[Solaris10]</cite2>recommended not set, server impact long time for boot up</p>
<p><cite>[  Solaris9]</cite> set shmsys:shminfo_shmmax=51539607552<br />
<cite2>[Solaris10]</cite2> projmod -s -K "project.max-shm-memory=(priv,48g,deny)" user.oracle</p>
<p><cite>[  Solaris9]</cite> set shmsys:shminfo_shmmin=1<br />
<cite2>[Solaris10]</cite2> Obsolete in the Solaris 9 release, Solaris 10 also</p>
<p><cite>[  Solaris9]</cite> set  shmsys:shminfo_shmmni=2048<br />
<cite2>[Solaris10]</cite2> projmod -s -K "project.max-shm-ids=(priv,2048,deny)" user.oracle</p>
<p><cite>[  Solaris9]</cite> set shmsys:shminfo_shmseg=200<br />
<cite2>[Solaris10]</cite2> Obsolete in the Solaris 9 release, Solaris 10 also</p>
<p><cite>[  Solaris9]</cite> set semsys:seminfo_semmni=1000<br />
<cite2>[Solaris10]</cite2> projmod -s -K "project.max-sem-ids=(priv,1000,deny)" user.oracle</p>
<p><span id="more-45"></span></p>
<p><cite>[  Solaris9]</cite> set semsys:seminfo_semmns=32767<br />
<cite2>[Solaris10]</cite2> Removed in the Solaris 10 release</p>
<p><cite>[  Solaris9]</cite> semsys:seminfo_semmnu=500<br />
<cite2>[Solaris10]</cite2> Removed in the Solaris  10 release.</p>
<p><cite>[  Solaris9]</cite> set semsys:seminfo_semmsl=2048.<br />
<cite2>[Solaris10]</cite2> projmod -s -K "project.max-sem-nsems=(priv,4096,deny)" user.oracle</p>
<p><cite>[  Solaris9]</cite> semsys:seminfo_semvmx=32767.<br />
<cite2>[Solaris10]</cite2> Removed in the Solaris 10 release</p>
<p><cite>[  Solaris9]</cite> set  semsys:seminfo_semopm=2048<br />
<cite2>[Solaris10]</cite2> projmod -s -K "process.max-sem-ops=(priv,2048,deny)" user.oracle</p>
<p><cite>[  Solaris9]</cite> set maxusers=2048<br />
<cite2>[Solaris10]</cite2> recommended not set</p>
<p><cite>[  Solaris9]</cite> set max_nprocs=32778<br />
<cite2>[Solaris10]</cite2> set max_nprocs=32778</p>
<p><cite>[  Solaris9]</cite> set maxuprc=32773<br />
<cite2>[Solaris10]</cite2> set maxuprc=32773</p>
<p><cite>[  Solaris9]</cite> set rlim_fd_max=65536<br />
<cite2>[Solaris10]</cite2> set rlim_fd_max=65536</p>
<p><cite>[  Solaris9]</cite> set rlim_fd_cur=2048<br />
<cite2>[Solaris10]</cite2> set rlim_fd_cur=2048</p>
<p><cite>[  Solaris9]</cite> set noexec_user_stack=1<br />
<cite2>[Solaris10]</cite2> set noexec_user_stack=1</p>
<p><strong>*For Veritas NetBackup Performance</strong><br />
<cite>[  Solaris9]</cite> set msgsys:msginfo_msgtql=512<br />
<cite2>[Solaris10]</cite2> Obsolete in the Solaris  10 release</p>
<p><cite>[  Solaris9]</cite> set msgsys:msginfo_msgmnb=65536<br />
<cite2>[Solaris10]</cite2> Obsolete in the Solaris 10  release</p>
<p>---------------------------------------------------------------------------------------------------------------------------------------<br />
<strong> Conclusion ,the following are the important  parameters:</strong></p>
<blockquote><p>*project.max-shm-ids: Maximum shared memory IDs for  a project. Replaces  shmmni</p>
<p>*project.max-sem-ids: Maximum semaphore IDs for a  project.Replaces  semmni</p>
<p>*project.max-msg-ids: Maximum message queue IDs for  a project. Replaces msgmni</p>
<p>*project.max-shm-memory: Total amount of shared  memory allowed for a project. Replaces  shmmax</p>
<p>*process.max-sem-nsems: Maximum number of  semaphores allowed per semaphore set.Replaces semmsl</p>
<p>*process.max-sem-ops: Maximum number of semaphore  operations allowed per semop.Replaces  semopm</p>
<p>*process.max-msg-qbytes: Maximum number of bytes of  messages on a message queue. Replaces  msgmnb</p>
<p>*process.max-msg-messages: Maximum number of  messages on a message queue.Replaces  msgtql</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://sysinfo.bascomp.org/2008/03/kernel-parameter-tuning-comparison-solaris9-and-10/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Kernel setup for Solaris 10 using project files - Special for Oracle10g</title>
		<link>http://sysinfo.bascomp.org/2008/03/kernel-setup-for-solaris-10-using-project-files-special-for-oracle10g/</link>
		<comments>http://sysinfo.bascomp.org/2008/03/kernel-setup-for-solaris-10-using-project-files-special-for-oracle10g/#comments</comments>
		<pubDate>Tue, 04 Mar 2008 10:20:49 +0000</pubDate>
		<dc:creator>Hell-me</dc:creator>
				<category><![CDATA[Solaris]]></category>
		<category><![CDATA[Projadd]]></category>
		<category><![CDATA[Projmod]]></category>

		<guid isPermaLink="false">http://sysinfo.bascomp.org/2008/03/04/kernel-setup-for-solaris-10-using-project-files-special-for-oracle10g/</guid>
		<description><![CDATA[1. Recommended method for modifying the /etc/project file is to use the "projadd" and "projmod" :
a.

bash&#62; projadd -c &#34;Oracle&#34; 'user.oracle'

b.

bash&#62; projmod -s -K &#34;project.max-shm-memory=(privileged,10GB,deny)&#34; 'user.oracle'

c. verify with

bash&#62; cat /etc/project

or

bash&#62; prctl -i project user.oracle

2. Resource Control assignments made in this way (in the /etc/project file) are permanent, and will survive a system re-boot.
3. There is also [...]]]></description>
			<content:encoded><![CDATA[<p><strong>1</strong>. Recommended method for modifying the /etc/project file is to use the "projadd" and "projmod" :</p>
<p>a.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">bash</span><span style="color: #000000; font-weight: bold;">&gt;</span> projadd <span style="color: #660033;">-c</span> <span style="color: #ff0000;">&quot;Oracle&quot;</span> <span style="color: #ff0000;">'user.oracle'</span></pre></div></div>

<p>b.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">bash</span><span style="color: #000000; font-weight: bold;">&gt;</span> projmod <span style="color: #660033;">-s</span> <span style="color: #660033;">-K</span> <span style="color: #ff0000;">&quot;project.max-shm-memory=(privileged,10GB,deny)&quot;</span> <span style="color: #ff0000;">'user.oracle'</span></pre></div></div>

<p>c. verify with</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">bash</span><span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #c20cb9; font-weight: bold;">cat</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>project</pre></div></div>

<p>or</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">bash</span><span style="color: #000000; font-weight: bold;">&gt;</span> prctl <span style="color: #660033;">-i</span> project user.oracle</pre></div></div>

<p><strong>2</strong>. Resource Control assignments made in this way (in the /etc/project file) are permanent, and will survive a system re-boot.</p>
<p><strong>3</strong>. There is also an <strong><u>"on-the-fly"</u></strong> way to temporarily set Resource Control assignments using the prctl(1) command.</p>
<p>a. Should we need to temporarily increase the setting to <strong>48</strong> GB:<br />
For example, assuming the preceding /etc/project</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">bash</span><span style="color: #000000; font-weight: bold;">&gt;</span> prctl <span style="color: #660033;">-n</span> project.max-shm-memory <span style="color: #660033;">-i</span> project user.oracle
project: <span style="color: #000000;">100</span>: user.oracle
NAME PRIVILEGE VALUE FLAG ACTION RECIPIENT
project.max-shm-memory
privileged 16.0GB - deny -
system 16.0EB max deny -</pre></div></div>


<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">bash</span><span style="color: #000000; font-weight: bold;">&gt;</span> prctl <span style="color: #660033;">-n</span> project.max-shm-memory <span style="color: #660033;">-r</span> <span style="color: #660033;">-v</span> 48GB <span style="color: #660033;">-i</span> project user.oracle</pre></div></div>


<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">bash</span><span style="color: #000000; font-weight: bold;">&gt;</span> prctl <span style="color: #660033;">-n</span> project.max-shm-memory <span style="color: #660033;">-i</span> project user.oracle
project: <span style="color: #000000;">100</span>: user.oracle
NAME PRIVILEGE VALUE FLAG ACTION RECIPIENT
project.max-shm-memory
privileged <span style="color: #000000; font-weight: bold;">&lt;</span>strong<span style="color: #000000; font-weight: bold;">&gt;</span><span style="color: #000000;">48</span><span style="color: #000000; font-weight: bold;">&lt;/</span>strong<span style="color: #000000; font-weight: bold;">&gt;</span> .0GB - deny -
system 16.0EB max deny</pre></div></div>

<p>b. fix parameter ; entry new value on max-shm</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">bash</span><span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #c20cb9; font-weight: bold;">vi</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>project</pre></div></div>

<p>values such as 48GB instead of the 51539607552</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">project.max-shm-memory=(privileged, 51539607552, deny);</pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://sysinfo.bascomp.org/2008/03/kernel-setup-for-solaris-10-using-project-files-special-for-oracle10g/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
