[Date Prev][Date Next]
Re: Correct way to load LDIF in mirrormode
- To: email@example.com
- Subject: Re: Correct way to load LDIF in mirrormode
- From: "Brett @Google" <firstname.lastname@example.org>
- Date: Sat, 21 Nov 2009 18:23:08 +1000
- Cc: openldap-technical <email@example.com>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type; bh=YSZoUYYOjVaa1HPMyi6+35r0PUQUg+oXi+/cmNLVuQo=; b=eBuvXDTEliPkKpNWO41M4Of+KkCdPWXwEKANS7GjVcH3xnfz1xhBpqpuQOK51cYCjT 52daeGMWByZPT+6zDyw4R4s8eAb647S5BlNN0VhcdwZLIkmfWGVP1x9YrODL5J2dZ0T7 MGAtSR5xSDUgkxgFlERlMSdATJoeZbIjOBJnI=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=lq2nbzqTl+N6ibt0tl4b9F0lmkY7xrQcpgcavvLTP+c3a8v+BCqtuoJim7IvHSAXWR abc7aZ5gpre4viU5ELonah9Y77LPnx99Vpjj2l0BhwIUMiGfKhRDV7ypJzMcDNYbiKj5 CB73TTWLW+hNQ8vSbA2oxY8i2uEA4DjB+e0sI=
- In-reply-to: <firstname.lastname@example.org>
- References: <4AFAC5EB.email@example.com> <firstname.lastname@example.org>
On Thu, Nov 12, 2009 at 4:26 AM, <email@example.com>
- load server 1 using slapadd with option -S (the SID of server 1) and -w
> Could someone please exemplify a scenario where the -S option for
> slapadd is needed?
- slapcat server 1
- slapadd server 2 using the slapcat from server 1
this ensures you have consistent entryCSN and contextCSN
So can i say that in mirrormode, there is never a need to provide -S <sid> unless you are initializing the first server (sid 1) from a ldif without valid CSN's etc, eg. by providing the "-S 1 -w" options to slapadd ?
If this is true, then would i also be correct is saying that -S <sid> 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 ?
I imagine therefore the same thing would apply when initializing a set of multimaster servers, where the <sid> provided by -S just happened to be the first one you are loading. The others 2-N nodes would be initialized from a slapcat of the first server you loaded (using the contextCSN's etc., slapadd "-S <sid> -w" created), still using slapadd but without needing to provide either the -S <sid> option or the -w option.
Just trying to clarify my understanding before contributing a paragraph of doc to explain this.