thanks awfully for all your answers. i started reading about ha/cluster/drbd/pacemaker/.. two weeks ago. it is not yet easy to precise my questions.
different os on test-environment only, but i already decided to have equal os for testing, too. crm configure <<EOF .. # great !!! my situation: two Nodes n1,n2 and all services (that must not run twice, and are managed by pacemaker) run on one node only. the other shall take over in case the first fails. cause both machines are running, you may say, that some services run on n1, others on n2. but this moment i have only some services that depend on drbd:Master + IPaddr + Filesystem, so they have to run on one node. the rest (for today) is simply running on both nodes or not (pacemaker is not aware of). but a new question (to come closer to understand in full depth ..รถ..) when using location-constraints (more than two nodes and on one node a service (its binary) does not exists, negative location-constraint ) would the resource-manager not complain about missing service (' .. not installed') ? thanks andreas 2013/6/6 Dejan Muhamedagic <deja...@fastmail.fm> > Hi, > > On Thu, Jun 06, 2013 at 02:28:45PM +0200, andreas graeper wrote: > > hi, > > in examples using crmsh to create a resource with constraints is an > > interactive mode is used > > > > crm configure edit > > > primitive B > > > order B_after_A > > > colocation B_on_A > > > commit > > > end > > quit > > > > when resource B depends on another resource A that is running once on > Node0 > > (or as master/slave on both nodes, as master on Node0, slave on Node1) > > and i call > > `crm configure primitive B ...` > > > > will in first attempt (not necessarily) the new resource A started on > Node1 > > till i define the constraints > > `crm configure colocation c_B_on_A inf: B A` > > ? > > Yes. > > > and is this the reason for a 'failed action' on Node1 > > that can get cleaned up with `crm_resource -P` for instance ? > > > > how can i achieve such a session-like creation of a resource with > > constraints > > from out of a script ? ( i have prepared for each resource a s_xxx.sh and > > k_xxx.sh (start/kill) > > to add and remove .. ) > > Use the here-document: > > crm configure <<EOF > primitive B > order B_after_A > colocation B_on_A > EOF > > Note that you don't need commit or quit. > > Thanks, > > Dejan > > > > > thanks in advance > > andreas > > > _______________________________________________ > > 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 >
_______________________________________________ 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