jfKVM : Storage

OCFS2 Storage:
==============

Desc:
-----
Shared Disk File system for iSCSI storage pools (Oracle).

Instructions:
-------------

Add the iSCSI target to each server.

Start the iSCSI on both servers but format the pool from one server only.

On each server create /etc/ocfs2/cluster.conf
  node:
    number = 0
    name = hostname1
    ip_address = 192.168.1.2
    ip_port = 7777
    cluster = ocfs2

  node:
    number = 1
    name = hostname2
    ip_address = 192.168.1.3
    ip_port = 7777
    cluster = ocfs2

  cluster:
    node_count = 2
    heartbeat_mode = local
    name = ocfs2

Note : The name in each node must be the hostname (not the full domain name)

config service on each server:
  /etc/init.d/o2cb configure
Debian way:
  dpkg-reconfigure ocfs2-tools

  Load O2CB driver on boot (y/n) [y]: y
  Cluster stack backing O2CB [o2cb]: ENTER
  Cluster to start on boot (Enter "none" to clear) [ocfs2]: ENTER
  Specify heartbeat dead threshold (=7) [31]: ENTER
  Specify network idle timeout in ms (=5000) [30000]: ENTER
  Specify network keepalive delay in ms (=1000) [2000]: ENTER
  Specify network reconnect delay in ms (=2000) [2000]: ENTER

start cluster on each server:
  o2cb register-cluster ocfs2

Now you should be able to mount the volume on both servers.

Notes:
 - if you get error "mount.ocfs2: Cluster name is invalid while trying to join the group"
   you need to run "o2cb register-cluster" again.



Project Page Help GitHub