[Pacemaker] Exchanging data between resource agent instances

Riccardo Bicelli r.bicelli at gmail.com
Wed Mar 20 18:21:48 CET 2013


dev_size=$( awk '/ '$dev_name'$/ { print $3 * 1024 }' /proc/partitions )

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