Hi Aravindo

Aravindo wrote:
Dear List readers

I have a MasterSlave configuration with drbd, similar to
http://www.linux-ha.org/DRBD/HowTov2. That works great.

As it is a Master-Slave configuration, there is one instance on both nodes.

crm_mon looks like this:

Node: node1 (aa86a87b-355a-4868-8a99-e7fdc024cf91): online
       drbd0:1 (heartbeat::ocf:drbd)
Node: nod2 (cc13063d-906f-4c24-aa7e-c8f16988d5f8): online
       drbd0:0 (heartbeat::ocf:drbd)

A) Is there a way to get the Information, which node is the master of
which resource? In the hb_gui I can see this information, but I'd like
to use the command line tools.

cat /proc/drbd

B) I know I can migrate a resource by using  "crm_resource -r fs -H
node -M" - is there any way I can define which node should run the
master instance of the resource?

You propably have a colocated resource or group, don't you?

Just migrate that colocated resource and pacemaker will shuffle drbd master/slave roles accordingly.

As always: Use a recent pacemaker version when using master_slave resources. 0.6.3 is recommended atm.

Regards
Dominik
_______________________________________________
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