From 7eed0390c7f9e6a8bf3447e1ec9dcdd5565b5135 Mon Sep 17 00:00:00 2001 From: Mario Preksavec Date: Fri, 17 May 2019 23:24:54 +0700 Subject: system/ocfs2-tools: Added (OCFS2 tools). Signed-off-by: Willy Sudiarto Raharjo --- system/ocfs2-tools/README.SLACKWARE | 43 +++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 system/ocfs2-tools/README.SLACKWARE (limited to 'system/ocfs2-tools/README.SLACKWARE') 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/ -- cgit v1.2.3