Re: [ClusterLabs] Running 'pcs status' cmd on remote node
On 02/12/15 16:37, Ken Gaillot wrote: On 12/02/2015 06:21 AM, Simon Lawrence wrote: In my 2 node test cluster, one node is a physical server (running Pacemaker 1.1.13), the other is a VM on that server, configured as a Pacemaker remote node (v1.1.13). I get the correct output if I run crm_mon & pcs config on the remote node, but if I run 'pcs status' I get # pcs status Cluster name: test Error: unable to get list of pacemaker nodes Is this normal or should the command work on a remote node? That's expected. Not all command-line tools are supported when run on Pacemaker Remote nodes. In this case, "pcs status" is doing "crm_node -l" which is not yet supported. The primary design goal was to enable commands known to be used by resource agents. Enabling all commands is a goal for future versions. Thanks Ken I'd just found the use of 'crm_node -l' in the source code. I've got it working (just out of interest) in my test setup using the awful hack of replacing the crm_node and corosync-cmapctl executeables with shell scripts that ssh in the host and run the command there. not something I want to do in production for security reasons. ___ Users mailing list: Users@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
Re: [ClusterLabs] a newbie --question
On 15/09/15 14:22, H Yavari wrote: Hi, I'm newbie to pacemaker. So I don't know about all features. My question : I have 4 servers, 2 servers are appY(active and standby) and 2 servers are appZ (active and standby). I want implement HA with Pacemaker, So I can do this for AppY and AppZ now (with following the tutorials). But my issue is that my servers must be pair. I mean : Pair#1 :AppY (active) + AppZ(active) and Pair#2 :AppY(standby) + AppZ(standby) So when any servers in pair#1 is failed, other pair goes active. it is possible ? How can I achieve this with configurations? Thanks. Regards, H.Yavari You can use 'location constraints' within Pacemaker to define preferred nodes for resources' (applications in your case) to run, and also to define which nodes a resource cannot run on. So, yes you can do what you want. ___ Users mailing list: Users@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