[DRBD-user] Determining whether a resource is in dual-primary mode

Lars Ellenberg lars.ellenberg at linbit.com
Mon Nov 2 17:14:18 CET 2015

Note: "permalinks" may not be as permanent as we would like,
direct links of old sources may well be a few messages off.


On Mon, Nov 02, 2015 at 04:01:00PM +0100, Veit Wahlich wrote:
> Am Montag, den 02.11.2015, 15:53 +0100 schrieb Lars Ellenberg:
> > What's wrong with
> > # drbdsetup XYZ show --show-defaults 
> 
> That is exactly what I was looking for, thank you!
> 
> Just a little more complicated to parse than I hoped for, but feasible
> without problems.

res=XYZ
if drbdsetup show $res | grep -q allow-two-primaries; then
	echo "Two primaries are allowed."
else
	echo "Two primaries are not allowed."
fi

complicated to parse?
where?

-- 
: Lars Ellenberg
: http://www.LINBIT.com | Your Way to High Availability
: DRBD, Linux-HA  and  Pacemaker support and consulting

DRBD® and LINBIT® are registered trademarks of LINBIT, Austria.
__
please don't Cc me, but send to list   --   I'm subscribed



More information about the drbd-user mailing list