Re: Correct way to load LDIF in mirrormode

2009-11-13 Thread Peter Mogensen
Pierangelo Masarati wrote: Howard Chu wrote: Peter Mogensen wrote: masar...@aero.polimi.it wrote: - load server 1 using slapadd with option -S (the SID of server 1) and -w - slapcat server 1 - slapadd server 2 using the slapcat from server 1 this ensures you have consistent entryCSN and co

Re: Correct way to load LDIF in mirrormode

2009-11-13 Thread Pierangelo Masarati
Peter Mogensen wrote: Pierangelo Masarati wrote: Howard Chu wrote: Peter Mogensen wrote: masar...@aero.polimi.it wrote: - load server 1 using slapadd with option -S (the SID of server 1) and -w - slapcat server 1 - slapadd server 2 using the slapcat from server 1 this ensures you have con

Re: Correct way to load LDIF in mirrormode

2009-11-13 Thread Peter Mogensen
Pierangelo Masarati wrote: Peter Mogensen wrote: Pierangelo Masarati wrote: Howard Chu wrote: Peter Mogensen wrote: masar...@aero.polimi.it wrote: - load server 1 using slapadd with option -S (the SID of server 1) and -w - slapcat server 1 - slapadd server 2 using the slapcat from server

Re: Correct way to load LDIF in mirrormode

2009-11-13 Thread Pierangelo Masarati
Peter Mogensen wrote: Pierangelo Masarati wrote: Peter Mogensen wrote: Pierangelo Masarati wrote: Howard Chu wrote: Peter Mogensen wrote: masar...@aero.polimi.it wrote: - load server 1 using slapadd with option -S (the SID of server 1) and -w - slapcat server 1 - slapadd server 2 using t

Re: Correct way to load LDIF in mirrormode

2009-11-13 Thread Peter Mogensen
Pierangelo Masarati wrote: But if I'm loading the same data into both servers in a mirromode setup, then I shouldn't really have any use for the old CSN values, should I? So instead of sed/perl chaing the CSN's I could just remove them from the LDIF and let sladadd generate new ones? That's a

Re: Correct way to load LDIF in mirrormode

2009-11-21 Thread Brett @Google
On Thu, Nov 12, 2009 at 4:26 AM, wrote: > > Could someone please exemplify a scenario where the -S option for > > slapadd is needed? > > - load server 1 using slapadd with option -S (the SID of server 1) and -w > > - slapcat server 1 > > - slapadd server 2 using the slapcat from server 1 > > this

Re: Correct way to load LDIF in mirrormode

2009-11-21 Thread Howard Chu
Brett @Google wrote: > On Thu, Nov 12, 2009 at 4:26 AM, > wrote: > > > Could someone please exemplify a scenario where the -S option for > > slapadd is needed? > > - load server 1 using slapadd with option -S (the SID of server 1) > and -w > >

Re: Correct way to load LDIF in mirrormode

2009-11-21 Thread Brett @Google
On Sat, Nov 21, 2009 at 7:10 PM, Howard Chu wrote: > > If this is true, then would i also be correct is saying that -S > > only sets a parameter to enable the -w option to set the SID correctly > > in CSN's etc? and that the value provided by -S has no effect if -w is > > not provided ? > > No.

Re: Correct way to load LDIF in mirrormode

2009-11-21 Thread Howard Chu
Brett @Google wrote: > On Sat, Nov 21, 2009 at 7:10 PM, Howard Chu > wrote: > > > If this is true, then would i also be correct is saying that -S > > only sets a parameter to enable the -w option to set the SID correctly > > in CSN's etc? and that the value pro

Re: Correct way to load LDIF in mirrormode

2009-11-21 Thread Brett @Google
On Sun, Nov 22, 2009 at 5:42 AM, Howard Chu wrote:> but it will only write related data if (update_ctxcsn) > > The manpage clearly states that -S sets the SID used in generated > entryCSNs. > > It also clearly states that the -w option writes the contextCSN based on > the > greatest entryCSN in t

Re: Correct way to load LDIF in mirrormode

2009-11-22 Thread masarati
> On Sun, Nov 22, 2009 at 5:42 AM, Howard Chu wrote:> but it > will only write related data if (update_ctxcsn) > >> >> The manpage clearly states that -S sets the SID used in generated >> entryCSNs. >> >> It also clearly states that the -w option writes the contextCSN based on >> the >> greatest e