Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Linux-HA: Users

Colocation of promoted DRBD resources

 

 

Linux-HA users RSS feed   Index | Next | Previous | View Threaded


remigiusz.stachura at gmail

Oct 29, 2007, 2:32 PM

Post #1 of 6 (388 views)
Permalink
Colocation of promoted DRBD resources

Hi,
I have a two-node cluster that has more then 2 multi-state drbd
resources on each node. All these resources must be promoted
to master state on the same node because they creates a filesystem for
Xen DomU. Xen will never migrate so I use DRBD 7.x and the most fresh
HA 2.1.2-15 working on SLES10 SP1.
I have created configuration included as a cib2.xml which mainly do what I want.
(for testing only there are 2 drbd resources and IPaddr resource - not
Xen resource)

My problem is I wasn't able to create rule which make:

-if one of the drbd resources fail on the primary node, all of them
should be on the secondary node promoted to master before starting
there Xen.

How can I create such rules?
Could you give same examples?

thanks in advance
Attachments: cib2.xml (6.06 KB)


beekhof at gmail

Oct 31, 2007, 4:36 AM

Post #2 of 6 (361 views)
Permalink
Re: Colocation of promoted DRBD resources [In reply to]

On 10/29/07, Remigiusz Stachura <remigiusz.stachura [at] gmail> wrote:
> Hi,
> I have a two-node cluster that has more then 2 multi-state drbd
> resources on each node. All these resources must be promoted
> to master state on the same node because they creates a filesystem for
> Xen DomU. Xen will never migrate so I use DRBD 7.x and the most fresh
> HA 2.1.2-15 working on SLES10 SP1.
> I have created configuration included as a cib2.xml which mainly do what I want.
> (for testing only there are 2 drbd resources and IPaddr resource - not
> Xen resource)
>
> My problem is I wasn't able to create rule which make:
>
> -if one of the drbd resources fail on the primary node, all of them
> should be on the secondary node promoted to master before starting
> there Xen.

did you try a colocation constraint with from_role and to_role both
set to Master?

>
> How can I create such rules?
> Could you give same examples?
>
> thanks in advance
>
> _______________________________________________
> Linux-HA mailing list
> Linux-HA [at] lists
> http://lists.linux-ha.org/mailman/listinfo/linux-ha
> See also: http://linux-ha.org/ReportingProblems
>
>
_______________________________________________
Linux-HA mailing list
Linux-HA [at] lists
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems


remigiusz.stachura at gmail

Oct 31, 2007, 7:16 AM

Post #3 of 6 (352 views)
Permalink
Re: Colocation of promoted DRBD resources [In reply to]

I have created colocation:
<rsc_colocation id="drbd0_drbd1_master" from="ms-drbd0"
from_role="master" to="ms-drbd1" to_role="master" score="INFINITY"/>
but after putting it to cib.xml I get stange effect - resource
ms-drbd0 on node2 stop running:
node1: ms-drbd0 - master, ms-drbd1 - master
node2: ms-drbd0 - not running, ms-drbd1 - slave.
After removing the colocation everything works like befor.

What are another ways? Is it possible by using scores to make change
of state of one resource to have effect to another ones?

thanks

2007/10/31, Andrew Beekhof <beekhof [at] gmail>:
> On 10/29/07, Remigiusz Stachura <remigiusz.stachura [at] gmail> wrote:
> > Hi,
> > I have a two-node cluster that has more then 2 multi-state drbd
> > resources on each node. All these resources must be promoted
> > to master state on the same node because they creates a filesystem for
> > Xen DomU. Xen will never migrate so I use DRBD 7.x and the most fresh
> > HA 2.1.2-15 working on SLES10 SP1.
> > I have created configuration included as a cib2.xml which mainly do what I want.
> > (for testing only there are 2 drbd resources and IPaddr resource - not
> > Xen resource)
> >
> > My problem is I wasn't able to create rule which make:
> >
> > -if one of the drbd resources fail on the primary node, all of them
> > should be on the secondary node promoted to master before starting
> > there Xen.
>
> did you try a colocation constraint with from_role and to_role both
> set to Master?
>
> >
> > How can I create such rules?
> > Could you give same examples?
> >
> > thanks in advance
> >
> > _______________________________________________
> > Linux-HA mailing list
> > Linux-HA [at] lists
> > http://lists.linux-ha.org/mailman/listinfo/linux-ha
> > See also: http://linux-ha.org/ReportingProblems
> >
> >
> _______________________________________________
> Linux-HA mailing list
> Linux-HA [at] lists
> http://lists.linux-ha.org/mailman/listinfo/linux-ha
> See also: http://linux-ha.org/ReportingProblems
>
_______________________________________________
Linux-HA mailing list
Linux-HA [at] lists
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems


beekhof at gmail

Oct 31, 2007, 10:48 AM

Post #4 of 6 (347 views)
Permalink
Re: Colocation of promoted DRBD resources [In reply to]

On 10/31/07, Remigiusz Stachura <remigiusz.stachura [at] gmail> wrote:
> I have created colocation:
> <rsc_colocation id="drbd0_drbd1_master" from="ms-drbd0"
> from_role="master" to="ms-drbd1" to_role="master" score="INFINITY"/>
> but after putting it to cib.xml I get stange effect - resource
> ms-drbd0 on node2 stop running:
> node1: ms-drbd0 - master, ms-drbd1 - master
> node2: ms-drbd0 - not running, ms-drbd1 - slave.
> After removing the colocation everything works like befor.
>
> What are another ways?

I think rather than invent other ways I'd prefer to make this one actually work.
Can you attach cibadmin -Ql when the cluster in the state described above?

