OCFS2

Aus xinux.net
Zur Navigation springen Zur Suche springen

Installation

sudo apt-get install ocfs2-tools ocfs2console pacemaker resource-agents fence-agents openais drbd8-utils

Configuration

Edit /etc/ocfs2/cluster.conf as follows
#/etc/ocfs2/cluster.conf
node:
       ip_port = 7777
       ip_address = 192.168.0.128
       number = 0
       name = node1
       cluster = ocfs2
node:
       ip_port = 7777
       ip_address = 192.168.0.129
       number = 1
       name = node2
       cluster = ocfs2
cluster:
       node_count = 2
       name = ocfs2

reconfigure ocfs2 with following command with their default values

sudo dpkg-reconfigure ocfs2-tools

this should generate this file ...

#/etc/ocfs2/cluster.conf
O2CB_ENABLED=true
O2CB_BOOTCLUSTER=ocfs2
O2CB_HEARTBEAT_THRESHOLD=31
O2CB_IDLE_TIMEOUT_MS=30000
O2CB_KEEPALIVE_DELAY_MS=2000
O2CB_RECONNECT_DELAY_MS=2000


sudo /etc/init.d/o2cb restart
sudo /etc/init.d/ocfs2 restart

drbd8

sudo apt-get install drbd8-utils