<?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>devtrends.com &#187; OpenSolaris</title>
	<atom:link href="http://www.devtrends.com/index.php/tag/opensolaris/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.devtrends.com</link>
	<description>developing trends in information technology</description>
	<lastBuildDate>Tue, 06 Sep 2011 19:27:42 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Installing Xen (xVM) on OpenSolaris</title>
		<link>http://www.devtrends.com/index.php/installing-xen-xvm-on-opensolaris/</link>
		<comments>http://www.devtrends.com/index.php/installing-xen-xvm-on-opensolaris/#comments</comments>
		<pubDate>Sun, 01 Nov 2009 03:46:58 +0000</pubDate>
		<dc:creator>aaron</dc:creator>
				<category><![CDATA[xVM]]></category>
		<category><![CDATA[hypervisor]]></category>
		<category><![CDATA[OpenSolaris]]></category>
		<category><![CDATA[Virtualization]]></category>
		<category><![CDATA[Xen]]></category>

		<guid isPermaLink="false">http://www.devtrends.com/?p=437</guid>
		<description><![CDATA[I have a friend that will try to &#8220;sell&#8221; an opensource, Linux, product as solution to just about any problem in the IT world. Although I am not adverse to...]]></description>
			<content:encoded><![CDATA[<p>I have a friend that will try to &#8220;sell&#8221; an opensource, Linux, product as solution to just about any problem in the IT world. Although I am not adverse to opensource products in the enterprise realm, IT professionals, such as myself, have become respectively reliant on support contacts with hardware and software vendors. A few years back and prior, support options were not generally available for opensource alternatives of &#8220;mainstream&#8221; solutions. Today this is not as true; with the demise of economic wealth came a rise for less-expensive, enterprise quality products. There are already a few opensource type operating systems with powerful features, such as <a href="http://www.redhat.com/" target="_blank">RedHat Enterprise Linux</a> (RHEL) and <a href="http://www.opensolaris.org/" target="_blank">OpenSolaris</a>, that have excellent support contact options. In addition, there are opensource solutions, such as <a href="http://www.asterisk.org/" target="_blank">Asterisk </a>the open source telephony project and <a href="http://www.zimbra.com/" target="_blank">Zimbra </a>the opensource email project, that also have support contact options. And to top it off, if the manufacturer does not have professional support, you can find support through <a href="http://www.findopensourcesupport.com/" target="_blank">FindOpenSourceSupport.com</a> or <a href="http://www.openlogic.com/" target="_blank">OpenLogic</a>. If great support options are available for opensource solutions, then why does IT spend significant capital on &#8220;closed&#8221; box solutions, such as VMware, when SUN&#8217;s xVM is robust and essentially free??</p>
<p>On to the true purpose of this artcle, let&#8217;s get virtualizing with OpenSolaris&#8217; rendition of Xen, SUN xVM.</p>
<p><strong>OpenSolaris</strong></p>
<p>I am going to assume that you already have OpenSolaris installed. At the time of this article, I was using 2009-06. The second assumption is that all the following commands are ran as root. The third assumption is that your installation of OpenSolaris has access to the Internet.</p>
<p><strong>Installing xVM</strong></p>
<p>In the first step we will create a new boot environment using the <a href="http://dlc.sun.com/osol/docs/content/dev/snapupgrade/reference2.html" target="_blank">beadm </a>tool. Option &#8220;-a&#8221; states to activate the new boot environment and the &#8220;-d xvm&#8221; defines the description for the boot environment. The final xvm is the name of the boot environment.</p>
<pre style="padding-left: 30px;"># pfexec beadm create -a -d xvm xvm</pre>
<p>The second step will install the xVM software packages into the newly created boot environment. The first command mounts the boot environment. The second command installs the xvm-gui package which has all of the xVM dependencies associated, forcing a full install of xVM.</p>
<pre style="padding-left: 30px;"># pfexec beadm mount xvm /tmp/xvm-be
# pfexec pkg -R /tmp/xvm-be install xvm-gui
# pfexec beadm umount xvm</pre>
<p><strong>Configuring your Grub Boot Menu</strong></p>
<p>The next step requires that you modify your boot menu, grub/menu.lst. In the new installation of OpenSolaris, this file will reside as /rpool/boot/grub/menu.lst. Use your favorite editor to open menu.lst:</p>
<pre style="padding-left: 30px;"># nano /rpool/boot/grub/menu.lst</pre>
<p>At the bottom of the file, add the following lines:</p>
<pre style="padding-left: 30px;white-space:-moz-pre-wrap;white-space:-pre-wrap;white-space:-o-pre-wrap;white-space:pre-wrap;word-wrap:break-word;">title xvm
findroot (pool_rpool,0,a)
bootfs rpool/ROOT/xvm
kernel$ /boot/$ISADIR/xen.gz
module$ /platform/i86xpv/kernel/$ISADIR/unix /platform/i86xpv/kernel/$ISADIR/unix -B $ZFS-BOOTFS,console=text
module$ /platform/i86pc/$ISADIR/boot_archive</pre>
<p><em>Note: if you already have a &#8220;title xvm&#8221; section, and your installation was similar to mine, you will likely find that the boot configuration I specified above will work better. However, if you would like to try the boot configuration that was automatically entered, move along with the article and test a connection to the xVM services using the Virtual Machine Manager. If it fails, replace the &#8220;title xvm&#8221; with my version above and reboot.</em></p>
<p><a href="http://www.developingtrends.net/wp-content/uploads/2009/10/menulst.png"><img class="alignnone size-medium wp-image-443" title="menulst" src="http://www.devtrends.com/wp-content/uploads/2009/10/menulst-220x300.png" alt="menulst" width="220" height="300" /></a></p>
<p>Save the menu.lst file and reboot your OpenSolaris server:</p>
<pre style="padding-left: 30px;"># reboot</pre>
<p><strong>Enabling xVM Services</strong></p>
<p>The final step to installing the xVM hypervisor in OpenSolaris is to enable the services for xVM, this is accomplished with the following two commands:</p>
<pre style="padding-left: 30px;"># svcadm enable -r xvm/virtd
# svcadm enable -r xvm/domains</pre>
<p><strong>Jump In!</strong></p>
<p>Being that I am a Windows administrator by trade, I enjoy the GUI interface. Such would be my choice in any Linux environment too. Using the Applications menu choose System Tools &gt; Virtual Machine Manager and connect to the localhost.</p>
<p><a href="http://www.developingtrends.net/wp-content/uploads/2009/10/virtmgmt.png"><img class="alignnone size-medium wp-image-444" title="virtmgmt" src="http://www.devtrends.com/wp-content/uploads/2009/10/virtmgmt-300x243.png" alt="virtmgmt" width="300" height="243" /></a></p>
<p>As a final note, be sure to check out the <a href="http://hub.opensolaris.org/bin/view/Community+Group+xen/docs" target="_blank">documentation on OpenSolaris.org</a>.</p>
<p>-Aaron Gilbert</p>
]]></content:encoded>
			<wfw:commentRss>http://www.devtrends.com/index.php/installing-xen-xvm-on-opensolaris/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>OpenSolaris iSCSI Initiator</title>
		<link>http://www.devtrends.com/index.php/opensolaris-iscsi-initiator/</link>
		<comments>http://www.devtrends.com/index.php/opensolaris-iscsi-initiator/#comments</comments>
		<pubDate>Fri, 11 Sep 2009 20:36:54 +0000</pubDate>
		<dc:creator>aaron</dc:creator>
				<category><![CDATA[iSCSI]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[OpenSolaris]]></category>
		<category><![CDATA[Storage]]></category>
		<category><![CDATA[zFeatured]]></category>
		<category><![CDATA[Initiator]]></category>

		<guid isPermaLink="false">http://www.devtrends.com/?p=239</guid>
		<description><![CDATA[As part of my testing phase during the custom SAN project, I was running into performance issues with the Microsoft iSCSI Software Initiator and the OpenSolaris COMSTAR iSCSI target. Although...]]></description>
			<content:encoded><![CDATA[<p>As part of my testing phase during the custom SAN project, I was running into performance issues with the Microsoft iSCSI Software Initiator and the OpenSolaris COMSTAR iSCSI target. Although some individuals were running into significant performance issues, such as 600KB/sec writes, my problem was 30MB/sec writes with 90MB/sec reads. Regardless, that is not the point of this post &#8211; instead I am posting the commands I used for employing SUN&#8217;s iSCSI Initiator during testing between SUN&#8217;s iSCSI target and SUN&#8217;s iSCSI initiator.</p>
<p><strong>SUN iSCSI Initiator</strong></p>
<p>Obviously you need to have your network configured properly prior to working with the iSCSI initiator or targets. In this example, I was working with the iSCSI initiator and target in a lab environment, with the host (target) being 192.168.0.18 and the client (initiator) being 192.168.0.19. Secondly, you will need the iSCSI initiator software to be installed from Package Manager &#8211; easiest way is to search for iscsi and ensure all four of those packages are installed.</p>
<p>For this example we will use Send Targets for discovering iSCSI targets/paths:</p>
<pre style="padding-left: 30px;">iscsiadm add discovery-address 192.168.0.18:3260
iscsiadm modify discovery --sendtargets enable</pre>
<p>Now that you have added the discovery address of the iSCSI target and enabled the discovery &#8220;Send Targets&#8221;, check to see if your target was discovered:</p>
<pre style="padding-left: 30px;">iscsiadm list target</pre>
<p>If you saw the targets you were expecting, the next step is to create the device links between iSCSI and your system &#8211; so you can see the iSCSI LUN as a disk on your system.</p>
<pre style="padding-left: 30px;">devfsadm -i iscsi</pre>
<p>Check the available disks on your system using the format command. After running the format command, hit CTRL-C to bounce back to the terminal prompt.</p>
<p><strong>Using / Mounting the iSCSI LUN</strong></p>
<p>Now that you have the iSCSI initiator working properly and the iSCSI targets discovered, lets actually use the new iSCSI disk with ZFS.</p>
<p>First we need to create the ZFS pool using the new disk. If you forgot the name of the new disk, you can learn it using the format command. If it is anything like the one on my OpenSolaris box, the name is rather large, (c0t600144F0F9A00C0000004AA9510A0001d0):</p>
<pre style="padding-left: 30px;">zpool create diskpool c0t600144F0F9A00C0000004AA9510A0001d0</pre>
<p>To verify the pool was created, use:</p>
<pre style="padding-left: 30px;">zpool list</pre>
<p>Now we can create a ZFS file system on top of that pool:</p>
<pre style="padding-left: 30px;">zfs create diskpool/test</pre>
<p>Check your new ZFS filesystem was created:</p>
<pre style="padding-left: 30px;">zfs list</pre>
<p>And now you can create files within the mount point:</p>
<pre style="padding-left: 30px;">root@opensolaris:/diskpool/test/#</pre>
<p>Everything you write to that mount point will be written to the iSCSI target, as one would hope.</p>
<p>Good luck with your performance!</p>
<p><strong>Credits</strong></p>
<p><a href="http://wikis.sun.com/display/OpenSolarisInfo/How+to+Configure+an+iSCSI+Initiator" target="_blank">http://wikis.sun.com/display/OpenSolarisInfo/How+to+Configure+an+iSCSI+Initiator</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.devtrends.com/index.php/opensolaris-iscsi-initiator/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>OpenSolaris Link Aggregation with LACP</title>
		<link>http://www.devtrends.com/index.php/opensolaris-link-aggregation-with-lacp/</link>
		<comments>http://www.devtrends.com/index.php/opensolaris-link-aggregation-with-lacp/#comments</comments>
		<pubDate>Wed, 02 Sep 2009 19:27:00 +0000</pubDate>
		<dc:creator>aaron</dc:creator>
				<category><![CDATA[LACP]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[OpenSolaris]]></category>
		<category><![CDATA[Teaming]]></category>
		<category><![CDATA[Link Aggregation]]></category>

		<guid isPermaLink="false">http://www.devtrends.com/?p=223</guid>
		<description><![CDATA[So which is it? What is your favorite Linux? Transitioning from the clunky &#8220;bonding&#8221; in RedHat to the ease of configuring link aggregation in OpenSolaris &#8211; among other things &#8211;...]]></description>
			<content:encoded><![CDATA[<p>So which is it? What is your favorite Linux? Transitioning from the clunky &#8220;bonding&#8221; in RedHat to the ease of configuring link aggregation in OpenSolaris &#8211; among other things &#8211; I am beginning to love OpenSolaris.</p>
<p><strong>Creating the Link Aggregate</strong></p>
<p>If your configuration was similar to mine, you will already have your interfaces plumbed &#8211; which means they cannot be added to the link aggregate until they are unplumb&#8217;ed.</p>
<p><em><span style="text-decoration: underline;">Checking for Plumbing</span></em></p>
<p>If you try to create an aggregate with plumbed interfaces, you will receive a &#8220;dladm: create operation failed: link busy&#8221; error. You can check if they have been plumbed as they will show in the list for &#8220;ifconfig -a&#8221;:</p>
<pre style="PADDING-LEFT: 30px">e1000g0: flags=1000842&lt;BROADCAST,RUNNING,MULTICAST,IPv4&gt; mtu 1500 index 8
 inet 0.0.0.0 netmask 0
 ether 0:15:17:b8:47:a8
e1000g1: flags=1000842&lt;BROADCAST,RUNNING,MULTICAST,IPv4&gt; mtu 1500 index 9
 inet 0.0.0.0 netmask 0
 ether 0:15:17:b8:47:a9
e1000g2: flags=1000842&lt;BROADCAST,RUNNING,MULTICAST,IPv4&gt; mtu 1500 index 10
 inet 0.0.0.0 netmask 0
 ether 0:15:17:b8:47:aa
e1000g3: flags=1000842&lt;BROADCAST,RUNNING,MULTICAST,IPv4&gt; mtu 1500 index 11
 inet 0.0.0.0 netmask 0
 ether 0:15:17:b8:47:ab</pre>
<p>If they appear, as shown above, unplumb them using the following commands:</p>
<pre style="PADDING-LEFT: 30px">ifconfig e1000g0 unplumb
ifconfig e1000g1 unplumb
ifconfig e1000g2 unplumb
ifconfig e1000g3 unplumb</pre>
<p><span style="text-decoration: underline;"><em>Create the Aggregate and Plumb It!</em></span></p>
<p>Using the dladm tool, you can easily create the aggregate usign the following command:</p>
<pre style="PADDING-LEFT: 30px">dladm create-aggr -d e1000g0 -d e1000g1 -d e1000g2 -d e1000g3 1</pre>
<p>You&#8217;lll notice a -d with each interface and a number 1 at the end. The number 1 references the aggregate number and it must start at 1, not 0.</p>
<p>Next we will plumb the newly created aggregate with an IP address:</p>
<pre style="PADDING-LEFT: 30px">ifconfig aggr1 plumb 192.168.0.101 up</pre>
<p><span style="text-decoration: underline;"><em>Show me the Aggregate</em></span></p>
<p>If you are like me, then you will want to see the aggregate configured:</p>
<pre style="PADDING-LEFT: 30px">dladm show-aggr</pre>
<p>You should see an output similar to the following:</p>
<pre style="PADDING-LEFT: 30px">LINK            POLICY   ADDRPOLICY           LACPACTIVITY  LACPTIMER   FLAGS
aggr1           L4       auto                 off           short       -----</pre>
<p><strong>Modify Aggregate for LACP</strong></p>
<p>To ensure that LACP is functioning as I would hope, I modified the aggregate, changing LACPACTIVITY to active instead of off. Use the following command to modify LACPACTIVITY:</p>
<pre style="padding-left: 30px;">dladm modify-aggr -L active -T short 1</pre>
<p>Now run the following command to verify the settings took:</p>
<pre style="padding-left: 30px;">dladm show-aggr</pre>
<p>You should now see an output similar to the following:</p>
<pre style="padding-left: 30px;">LINK            POLICY   ADDRPOLICY           LACPACTIVITY  LACPTIMER   FLAGS
aggr1           L4       auto                 active        short       -----</pre>
<p><strong>Setting Aggregate IP Configuration as Persistent</strong></p>
<p>To ensure that your IP address configuration for the aggregate is persistent across reboots, modify the /etc/hostname.aggr1 file and add the desired IP address. The /etc/hostname.aggr1 should contain one line consisting of the IP address:</p>
<pre style="padding-left: 30px;">192.168.0.101</pre>
<p><strong>Switch Configuration</strong></p>
<p>Obviously, you must configure the switch for LACP otherwise your aggregate will fail. Each switch is different, refer to the manual for your switch.</p>
<p> </p>
<p>I&#8217;m out&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.devtrends.com/index.php/opensolaris-link-aggregation-with-lacp/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Disable GUI (GDM) in OpenSolaris</title>
		<link>http://www.devtrends.com/index.php/disable-gui-gdm-in-opensolaris/</link>
		<comments>http://www.devtrends.com/index.php/disable-gui-gdm-in-opensolaris/#comments</comments>
		<pubDate>Wed, 02 Sep 2009 18:17:40 +0000</pubDate>
		<dc:creator>aaron</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[OpenSolaris]]></category>
		<category><![CDATA[GDM]]></category>
		<category><![CDATA[GUI]]></category>

		<guid isPermaLink="false">http://www.devtrends.com/?p=221</guid>
		<description><![CDATA[Recently I have been working on an iSCSI target using SUN&#8217;s OpenSolaris and SUN&#8217;s iSCSI target, COMSTAR. After installing and configuring OpenSolaris I wanted to disable the GUI to save...]]></description>
			<content:encoded><![CDATA[<p>Recently I have been working on an iSCSI target using SUN&#8217;s OpenSolaris and SUN&#8217;s iSCSI target, COMSTAR. After installing and configuring OpenSolaris I wanted to disable the GUI to save on resources. Forunately this is easy with OpenSolaris.</p>
<p><strong>Disable GUI</strong></p>
<p>To disable the GUI, type the following command in a terminal window:</p>
<p>pfexec svcadm disable gdm</p>
<p><strong>Enable GUI</strong></p>
<p>To enable the GUI, type the following command at the terminal prompt:</p>
<p>pfexec svcadm enable gdm</p>
<p> </p>
<p>I&#8217;m out&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.devtrends.com/index.php/disable-gui-gdm-in-opensolaris/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

