[Pacemaker] Exchanging data between resource agent instances

Riccardo Bicelli r.bicelli at gmail.com
Tue Mar 19 08:22:39 CET 2013


Because I'm trying to set up an active/standby scsi cluster using alua. I
need to create a dummy device in the same size of the real device. For
getting dev size I use
blockdev --getsize64 device_name
The problem is, when I'm using DRBD, that blockdev fails on slave device.
So I'd like to get size of the device on master and report back to the
slave.
The alternative is to pass the device size as a parameter on the resource
agent.
Il giorno 18/mar/2013 22:28, "Lars Ellenberg" <lars.ellenberg at linbit.com>
ha scritto:

> On Mon, Mar 18, 2013 at 08:49:41PM +0100, Riccardo Bicelli wrote:
> > Hello,
> > anyone knows if is it possible to exchange data between two instances of
> a
> > resource agent?
> >
> > I have a Master/Slave resource agent that, when slave,  has to create a
> > dummy device in same size of a given block device (DRBD) running on
> Master.
>
> Why?
> What do you want to achieve?
>
> > Since the  block device is not accessible when the resource is slave, I
> was
> > wondering if master could read size of device and report it to the slave.
>
> does cat /proc/partitions help?
>
> > I don't like the idea of putting that size in the cib.
>
> --
> : Lars Ellenberg
> : LINBIT | Your Way to High Availability
> : DRBD/HA support and consulting http://www.linbit.com
>
> _______________________________________________
> 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: <http://oss.clusterlabs.org/pipermail/pacemaker/attachments/20130319/f36cefd4/attachment.html>


More information about the Pacemaker mailing list