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

Re: Multi master replication



Hi,
thats pretty the same like copying the database. Because data and metadata are completely copied over from one host to the other.
Please delete your db files completely on one master (backup first!) and let it sync the files from the other one.

Good luck and have phun :)

Benjamin.

On Thu, Apr 29, 2010 at 09:20, Aravind Divakaran <aravind.divakaran@yukthi.com> wrote:
Hi Benjamin,

I have copied the dit from one system to another using slapcat and
slapadd, because of the change in contextCSN. I have not copied the
database files.


Rgds,

Aravind M D


> Hi Aravind,
>
> did you copy over your /var/lib/ldap/* db-files from one node to the
> other?
> Just a guess into the blue.
>
> More information are neccessary.
>
> Bye.
>
> On Wed, Apr 28, 2010 at 11:12, Aravind Divakaran <
> aravind.divakaran@yukthi.com> wrote:
>
>> Hi All,
>>
>> I have configured two servers with multi master replication. Below is my
>> configuration for synrepl on both servers.
>>
>> Server One
>> ------------
>>
>> serverID 001
>>
>> overlay syncprov
>> syncprov-checkpoint 100 10
>>
>> syncrepl rid=000
>>  provider=ldap://192.168.10.100
>>  type=refreshAndPersist
>>  retry="5 5 300 +"
>>  searchbase="dc=example,dc=com"
>>  attrs="*,+"
>>  bindmethod=simple
>>  binddn="cn=syncuser,dc=example,dc=com"
>>  credentials=password
>>
>> mirrormode TRUE
>>
>> Server Two
>> --------------
>>
>> serverID 002
>>
>> overlay syncprov
>> syncprov-checkpoint 100 10
>>
>> syncrepl rid=000
>>  provider=ldap://192.168.10.25
>>  type=refreshAndPersist
>>  retry="5 5 300 +"
>>  searchbase="dc=example,dc=com"
>>  attrs="*,+"
>>  bindmethod=simple
>>  binddn="cn=syncuser,dc=example,dc=com"
>>  credentials=password
>>
>> mirrormode TRUE
>>
>> Today one of user said that he was not able to login. So i checked in
>> the
>> servers in one server i was able to login but on another server i was
>> not
>> able to login with the same password. I have checked the contextCSN on
>> both server they are equal. In the log it is showing this
>>
>> syncrepl_entry: rid=000 entry unchanged, ignored
>> (uid=user,ou=People,dc=example,dc=com)
>> Apr 28 12:14:17 mails slapd[16595]: syncrepl_entry: rid=000
>> uid=user,ou=People,dc=example,dc=com
>> Apr 28 12:14:17 mails slapd[16595]: syncrepl_entry: rid=000 be_add
>> uid=user,ou=People,dc=example,dc=com (68)
>> Apr 28 12:14:17 mails slapd[16595]: dn_callback : entries have identical
>> CSN uid=user,ou=People,dc=example,dc=com
>> 20100422132507.789242Z#000000#002#000000
>>
>> Can anyone help me why above message is showing in the log files and why
>> the user is not able to login.
>>
>> Rgds,
>>
>> Aravind M D
>>
>>
>
>
> --
> To be or not to be -- Shakespeare | To do is to be -- Nietzsche | To be is
> to do -- Sartre | Do be do be do -- Sinatra
>





--
To be or not to be -- Shakespeare | To do is to be -- Nietzsche | To be is to do -- Sartre | Do be do be do -- Sinatra