o2cb_ctl(8)
π o2cb_ctl β the OCFS2 manual, section 8 π
okay so bestie, welcome to o2cb_ctl(8), straight out of the OCFS2 Manual Pages. this is the little control program for the O2CB cluster service, and she's got β¨ range β¨. let's get into it π«Ά
πΈ NAME πΈ
o2cb_ctl β control program for the O2CB cluster service. that's it, that's the whole job description, and she does it flawlessly π
β¨ SYNOPSIS β¨
here's how you actually call her. copy these exactly, no freestyling:
o2cb_ctl -C -n object -t type [-i] [-a attribute ]
o2cb_ctl -D -n object [-u]
o2cb_ctl -I [-o-z] -l manager> [-n object>] [-t type] [-a attribute]
o2cb_ctl -H [-n object] [-t type>] [-a attribute>]
o2cb_ctl -h
o2cb_ctl -V
π¦ DESCRIPTION π¦
so o2cb_ctl is the control program for the O2CB cluster service. sounds iconic, right? but here's the tea β β users are not advised to use this program directly. instead you're supposed to go through the O2CB init service and/or ocfs2console. like, she's the backstage queen, not the one you dm first. respect the chain of command, bestie π
π OPTIONS π
the main character flags. learn them, love them:
-Cβ create an object in the OCFS2 Cluster Configuration. new object, who dis β¨-Dβ delete an object from the existing OCFS2 Cluster Configuration. gone, blocked, unfollowed π-Iβ print information about the OCFS2 Cluster Configuration. she's nosy and we love that π-Hβ change an object or objects in the existing OCFS2 Cluster Configuration. glow-up mode π-hβ displays help and exit. when in doubt, ask for help, no shame π-Vβ print version and exit. vibes check, but make it software π
π OTHER OPTIONS π
these are the supporting cast and honestly? they ate π₯
-a <attribute>β with-C,<attribute>is in format"parameter=value", where the parameter is a valid parameter that can be set in the file/etc/ocfs2/cluster.conf. with-I,<attribute>may be"parameter", indicating an attribute to be listed in the output, or it may be"parameter==value", indicating that only objects matching"parameter=value"are to be displayed. yes there's a double equals in the second one, that's not a typo, that's the whole point π-iβ valid only with-C. when creating something (node or cluster), it will also install it in the live cluster. if the parameter is not specified, then only update the/etc/ocfs2/cluster.conf. so like,-iis the "and post it immediately" button π²-n objectβobjectis usually the node name or cluster name. in the/etc/ocfs2/cluster.conffile, it would be the value of the name parameter for any of the sections (cluster or node). it's giving name tag at the function π·οΈ-oβ valid only with-I. using this parameter, if one askso2cb_ctlto list all nodes, it will output it in a format suitable for shell parsing. machine-readable, lowkey gorgeous π€-t typeβtypecan becluster,nodeorheartbeat. three options, all valid, choose wisely π-uβ valid only with-D. when deleting something (node or cluster), it will also remove it from the live cluster. if the parameter is not specified, then only update the/etc/ocfs2/cluster.conf. the counterpart to-i, and she's just as important π«Ά-zβ valid only with-I. this is the default. if one askso2cb_ctlto list all nodes, it will give a verbose listing. she talks a lot and every word is necessary, periodt π
π EXAMPLES π
real scenarios, real commands, all verbatim:
add node5 to an offline cluster:
$ o2cb_ctl -C -n node5 -t node -a number=5
-a ip_address=192.168.0.5 -a ip_port=7777
-a cluster=mycluster
add node10 to an online cluster:
$ o2cb_ctl -C -i -n node10 -t node -a number=10
-a ip_address=192.168.1.10 -a ip_port=7777
-a cluster=mycluster
note the -i argument. that's the whole plot twist, don't skip her π
query the IP address of node5:
$ o2cb_ctl -I -n node5 -a ip_address
change the IP address of node5:
$ o2cb_ctl -H -n node5 -a ip_address=192.168.1.5
π₯ SEE ALSO π₯
go read these next, the lore is deep:
mkfs.ocfs2(8) fsck.ocfs2(8) tunefs.ocfs2(8) mounted.ocfs2(8) o2cb(7)
π AUTHORS π
Oracle Corporation. the originators, the blueprint, the blueprint-ers π
π COPYRIGHT π
Copyright Β© 2004, 2010 Oracle. All rights reserved. legal said what she said, respect it β¨
and that's the page, bestie π«Ά this was Version 1.8.9, dated September 2010 β yeah she's a vintage icon and she still slays. bye, love you, go read mkfs.ocfs2(8) next πππ¦
π¦ 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