[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: how to configure multi-master



On Sunday 20 July 2008 23:34:03 Liutauras Adomaitis wrote:
> Hello again,
>
> Run test050 to get simple configuration examples for n-way
>
> >> replication. For mirror mode configuration see
> >> http://www.openldap.org/doc/admin24/replication.html, part 17.3.2 and
> >> 17.4.4
> >
> > I have examined a bit tests scripts provided with openldap-tests rpm from
>
> Mandriva. First it is not very clear how to run scritps,

Where did you look for documentation? I could add some detail on how to run 
the scripts in the description of the package, or a readme file, but it really 
is just the standard test suite ...

Did you see the Makefile?

> the ./run gives
> me./run [-b <backend>] [-c] [-k] [-p] [-u] [-w] <script>, but it is not
> clear what does these switches mean.

For now, just './run test050' or similar.

> Maybe it is possible to guess after
> examine ./run script.
> So I decided to examine test050 script and at first. As I understood it
> runs test slapd with dynamic configuration. Maybe it is a great tool of
> openldap, but this will probably be my next step of learning openldap. It
> would be nice if somebody could give me conf file example.
> FInanly to the topic:
> sniff of the test050 scritpt:
> .......
> echo "Configuring syncrepl on consumer2..."
> $LDAPMODIFY -D cn=config -H $URI3 -y $CONFIGPWF <<EOF >>$TESTOUT 2>&1
> dn: olcDatabase={0}config,cn=config
> changetype: modify
> add: olcSyncRepl
> olcSyncRepl: rid=001 provider=$URI1 binddn="cn=config" bindmethod=simple
>   credentials=$CONFIGPW searchbase="cn=config" type=refreshAndPersist
>   retry="5 5 300 5" timeout=3
> olcSyncRepl: rid=002 provider=$URI2 binddn="cn=config" bindmethod=simple
>   credentials=$CONFIGPW searchbase="cn=config" type=refreshAndPersist
>   retry="5 5 300 5" timeout=3
> olcSyncRepl: rid=003 provider=$URI3 binddn="cn=config" bindmethod=simple
>   credentials=$CONFIGPW searchbase="cn=config" type=refreshAndPersist
>   retry="5 5 300 5" timeout=3
> -
> add: olcMirrorMode
> olcMirrorMode: TRUE
> EOF
> .........
>
> It shows, that it is adding MirrorMode TRUE. So why?

The configuration directive may have been overloaded when multi-master was 
added (after mirrormode). AFAIK it allows the database in question to both 
have a syncrepl directive, yet take updates from a DN besides the updatedn 
(see the description on the slapd.conf man page).

> man page of slapd.conf states:
> "mirrormode on | off - This  option  puts  a replica database into "mirror"
> mode...."
> Adding this to my conf file lets me do writes to masters, but I don't want
> MirrorMode, I want MultiMaster.

See the rest of the paragraph, which continues to say:

"Update operations  will  be  accepted  from  any  user,  not  just  the 
updatedn."

Regards,
Buchan