<p>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 <br>
blockdev --getsize64 device_name<br>
The problem is, when I'm using DRBD, that blockdev fails on slave device.<br>
So I'd like to get size of the device on master and report back to the slave.<br>
The alternative is to pass the device size as a parameter on the resource agent.</p>
<div class="gmail_quote">Il giorno 18/mar/2013 22:28, "Lars Ellenberg" <<a href="mailto:lars.ellenberg@linbit.com">lars.ellenberg@linbit.com</a>> ha scritto:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On Mon, Mar 18, 2013 at 08:49:41PM +0100, Riccardo Bicelli wrote:<br>
> Hello,<br>
> anyone knows if is it possible to exchange data between two instances of a<br>
> resource agent?<br>
><br>
> I have a Master/Slave resource agent that, when slave, has to create a<br>
> dummy device in same size of a given block device (DRBD) running on Master.<br>
<br>
Why?<br>
What do you want to achieve?<br>
<br>
> Since the block device is not accessible when the resource is slave, I was<br>
> wondering if master could read size of device and report it to the slave.<br>
<br>
does cat /proc/partitions help?<br>
<br>
> I don't like the idea of putting that size in the cib.<br>
<br>
--<br>
: Lars Ellenberg<br>
: LINBIT | Your Way to High Availability<br>
: DRBD/HA support and consulting <a href="http://www.linbit.com" target="_blank">http://www.linbit.com</a><br>
<br>
_______________________________________________<br>
Pacemaker mailing list: <a href="mailto:Pacemaker@oss.clusterlabs.org">Pacemaker@oss.clusterlabs.org</a><br>
<a href="http://oss.clusterlabs.org/mailman/listinfo/pacemaker" target="_blank">http://oss.clusterlabs.org/mailman/listinfo/pacemaker</a><br>
<br>
Project Home: <a href="http://www.clusterlabs.org" target="_blank">http://www.clusterlabs.org</a><br>
Getting started: <a href="http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf" target="_blank">http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf</a><br>
Bugs: <a href="http://bugs.clusterlabs.org" target="_blank">http://bugs.clusterlabs.org</a><br>
</blockquote></div>