> -----Ursprüngliche Nachricht-----
> Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> ha.org] Im Auftrag von Andreas Kurz
> Gesendet: Mittwoch, 12. März 2008 16:08
> An: General Linux-HA mailing list
> Betreff: Re: [Linux-HA] Master/Slave with 2 DRBD-primitives
> 
> On Wed, Mar 12, 2008 at 1:49 PM, Schmidt, Florian
> <[EMAIL PROTECTED]> wrote:
> >
> > > On Wed, Mar 12, 2008 at 1:23 PM, Schmidt, Florian
> >  > <[EMAIL PROTECTED]> wrote:
> >  > > > >  > > On Tue, Mar 11, 2008 at 7:19 PM, Schmidt, Florian
> >  > >  > >  > > <[EMAIL PROTECTED]> wrote:
> >  > >  > >  > > > Hello guys,
> >  > >  > >  > > >
> >  > >  > >  > > >  is it able to put 2 primitives into one
> >  > >  master/slave-resource or do I
> >  > >  > >  > > >  need to create 2 master/slave resources each having one
> >  > >  primitive?
> >  > >  > >  > >
> >  > >  > >  > > You can put your two primitives into a group and create a
> >  > >  master/slave
> >  > >  > >  > > resource with this group ... or have two master/slave
> >  resources
> >  > >  with
> >  > >  > >  > > colocation constraints ... a matter of taste ;-)
> >  > >  > >  >
> >  > >  > >  > Is this possible? Putting a group into a master-slave
> >  resource?
> >  > >  > >  > Well, I will try this...sounds good ;)
> >  > >  > >  >
> >  > >  > >  > Thanks
> >  > >  > >  > Florian
> >  > >  > >
> >  > >  > >  Just one more question: if one of the both DRBD-primitives in
> >  this
> >  > >  group fails, all
> >  > >  > other resources "in the chain behind" it are stopped then, aren't
> >  > >  they?
> >  > >  >
> >  > >  > set "ordered=false" for your group and only the implied
> >  colocation
> >  > >  > constraints of your group take effect
> >  > >
> >  > >  Hello again,
> >  > >
> >  > >  I followed your instructions to create a master/slave-resource
> >  > >  containing one "ordered=false"-group containing 2 DRBD-primitives.
> >  > >
> >  > >  I started Heartbeat and it comes up fine, but none of the
> >  DRBD-instances
> >  > >  gets promoted:
> >  >
> >  > Hmmm ... interesting, not the expected result. So it seems to be
> >  > better to go with two separated master/slave resources. Could you
> >  > attach your complete cib with the not-promoting group .... just out of
> >  > curiosity ;-)
> >
> >  Maybe this is because of the additional layer in the
> >  master-slave-resource
> >  So he tries to promote the group not the primitives.
> >
> >  CIB is attached. ;)
> 
> I've currently some time to test ... the status section of your cib
> indicates that the DRBD resources were promoted on "nodekrz". Did you
> verify that all DRBD devices are Secondary on both nodes?

Yes, cat /proc/drbd said that both resources on both nodes were secondary.

> After some cleanups (leftover constraints from previous tests?), ptest
> shows a correct handling of the master-slave group. What's
> interesting: The two DRBD resources only get promoted if a location
> constraint for the master-slave resource is defined. Don't know if
> this is expected or a "feature" ... I attach the cib I've tested ...

In the meanwhile I have changed my configuration so that everything works. For 
sure I'll test this later. It would be a better solution than mine now is...

Thanks for your time
Florian

> Regards,
> Andreas
> 
> 
> >
> >
> >
> >  >
> >  > Regards,
> >  > Andreas
> >  >
> >  > >
> >  > >
> >  > >  ============
> >  > >  Last updated: Wed Mar 12 13:20:42 2008
> >  > >  Current DC: noderz (691dfdac-f5d6-4a04-a845-8706701318b3)
> >  > >  2 Nodes configured.
> >  > >  1 Resources configured.
> >  > >  ============
> >  > >
> >  > >  Node: noderz (691dfdac-f5d6-4a04-a845-8706701318b3): online
> >  > >  Node: nodekrz (44425bd9-2cba-4d6a-ac62-82a8bb81a23d): online
> >  > >
> >  > >  Master/Slave Set: DRBD
> >  > >     Resource Group: Group_DRBD:0
> >  > >         DRBD_AFD:0      (heartbeat::ocf:drbd):  Started noderz
> >  > >         DRBD_SAPROUTER:0        (heartbeat::ocf:drbd):  Started
> >  noderz
> >  > >     Resource Group: Group_DRBD:1
> >  > >         DRBD_AFD:1      (heartbeat::ocf:drbd):  Started nodekrz
> >  > >         DRBD_SAPROUTER:1        (heartbeat::ocf:drbd):  Started
> >  nodekrz
> >  > >
> >  > >  Resources-section of CIB is added. What's wrong?
> >  > >
> >  > >  Regards
> >  > >  Florian
> >  > >
> >  > >
> >  > >
> >  > >  > Regards,
> >  > >  > Andreas
> >  > >  > >
> >  > >  > >  This again, wouldn't be that great. Maybe collocation
> >  constraints
> >  > >  would still be
> >  > >  > better.
> >  > >  > >
> >  > >  > >
> >  > >  > >
> >  > >  > >  Florian
> >  > >  > >
> >  > >  > >  >
> >  > >  > >  > > Regards,
> >  > >  > >  > > Andreas
> >  > >  > >  > >
> >  > >  > >  > > >
> >  > >  > >  > > >  The primitives are DRBD-resources, which always need to
> >  run
> >  > >  on the
> >  > >  > same
> >  > >  > >  > > >  machine.
> >  > >  > >  > > >
> >  > >  > >  > > >  Regards
> >  > >  > >  > > >  Florian
> >  > >
> >  > > _______________________________________________
> >  > >  Linux-HA mailing list
> >  > >  [email protected]
> >  > >  http://lists.linux-ha.org/mailman/listinfo/linux-ha
> >  > >  See also: http://linux-ha.org/ReportingProblems
> >  > >
> >  > _______________________________________________
> >  > Linux-HA mailing list
> >  > [email protected]
> >  > http://lists.linux-ha.org/mailman/listinfo/linux-ha
> >  > See also: http://linux-ha.org/ReportingProblems
> >
> > _______________________________________________
> >  Linux-HA mailing list
> >  [email protected]
> >  http://lists.linux-ha.org/mailman/listinfo/linux-ha
> >  See also: http://linux-ha.org/ReportingProblems
> >
_______________________________________________
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