On Nov 24, 2010, at 15:09, Dejan Muhamedagic wrote:
> Hi,
>
> On Mon, Nov 22, 2010 at 05:48:19PM +0200, Alexander Bodnarashik wrote:
>> Finally i've managed to build and run heartbeat/pacemaker on FreeBSD 8.1
>> host.
>
> I guess that you pulled the yesterday's resource-agents with the
> autoconf fix to exclude tickle if struct iphdr is not available.
> Of course, BSD has a corresponding struct, but slightly
> different.
>
Yes. i've notice, that my "tickle-patch" failed to apply. i've excluded if from
script before sending to list.
>> Attached you'll find csh script (with few comments inside)
>> which will automate installation on clean system (no error
>> checking, sorry, just draft script to save some time and
>> keypresses).
>> Due to different paths to programs on Linux and FreeBSD i've
>> made few ugly symlinks and applied few patches to fix Linux
>> specific code (or FreeBSD specific :) )
>> I'm pretty sure most of them are not required and it may be
>> fixed by autotools, but i have zero-knowledge there.
>> I haven't tested if cluster behaves properly yet.
>
> It would be interesting to hear if it does.
Issues i've found so far (nothing critical though):
1. FreeBSD init-scripts are not lsb compatible, they make pacemaker crazy upon
failure :) (not a big problem as can use provided ocf resource agents/write own)
2. It's better to have bash as default shell (really :) )
3. corosync based cluster requires /dev/shm ("ln -s /tmp /dev/shm" in
/etc/rc.local rocks ) (i guess it's not related to this list, just a note)
4. heartbeat initscript (as well as ldirectord init script) breaks freebsd
conventions and ignores heartbeat_enable (ldirectord_enable) option in rc.conf
(to fix: update script, set local_startup="" etc)
5. pacemaker-controlled resources should not be autostarted by OS, from the
other hand FreeBSD initscripts refuse "start" command if not enabled in rc.conf
(e.g.: memcache_enable="yes"). basically same issue as (1)
6. I get a lot of errors like:
/var/log/messages:Nov 23 19:45:30 alice heartbeat: [1023]: ERROR: glib:
mcast_write: Unable to send mcast packet [-1]: Message too long
/var/log/messages:Nov 23 19:45:30 alice heartbeat: [1023]: ERROR: write_child:
write failure on mcast em0.: Message too long
and
/var/log/messages:Nov 23 19:44:52 alice cib: [1083]: WARN: adjust rcvbuf size
to 1048576 failed: No buffer space available
Could be not an issue, as i run freebsd guests on vmware-server and not real
hardware.
As far as i can see, besides mentioned above (and some minor issues which i
can't recall atm) everything works fine, in short: failed node is fenced and
resources are failed over.
_______________________________________________
Linux-HA mailing list
[email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems