<?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>Alexey Bokov's weblog &#187; OpenSolaris</title>
	<atom:link href="http://bokov.net/weblog/tag/opensolaris/feed/" rel="self" type="application/rss+xml" />
	<link>http://bokov.net/weblog</link>
	<description>Anything that interests me</description>
	<lastBuildDate>Tue, 21 Feb 2012 15:30:27 +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>Installing Sun Grid Engine on Amazon EC2</title>
		<link>http://bokov.net/weblog/ec2/installing-sun-grid-engine-on-amazon-ec2/</link>
		<comments>http://bokov.net/weblog/ec2/installing-sun-grid-engine-on-amazon-ec2/#comments</comments>
		<pubDate>Tue, 07 Apr 2009 17:54:45 +0000</pubDate>
		<dc:creator>Alexey Bokov</dc:creator>
				<category><![CDATA[administration]]></category>
		<category><![CDATA[compute grid]]></category>
		<category><![CDATA[ec2]]></category>
		<category><![CDATA[/etc/hosts]]></category>
		<category><![CDATA[Amazon EC2]]></category>
		<category><![CDATA[hostname]]></category>
		<category><![CDATA[open source]]></category>
		<category><![CDATA[OpenSolaris]]></category>
		<category><![CDATA[SGE]]></category>
		<category><![CDATA[sun]]></category>
		<category><![CDATA[work]]></category>

		<guid isPermaLink="false">http://bokov.net/weblog/?p=158</guid>
		<description><![CDATA[As base AMI i used ami-7db75014 &#8211; it&#8217;s OpenSolaris supported by Sun, common informartion about installing and using OpenSolaris in EC2 also available in Sun&#8217;s Amazon EC2 Getting started guide &#8211; in this post I will focus almost in SGE using in Amazon EC2. As SGE distributive i use all-in-one tar package &#8211; i choosed [...]]]></description>
			<content:encoded><![CDATA[<p>As base AMI i used ami-7db75014 &#8211; it&#8217;s <a href="http://blogs.sun.com/ec2/entry/opensolaris_2008_11_on_amazon">OpenSolaris supported by Sun</a>, common informartion about installing and using OpenSolaris in EC2 also available in <a href="http://www.sun.com/third-party/global/amazon/Sun_AmazonEC2_GettingStartedGuide.pdf">Sun&#8217;s Amazon EC2 Getting started guide</a> &#8211; in this post I will focus almost in SGE using in Amazon EC2. As SGE distributive i use all-in-one tar package &#8211; i choosed &#8220;All supported platform&#8221; in <a href="https://cds.sun.com/is-bin/INTERSHOP.enfinity/WFS/CDS-CDS_SMI-Site/en_US/-/USD/ViewProductDetail-Start?ProductRef=GE-6.2U2-OS-G-F@CDS-CDS_SMI">Grid Engige download page</a> &#8211; it takes about 350 Mb, but I don&#8217;t worry about platform architecture &#8211; if sun support it &#8211; it will be in this package. This <strong>ge62u2_1.tar.gz </strong> contains bunch of other tar.gz&#8217;s ( and even <a href="http://hedeby.sunsource.net">hedeby&#8217;s core package</a> ) and can be unpacked by :</p>
<address>root@ec2-server:~/tools/archive# gzip -dc ge62u2_1.tar.gz | tar xvpf -</address>
<p>So I just go inside ge6.2u2_1 and unpack them all using something like this</p>
<address>for myfile in *.tar.gz</address>
<address>do</address>
<address> gzip -dc $myfile | tar xvpf -</address>
<address>done</address>
<p>One important thing &#8211; <strong>hedeby-1.0u2-core.tar.gz </strong>contains old versions of some files from <strong>ge-6.2u2_1-common.tar.gz &#8211; </strong>there&#8217;s conflicts in files common/util/arch  and common/util/arch_variables &#8211; <a href="bokov.net/data/administration/sge-hedeby/sge_hedeby_diff.txt">here&#8217;s diff for them</a> &#8211; may be sometimes it can be usefull, but for my configuration it causes very strange errors when I try to install executor host :</p>
<address>value == NULL for attribute &#8220;mailer&#8221; in configuration list of &#8220;ec2-xx-xxx-xxx-xxx.compute-1.amazonaws.com&#8221;</address>
<address>./inst_sge[261]: Translate: not found [No such file or directory]</address>
<address>./inst_sge[263]: Translate: not found [No such file or directory]</address>
<address>./inst_sge[264]: Translate: not found [No such file or directory]</address>
<p>When I replace this files from <strong>ge-6.2u2_1-common.tar.gz </strong>installation works as expected. Next point it&#8217;s DNS configuration &#8211; SGE is very picky to DNS and it will cause some problems in running SGE Amazon EC2 instances with SGE, this stuff can be fixed using <a href="http://www.cultofgary.com/2008/04/24/ec2-sun-grid-engine-and-host_aliases/"><strong>host_aliases</strong> file in SGE</a>, or other way it&#8217;s to use <strong><em>/etc/hosts </em></strong>file for it &#8211; some kind of this technique used in <a href="http://wiki.gridengine.info/wiki/index.php/SGE-Hedeby-And-Amazon-EC2">Hedeby-SGE on Amazon EC2 demo</a>, for example if we have master this name and 2 executor hosts I put this lines into /etc/hosts :</p>
<p><em><strong>#internal_ip external_full_name external_short_name internal_full_name internal_short_name</strong><br />
10.yyy.xyz.zzz ec2-RRR-TTT-ZZZ-YYY.compute-1.amazonaws.com ec2-RRR-TTT-ZZZ-YYY domU-mm-ww-PPP-WWW-FFF-GGG.compute-1.internal domU-mm-ww-PPP-WWW-FFF-GGG<br />
10.yyy.qwe.ttt ec2-aaa-bbb-ccc-ddd.compute-1.amazonaws.com ec2-aaa-bbb-ccc-ddd domU-mm-ww-JJJ-HHH-DDD-SSS.compute-1.internal domU-mm-ww-JJJ-HHH-DDD-SSS<br />
10.yyy.pre.ppp ec2-yyy-rrr-eee-qqq.compute-1.amazonaws.com ec2-yyy-rrr-eee-qqq domU-mm-ww-UUU-III-OOO-PPP.compute-1.internal domU-mm-ww-UUU-III-OOO-PPP</em></p>
<p>Also I use <em><strong>hostname ec2-RRR-TTT-ZZZ-YYY</strong></em> ( external_short_name )  to set instance hostname &#8211; this names I use as hostnames when I configure SGE.</p>
]]></content:encoded>
			<wfw:commentRss>http://bokov.net/weblog/ec2/installing-sun-grid-engine-on-amazon-ec2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

