OCFS2: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
| Zeile 20: | Zeile 20: | ||
name = ocfs2 | 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/o2cb restart | ||
| − | + | sudo /etc/init.d/ocfs2 restart | |
| − | sudo /etc/init.d/ocfs2 restart | ||
Version vom 27. September 2012, 09:59 Uhr
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 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