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?




_______________________________________________
Pacemaker mailing list: Pacemaker@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

Reply via email to