OCFS2

Aus Xinux Wiki
Zur Navigation springen Zur Suche springen

Installation

sudo apt-get install ocfs2-tools ocfs2console

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 o2cb
sudo /etc/init.d/o2cb restart

sudo /etc/init.d/ocfs2 restart