[Pacemaker] Exchanging data between resource agent instances

Riccardo Bicelli r.bicelli at gmail.com
Wed Mar 20 13:09:34 EDT 2013


Sorry...

but how to pass a variable to that expression?

awk '/ ${dev}$/ { print $3 * 1024 }' /proc/partitions

i tried  awk -v dev=drbd0  '/ dev$/ { print $3 * 1024 }' /proc/partitions

... bot no way :P

Thanks!



Il 19/03/2013 10:43, Lars Ellenberg ha scritto:
> On Tue, Mar 19, 2013 at 08:22:39AM +0100, Riccardo Bicelli wrote:
>> 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.
> Is that so.  What for?
> Can you explain in more detail?
>
>> For getting dev size I use blockdev --getsize64 device_name
>> The problem is, when I'm using DRBD, that blockdev fails on slave device.
> Well, then use awk '/ drbd0$/ { print $3 * 1024 }' /proc/partitions
> No?
>
>





More information about the Pacemaker mailing list