zcat /proc/config.gz | grep OCFS2
apt install ocfs2-tools
export GUI=no sbopkg -i ocfs2-tools
see ocfs2-source
BEWARE YOU NEED TO RESPECT THE TABS, THAT’S EVEN WORSE THAN YAML!
vi /etc/ocfs2/cluster.conf # new file cluster: name = xenconfs heartbeat_mode = local node_count = 3 node: cluster = xenconfs number = 1 ip_port = 65000 ip_address = 10.3.3.1 name = pmr1 node: cluster = xenconfs number = 2 ip_port = 65000 ip_address = 10.3.3.2 name = pmr2 node: cluster = xenconfs number = 3 ip_port = 65000 ip_address = 10.3.3.3 name = pmr3 vi /etc/default/o2cb O2CB_ENABLED=true O2CB_BOOTCLUSTER=xenconfs
#/etc/init.d/o2cb load #/etc/init.d/o2cb online xenconfs /etc/init.d/o2cb restart o2cb cluster-status systemctl enable o2cb /etc/init.d/ocfs2 restart systemctl enable ocfs2
#/etc/rc.d/rc.o2cb load #/etc/rc.d/rc.o2cb online xenconfs /etc/rc.d/rc.o2cb restart o2cb cluster-status
slack1 only
mkfs.ocfs2 /dev/drbd0
all nodes
vi /etc/fstab /dev/drbd0 /data ocfs2 rw,noatime,nodiratime,_netdev,noauto 0 0 mkdir /data_ocfs2/ touch /data_ocfs2/OCFS2_NOT_MOUNTED mount /data_ocfs2/
checking for GLIB - version >= 2.2.3... no *** Could not run GLIB test program, checking why... *** The test program failed to compile or link. See the file config.log for the *** exact error that occured. This usually means GLIB is incorrectly installed. configure: error: GLib 2.2.3 or better is required
==> that was in aug 2021 with wrong version 1.6.4, now oct 2021 configure passes
../include/ocfs2/ocfs2.h:57:10: fatal error: ocfs2/ocfs2_err.h: No such file or directory 57 | #include <ocfs2/ocfs2_err.h> | ^~~~~~~~~~~~~~~~~~~
==> that was with version 1.6.4. have a look at github, there’s 1.8.7
o2cb: Unknown code ____ 251 while loading cluster configuration file '/etc/ocfs2/cluster.conf'
==> respect the tabs in the config file
https://slackbuilds.org/repository/14.2/system/ocfs2-tools/
https://oss.oracle.com/projects/ocfs2/dist/documentation/v1.2/ocfs2_faq.html
https://github.com/djs55/ocfs2-tools/blob/master/documentation/ocfs2_faq.txt
https://github.com/markfasheh/ocfs2-tools/blob/master/documentation/users_guide.txt
http://manpages.ubuntu.com/manpages/bionic/man5/ocfs2.cluster.conf.5.html
https://www.lisenet.com/2016/o2cb-cluster-with-dual-primary-drbd-and-ocfs2-on-oracle-linux-7/
https://oracle-base.com/articles/linux/ocfs2-on-linux
https://stackoverflow.com/questions/29835434/ocfs2-on-oracle-linux
http://muhammad-asif-dba.blogspot.com/2021/03/how-to-setup-ocfs2-on-oracle-linux.html
Howto OCFS2 https://wiki.evolix.org/HowtoOCFS2
https://support.oracle.com/knowledge/Oracle%20Linux%20and%20Virtualization/843479_1.html
https://marc.info/?l=ocfs2-users&m=116153949625849 ==> solved!