<?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>Geekdom &#187; Solaris</title>
	<atom:link href="http://geekdom.wesmo.com/category/technical/solaris/feed/" rel="self" type="application/rss+xml" />
	<link>http://geekdom.wesmo.com</link>
	<description>Geeks of the World Unite!</description>
	<lastBuildDate>Mon, 30 Jan 2012 08:28:00 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>NFSv4 on Solaris and Netapp</title>
		<link>http://geekdom.wesmo.com/2007/04/30/nfsv4-on-solaris-and-netapp/</link>
		<comments>http://geekdom.wesmo.com/2007/04/30/nfsv4-on-solaris-and-netapp/#comments</comments>
		<pubDate>Mon, 30 Apr 2007 14:18:45 +0000</pubDate>
		<dc:creator>Rich</dc:creator>
				<category><![CDATA[Solaris]]></category>
		<category><![CDATA[Technical]]></category>

		<guid isPermaLink="false">http://geekdom.wesmo.com/2007/04/30/nfsv4-on-solaris-and-netapp/</guid>
		<description><![CDATA[Hit a peculiar problem today with a new Solaris 10 T2000 and our NetApp FAS3020.  While the right users had the right access to the volumes mounted from the NetApp, directory listings showed the directories and files owned by &#8220;nobody&#8221; with the group &#8220;nobody&#8221;. With older version of NFS, this usually meant that the filesystem [...]]]></description>
			<content:encoded><![CDATA[<p>Hit a peculiar problem today with a new Solaris 10 T2000 and our NetApp FAS3020.  While the right users had the right access to the volumes mounted from the NetApp, directory listings showed the directories and files owned by &#8220;nobody&#8221; with the group &#8220;nobody&#8221;.</p>
<p>With older version of NFS, this usually meant that the filesystem was not exported with read/write access to the host, but, since this had already been done quite some time ago, it looked like the problem was related to NFSv4.   Some quick investigation showed this to be the case.</p>
<p>The resolution was two fold:</p>
<ol>
<li> On the Netapp, I make sure that &#8220;nfs.v4.id.domain&#8221; was set to the domain name.  It defaults to nothing &#8220;&#8221;.</li>
<li>Again, on the Netapp, since we are not using a centralized location for accounts (we have &lt; 12 accounts across all of the systems), I had to populate /etc/passwd with all of the accounts on the rest of the systems and /etc/group with all of the groups defined on the rest of the systems.</li>
</ol>
<p>That brought the behavior back to what was expected.</p>
]]></content:encoded>
			<wfw:commentRss>http://geekdom.wesmo.com/2007/04/30/nfsv4-on-solaris-and-netapp/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Mounting an ISO image on Solaris</title>
		<link>http://geekdom.wesmo.com/2007/03/29/mounting-an-iso-image-on-solaris/</link>
		<comments>http://geekdom.wesmo.com/2007/03/29/mounting-an-iso-image-on-solaris/#comments</comments>
		<pubDate>Thu, 29 Mar 2007 18:08:17 +0000</pubDate>
		<dc:creator>Rich</dc:creator>
				<category><![CDATA[Solaris]]></category>

		<guid isPermaLink="false">http://geekdom.wesmo.com/2007/03/29/mounting-an-iso-image-on-solaris/</guid>
		<description><![CDATA[No doubt you&#8217;ve had experience with this under Linux (mount -o loop /root/animage.iso /mnt) or Windows (using Daemon Tools), but I had a need to do this under Solaris. Fortunately, it is a rather simple process using a relatively unknown command: lofiadm. (loopback file admin) lofiadm is a Solaris tool which can be used to [...]]]></description>
			<content:encoded><![CDATA[<p>No doubt you&#8217;ve had experience with this under Linux (mount -o loop /root/animage.iso /mnt) or Windows (using Daemon Tools), but I had a need to do this under Solaris.  Fortunately, it is a rather simple process using a relatively unknown command: <strong>lofiadm</strong>. (<strong>lo</strong>opback <strong>fi</strong>le <strong>adm</strong>in)<br />
lofiadm is a Solaris tool which can be used to map a file to a block device id.  With that, you can then use the mount command to mount that block device id to a directory.</p>
<p>Now, you can do this in two steps:</p>
<p># lofiadm -a /export/temp/software.iso /dev/lofi/1</p>
<p># mount -F hsfs -o ro /dev/lofi/1 /mnt</p>
<p>But that requires some cleanup afterwards (rm /dev/lofi/1) otherwise, over time, you end up with a bunch of mapped block devices pointing to files that are no longer on the system.  It is a &#8220;best practice&#8221; to combine the commands in to a single command:</p>
<p># mount -F hsfs -o ro `lofiadm -a /export/temp/software.iso` /mnt</p>
]]></content:encoded>
			<wfw:commentRss>http://geekdom.wesmo.com/2007/03/29/mounting-an-iso-image-on-solaris/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Network Interface Aliases in Solaris</title>
		<link>http://geekdom.wesmo.com/2007/01/30/network-interface-aliases-in-solaris/</link>
		<comments>http://geekdom.wesmo.com/2007/01/30/network-interface-aliases-in-solaris/#comments</comments>
		<pubDate>Tue, 30 Jan 2007 17:22:28 +0000</pubDate>
		<dc:creator>Rich</dc:creator>
				<category><![CDATA[Solaris]]></category>
		<category><![CDATA[Technical]]></category>

		<guid isPermaLink="false">http://geekdom.wesmo.com/2007/01/30/network-interface-aliases-in-solaris/</guid>
		<description><![CDATA[Most of what you will find when searching the net for &#8220;solaris network interface alias&#8221; or &#8220;solaris interface alias&#8221; will be ways to create pseudo interfaces such as &#8220;hme0:1&#8243; or &#8220;ce0:1&#8243;. This is a well documented feature under Solaris. However, in my case, we were looking at ways to incorporate other systems in to our [...]]]></description>
			<content:encoded><![CDATA[<p>Most of what you will find when searching the net for &#8220;solaris network interface alias&#8221; or &#8220;solaris interface alias&#8221; will be ways to create pseudo interfaces such as &#8220;hme0:1&#8243; or &#8220;ce0:1&#8243;.  This is a well documented feature under Solaris.</p>
<p>However, in my case, we were looking at ways to incorporate other systems in to our RAC cluster.  Due to the way that Oracle RAC is designed, the public (primary) interface on all of the systems in the RAC cluster <strong>MUST</strong> be the same. In other words, they must all be &#8220;ce0&#8243; or &#8220;hme0&#8243; or whatever the device name is.</p>
<p>This isn&#8217;t really a problem under linux since you can easily define which interface gets to be named &#8220;eth0&#8243;, but under Solaris, this can be a bit of a problem when you try to incorporate different machine types in to the cluster. Because Solaris assigns an interface name based upon the chipset of the NIC, some systems might have &#8220;ce0&#8243; (such as on the V480) while others might have &#8220;ipge0&#8243; (such as on the T2000).</p>
<p>So.. how do you add a machine with a different primary device name in to the cluster?  Well, the answer is actually quite simple: create an alias to it. It&#8217;s just not the same alias that you get from plumb&#8217;ing an interface.</p>
<p>In the /dev tree, simply create a symbolic to the primary interface using the name that you want. For example:</p>
<blockquote><p># cd /dev</p>
<p># ln -s ce public</p>
<p># ifconfig public0 plumb</p>
<p># ifconfig public0<br />
public0: flags=1000842&lt;UP,RUNNING,MULTICAST,IPv4&gt; mtu 1500 index 5<br />
inet 0.0.0.0 netmask 0<br />
ether 0:3:ba:2a:e8:c5</p></blockquote>
<p>And you are done. You now have an interface called &#8220;public0&#8243; which is known as your primary interface. Be aware, though, that this will <strong>BE DESTROYED</strong> if you reboot the system with the &#8220;-r&#8221; flag as this will force a rebuild of the entire device tree.</p>
<blockquote></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://geekdom.wesmo.com/2007/01/30/network-interface-aliases-in-solaris/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Solaris 10 Tip: How To Change Your IP</title>
		<link>http://geekdom.wesmo.com/2007/01/09/solaris-10-tip-how-to-change-your-ip/</link>
		<comments>http://geekdom.wesmo.com/2007/01/09/solaris-10-tip-how-to-change-your-ip/#comments</comments>
		<pubDate>Tue, 09 Jan 2007 21:21:49 +0000</pubDate>
		<dc:creator>Rich</dc:creator>
				<category><![CDATA[Solaris]]></category>
		<category><![CDATA[Technical]]></category>

		<guid isPermaLink="false">http://geekdom.wesmo.com/2007/01/09/solaris-10-tip-how-to-change-your-ip/</guid>
		<description><![CDATA[Solaris 10 is an entirely different animal than any of the preceeding versions. So much comes pre-installed now making it a heck of a lot easier for an Admin go bounce from Linux to Solaris without having to consider what platform he/she is truly on. One of the difficulties I recently encountered was changing the [...]]]></description>
			<content:encoded><![CDATA[<p>Solaris 10 is an entirely different animal than any of the preceeding versions.  So much comes pre-installed now making it a heck of a lot easier for an Admin go bounce from Linux to Solaris without having to consider what platform he/she is truly on.</p>
<p>One of the difficulties I recently encountered was changing the IP of an interface on Solaris 10. Now, this is usually not a difficult task, so I was surprised when a simple edit of /etc/hosts and /etc/nodename, and /etc/hostname.ipge0 didn&#8217;t have the normal impact upon rebooting.</p>
<p>After some digging around, it seems that Solaris 10 relies on /etc/inet/ipnodes rather than /etc/hosts.  Yes, you should update both, but the important one for interface specifics is /etc/ipnodes.</p>
]]></content:encoded>
			<wfw:commentRss>http://geekdom.wesmo.com/2007/01/09/solaris-10-tip-how-to-change-your-ip/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>OpenVPN</title>
		<link>http://geekdom.wesmo.com/2006/08/07/openvpn/</link>
		<comments>http://geekdom.wesmo.com/2006/08/07/openvpn/#comments</comments>
		<pubDate>Mon, 07 Aug 2006 19:51:37 +0000</pubDate>
		<dc:creator>Rich</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Solaris]]></category>
		<category><![CDATA[Technical]]></category>

		<guid isPermaLink="false">http://www.wesmo.com/~rwest/blog/2006/08/07/openvpn/</guid>
		<description><![CDATA[Openvpn, for those that are unfamiliar with it, is an excellent point-to-point VPN software package. I tried it out in an environment where both ends were Fedora Core Linux systems and the installation went extremely well. In fact, it was almost simple. The tough part was getting the configuration fine-tuned enough such that it would [...]]]></description>
			<content:encoded><![CDATA[<p><a title="OpenVPN" href="http://www.openvpn.org">Openvpn</a>, for those that are unfamiliar with it, is an <strong>excellent</strong> point-to-point VPN software package.</p>
<p>I tried it out in an environment where both ends were <a title="Fedora Core Linux" href="http://fedora.redhat.com">Fedora Core</a> Linux systems and the installation went extremely well.  In fact, it was almost simple. <img src='http://geekdom.wesmo.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />   The tough part was getting the configuration fine-tuned enough such that it would be both secure yet easy to use.</p>
<p>The real key was an <a title="Branded VPN article" href="http://www.samag.com/documents/s=9766/sam0506a/0506a.htm">article</a> in <a title="SysAdmin" href="http://www.sysadminmag.com">SysAdmin</a> that covered how someone installed OpenVPN on a Linux server, and built a customized OpenVPN install on a Windows desktop system using the <a title="NSIS" href="http://nsis.sourceforge.net">NullSoft Install System</a>.</p>
<p>It was not long before the environment was completely off of the Cisco VPN hardware (part of the PIX) and fully on OpenVPN.  The trick, however, was battling the situation where the single Linux server was down for one reason or another (a failed mirrored drive).  The only secondary system that was available was a <a title="SUN" href="http://www.sun.com">Solaris 8</a> system which is the predominant system in our environment anyhow.</p>
<p>So, I set about getting OpenVPN up and running.  Unfortunately, Solaris 8 does not have a built in tunnel device (aka: tun) that OpenVPN requires.  The documentation within the OpenVPN readme was a little misleading:</p>
<blockquote><p>* Solaris</p>
<p>For 64 bit, I used the tun-1.1.tar.gz source and compiled it.</p>
<p>Of course there is a but <img src='http://geekdom.wesmo.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><br />
In the tun-1-1\solaris\Makefile I changed a line so it compiles with 64 bit</p>
<p>CFLAGS = $(DEFS) -m64 -O2 -Wall -D_KERNEL -I.</p>
<p>I just added -m64 and it worked.</p>
<p>The tun driver works fine as said previously, however we noticed there is a minor problem when creating multiple tunnels on Solaris.<br />
Mr Tycho Fruru changed the code in tun.c file where he locked the tun device number to -1. This way it is impossible to specify the name of the tun device but it is still possible to have multiple devices.<br />
The modification will increment automatically meaning starting from tun0 &#8212;> tunX I know you are not responsible for the tun coding but if you think the modification can be useful for you feel free to use it.</p>
<p>http://openvpn.net/solaris/tun.c</p></blockquote>
<p>Now, that tells me that you need to add the option to the CFLAGS to build it as a 64-bit binary and that, if you are creating multiple tunnels, you need to patch the tun.c file.</p>
<p>BZZT.  Wrong.  You need to do both if you want to do anything with the device, otherwise Solaris will <strong>not</strong> make any of the /dev/tun* devices, and, hence, OpenVPN will not work.</p>
<p>Of course, that minor difference in terminology resulted in about 4 business days of effort on-again/off-again effort to get OpenVPN working on Solaris 8.</p>
<p>Another individual contacted me regarding his troubles getting the &#8220;tun&#8221; driver to build and install properly under Solaris 8, and I helped walk him through it.  Oddly, he couldn&#8217;t even get it to compile (through no failure of his own)!  I sent him a tar file of my patched and compiled version and he was able to get things up!  So, I thought I would make it available <a title="tun-1.1 Patched and Compiled for Solaris SPARC 64bit" href="http://www.wesmo.com/blog/wp-content/uploads/2006/08/tun-11-patchedtar.gz">here</a> (not sure why, but wordpress stripped out some of the periods.  The file should be named tun-1.1-patched.tar.gz).  Perhaps I was lucky (seems that way) to get it to compile.</p>
]]></content:encoded>
			<wfw:commentRss>http://geekdom.wesmo.com/2006/08/07/openvpn/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

