[drbd-mc] Using sudo.

Caspar Smit c.smit at truebit.nl
Wed Feb 9 12:29:01 CET 2011


2011/2/9 Rasto Levrinc <rasto.levrinc at linbit.com>

>
> On Wed, February 9, 2011 10:53 am, Caspar Smit wrote:
> > Hi,
> >
> >
> > I'm using the DRBD-MC more and more and getting really enthuasiastic.
> > Keep
> > up the good work :)
> >
> > I would like to give a colleague access to the DRBD-MC but I don't want
> > him having root privileges on the cluster nodes. Is this possible by
> using
> > sudo? I saw an option named sudo at the host configuration wizard.
> >
> > What commands does his account need to run under sudo? (like cibadmin,
> > drbdadm, etc)
> >
>
> You can use the sudo, without any problems.
>
> you need /usr/local/bin/drbd-gui-helper* for sure. Note the wildcard,
> there's a suffix that changes with every version
>
> For pacemaker you need at least these I think:
>
> /usr/sbin/crm_attribute
> /usr/sbin/crm_mon
> /usr/sbin/crm_resource
> /usr/sbin/crm_standby
>
> Maybe I'll compile the whole list one day.
>
>
Thanks, I will start testing right away.


> > Another question: is it possible to start the DRBD-MC in operator and/or
> > read-only mode?
> yes, the
>
>    java -jar DMC-....jar  --help
>
> gives you a list of options, so for example
>
>    java -jar DMC-0.8.12.jar --op-mode=ro
>    java -jar DMC-0.8.12.jar --op-mode=op
>
> starts it in readonly or operator mode and it is not possible to change it
> to the administrator mode.
>
>
Great, couldn't get this to work at first because the correct syntax is:

java -jar DMC-0.8.12.jar --op-mode ro   (without the '=' )

Now it's working :)


> >
> > And another: is it possible to disable the "check for drbd-mc update"
> > feature?
>
> Yes, there is --no-upgrade-check option and --no-plugin-check option, if
> you don't want contact the linbit servers.
>
>
Works like a charm, thanks :)


> Rasto
>
> --
> : Dipl-Ing Rastislav Levrinc
> : DRBD MC http://oss.linbit.com/drbd-mc/
> : DRBD MC http://www.drbd.org/mc/management-console/
> : DRBD/HA support and consulting http://www.linbit.com/
> DRBD(R) and LINBIT(R) are registered trademarks of LINBIT, Austria.
>
>
> _______________________________________________
> drbd-mc mailing list
> drbd-mc at lists.linbit.com
> http://lists.linbit.com/mailman/listinfo/drbd-mc
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linbit.com/pipermail/drbd-mc/attachments/20110209/8a285fe3/attachment.htm>


More information about the drbd-mc mailing list