<?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>Technical Side of E-Business Juncture &#187; oracle</title>
	<atom:link href="http://tech.ebusinessjuncture.com/tag/oracle/feed/" rel="self" type="application/rss+xml" />
	<link>http://tech.ebusinessjuncture.com</link>
	<description>Tech Tips</description>
	<lastBuildDate>Mon, 26 Sep 2011 01:19:29 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Configuring ocfs2 using multipath for clustering oracle databases</title>
		<link>http://tech.ebusinessjuncture.com/2009/12/configuring-ocfs2-using-multipath-for-clustering-oracle-databases/</link>
		<comments>http://tech.ebusinessjuncture.com/2009/12/configuring-ocfs2-using-multipath-for-clustering-oracle-databases/#comments</comments>
		<pubDate>Wed, 16 Dec 2009 19:56:50 +0000</pubDate>
		<dc:creator>Mike Kniaziewicz</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[cluster]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[multipath]]></category>
		<category><![CDATA[multipathd]]></category>
		<category><![CDATA[ocfs2]]></category>
		<category><![CDATA[oracle]]></category>

		<guid isPermaLink="false">http://tech.ebusinessjuncture.com/?p=283</guid>
		<description><![CDATA[Here is one method for using multipath with ocfs2 on linux to create database volumes on a cluster. The reason for using multipath with ocfs2 is to bind the disks to a file system using the WWID numbers instead of allowing the operating system to assign device names. Device names can change, but WWID will [...]]]></description>
			<content:encoded><![CDATA[<p>Here is one method for using multipath with ocfs2 on linux to create database volumes on a cluster. The reason for using multipath with ocfs2 is to bind the disks to a file system using the WWID numbers instead of allowing the operating system to assign device names. Device names can change, but WWID will not change.</p>
<ol>
<li>Make sure you have ocfs2 and multipath installed on all cluster nodes.</li>
<li>Configure ocfs2 on the first node.</li>
<li>Export the configuration to all nodes in the cluster. You can use ocfs2console to make life easier for your migration. You can check the nodes in the /etc/ocfs2/cluster.conf file to ensure all nodes are listed.</li>
<li>NOTE: At this point you are finished with OCFS and be working on the local systems.</li>
<li>Import your luns. Make sure they are shared between both or all nodes in the cluster.</li>
<li>Set boot.multipath, multipathd, o2cb and ocfs2 to start at boot on all nodes.</li>
<li>Configure the devices in the multipath.conf file. You can find the device names and channels using the lsscsi command. You can find the WWID with the following command: udevinfo -q symlink -n /dev/&lt;name of device&gt;.</li>
<li>After the devices are configured in multipath.conf run the following: multipath -F and multipath -v2. You should see your devices under /dev/mapper/.</li>
<li>In order for ocfs2 to see the devices they need an ocfs2 file system. You can run the following foreach loop in Kshell to accomplish this:
<pre>      cd /dev/mapper
      foreach n (`ls db*`)
      sudo mkfs -t ocfs2 -N &lt;number of nodes&gt;  -L $n $n
      end</pre>
</li>
<li>Create the mount points.</li>
<li>Add the devices to /etc/fstab. Here is an example:
<pre>    /dev/mapper/&lt;device name&gt;   &lt;mount point&gt;   ocfs2  _netdev  0 0</pre>
<p>Note: the arguments for the file systems will vary. Oracle recommends _netdev,datavolume,noinitr for Oracle data volumes like raw, db, u and l. Regular file systems only get _netdev</li>
<li>Run: sudo mount -a. This will mount the volumes locally and since there is an ocfs2 file system on them OCFS will pick them up.</li>
<li>Change the permissions and ownership on the mounted volumes. Do not do this ahead of time, because the file system you created will over-mount the local directory.</li>
<li>Copy multipath.conf to the other nodes and run multipath -F then multipath -v2. If you have any problems make sure multipathd is started.</li>
<li>Create the mount points on each node.</li>
<li>Add the entries to the local /etc/fstab.</li>
<li>Run sudo mount -a.</li>
<li>Do this for every node in the cluster.</li>
</ol>
<p>Walla, you are finished and have your OCFS and multipath working.  If you have any comments of suggestions please post them. As always, please check out the sponsors on this site.</p>
]]></content:encoded>
			<wfw:commentRss>http://tech.ebusinessjuncture.com/2009/12/configuring-ocfs2-using-multipath-for-clustering-oracle-databases/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

