LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices



Reply
 
Search this Thread
Old 03-07-2013, 06:25 PM   #1
weenux28
LQ Newbie
 
Registered: Dec 2012
Posts: 3

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

Quote:
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:

Quote:
primitive website ocf:heartbeat:nginx \
params configfile="/usr/local/nginx/conf/nginx.conf" httpd="/usr/local/nginx/sbin/nginx" status10url="http://192.168.0.211" \
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 nginx.pid file.

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


Reply


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 05:45 PM
problems setting corosync/pacemaker to do virtual ip eantoranz Linux - Server 3 10-11-2012 04:33 PM
2 node clustering with corosync/pacemaker kirukan Linux - Software 0 09-01-2012 11:33 AM
Pacemaker Corosync DRBD - Problema after SplitBrain Yena Linux - Server 0 08-24-2012 02:35 AM
MySQL HA-cluster with DRBD, Pacemaker and Corosync Patric.F Linux - Server 2 01-28-2012 06:27 AM


All times are GMT -5. The time now is 10:13 PM.

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