[DRBD-user] non root drbdadm?

Lars Ellenberg lars.ellenberg at linbit.com
Wed Oct 17 09:54:24 CEST 2012

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

On Tue, Oct 16, 2012 at 12:54:56PM -0700, Jiann-Ming Su wrote:
> Is it possible to run drbdadm as a non root user?
> $ /sbin/drbdadm cstate dhcp
> bind() failed: Operation not permitted
> Missing privileges? You should run this as root.
> Command '/sbin/drbdsetup /dev/drbd1 cstate' terminated with exit code 20
> drbdadm aborting
> Thanks for any tips.

Does not, and will not, work with drbd 8.3.

DRBD 8.4 can do unprivileged status commands.

Alternatively, you can parse /proc/drbd,
which is what drbd-overview does (among other things).

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

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