summaryrefslogtreecommitdiff
path: root/system/ocfs2-tools/README.SLACKWARE
diff options
context:
space:
mode:
authorMario Preksavec <mario at slackware dot hr>2019-05-17 23:24:54 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2019-05-17 23:25:25 +0700
commit7eed0390c7f9e6a8bf3447e1ec9dcdd5565b5135 (patch)
treedbff3d6eb325d10d198ef45864f8588b564e5839 /system/ocfs2-tools/README.SLACKWARE
parentb02144a8d2f33677b2f7d0c87bb98d4bc50fb4ae (diff)
downloadslackbuilds-7eed0390c7f9e6a8bf3447e1ec9dcdd5565b5135.tar.gz
system/ocfs2-tools: Added (OCFS2 tools).
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'system/ocfs2-tools/README.SLACKWARE')
-rw-r--r--system/ocfs2-tools/README.SLACKWARE43
1 files changed, 43 insertions, 0 deletions
diff --git a/system/ocfs2-tools/README.SLACKWARE b/system/ocfs2-tools/README.SLACKWARE
new file mode 100644
index 0000000000..0a0b3e91e2
--- /dev/null
+++ b/system/ocfs2-tools/README.SLACKWARE
@@ -0,0 +1,43 @@
+Starting the daemon on boot
+---------------------------
+
+You may wish to add these lines to /etc/rc.d/rc.local to start the service:
+
+ if [ -x /etc/rc.d/rc.o2cb ]; then
+ /etc/rc.d/rc.o2cb start
+ fi
+
+You may also add these lines to /etc/rc.d/rc.local_shutdown:
+
+ if [ -x /etc/rc.d/rc.o2cb ]; then
+ /etc/rc.d/rc.o2cb stop
+ fi
+
+Remember to give executable permission to /etc/rc.d/rc.local_shutdown:
+
+ chmod 0755 /etc/rc.d/rc.local_shutdown
+
+Configuring the cluster system
+------------------------------
+
+Before the o2cb daemon can be started on boot, O2CB_ENABLED variable should
+be set to "true" in /etc/default/o2cb
+
+Creating cluster.conf in /etc/ocfs2 can be done with `o2cb` command.
+
+For example, to define a cluster named ocfs2 with two nodes:
+
+ o2cb add-cluster ocfs2
+ o2cb add-node ocfs2 node0 --ip 10.1.0.100
+ o2cb add-node ocfs2 node1 --ip 10.1.0.101
+
+Heartbeat is configured with:
+
+ o2cb add-heartbeat cluster_name device1
+
+Use the `mkfs.ocfs2` command to create an OCFS2 volume on a block device.
+
+Mounting OCFS2 volumes on boot is done with /etc/rc.d/rc.ocfs2 init script.
+
+For additional steps and details, read "Installing and Configuring OCFS2"
+that can be found on: https://docs.oracle.com/