Hello list,

I've got a problem with the following part of the DRBD Howto at 
http://www.linux-ha.org/DRBD/HowTov2

-----------------
Specifying the nodes where drbd can be run

If you only have a two node cluster, you could skip this step, because 
obviously, it can only run on those two. If you want to run drbd0 on two out 
of more nodes only, you will have to tell the cluster about this constraint:

<rsc_location id="drbd0-placement-1" rsc="ms-drbd0">
 <rule id="drbd0-rule-1" score="-INFINITY">
  <expression id="exp-01" value="xen-1" attribute="#uname" operation="eq"/>
  <expression id="exp-02" value="xen-2" attribute="#uname" operation="eq"/>
 </rule>
</rsc_location>

These two constraints tell the Policy Engine that, first, drbd0 can not run 
anywhere else except on xen-1 or xen-2. Second, they tell the PE that yes, it 
can run on those two.
------------------

If I understand the logic of the rules correctly, the expressions will be 
concatenated by 'and' (the default), and the first expression being true
if and only if evaluated on (or for ?) node xen-1, the second on xen-2, 
both can never be true, so the rule will never apply.

In my opinion it would make much more sense if the operation attributes of the
expressions where 'ne' instead of 'eq'?

Furthermore I think that the last two sentences of the excerpt above are
somewhat misleading. How can one rule tell two different things ...?

Or is there a fundamental misunderstanding on my side?

Thanks in andvance,
Klemens

-- 
Klemens Kittan
Systemadministrator

Uni-Potsdam, Inst. f. Informatik
August-Bebel-Str. 89
14482 Potsdam

Tel.    :   +49-331-977/3125
Fax.    :   +49-331-977/3122
eMail   : [EMAIL PROTECTED]

gpg --recv-keys --keyserver wwwkeys.de.pgp.net 6EA09333

Attachment: pgpjmV05pW5mU.pgp
Description: PGP signature

_______________________________________________
Linux-HA mailing list
[email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems

Reply via email to