[Pacemaker] How to properly define DRBD resources

Никита Староверов nsforth at gmail.com
Sat Dec 21 16:23:57 UTC 2013


Hello. I use drbd 8.4 that has possibility
 of defining drbd minors
 into one resource.
Properly defined order and colocation rules should also work with drbd 8.3.


2013/12/21 Michał Margula <alchemyx at uznam.net.pl>

> Hello,
>
> I have another question in the same topic. What if some resource (Virtual
> Machine) requires two DRBDs?
>
> I tried with group and it caused UNCLEAN of a node and it was killed.
>
> So what is proper way to do that? By grouping (if yes grouping what -
> primitives or master-slave?) Or maybe just by proper order?
>
> Unfortunately doing this caused trouble:
>
> primitive primitive-DRBD-saruman-root ocf:linbit:drbd \
>         params drbd_resource="drbd21-saruman-root" \
>
>         op monitor interval="29s" role="Master" \
>         op monitor interval="31s" role="Slave" \
>         op start interval="0" timeout="240" \
>
>         op stop interval="0" timeout="120"
> primitive primitive-DRBD-saruman-home ocf:linbit:drbd \
>         params drbd_resource="drbd22-saruman-home" \
>
>         op monitor interval="29s" role="Master" \
>         op monitor interval="31s" role="Slave" \
>         op start interval="0" timeout="240" \
>
>         op stop interval="0" timeout="120"
>
> ms ms-DRBD-saruman-root primitive-saruman-root \
>
>         meta master-max="2" master-node-max="1" clone-max="2"
> clone-node-max="1" notify="true" target-role="Started" is-managed="true"
> ms ms-DRBD-saruman-home primitive-saruman-home \
>
>         meta master-max="2" master-node-max="1" clone-max="2"
> clone-node-max="1" notify="true" target-role="Started" is-managed="true"
>
> group ms-DRBD-saruman ms-DRBD-saruman-root ms-DRBD-saruman-home
>
> order DRBD-saruman-after-LVM inf: clone-LVM:start ms-DRBD-saruman:promote
> order XEN-saruman-after-DRBD inf: ms-DRBD-saruman:promote XEN-saruman:start
>
>
>
> Thanks!
>
>
> --
> Michał Margula, alchemyx at uznam.net.pl, http://alchemyx.uznam.net.pl/
> "W życiu piękne są tylko chwile" [Ryszard Riedel]
>
> _______________________________________________
> Pacemaker mailing list: Pacemaker at 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.clusterlabs.org/pipermail/pacemaker/attachments/20131221/d381bd1a/attachment.htm>


More information about the Pacemaker mailing list