<?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>Waste of space</title>
	<atom:link href="http://www.nemeziz.net/blog/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.nemeziz.net/blog</link>
	<description>Just another silly weblog</description>
	<lastBuildDate>Mon, 08 Mar 2010 11:54:32 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Installing Oracle on OpenSolaris</title>
		<link>http://www.nemeziz.net/blog/2010/03/05/installing-oracle-on-opensolaris/</link>
		<comments>http://www.nemeziz.net/blog/2010/03/05/installing-oracle-on-opensolaris/#comments</comments>
		<pubDate>Fri, 05 Mar 2010 17:40:47 +0000</pubDate>
		<dc:creator>nemeziz</dc:creator>
				<category><![CDATA[Opensolaris]]></category>

		<guid isPermaLink="false">http://www.nemeziz.net/blog/?p=17</guid>
		<description><![CDATA[This document describes the installation of Oracle 10.2.01 on OpenSolaris 2009/06. First, we&#8217;ll create the oracle user and groups: # Create groups /usr/sbin/groupadd oinstall /usr/sbin/groupadd dba # Create users /usr/sbin/useradd -d /export/home/oracle -g oinstall -G dba -m -s /bin/bash oracle # Permissions chmod -R 750 /export/home/oracle # Set the password passwd oracle # Setup the [...]]]></description>
			<content:encoded><![CDATA[<p>This document describes the installation of Oracle 10.2.01 on OpenSolaris 2009/06.</p>
<p>First, we&#8217;ll create the oracle user and groups:</p>
<pre># Create groups
/usr/sbin/groupadd oinstall
/usr/sbin/groupadd dba
# Create users
/usr/sbin/useradd -d /export/home/oracle -g oinstall -G dba -m -s /bin/bash oracle
# Permissions
chmod -R 750 /export/home/oracle
# Set the password
passwd oracle
# Setup the user environment
cat &lt;&lt;EOF &gt;&gt; /export/home/oracle/.profile
umask 022
ulimit -Sn 16384
TMP=/tmp
TMPDIR=\$TMP
export TMP TMPDIR
ORACLE_BASE=/opt/oracle/product/10.2.0
ORACLE_HOME=/opt/oracle/product/10.2.0/db_1
NLS_DATE_FORMAT='yyyy-mm-dd hh24:mi:ss'
NLS_LANG=AMERICAN_AMERICA.UTF8
ORACLE_SID=orcl

PATH=\$PATH:\$ORACLE_HOME/bin:/usr/bin:/usr/ucb:/etc:/usr/local/bin:.
export ORACLE_BASE ORACLE_HOME ORACLE_SID NLS_DATE_FORMAT NLS_LANG PATH
EOF</pre>
<p>Next, we create the oracle directory:</p>
<pre>mkdir -p /opt/oracle
chown -R oracle:oinstall /opt/oracle</pre>
<p>Install some necessary packages</p>
<pre>pkg install SUNWarc SUNWctpls SUNWhea SUNWmfrun SUNWscp SUNWswmt</pre>
<p>You will also need the (ancient) dps library for the oracle installer:</p>
<pre>cd /usr/X11/lib/
wget http://www.nemeziz.net/files/libdps.so.5
ln -s libdps.so.5 libdps.so
chmod 755 libdps.so*</pre>
<p>Set the oracle kernel parameters:</p>
<pre>cat &lt;&lt;EOF &gt;&gt; /etc/system
* ORACLE
set noexec_user_stack=1
set semsys:seminfo_semmns=1024
set semsys:seminfo_semmni=100
set semsys:seminfo_semmsl=512
set semsys:seminfo_semvmx=65534
set shmsys:shminfo_shmmin=1
set shmsys:shminfo_shmmax=4294967295
set shmsys:shminfo_shmseg=128
set shmsys:shminfo_shmmni=512
set semsys:seminfo_semopm=256
*************************
EOF</pre>
<p>Create the oracle project:</p>
<pre>projadd oracle
cat &lt;&lt;EOF &gt;&gt; /etc/user_attr
oracle::::project=oracle
EOF
projmod -s -K "project.max-shm-memory=(priv,6gb,deny)" oracle
projmod -s -K "project.max-sem-ids=(priv,256,deny)" oracle</pre>
<p>Now, reboot:</p>
<pre>init 6</pre>
<p>Login as the oracle user with X11 forwarding (ssh -X) and unzip the installer. You will need to hack the install/oraparm.ini file to make opensolaris a “certified version”</p>
<pre>cd database
sed -i s/Solaris=5.10/Solaris=5.11/ install/oraparam.ini</pre>
<p>Run the installer:</p>
<pre>./runInstaller</pre>
<p>The installer will complain about the solaris version, but you can safely ignore this.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.nemeziz.net/blog/2010/03/05/installing-oracle-on-opensolaris/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Opensolaris on Xen with debian Lenny</title>
		<link>http://www.nemeziz.net/blog/2010/02/26/opensolaris-on-xen-with-debian-lenny/</link>
		<comments>http://www.nemeziz.net/blog/2010/02/26/opensolaris-on-xen-with-debian-lenny/#comments</comments>
		<pubDate>Fri, 26 Feb 2010 10:51:34 +0000</pubDate>
		<dc:creator>nemeziz</dc:creator>
				<category><![CDATA[Debian]]></category>
		<category><![CDATA[Opensolaris]]></category>
		<category><![CDATA[Xen]]></category>

		<guid isPermaLink="false">http://www.nemeziz.net/blog/?p=9</guid>
		<description><![CDATA[Installing OpenSolaris (2009.06) with the default Xen tools in debian Lenny is quite challenging. First, you need to upgrade the pygrub bootloader to one that supports zfs. The package can be found in my repository: echo "deb http://www.nemeziz.net/debian lenny main contrib non-free" &#62;&#62; /etc/apt/sources.list apt-get update apt-get install xen-pygrub If you haven&#8217;t already done so, [...]]]></description>
			<content:encoded><![CDATA[<p>Installing OpenSolaris (2009.06) with the default Xen tools in debian Lenny is quite challenging.<br />
First, you need to upgrade the pygrub bootloader to one that supports zfs. The package can be found in my repository:</p>
<pre>echo "deb http://www.nemeziz.net/debian lenny main contrib non-free" &gt;&gt; /etc/apt/sources.list
apt-get update
apt-get install xen-pygrub</pre>
<p>If you haven&#8217;t already done so, you have to download the <a href="http://dlc.sun.com/osol/opensolaris/2009/06/osol-0906-x86.iso">Opensolaris iso</a>.</p>
<p>Then, create the xen config file:</p>
<pre>name = "opensolaris"
vcpus = 1
memory = "1024"
bootloader = "/usr/bin/pygrub"
bootargs = "--kernel=/platform/i86xpv/kernel/amd64/unix --ramdisk=/boot/amd64/x86.microroot"
disk = [
 'file:/root/osol-0906-x86.iso,6:cdrom,r', # Change this path to match the location where you put the iso
 'phy:/dev/storage/opensolaris-disk,0,w',  # Change this path to the disk/image you want to use for opensolaris
vif = ['']</pre>
<p>Now we can create the domU ( xm create -c )</p>
<p>When prompted, you can login with username &#8220;jack&#8221;, password &#8220;jack&#8221;</p>
<p>The easiest way to run the graphical installer is with vnc:</p>
<pre>mkdir .vnc
cp .Xclients .vnc/xstartup
vncserver</pre>
<p>You can now connect to the vnc server and complete the installation.</p>
<p>After the installation, you need to modify your domU config file:</p>
<pre>name = "opensolaris"
vcpus = 1
memory = "1024"
bootloader = "/usr/bin/pygrub"
disk = [ 'phy: /dev/storage/opensolaris-disk,0,w', ]
vif = ['']</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.nemeziz.net/blog/2010/02/26/opensolaris-on-xen-with-debian-lenny/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>ip aliases on a routed network</title>
		<link>http://www.nemeziz.net/blog/2009/12/10/ip-aliases-on-a-routed-network/</link>
		<comments>http://www.nemeziz.net/blog/2009/12/10/ip-aliases-on-a-routed-network/#comments</comments>
		<pubDate>Thu, 10 Dec 2009 10:52:46 +0000</pubDate>
		<dc:creator>nemeziz</dc:creator>
				<category><![CDATA[Xen]]></category>

		<guid isPermaLink="false">http://www.nemeziz.net/blog/?p=7</guid>
		<description><![CDATA[When using a routed netword xen setup ( network-route ), every domU needs an entry in the routing table to be accessible. So, in addition to configuring the ip on the domU, you also need to tell xen which ip&#8217;s you want to use. In the domU config file: vif = [ 'ip=10.0.0.1 10.0.0.2 10.0.0.3'] [...]]]></description>
			<content:encoded><![CDATA[<p>When using a routed netword xen setup ( network-route ), every domU needs an entry in the routing table to be accessible.<br />
So, in addition to configuring the ip on the domU, you also need to tell xen which ip&#8217;s you want to use.<br />
In the domU config file:<br />
vif = [ 'ip=10.0.0.1 10.0.0.2 10.0.0.3']<br />
Will route 10.0.0.1 10.0.0.2 and 10.0.0.3 to this domU</p>
]]></content:encoded>
			<wfw:commentRss>http://www.nemeziz.net/blog/2009/12/10/ip-aliases-on-a-routed-network/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Hot plugging memory</title>
		<link>http://www.nemeziz.net/blog/2009/12/07/hot-plugging-memory/</link>
		<comments>http://www.nemeziz.net/blog/2009/12/07/hot-plugging-memory/#comments</comments>
		<pubDate>Mon, 07 Dec 2009 14:15:26 +0000</pubDate>
		<dc:creator>nemeziz</dc:creator>
				<category><![CDATA[Xen]]></category>

		<guid isPermaLink="false">http://www.nemeziz.net/blog/?p=5</guid>
		<description><![CDATA[Hot plugging memory is possible, but you can only increase the amount. By adding maxmem = &#8217;4096&#8242; in your domU config, you can dynamically increase the amount of memory up to this limit with xm mem-set]]></description>
			<content:encoded><![CDATA[<p>Hot plugging memory is possible, but you can only increase the amount.<br />
By adding<br />
maxmem      = &#8217;4096&#8242;<br />
in your domU config, you can dynamically increase the amount of memory up to this limit with xm mem-set</p>
]]></content:encoded>
			<wfw:commentRss>http://www.nemeziz.net/blog/2009/12/07/hot-plugging-memory/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Xen as a time machine</title>
		<link>http://www.nemeziz.net/blog/2009/11/27/xen-as-a-time-machine/</link>
		<comments>http://www.nemeziz.net/blog/2009/11/27/xen-as-a-time-machine/#comments</comments>
		<pubDate>Fri, 27 Nov 2009 09:25:12 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Xen]]></category>

		<guid isPermaLink="false">http://www.nemeziz.net/blog/?p=3</guid>
		<description><![CDATA[After installation, the kernel keeps telling me that the &#8220;Time went backwards&#8221;. This is a nice new feature, but if you don&#8217;t want, you can add extra=&#8221;clocksource=jiffies&#8221; to your domU config file.]]></description>
			<content:encoded><![CDATA[<p>After installation, the kernel keeps telling me that the &#8220;Time went backwards&#8221;.<br />
This is a nice new feature, but if you don&#8217;t want, you can add<br />
extra=&#8221;clocksource=jiffies&#8221;<br />
to your domU config file.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.nemeziz.net/blog/2009/11/27/xen-as-a-time-machine/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

