Anyone here using ocfs2 cluster with Stretch? I can't get it to start during boot time for some reason (this is an upgrade from Jessie, where everything was working just fine).
Code: Select all
uname -a
Linux QSRV01 4.9.0-3-amd64 #1 SMP Debian 4.9.30-2+deb9u3 (2017-08-06) x86_64 GNU/Linux
dpkg -l | grep ocfs
ii ocfs2-tools 1.8.4-4 amd64 tools for managing OCFS2 cluster filesystems
Code: Select all
# O2CB_ENABLED: 'true' means to load the driver on boot.
O2CB_ENABLED=true
# O2CB_BOOTCLUSTER: If not empty, the name of a cluster to start.
O2CB_BOOTCLUSTER=web
# O2CB_HEARTBEAT_THRESHOLD: Iterations before a node is considered dead.
O2CB_HEARTBEAT_THRESHOLD=31
# O2CB_IDLE_TIMEOUT_MS: Time in ms before a network connection is considered dead.
O2CB_IDLE_TIMEOUT_MS=30000
# O2CB_KEEPALIVE_DELAY_MS: Max. time in ms before a keepalive packet is sent.
O2CB_KEEPALIVE_DELAY_MS=2000
# O2CB_RECONNECT_DELAY_MS: Min. time in ms between connection attempts.
O2CB_RECONNECT_DELAY_MS=2000
Code: Select all
cluster:
heartbeat_mode = local
node_count = 2
name = web
node:
number = 1
cluster = web
ip_port = 7777
ip_address = 192.168.0.4
name = QSRV01
node:
number = 2
cluster = web
ip_port = 7777
ip_address = 192.168.0.5
name = QSRV02
heartbeat:
cluster = web
region = XXXXXXXXXXXXXXXXXXXX
Code: Select all
Sep 11 09:25:51 QSRV01 rc.local[599]: mount.ocfs2: Cluster name is invalid while trying to join the group
Code: Select all
o2cb register-cluster web
mount /dev/drbd0
Code: Select all
service o2cb status
o2cb.service - LSB: Load O2CB cluster services at system boot.
Loaded: loaded (/etc/init.d/o2cb; generated; vendor preset: enabled)
Active: inactive (dead)
Docs: man:systemd-sysv-generator(8)
service ocfs2 status
ocfs2.service - LSB: Mount OCFS2 volumes at boot.
Loaded: loaded (/etc/init.d/ocfs2; generated; vendor preset: enabled)
Active: inactive (dead)
Docs: man:systemd-sysv-generator(8)
Code: Select all
o2cb register-cluster web
sleep 30
mount /dev/drbd0
exit 0
Thanks.