<?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; hanic</title>
	<atom:link href="http://sysinfo.bascomp.org/tag/hanic/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>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>
	</channel>
</rss>
