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
_______________________________________________
drbd-user mailing list
[email protected]
http://lists.linbit.com/mailman/listinfo/drbd-user

Reply via email to