Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

ocfs2 cluster on Stretch

Linux Kernel, Network, and Services configuration.
Post Reply
Message
Author
nov1ce
Posts: 4
Joined: 2017-09-11 07:07

ocfs2 cluster on Stretch

#1 Post by nov1ce »

Hi,

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
/etc/default/o2cb is present:

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
/etc/ocfs2/cluster.conf

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
After the reboot no ocfs2 partion is mounted. I see an error in dmesg:

Code: Select all

Sep 11 09:25:51 QSRV01 rc.local[599]: mount.ocfs2: Cluster name is invalid while trying to join the group
The error above is an indication that cluster hasn't been initialized. After executing commands below I can mount and access the partition:

Code: Select all

o2cb register-cluster web
mount /dev/drbd0
The status of both o2cb and ocfs2 services is inactive (dead):

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)
As a workaround, I put the following in /etc/rc.local and it does mount drbd0 after the reboot, but I was just wondering whether this is a bug and o2cb can't start/initialize the cluster during boot time?

Code: Select all

o2cb register-cluster web

sleep 30

mount /dev/drbd0

exit 0
Any hints would be greatly appreciated.

Thanks.

Post Reply