Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 03-07-2013, 05:25 PM   #1
LQ Newbie
Registered: Dec 2012
Posts: 5

Rep: Reputation: Disabled
pacemaker + corosync + nginx

Hi all,

I am having a problem deploying nginx + corosync + pacemaker. I've already configured the fail-over setup using a virtual IP, now I want to add nginx hi-availability service to pacemaker.

Here is my problem. I've already configured pacemaker resource to use ocf:heartbeat:nginx but when starting pacemaker service, it won't start properly. I am having an error

Mar 8 05:10:53 centos lrmd: [26547]: info: RA output: (nginx_res:start:stderr) /usr/lib/ocf/resource.d//heartb eat/nginx: line 401: [: too many arguments
Mar 8 05:10:53 centos nginx[27346]: [27619]: INFO: nginx not running
Mar 8 05:10:53 centos nginx[27346]: [27622]: INFO: Waiting for /usr/local/nginx/sbin/nginx -c /usr/local/nginx/conf/nginx.conf to come up (try 27)
Here's my configuration:

primitive website ocf:heartbeat:nginx \
params configfile="/usr/local/nginx/conf/nginx.conf" httpd="/usr/local/nginx/sbin/nginx" status10url="" \
op monitor interval="10s" timeout="30s" \
op start interval="0" timeout="40s" \
op stop interval="0" timeout="60s"
Also tried this config, but with this I am having problems with nginx not properly killed when fail-over occurs (transfer from centos to centos2) due to nginx PID not recorded to the file.

primitive website ocf:heartbeat:anything \
params binfile="/usr/local/nginx/sbin/nginx" cmdline_options="-g 'pid /usr/local/nginx/logs/;'" pidfile="/usr/local/nginx/logs/" \
op monitor interval="5s"
Please advise. Thanks


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Pacemaker/Corosync/LinuxHA mscolar Linux - Server 0 02-24-2013 04:45 PM
problems setting corosync/pacemaker to do virtual ip eantoranz Linux - Server 3 10-11-2012 03:33 PM
2 node clustering with corosync/pacemaker kirukan Linux - Software 0 09-01-2012 10:33 AM
Pacemaker Corosync DRBD - Problema after SplitBrain Yena Linux - Server 0 08-24-2012 01:35 AM
MySQL HA-cluster with DRBD, Pacemaker and Corosync Patric.F Linux - Server 2 01-28-2012 05:27 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:56 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration