[Samba] setlmasterrole in config

Jeremy Allison jra at samba.org
Thu Oct 15 17:09:36 UTC 2020


On Thu, Oct 15, 2020 at 09:01:01AM -0400, Robert Buck via samba wrote:
> Can someone please respond to this question? We're unsure how to
> persistently set these flags, which are VERY useful for performance from
> what we see. We want to ensure that after reboot, particular nodes are
> always set on (or others off).

From the ctdb/doc/ctdb.1.xml man page file:

    <refsect2>
      <title>setlmasterrole on|off</title>
      <para>
        This command is used to enable/disable the LMASTER capability for a node at runtime. This capability determines whether or not a node can be used as an LM
      </para>

      <para>
        Nodes will by default have this capability, but it can be stripped off nodes by the setting in the sysconfig file or by using this command.
      </para>

So looks like setting the ctdb sysconfig file would be the
way to go. Hopefully Martin or Amitay can confirm and give
a more complete explaination.

> On Mon, Oct 12, 2020 at 7:00 PM Robert Buck <robert.buck at som.com> wrote:
> 
> > How can setlmasterrole be set persistently? Is there a way to put it in
> > some config file?
> >
> > If not, if setting it from the command line is the only option, what is
> > the recommended approach to ensure it is set upon reboot?
> >
> > Thx
> >
> > --
> >
> > BOB BUCK
> > SENIOR PLATFORM SOFTWARE ENGINEER
> >
> > SKIDMORE, OWINGS & MERRILL
> > 7 WORLD TRADE CENTER
> > 250 GREENWICH STREET
> > NEW YORK, NY 10007
> > T  (212) 298-9624
> > ROBERT.BUCK at SOM.COM
> >
> 
> 
> -- 
> 
> BOB BUCK
> SENIOR PLATFORM SOFTWARE ENGINEER
> 
> SKIDMORE, OWINGS & MERRILL
> 7 WORLD TRADE CENTER
> 250 GREENWICH STREET
> NEW YORK, NY 10007
> T  (212) 298-9624
> ROBERT.BUCK at SOM.COM
> -- 
> To unsubscribe from this list go to the following URL and read the
> instructions:  https://lists.samba.org/mailman/options/samba



More information about the samba mailing list