Re: [Pacemaker] Dependency on either of two resources

2010-10-05 Thread Vladislav Bogdanov
05.10.2010 12:12, Andrew Beekhof wrote:
 On Mon, Oct 4, 2010 at 6:31 AM, Vladislav Bogdanov bub...@hoster-ok.com 
 wrote:
 Hi all,

 just wondering, is there a way to make resource depend on (be colocated
 with) either of two other resources?
 
 Not yet.  Its something we want to support eventually though.

That would be a killer feature. Hope you will find time for it until 1.2.

So now I probably should exploit monitor op to try to repair failed
portals. That is a hack and it doesn't let me see in cib if there are
actual problems, but it is better than nothing.

 
 Use case is iSCSI initiator connection to iSCSI target with two portals.
 Idea is to have f.e. device manager multipath resource depend on both
 iSCSI connection resources, but in a soft way, so fail of any single
 iSCSI connection will not cause multipath resource to stop, but fail of
 both connections will cause it.

 I should be missing something but I cannot find answer is it possible
 with current pacemaker. Can someone bring some light?

 Best,
 Vladislav

 ___
 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://developerbugs.linux-foundation.org/enter_bug.cgi?product=Pacemaker

 
 ___
 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://developerbugs.linux-foundation.org/enter_bug.cgi?product=Pacemaker


___
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://developerbugs.linux-foundation.org/enter_bug.cgi?product=Pacemaker


Re: [Pacemaker] Dependency on either of two resources

2010-10-04 Thread Holger . Teutsch
Hi,
a similar or related use case that we tried to solve without success:
- a stretch cluster with two disk boxes
- a LUN on each disk box guarded by an individual SFEX
- a mirror (raid1 or clvm) that survives an outage of one disk box
- the mirror should be started if at least one SFEX can be obtained and 
the other one could not be obtained on a different node

IMHO sdb is not an alternative as this introduces a SPOF.
 
Mit freundlichen Grüßen / Kind regards 

Holger Teutsch 





From:   Vladislav Bogdanov bub...@hoster-ok.com
To: The Pacemaker cluster resource manager 
pacemaker@oss.clusterlabs.org
Date:   04.10.2010 06:33
Subject:[Pacemaker] Dependency on either of two resources



Hi all,

just wondering, is there a way to make resource depend on (be colocated
with) either of two other resources?

Use case is iSCSI initiator connection to iSCSI target with two portals.
Idea is to have f.e. device manager multipath resource depend on both
iSCSI connection resources, but in a soft way, so fail of any single
iSCSI connection will not cause multipath resource to stop, but fail of
both connections will cause it.

I should be missing something but I cannot find answer is it possible
with current pacemaker. Can someone bring some light?

Best,
Vladislav

___
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://developerbugs.linux-foundation.org/enter_bug.cgi?product=Pacemaker

___
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://developerbugs.linux-foundation.org/enter_bug.cgi?product=Pacemaker


[Pacemaker] Dependency on either of two resources

2010-10-03 Thread Vladislav Bogdanov
Hi all,

just wondering, is there a way to make resource depend on (be colocated
with) either of two other resources?

Use case is iSCSI initiator connection to iSCSI target with two portals.
Idea is to have f.e. device manager multipath resource depend on both
iSCSI connection resources, but in a soft way, so fail of any single
iSCSI connection will not cause multipath resource to stop, but fail of
both connections will cause it.

I should be missing something but I cannot find answer is it possible
with current pacemaker. Can someone bring some light?

Best,
Vladislav

___
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://developerbugs.linux-foundation.org/enter_bug.cgi?product=Pacemaker