o2cb(8)
β¨ NAME β¨
o2cb β the cluster registration utility for the O2CB cluster stack, and honestly? she does a lot. π«Ά
πΈ SYNOPSIS πΈ
o2cb [--config-file=path] [-h|--help] [-v|--verbose] [-V|--version]
COMMAND [ARGS]
π DESCRIPTION π
So bestie, o2cb(8) is the girl who handles all the info in the O2CB cluster configuration file β she adds stuff, removes stuff, and lists stuff. That's her whole job and she's obsessed with it.
She's also the one you call to register and unregister the cluster, plus start and stop global heartbeat. Like, she's the main character of cluster setup, periodt.
The config file lives at /etc/ocfs2/cluster.conf by default, but you can override that whole vibe with the --config-file option. π
π OPTIONS π
--config-fileconfig-file β point her at a specific path for the configuration file. If you don't say anything, she just uses the default path of/etc/ocfs2/cluster.conf. iykyk.-v,--verboseβ verbose mode. she'll tell you more about what's happening. π£οΈ-h,--helpβ help. she's got you. π-V,--versionβ show the version and exit. iconic behavior.
π O2CB COMMANDS π
add-clustercluster-name β adds a cluster to the configuration file. ngl the O2CB config file can hold multiple clusters at once, but here's the catch: only one cluster can be active at any time. so choose wisely bestie πremove-clustercluster-name β removes a cluster from the configuration file. heads up, she also takes out all the nodes and heartbeat regions assigned to that cluster. it's a full sweep, no crumbs left.add-nodecluster-name node-name [--ipip-address] [--portport] [--numbernode-number] β adds a node to the cluster in the configuration file. she accepts three optional arguments, and if you don't pass them:- ip-address defaults to the one assigned to the node-name
- port defaults to
7777 - node-number defaults to the lowest unused node number
remove-nodecluster-name node-name β removes a node from the cluster in the configuration file. bye girl π¦add-heartbeatcluster-name [uuid|device] β adds a heartbeat region to the cluster in the configuration file. πremove-heartbeatcluster-name [uuid|device] β removes a heartbeat region from the cluster in the configuration file.heartbeat-modecluster-name [local|global] β sets the heartbeat mode for the cluster in the configuration file. pick your fighter β¨list-clustersβ lists all the cluster names in the configuration file. window shopping ποΈlist-clustercluster-name--onelineβ lists all the nodes and heartbeat regions associated with the cluster in the configuration file.list-nodescluster-name--onelineβ lists all the nodes associated with the cluster in the configuration file.list-heartbeatscluster-name--onelineβ lists all the heartbeat regions associated with the cluster in the configuration file.register-clustercluster-name β registers the cluster listed in the configuration file with configfs. and lowkey if you call it when the cluster is already registered, she'll just update configfs with the current configuration. no drama, she adapts. πunregister-clustercluster-name β unregisters the cluster from configfs. she's leaving the group chat.start-heartbeatcluster-name β starts global heartbeat on all regions for the cluster as listed in the configuration file. if you run it again, she'll start heartbeat on the new regions and stop on the regions that got removed since. and if global heartbeat hasn't been enabled, she'll silently exit. no fuss, no note, just gone. πstop-heartbeatcluster-name β stops global heartbeat on all regions for the cluster. same deal: if global heartbeat hasn't been enabled, she silently exits.cluster-status[cluster-name] β shows whether the given cluster is offline or online. if you don't give her a cluster, she shows the currently active cluster, if there is one. vibe check fr fr π
π EXAMPLE π
Wanna create a cluster, mycluster, with two nodes, node1 and node2? do this:
$ o2cb add-cluster mycluster
$ o2cb add-node mycluster node1 --ip 10.10.10.1
$ o2cb add-node mycluster node2 --ip 10.10.10.2
Wanna specify a global heartbeat device, /dev/sda1? do this:
$ o2cb add-heartbeat mycluster /dev/sda1
Wanna enable global heartbeat? do this:
$ o2cb heartbeat-mode mycluster global
ate and left no crumbs π₯
π§ SEE ALSO π§
o2cb(7) o2cb.sysconfig(5) ocfs2.cluster.conf(5)
π AUTHORS π
Oracle Corporation
πΈ COPYRIGHT πΈ
Copyright Β© 2010, 2012 Oracle. All rights reserved.
and that's the whole page bestie π Version 1.8.9, January 2012 β she's been serving since day one and she's still that girl. go configure something, ily, bye πβ¨
π¦ where this page comes from
- fedora 44: ocfs2-tools 1.8.9-2.fc44 Β· GPL-2.0-only
- fedora 44: ocfs2-tools 1.8.9-2.fc44 Β· GPL-2.0-only
- ubuntu resolute: ocfs2-tools 1.8.9-1 Β· GPL-2.0-or-later
- ubuntu stonking: ocfs2-tools 1.8.9-1 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms