Scroll to navigation

o2cb(8) OCFS2 Manual Pages o2cb(8)

NAME

o2cb - Cluster registration utility for the O2CB cluster stack.

SYNOPSIS

o2cb [--config-file=path] [-h|--help] [-v|--verbose] [-V|--version] COMMAND [ARGS]

DESCRIPTION

o2cb(8) is used to add, remove and list the information in the O2CB cluster configuration file. This utility is also used to register and unregister the cluster, as well as start and stop global heartbeat.

The default location of the configuration file, /etc/ocfs2/cluster.conf, can be overridden using the --config-file option.

OPTIONS

Specify a path to the configuration file. If not provided, it will use the default path of /etc/ocfs2/cluster.conf.

Verbose mode.

Help.

Show version and exit.

O2CB COMMANDS

Adds a cluster to the configuration file. The O2CB configuration file can hold multiple clusters. However, only one cluster can be active at any time.

Removes a cluster from the configuration file. This command removes all the nodes and heartbeat regions assigned to the cluster.

Adds a node to the cluster in the configuration file. It accepts three optional arguments. If not provided, the ip-address defaults to the one assigned to the node-name, port to 7777, and node-number to the lowest unused node number.

Removes a node from the cluster in the configuration file.

Adds a heartbeat region to the cluster in the configuration file.

Removes a heartbeat region from the cluster in the configuration file.

Sets the heartbeat mode for the cluster in the configuration file.

Lists all the cluster names in the configuration file.

Lists all the nodes and heartbeat regions associated with the cluster in the configuration file.

Lists all the nodes associated with the cluster in the configuration file.

Lists all the heartbeat regions associated with the cluster in the configuration file.

Registers the cluster listed in the configuration file with configfs. If called when the cluster is already registered, it will update configfs with the current configuration.

Unregisters the cluster from configfs.

Starts global heartbeat on all regions for the cluster as listed in the configuration file. If repeated, it will start heartbeat on new regions and stop on regions since removed. It will silently exit if global heartbeat has not been enabled.

Stops global heartbeat on all regions for the cluster. It will silently exit if global heartbeat has not been enabled.

Shows whether the given cluster is offline or online. If no cluster is provided, it shows the currently active cluster, if any.

EXAMPLE

To create a cluster, mycluster having two nodes, node1 and node2, do:

$ o2cb add-cluster mycluster
$ o2cb add-node mycluster node1 --ip 10.10.10.1
$ o2cb add-node mycluster node2 --ip 10.10.10.2

To specify a global heartbeat device, /dev/sda1, do:

$ o2cb add-heartbeat mycluster /dev/sda1

To enable global heartbeat, do:

$ o2cb heartbeat-mode mycluster global

SEE ALSO

o2cb(7) o2cb.sysconfig(5) ocfs2.cluster.conf(5)

AUTHORS

Oracle Corporation

COPYRIGHT

Copyright © 2010, 2012 Oracle. All rights reserved.

January 2012 Version 1.8.7