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

Mailing List Archive: Linux-HA: Users

Manually specifying the location of master/slave resources

 

 

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


jeremy.thornhill at duke

Nov 1, 2007, 2:49 PM

Post #1 of 2 (238 views)
Permalink
Manually specifying the location of master/slave resources

I have created a working DRBD config for heartbeat 2.1.2 following the
example document, and everything seems to work as anticipated.

However, I am curious if it is possible to manually force a specific node
be a master for a master/slave set. I.E., given the following situation:

Master/Slave Set: ms-drbd0
drbd0:0 (heartbeat::ocf:drbd): Master NodeA
drbd0:1 (heartbeat::ocf:drbd): Slave NodeB

I would like to cause "NodeB" to become the master and "NodeA" to become
the slave. This is certainly not possible with the GUI, and I have been
unable to determine how to go about this using the crm_ commands.

Thanks,
Jeremy Thornhill
_______________________________________________
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

Nov 2, 2007, 5:55 AM

Post #2 of 2 (221 views)
Permalink
Re: Manually specifying the location of master/slave resources [In reply to]

On Nov 1, 2007, at 10:49 PM, Jeremy N Thornhill wrote:

> I have created a working DRBD config for heartbeat 2.1.2 following the
> example document, and everything seems to work as anticipated.
>
> However, I am curious if it is possible to manually force a specific
> node
> be a master for a master/slave set. I.E., given the following
> situation:
>
> Master/Slave Set: ms-drbd0
> drbd0:0 (heartbeat::ocf:drbd): Master NodeA
> drbd0:1 (heartbeat::ocf:drbd): Slave NodeB
>
> I would like to cause "NodeB" to become the master and "NodeA" to
> become
> the slave. This is certainly not possible with the GUI, and I have
> been
> unable to determine how to go about this using the crm_ commands.

adding a rsc_lcoation constraint with role=Master should achieve what
you're after

_______________________________________________
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.