> Is it possible by using scores to make change
> of state of one resource to have effect to another ones?
>
> thanks
>
> 2007/10/31, Andrew Beekhof <beekhof [at] gmail>:
> > On 10/29/07, Remigiusz Stachura <remigiusz.stachura [at] gmail> wrote:
> > > Hi,
> > > I have a two-node cluster that has more then 2 multi-state drbd
> > > resources on each node. All these resources must be promoted
> > > to master state on the same node because they creates a filesystem for
> > > Xen DomU. Xen will never migrate so I use DRBD 7.x and the most fresh
> > > HA 2.1.2-15 working on SLES10 SP1.
> > > I have created configuration included as a cib2.xml which mainly do what I want.
> > > (for testing only there are 2 drbd resources and IPaddr resource - not
> > > Xen resource)
> > >
> > > My problem is I wasn't able to create rule which make:
> > >
> > > -if one of the drbd resources fail on the primary node, all of them
> > > should be on the secondary node promoted to master before starting
> > > there Xen.
> >
> > did you try a colocation constraint with from_role and to_role both
> > set to Master?
> >
> > >
> > > How can I create such rules?
> > > Could you give same examples?
> > >
> > > thanks in advance
> > >
> > > _______________________________________________
> > > Linux-HA mailing list
> > > Linux-HA [at] lists
> > > http://lists.linux-ha.org/mailman/listinfo/linux-ha
> > > See also: http://linux-ha.org/ReportingProblems
> > >
> > >
> > _______________________________________________
> > Linux-HA mailing list
> > Linux-HA [at] lists
> > http://lists.linux-ha.org/mailman/listinfo/linux-ha
> > See also: http://linux-ha.org/ReportingProblems
> >
> _______________________________________________
> Linux-HA mailing list
> Linux-HA [at] lists
> http://lists.linux-ha.org/mailman/listinfo/linux-ha
> See also: http://linux-ha.org/ReportingProblems
>
_______________________________________________
Linux-HA mailing list
Linux-HA [at] lists
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems


remigiusz.stachura at gmail

Oct 31, 2007, 11:12 AM

Post #5 of 6 (344 views)
Permalink
Re: Colocation of promoted DRBD resources [In reply to]

OK. I'am sending check_cib.xml.

2007/10/31, Andrew Beekhof <beekhof [at] gmail>:
> On 10/31/07, Remigiusz Stachura <remigiusz.stachura [at] gmail> wrote:
> > I have created colocation:
> > <rsc_colocation id="drbd0_drbd1_master" from="ms-drbd0"
> > from_role="master" to="ms-drbd1" to_role="master" score="INFINITY"/>
> > but after putting it to cib.xml I get stange effect - resource
> > ms-drbd0 on node2 stop running:
> > node1: ms-drbd0 - master, ms-drbd1 - master
> > node2: ms-drbd0 - not running, ms-drbd1 - slave.
> > After removing the colocation everything works like befor.
> >
> > What are another ways?
>
> I think rather than invent other ways I'd prefer to make this one actually work.
> Can you attach cibadmin -Ql when the cluster in the state described above?
>
> > Is it possible by using scores to make change
> > of state of one resource to have effect to another ones?
> >
> > thanks
> >
> > 2007/10/31, Andrew Beekhof <beekhof [at] gmail>:
> > > On 10/29/07, Remigiusz Stachura <remigiusz.stachura [at] gmail> wrote:
> > > > Hi,
> > > > I have a two-node cluster that has more then 2 multi-state drbd
> > > > resources on each node. All these resources must be promoted
> > > > to master state on the same node because they creates a filesystem for
> > > > Xen DomU. Xen will never migrate so I use DRBD 7.x and the most fresh
> > > > HA 2.1.2-15 working on SLES10 SP1.
> > > > I have created configuration included as a cib2.xml which mainly do what I want.
> > > > (for testing only there are 2 drbd resources and IPaddr resource - not
> > > > Xen resource)
> > > >
> > > > My problem is I wasn't able to create rule which make:
> > > >
> > > > -if one of the drbd resources fail on the primary node, all of them
> > > > should be on the secondary node promoted to master before starting
> > > > there Xen.
> > >
> > > did you try a colocation constraint with from_role and to_role both
> > > set to Master?
> > >
> > > >
> > > > How can I create such rules?
> > > > Could you give same examples?
> > > >
> > > > thanks in advance
> > > >
> > > > _______________________________________________
> > > > Linux-HA mailing list
> > > > Linux-HA [at] lists
> > > > http://lists.linux-ha.org/mailman/listinfo/linux-ha
> > > > See also: http://linux-ha.org/ReportingProblems
> > > >
> > > >
> > > _______________________________________________
> > > Linux-HA mailing list
> > > Linux-HA [at] lists
> > > http://lists.linux-ha.org/mailman/listinfo/linux-ha
> > > See also: http://linux-ha.org/ReportingProblems
> > >
> > _______________________________________________
> > Linux-HA mailing list
> > Linux-HA [at] lists
> > http://lists.linux-ha.org/mailman/listinfo/linux-ha
> > See also: http://linux-ha.org/ReportingProblems
> >
> _______________________________________________
> Linux-HA mailing list
> Linux-HA [at] lists
> http://lists.linux-ha.org/mailman/listinfo/linux-ha
> See also: http://linux-ha.org/ReportingProblems
>
Attachments: check_cib.xml (28.6 KB)


beekhof at gmail

Nov 2, 2007, 5:52 AM

Post #6 of 6 (340 views)
Permalink
Re: Colocation of promoted DRBD resources [In reply to]

On Oct 31, 2007, at 7:12 PM, Remigiusz Stachura wrote:

> OK. I'am sending check_cib.xml.

thanks!

i'm on vacation today but i'll take a look first thing monday
_______________________________________________
Linux-HA mailing list
Linux-HA [at] lists
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems

Linux-HA users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.