[ClusterLabs] Pacemaker/Corosync on FreeBSD

Alberto Mijares amijaresp at gmail.com
Mon Dec 4 15:12:34 EST 2017


Hi guys,

I few times in the past, I had the need to work with Pacemaker
clusters. Always on Linux (CentOS or Debian). However, I'm biased to
FreeBSD, so a couple weeks ago I wanted to try Pacemaker on FreeBSD
for the first time.

I found packages in official FreeBSD repos for pacemaker, corosync
crmsh. Just for fun, I want to achieve a setup for HA storage with
HAST instead of DRDB and write a guide for it.

In step one, trying to create the cluster with crmsh, I found this:

root at hast2:~ # crm cluster init -n hastorage -N "hast1 hast2"
! NTP is not configured to start at system boot.
! No watchdog device found. If SBD is used, the cluster will be unable
to start without a watchdog.
Do you want to continue anyway (y/n)? y
ERROR: cluster.init: [Errno 2] No such file or directory: '/proc/version'

1) NTP is configured to start at system boot
root at hast2:~ # sysrc ntpd_enable
ntpd_enable: YES

2) /proc is a Linux thing, not sure if crmsh was packaged without the
proper patches. Anyways, I tried further and created an empty file
/proc/version (mounting the /proc filesystem and/or linux.ko doesn't
solve the issue) and found this

root at hast2:~ # crm cluster init -n hastorage -N "hast1 hast2"
! NTP is not configured to start at system boot.
! No watchdog device found. If SBD is used, the cluster will be unable
to start without a watchdog.
Do you want to continue anyway (y/n)? y
! Firewall: Could not open ports tcp=30865|5560|7630|21064, udp=
date: illegal option -- -
usage: date [-jnRu] [-d dst] [-r seconds] [-t west] [-v[+|-]val[ymwdHMS]] ...
            [-f fmt date | [[[[[cc]yy]mm]dd]HH]MM[.ss]] [+format]
/bin/sh: /sbin/ip: not found
ERROR: cluster.init: Failed to determine default network interface

So, it must be trying some specific date options for Linux and,
definitively, /sbin/ip is a Linux only thing.

At this point, I need to know if someone is using pacemaker/corosync
on FreeBSD. Is it a problem with crmsh only? If I configure everything
by hand (no crmsh nor pcsd) should it work?

Thanks in advance for your hints.

Best regards,


Alberto Mijares




More information about the Users mailing list