<?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>HBY Consultancy &#187; Oracle</title>
	<atom:link href="http://www.hbyconsultancy.com/tags/oracle/feed" rel="self" type="application/rss+xml" />
	<link>http://www.hbyconsultancy.com</link>
	<description>IT Consultant, PHP Expert, e-Government Specialist and Energy Engineer</description>
	<lastBuildDate>Sun, 01 Jan 2012 12:21:41 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.4</generator>
		<item>
		<title>Shared OCFS2 partition on Ubuntu Server 10.04 x64</title>
		<link>http://www.hbyconsultancy.com/blog/shared-ocfs2-partition-on-ubuntu-server-10-04-x64.html</link>
		<comments>http://www.hbyconsultancy.com/blog/shared-ocfs2-partition-on-ubuntu-server-10-04-x64.html#comments</comments>
		<pubDate>Sat, 07 Aug 2010 09:08:11 +0000</pubDate>
		<dc:creator>hatem</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[cluster]]></category>
		<category><![CDATA[GFS2]]></category>
		<category><![CDATA[HBA Card]]></category>
		<category><![CDATA[NFS]]></category>
		<category><![CDATA[OCFS2]]></category>
		<category><![CDATA[Oracle]]></category>
		<category><![CDATA[SAN Storage]]></category>
		<category><![CDATA[Shared Filesystem]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://www.hbyconsultancy.com/?p=494</guid>
		<description><![CDATA[One of the applications that I&#8217;m working on uses archived documents, there is no NoSQL here, just plain tiff files with indexes in Oracle database. Everything related to document access, permissions, conversions, watermarking, security, encryption &#8230; is managed by the application itself. So I had to keep my cluster permanently connected to a SAN storage [...]<h3>Related Posts</h3>
<ol class="yarpp">
		<li><a href="http://www.hbyconsultancy.com/blog/two-nodes-load-balance-and-failover-with-keepalived-and-ubuntu-server-10-04-x64.html" rel="bookmark">Two nodes Load balance and Failover with keepalived and Ubuntu Server 10.04 x64 &raquo;</a><!-- (9.7)--></li>
		<li><a href="http://www.hbyconsultancy.com/blog/create-a-master-master-mysql-replication-ubuntu-server-10-04-x64.html" rel="bookmark">Create a Master Master MySQL replication &#8211; Ubuntu Server 10.04 x64 &raquo;</a><!-- (5.8)--></li>
		<li><a href="http://www.hbyconsultancy.com/blog/ubuntu-howto-fix-repository-signature-verification-issues.html" rel="bookmark">Ubuntu Howto Fix Repository Signature Verification Issues &raquo;</a><!-- (5.3)--></li>
	</ol>
]]></description>
			<content:encoded><![CDATA[<p>One of the applications that I&#8217;m working on uses archived documents, there is no NoSQL here, just plain tiff files with indexes in Oracle database. Everything related to document access, permissions, conversions, watermarking, security, encryption &#8230; is managed by the application itself. So I had to keep <a href="http://www.hbyconsultancy.com/blog/two-nodes-load-balance-and-failover-with-keepalived-and-ubuntu-server-10-04-x64.html">my cluster</a> permanently connected to a SAN storage via HBA fiber cards.</p>
<p>In the beginning I opted for NFS as shared file system, then decided to go for <a href="http://oss.oracle.com/projects/ocfs2/">OCFS2</a> which is open source, maintained by Oracle, and available under GPLv2.</p>
<p>Some Pros/Cons of NFS, GFS2 and OCFS2 (from <a href="http://www.gpaterno.com/publications/2010/dublin_ossbarcamp_2010_fs_comparison.pdf">Dublin OSS barcamp</a>) :</p>
<p><strong>NFS</strong></p>
<ul>
<li>Pro: standard, cross-platform, easy to implement</li>
<li>Con: Poor performance, single point of failure (single locking manager, even in HA)</li>
</ul>
<p><strong>GFS2</strong></p>
<ul>
<li>Pro: Very responsive on large data files, works on physical and virtual, quota and SE-Linux support, faster than EXT3 when I/O operations are on the same node</li>
<li>Con: Only supported with Red Hat, Performance issues on accessing small files on several subdirectory on different nodes</li>
</ul>
<p><strong>OCFS2</strong></p>
<ul>
<li>Pro: Very fast with large and small data files on different node with two types of performance models (mail, data file). Works on a physical and virtual.</li>
<li>Con: Supported only through contract with Oracle or SLES, no quota support, no on-line resize</li>
</ul>
<p>First we need to install OCFS2 tools :</p>
<p><code>sudo apt-get install ocfs2-tools</code></p>
<p>There is another package ocfs2console that you want to install to configure the cluster via GUI, but since I&#8217;m using ubuntu server I&#8217;m skipping this to configure my cluster manually.</p>
<p style="text-align: center;"><a href="http://www.hbyconsultancy.com/wp-content/uploads/2010/08/CFS2Console.png"><img class="size-medium wp-image-496 aligncenter" title="CFS2Console" src="http://www.hbyconsultancy.com/wp-content/uploads/2010/08/CFS2Console-300x192.png" alt="" width="300" height="192" /></a></p>
<p>Create on every node attached to storage /etc/ocfs2/cluster.conf</p>
<p><code>sudo vi /etc/ocfs2/cluster.conf</code></p>
<p>With the content below, only replace node1 and node2 with their respective names and IP for each node :</p>
<p><code>node:<br />
name = node1<br />
cluster = ocfs2<br />
number = 0<br />
ip_address = 10.10.0.0<br />
ip_port = 7777<br />
node:<br />
name = node2<br />
cluster = ocfs2<br />
number = 1<br />
ip_address = 10.10.0.1<br />
ip_port = 7777<br />
cluster:<br />
name = ocfs2<br />
node_count = 2</code></p>
<p>Now you reconfigure ocfs2-tools with the default values :</p>
<p><code>sudo dpkg-reconfigure ocfs2-tools</code></p>
<p>then restart services :</p>
<p><code>sudo /etc/init.d/o2cb restart<br />
sudo /etc/init.d/ocfs2 restart</code></p>
<p>If your fiber card connected to your host/storage, and virtual disks created and presented you should run fdisk to see it :</p>
<p><code>$ sudo fdisk -l<br />
Disk /dev/sda: 1073.7 GB, 1073741824000 bytes<br />
255 heads, 63 sectors/track, 130541 cylinders<br />
Units = cylinders of 16065 * 512 = 8225280 bytes<br />
Sector size (logical/physical): 512 bytes / 512 bytes<br />
I/O size (minimum/optimal): 512 bytes / 512 bytes<br />
Disk identifier: 0x02020202</code></p>
<p>the result have been truncated to show only one virtual disk, and you might see multiple /dev/sda, /dev/sdb, /dev/sdc&#8230; according to your configuration in addition to your local hard disks. What I have done is creating a 1TB partition that I will share between my two nodes :</p>
<p><code>$ sudo fdisk /dev/sda</code></p>
<p>In fdisk menu choose &#8220;n&#8221; for new partition, and choose your partition size according to your requirements. Then use &#8220;w&#8221; to write changes and exit.</p>
<p>Finally we create a ocfs2 partition table :</p>
<p><code>$ mkfs.ocfs2 /dev/sda</code></p>
<p>mount your partition :</p>
<p><code>$ sudo mkdir /archives<br />
$sudo mount -t ocfs2 /dev/sda /archives</code></p>
<p>or you can add it to fstab to mount automatically on boot :</p>
<p><code>$ /dev/sda /archives ocfs2 _netdev 0 0</code></p>
<p>The _netdev option is used here to prevent the system from attempting to mount these file systems until the network has been enabled on the system.</p>
<p>You want to test your new partition, and you will notice that every file/folder created on node1 is automatically available on node2, and vise-versa.</p>
<p>Enjoy !</p>
<h3>Related Posts</h3>
<ol class="yarpp">
		<li><a href="http://www.hbyconsultancy.com/blog/two-nodes-load-balance-and-failover-with-keepalived-and-ubuntu-server-10-04-x64.html" rel="bookmark">Two nodes Load balance and Failover with keepalived and Ubuntu Server 10.04 x64 &raquo;</a><!-- (9.7)--></li>
		<li><a href="http://www.hbyconsultancy.com/blog/create-a-master-master-mysql-replication-ubuntu-server-10-04-x64.html" rel="bookmark">Create a Master Master MySQL replication &#8211; Ubuntu Server 10.04 x64 &raquo;</a><!-- (5.8)--></li>
		<li><a href="http://www.hbyconsultancy.com/blog/ubuntu-howto-fix-repository-signature-verification-issues.html" rel="bookmark">Ubuntu Howto Fix Repository Signature Verification Issues &raquo;</a><!-- (5.3)--></li>
	</ol>
]]></content:encoded>
			<wfw:commentRss>http://www.hbyconsultancy.com/blog/shared-ocfs2-partition-on-ubuntu-server-10-04-x64.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Efficient Edge 2010 &#8211; Sun Oracle Wipro Conference</title>
		<link>http://www.hbyconsultancy.com/blog/efficient-edge-2010-sun-oracle-wipro-conference.html</link>
		<comments>http://www.hbyconsultancy.com/blog/efficient-edge-2010-sun-oracle-wipro-conference.html#comments</comments>
		<pubDate>Wed, 03 Mar 2010 19:29:42 +0000</pubDate>
		<dc:creator>hatem</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Datacenter]]></category>
		<category><![CDATA[IT infrastructure]]></category>
		<category><![CDATA[KAUST]]></category>
		<category><![CDATA[Oracle]]></category>
		<category><![CDATA[Storage]]></category>
		<category><![CDATA[Sun]]></category>
		<category><![CDATA[Virtualization]]></category>
		<category><![CDATA[Wipro]]></category>

		<guid isPermaLink="false">http://www.hbyconsultancy.com/?p=141</guid>
		<description><![CDATA[I assisted today at the Efficient Edge 2010 conference organized by Wipro in a partnership with Sun/Oracle. The conference was held today in Intercontinental Jeddah from 8h30 to 13h30. Sincerely beside the commercial aspect of the conference, it was really very informative, and it was a pleasure to meet few names from Sun Microsystems mainly Iyad Al-Bukhari, Andy Clark, and Thomas Bretscher.<h3>Related Posts</h3>

No related posts.
]]></description>
			<content:encoded><![CDATA[<p>I assisted today at the Efficient Edge 2010 conference organized by Wipro in a partnership with Sun/Oracle. The conference was held today in Intercontinental Jeddah from 8h30 to 13h30. Sincerely beside the commercial aspect of the conference, it was really very informative, and it was a pleasure to meet few names from Sun Microsystems mainly Iyad Al-Bukhari, Andy Clark, and Thomas Bretscher.<span id="more-141"></span></p>
<p>The first session was about Sun SPARC enterprise servers, and I liked the idea of supporting mix of processors versions in the M4000, M500 and M9000 (the M series servers) &#8211; and it&#8217;s only Sun that offer this compared to IBM and HP. Some benchmarks also in this session and was very informative; also covered different aspect of the M-Series and CMT servers for single-threaded and multi-threaded.</p>
<p>In the second session the Datacenter Architect talked about Datacenter efficiency through virtualization. Andy talked about different level of virtualization Servers, Storage, and Network, in addition to virtualization tool Sun VDI software and Sun Ops Center. The business case in the end was very interesting showing 14% ROI in the first year only. There is something I noticed that virtualization tools are available free with Open Solaris, and coming soon to Solaris; and you don&#8217;t have to pay more to use them ! It&#8217;s something like when you buy a new car, then you try to use the Radio and they tell you have to pay more for this feature. Well, I totally agree with Andy and find it really ridiculous to do this; especially that I have a similar problem with HP Storage and the way they limit licencing to a fixed number of TB &#8211; so to add more capacity we&#8217;ll need a new license.</p>
<p>In the last session, Thomas talked about Sun Storage 7000 Unified Storage Systems. Almost all speakers was insisting on the ZFS &#8211; the famous Sun File Systems; obviously it was mentioned more frequently with the storage session. I liked especially the Enterprise SSDs, which eliminates storage bottlenecks. The ZFS pool guarantee a better performance for writes via the ZIL pool and reads via L2ARC pool &#8211; both connected to SSDs in addition to a third pool with cheap HDs.</p>
<p>The last session was about Sun FlashFire; also by Thomas. There was a case study of the KAUST presented by Mohammed Abdel Aal; Manager KAUST IT Computing Infrastructure. Mr Mohammed talked more about KAUST research strategy, but there is something that I liked most in KAUST IT requirements &#8220;No legacy systems, no legacy thinking&#8221;.</p>
<p>Overall it was great meeting IT professionals. I have already worked with Sun servers and Solaris, but I don&#8217;t have previously good knowledge of their hardware architecture. I was only familiar with ZFS and Open Solaris.</p>
<p>I didn&#8217;t stay for the lunch, but I expect it to be great too.</p>
<h3>Related Posts</h3>
<p>No related posts.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.hbyconsultancy.com/blog/efficient-edge-2010-sun-oracle-wipro-conference.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

