On Thu, 11 Oct 2012, Dejan Muhamedagic wrote:

On Wed, Oct 10, 2012 at 09:45:46AM -0500, Michael Brennen wrote:
On Wed, 10 Oct 2012, Dejan Muhamedagic wrote:

Hi,

On Tue, Oct 09, 2012 at 06:47:30PM -0500, Michael Brennen wrote:
Hello all,

I have built a two node apache/mysql cluster, with drbd syncing the
two.  I am using the centos 6 corosync, pacemaker, and fence-agents
packages.  (I tried the clusterlabs 1.1.8 pacemaker with the pcs
shell, but pcs assumes the fedora-centric systemctl.)

With the cluster working I am now trying to add fencing with an APC
powerswitch.  I have built the configuration from examples I have
found on the mailing list.

=========================================
crm configure primitive f_apc stonith:fence_apc params \
 pcmk_host_map="fail1:1,fail2:2" \
 pcmk_host_list="fail1 fail2" \
 pcmk_host_check="static-list" \
 ipaddr="1.2.3.4" \
 action="reboot" \
 login="user" \
 passwd="pw"
=========================================

That results in the following message:

=========================================
ERROR: f_apc: parameter fail2 does not exist
Do you still want to commit?
=========================================

I have not been able to find a way around this, but the
configuration seems exactly what I have found in the lists.  Does
anyone have any idea what might be happening?  Thanks.

It won't work from the command line, because the crm shell parser
never sees the quotes (they're digested by /bin/sh). You can type
this in the crm shell or protect the quotes using \ (at least
those for pcmk_host_list, others not necessary).

Thanks,

Dejan

Well... now that I think about it that makes perfect sense.

It does, though it certainly is surprising. With two
lexers/parsers involved, well, it takes a computer brain to deal
with it :( If anybody has an idea how to deal with this in a
better way...

After about 36 years of coding and running the beasts I *might* on some of my better days qualify for the computer brain part. :)

Andrew's suggestion to use the syntax pcmk_host_list="fail1,fail2" is one possibility.

After trying to build a heartbeat cluster in 2008, which I abandoned because I could not get it stable enough to remotely think about production, I picked it back up again about 3-4 weeks ago; this time it seems to be more stable, partly because this time I am not trying to make it work with ocfs2 shared storage.

I am still in "monkey see, monkey do" copy, modify to fit, and paste mode on configurations, and the syntax variations of space, comma, and semicolon separators are unknown to me. When things don't work I assume it is because I have made a mistake somewhere; it just does not occur to look to the obvious fact that bash is eating the quotes--although at some point I had a hunch about escaping the space in "fail1 fail2" and did not actually try it.

I don't know how to work around that sort of newbie learning curve. :(

Sometimes the obvious takes longer.  Thanks very much for the
response.


  -- Michael

_______________________________________________
Pacemaker mailing list: Pacemaker@oss.clusterlabs.org
http://oss.clusterlabs.org/mailman/listinfo/pacemaker

Project Home: http://www.clusterlabs.org
Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
Bugs: http://bugs.clusterlabs.org

_______________________________________________
Pacemaker mailing list: Pacemaker@oss.clusterlabs.org
http://oss.clusterlabs.org/mailman/listinfo/pacemaker

Project Home: http://www.clusterlabs.org
Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
Bugs: http://bugs.clusterlabs.org


   Michael Brennen
   President, FishNet(R), Inc.
   Professional Internet Services
   972.669.0041

_______________________________________________
Pacemaker mailing list: Pacemaker@oss.clusterlabs.org
http://oss.clusterlabs.org/mailman/listinfo/pacemaker

Project Home: http://www.clusterlabs.org
Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
Bugs: http://bugs.clusterlabs.org

_______________________________________________
Pacemaker mailing list: Pacemaker@oss.clusterlabs.org
http://oss.clusterlabs.org/mailman/listinfo/pacemaker

Project Home: http://www.clusterlabs.org
Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
Bugs: http://bugs.clusterlabs.org


   Michael Brennen
   President, FishNet(R), Inc.
   Professional Internet Services
   972.669.0041

_______________________________________________
Pacemaker mailing list: Pacemaker@oss.clusterlabs.org
http://oss.clusterlabs.org/mailman/listinfo/pacemaker

Project Home: http://www.clusterlabs.org
Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
Bugs: http://bugs.clusterlabs.org

Reply via email to