Difference between revisions of "Set up an Oracle Cluster File System"

From Linuxintro
imported>ThorstenStaerk
imported>ThorstenStaerk
Line 2: Line 2:
  
 
* [[set up an iscsi storage]]
 
* [[set up an iscsi storage]]
* [[set up a KVM virtual machine]]
+
* [[set up a KVM virtual machine|set up two KVM virtual machines]]
 +
: We assume here they are named node1 and node2 and have the IP addresses 192.168.0.11 and 192.168.0.12.
  
Configure your iscsi initiator, install everything that yast proposes:
+
On both nodes, configure your iscsi initiator, install everything that yast proposes:
 
  yast2 iscsi-client
 
  yast2 iscsi-client
  
Install ocfs2 software
+
On both nodes, install ocfs2 software
 
  yast -i ocfs2-tools ocfsconsole ocfs2-tools-o2cb
 
  yast -i ocfs2-tools ocfsconsole ocfs2-tools-o2cb
  
Make the cluster services start at boot
+
On both nodes, make the cluster services start at boot
 
  /etc/init.d/o2cb enable
 
  /etc/init.d/o2cb enable
 
You get a message "cluster not known". That is okay.
 
You get a message "cluster not known". That is okay.

Revision as of 08:27, 30 April 2010

You want to start your clustering experiences with an Oracle Cluster File System. Here is how. This is an example using SUSE Linux 11.2. As shared storage we use an iscsi storage.

We assume here they are named node1 and node2 and have the IP addresses 192.168.0.11 and 192.168.0.12.

On both nodes, configure your iscsi initiator, install everything that yast proposes:

yast2 iscsi-client

On both nodes, install ocfs2 software

yast -i ocfs2-tools ocfsconsole ocfs2-tools-o2cb

On both nodes, make the cluster services start at boot

/etc/init.d/o2cb enable

You get a message "cluster not known". That is okay.

establish passwordless login between all nodes.

Start ocfs2console, write the cluster nodes in with their local host names (what the command "hostname" return).