[ClusterLabs] Pacemaker issue lsb service
Kristoffer Grönlund
kgronlund at suse.com
Mon Mar 7 22:37:28 CET 2016
Thorsten Stremetzne <clusterlabs at webants.com> writes:
> Hello all,
>
>
> I have built an HA setup for a OpenVPN server.
> In my setup there are two hosts, running Ubuntu Linux, pacemaker & chorosync. Also both hosts have a virtual IP which migrates to the host that is active, when the other fails. This works well, but I also configured a primitive for the openvpn-server init scrip, via
>
>
> crm configure primitive failover-openvpnas lsb::openvpnas op monitor interval=15s
>
Hi,
Unfortunately most LSB init scripts are not cluster-compatible by
default, they often do not implement monitor actions correctly and may
report incorrect status when the resource is not running.
I would recommend using an OCF resource agent if possible, or worst case
wrapping the LSB init script in a custom OCF resource agent which
handles the corner cases. Another option if you are running a system
with systemd is to use a systemd service. I have heard reports that
there are some issues with using systemd services directly as well, but
the ones I have tried have worked out of the box.
Cheers,
Kristoffer
>
> The service will be added, but it will always fail, due to the syslog, the init script will be called in a wrong way.
> I'm in troubles debugging how pacemaker will try to start/stop the service on the hosts.
>
>
> Can someone please assist me with some ideas and suggestions?
>
>
> Thanks very much
>
>
> Thorsten
>
>
> Diese E-Mail kann vertrauliche und/oder rechtlich geschützte Informationen enthalten. Wenn Sie nicht der beabsichtigte Empfänger sind oder diese E-Mail irrtümlich erhalten haben, informieren Sie bitte sofort den Absender telefonisch oder per E-Mail und löschen Sie diese E-Mail aus Ihrem System. Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser Mail ist nicht gestattet.
> _______________________________________________
> Users mailing list: Users at clusterlabs.org
> http://clusterlabs.org/mailman/listinfo/users
>
> Project Home: http://www.clusterlabs.org
> Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
> Bugs: http://bugs.clusterlabs.org
--
// Kristoffer Grönlund
// kgronlund at suse.com
More information about the Users
mailing list