<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>The K Blag &#187; replication</title>
	<atom:link href="http://iamthek.com/archives/category/replication/feed" rel="self" type="application/rss+xml" />
	<link>http://iamthek.com</link>
	<description>Interesting Topics</description>
	<lastBuildDate>Tue, 10 Feb 2009 01:51:37 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Determine CSN update time from CSR in Directory Server 5/6</title>
		<link>http://iamthek.com/archives/46</link>
		<comments>http://iamthek.com/archives/46#comments</comments>
		<pubDate>Mon, 22 Dec 2008 16:50:38 +0000</pubDate>
		<dc:creator>Mike</dc:creator>
				<category><![CDATA[ldap]]></category>
		<category><![CDATA[replication]]></category>
		<category><![CDATA[sun]]></category>
		<category><![CDATA[directory]]></category>
		<category><![CDATA[dsee]]></category>

		<guid isPermaLink="false">http://iamthek.com/?p=46</guid>
		<description><![CDATA[I needed to determine the update time for a particular attribute for one of my customers.  I knew I had ran across how to get it from a csn attribute.
If you can obtain the CSN of an attribute, ie: from the nscpentrywsi operational attribute), the timestamp is the first 8 bytes of the CSN, in [...]]]></description>
			<content:encoded><![CDATA[<p>I needed to determine the update time for a particular attribute for one of my customers.  I knew I had ran across how to get it from a csn attribute.</p>
<p>If you can obtain the CSN of an attribute, ie: from the nscpentrywsi operational attribute), the timestamp is the first 8 bytes of the CSN, in hex format.</p>
<p>ie:</p>
<blockquote><p>nscpentrywsi: cn;adcsn-494d685d000000010000;vucsn-494d685d000000010000: The K</p></blockquote>
<p>The timestamp in hex is: 494d685d</p>
<p>With a bit of perl magic, we can obtain the localtime value:</p>
<blockquote><p>perl -e &#8216;print localtime(hex(&#8221;494d685d&#8221;)) . &#8220;\n&#8221;;&#8217;</p></blockquote>
<p>Which returns:</p>
<blockquote><p>Sat Dec 20 16:49:17 2008</p></blockquote>
<!-- Social Bookmarking Reloaded BEGIN --><div class="social_bookmark"><em>bookmark to</em><br /><a class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,border=0,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://del.icio.us/post?url=http://iamthek.com/archives/46title=Determine+CSN+update+time+from+CSR+in+Directory+Server+5%2F6" title="Add 'Determine CSN update time from CSR in Directory Server 5/6' to Del.icio.us"><img src="http://iamthek.com/wp-content/plugins/social-bookmarking-reloaded/delicious.png" title="Add 'Determine CSN update time from CSR in Directory Server 5/6' to Del.icio.us" alt="Add 'Determine CSN update time from CSR in Directory Server 5/6' to Del.icio.us" /></a><a class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,border=0,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://digg.com/submit?phase=2url=http://iamthek.com/archives/46title=Determine+CSN+update+time+from+CSR+in+Directory+Server+5%2F6" title="Add 'Determine CSN update time from CSR in Directory Server 5/6' to digg"><img src="http://iamthek.com/wp-content/plugins/social-bookmarking-reloaded/digg.png" title="Add 'Determine CSN update time from CSR in Directory Server 5/6' to digg" alt="Add 'Determine CSN update time from CSR in Directory Server 5/6' to digg" /></a><a class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,border=0,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://reddit.com/submit?url=http://iamthek.com/archives/46title=Determine+CSN+update+time+from+CSR+in+Directory+Server+5%2F6" title="Add 'Determine CSN update time from CSR in Directory Server 5/6' to reddit"><img src="http://iamthek.com/wp-content/plugins/social-bookmarking-reloaded/reddit.png" title="Add 'Determine CSN update time from CSR in Directory Server 5/6' to reddit" alt="Add 'Determine CSN update time from CSR in Directory Server 5/6' to reddit" /></a><a class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,border=0,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.technorati.com/faves?add=http://iamthek.com/archives/46" title="Add 'Determine CSN update time from CSR in Directory Server 5/6' to Technorati"><img src="http://iamthek.com/wp-content/plugins/social-bookmarking-reloaded/technorati.png" title="Add 'Determine CSN update time from CSR in Directory Server 5/6' to Technorati" alt="Add 'Determine CSN update time from CSR in Directory Server 5/6' to Technorati" /></a><a class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,border=0,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.stumbleupon.com/submit?url=http://iamthek.com/archives/46title=Determine+CSN+update+time+from+CSR+in+Directory+Server+5%2F6" title="Add 'Determine CSN update time from CSR in Directory Server 5/6' to Stumble Upon"><img src="http://iamthek.com/wp-content/plugins/social-bookmarking-reloaded/stumbleupon.png" title="Add 'Determine CSN update time from CSR in Directory Server 5/6' to Stumble Upon" alt="Add 'Determine CSN update time from CSR in Directory Server 5/6' to Stumble Upon" /></a></div>
<!-- Social Bookmarking Reloaded END -->]]></content:encoded>
			<wfw:commentRss>http://iamthek.com/archives/46/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Backing up and Restoring data from Directory Server 6</title>
		<link>http://iamthek.com/archives/26</link>
		<comments>http://iamthek.com/archives/26#comments</comments>
		<pubDate>Mon, 26 Nov 2007 19:54:10 +0000</pubDate>
		<dc:creator>Mike</dc:creator>
				<category><![CDATA[ldap]]></category>
		<category><![CDATA[replication]]></category>
		<category><![CDATA[sun]]></category>
		<category><![CDATA[directory server]]></category>
		<category><![CDATA[directory server 6]]></category>

		<guid isPermaLink="false">http://iamthek.com/archives/26</guid>
		<description><![CDATA[One of the largest problems that I have noticed when doing directory deployments, are either invalid, or non-existent backups of their directory information.  They often assure peace of mind when things unexpectedly go wrong (a la unexpected power outages).
I&#8217;ve found a good reference to how to do backups with Directory Server 6; and won&#8217;t rehash [...]]]></description>
			<content:encoded><![CDATA[<p>One of the largest problems that I have noticed when doing directory deployments, are either invalid, or non-existent backups of their directory information.  They often assure peace of mind when things unexpectedly go wrong (a la <a href="http://www.gastromaniacs.com/?p=50" target="_blank">unexpected power outages</a>).</p>
<p>I&#8217;ve found a good reference to <a href="http://blogs.sun.com/marginNotes/entry/how_to_back_up_directory" target="_blank">how to do backups with Directory Server 6</a>; and won&#8217;t rehash them here.</p>
<p>In essence, it may become necessary to have a single instance dedicated to doing routine backups in a large environment.  This is because you need to be able to turn the instance to read-only for the duration of the backup.</p>
<!-- Social Bookmarking Reloaded BEGIN --><div class="social_bookmark"><em>bookmark to</em><br /><a class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,border=0,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://del.icio.us/post?url=http://iamthek.com/archives/26title=Backing+up+and+Restoring+data+from+Directory+Server+6" title="Add 'Backing up and Restoring data from Directory Server 6' to Del.icio.us"><img src="http://iamthek.com/wp-content/plugins/social-bookmarking-reloaded/delicious.png" title="Add 'Backing up and Restoring data from Directory Server 6' to Del.icio.us" alt="Add 'Backing up and Restoring data from Directory Server 6' to Del.icio.us" /></a><a class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,border=0,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://digg.com/submit?phase=2url=http://iamthek.com/archives/26title=Backing+up+and+Restoring+data+from+Directory+Server+6" title="Add 'Backing up and Restoring data from Directory Server 6' to digg"><img src="http://iamthek.com/wp-content/plugins/social-bookmarking-reloaded/digg.png" title="Add 'Backing up and Restoring data from Directory Server 6' to digg" alt="Add 'Backing up and Restoring data from Directory Server 6' to digg" /></a><a class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,border=0,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://reddit.com/submit?url=http://iamthek.com/archives/26title=Backing+up+and+Restoring+data+from+Directory+Server+6" title="Add 'Backing up and Restoring data from Directory Server 6' to reddit"><img src="http://iamthek.com/wp-content/plugins/social-bookmarking-reloaded/reddit.png" title="Add 'Backing up and Restoring data from Directory Server 6' to reddit" alt="Add 'Backing up and Restoring data from Directory Server 6' to reddit" /></a><a class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,border=0,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.technorati.com/faves?add=http://iamthek.com/archives/26" title="Add 'Backing up and Restoring data from Directory Server 6' to Technorati"><img src="http://iamthek.com/wp-content/plugins/social-bookmarking-reloaded/technorati.png" title="Add 'Backing up and Restoring data from Directory Server 6' to Technorati" alt="Add 'Backing up and Restoring data from Directory Server 6' to Technorati" /></a><a class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,border=0,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.stumbleupon.com/submit?url=http://iamthek.com/archives/26title=Backing+up+and+Restoring+data+from+Directory+Server+6" title="Add 'Backing up and Restoring data from Directory Server 6' to Stumble Upon"><img src="http://iamthek.com/wp-content/plugins/social-bookmarking-reloaded/stumbleupon.png" title="Add 'Backing up and Restoring data from Directory Server 6' to Stumble Upon" alt="Add 'Backing up and Restoring data from Directory Server 6' to Stumble Upon" /></a></div>
<!-- Social Bookmarking Reloaded END -->]]></content:encoded>
			<wfw:commentRss>http://iamthek.com/archives/26/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Sun Directory Server 5.2 6-Way MMR &#8211; part 8 &#8211; Enable Directory Server backends for updates</title>
		<link>http://iamthek.com/archives/24</link>
		<comments>http://iamthek.com/archives/24#comments</comments>
		<pubDate>Tue, 20 Nov 2007 15:00:24 +0000</pubDate>
		<dc:creator>Mike</dc:creator>
				<category><![CDATA[ldap]]></category>
		<category><![CDATA[replication]]></category>
		<category><![CDATA[sun]]></category>
		<category><![CDATA[changelog]]></category>
		<category><![CDATA[directory]]></category>
		<category><![CDATA[directory server]]></category>

		<guid isPermaLink="false">http://iamthek.com/archives/24</guid>
		<description><![CDATA[Once the directory server replica&#8217;s are configured and initialized, the final step is to enable them to accept updates.
This step was added as there is a necessary catch-up time when initializing MMR (especially in a busy environment); where by the time an instance is initialized, it is out-of-date until all the subsequent updates have been [...]]]></description>
			<content:encoded><![CDATA[<p>Once the directory server replica&#8217;s are configured and initialized, the final step is to enable them to accept updates.</p>
<p>This step was added as there is a necessary catch-up time when initializing MMR (especially in a busy environment); where by the time an instance is initialized, it is out-of-date until all the subsequent updates have been propagated.  When I had to do this the first time, I was working off static data, and didn&#8217;t need to worry about performing this when the updates have been propagated, as there were no updates.</p>
<p>The only instance and suffixes that do not need to be enabled are those on ultimate master, which had all the data initially.  All other instances need to be enabled after the replica&#8217;s have caught up.</p>
<p>In summary, those instances are:</p>
<blockquote><p>ds0: nothing needs to be enabled</p>
<p>ds1: user/group, o=internet, o=piserverdb, o=pab, o=comms-config, o=netscaperoot</p>
<p>ds2: user/group, o=internet, o=piserverdb, o=pab, o=comms-config, o=netscaperoot</p>
<p>ds3: user/group, o=internet, o=piserverdb, o=pab, o=comms-config, o=netscaperoot</p>
<p>ds4: user/group, o=internet, o=piserverdb, o=pab, o=comms-config, o=netscaperoot</p>
<p>ds5: user/group, o=internet, o=piserverdb, o=pab, o=comms-config, o=netscaperoot</p></blockquote>
<p>I&#8217;ve created an example command set to <a href="http://iamthek.com/archives/13">enable a directory server backend</a>.</p>
<!-- Social Bookmarking Reloaded BEGIN --><div class="social_bookmark"><em>bookmark to</em><br /><a class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,border=0,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://del.icio.us/post?url=http://iamthek.com/archives/24title=Sun+Directory+Server+5.2+6-Way+MMR+%26%238211%3B+part+8+%26%238211%3B+Enable+Directory+Server+backends+for+updates" title="Add 'Sun Directory Server 5.2 6-Way MMR &#8211; part 8 &#8211; Enable Directory Server backends for updates' to Del.icio.us"><img src="http://iamthek.com/wp-content/plugins/social-bookmarking-reloaded/delicious.png" title="Add 'Sun Directory Server 5.2 6-Way MMR &#8211; part 8 &#8211; Enable Directory Server backends for updates' to Del.icio.us" alt="Add 'Sun Directory Server 5.2 6-Way MMR &#8211; part 8 &#8211; Enable Directory Server backends for updates' to Del.icio.us" /></a><a class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,border=0,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://digg.com/submit?phase=2url=http://iamthek.com/archives/24title=Sun+Directory+Server+5.2+6-Way+MMR+%26%238211%3B+part+8+%26%238211%3B+Enable+Directory+Server+backends+for+updates" title="Add 'Sun Directory Server 5.2 6-Way MMR &#8211; part 8 &#8211; Enable Directory Server backends for updates' to digg"><img src="http://iamthek.com/wp-content/plugins/social-bookmarking-reloaded/digg.png" title="Add 'Sun Directory Server 5.2 6-Way MMR &#8211; part 8 &#8211; Enable Directory Server backends for updates' to digg" alt="Add 'Sun Directory Server 5.2 6-Way MMR &#8211; part 8 &#8211; Enable Directory Server backends for updates' to digg" /></a><a class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,border=0,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://reddit.com/submit?url=http://iamthek.com/archives/24title=Sun+Directory+Server+5.2+6-Way+MMR+%26%238211%3B+part+8+%26%238211%3B+Enable+Directory+Server+backends+for+updates" title="Add 'Sun Directory Server 5.2 6-Way MMR &#8211; part 8 &#8211; Enable Directory Server backends for updates' to reddit"><img src="http://iamthek.com/wp-content/plugins/social-bookmarking-reloaded/reddit.png" title="Add 'Sun Directory Server 5.2 6-Way MMR &#8211; part 8 &#8211; Enable Directory Server backends for updates' to reddit" alt="Add 'Sun Directory Server 5.2 6-Way MMR &#8211; part 8 &#8211; Enable Directory Server backends for updates' to reddit" /></a><a class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,border=0,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.technorati.com/faves?add=http://iamthek.com/archives/24" title="Add 'Sun Directory Server 5.2 6-Way MMR &#8211; part 8 &#8211; Enable Directory Server backends for updates' to Technorati"><img src="http://iamthek.com/wp-content/plugins/social-bookmarking-reloaded/technorati.png" title="Add 'Sun Directory Server 5.2 6-Way MMR &#8211; part 8 &#8211; Enable Directory Server backends for updates' to Technorati" alt="Add 'Sun Directory Server 5.2 6-Way MMR &#8211; part 8 &#8211; Enable Directory Server backends for updates' to Technorati" /></a><a class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,border=0,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.stumbleupon.com/submit?url=http://iamthek.com/archives/24title=Sun+Directory+Server+5.2+6-Way+MMR+%26%238211%3B+part+8+%26%238211%3B+Enable+Directory+Server+backends+for+updates" title="Add 'Sun Directory Server 5.2 6-Way MMR &#8211; part 8 &#8211; Enable Directory Server backends for updates' to Stumble Upon"><img src="http://iamthek.com/wp-content/plugins/social-bookmarking-reloaded/stumbleupon.png" title="Add 'Sun Directory Server 5.2 6-Way MMR &#8211; part 8 &#8211; Enable Directory Server backends for updates' to Stumble Upon" alt="Add 'Sun Directory Server 5.2 6-Way MMR &#8211; part 8 &#8211; Enable Directory Server backends for updates' to Stumble Upon" /></a></div>
<!-- Social Bookmarking Reloaded END -->]]></content:encoded>
			<wfw:commentRss>http://iamthek.com/archives/24/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Enable Directory Server 5.2 database back-end</title>
		<link>http://iamthek.com/archives/13</link>
		<comments>http://iamthek.com/archives/13#comments</comments>
		<pubDate>Mon, 19 Nov 2007 15:43:32 +0000</pubDate>
		<dc:creator>Mike</dc:creator>
				<category><![CDATA[ldap]]></category>
		<category><![CDATA[replication]]></category>
		<category><![CDATA[sun]]></category>
		<category><![CDATA[directory]]></category>
		<category><![CDATA[directory server]]></category>
		<category><![CDATA[directory server 5]]></category>
		<category><![CDATA[how-to]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[mmr]]></category>
		<category><![CDATA[multi master replication]]></category>
		<category><![CDATA[multi-master]]></category>

		<guid isPermaLink="false">http://iamthek.com/archives/13</guid>
		<description><![CDATA[In a MMR agreement, the consumer instance backend that has been initialized needs to be enabled before it can begin accepting replication updates.  This is a feature to allow a newly replicated master to catch-up on changes that have occurred during the initialization.
An example LDIF of how to enable a backend:
dn: cn=replica, cn=&#8220;suffix&#8220;,cn=mapping tree,cn=config
changetype: [...]]]></description>
			<content:encoded><![CDATA[<p>In a MMR agreement, the consumer instance backend that has been initialized needs to be enabled before it can begin accepting replication updates.  This is a feature to allow a newly replicated master to catch-up on changes that have occurred during the initialization.</p>
<p>An example LDIF of how to enable a backend:</p>
<blockquote><p>dn: cn=replica, cn=<em>&#8220;suffix</em>&#8220;,cn=mapping tree,cn=config<br />
changetype: modify<br />
add: ds5BeginReplicaAcceptUpdates<br />
ds5BeginReplicaAcceptUpdates: start</p></blockquote>
<p>I created and saved the LDIF to enable this backend suffix as /tmp/enablesuffix.ldif; and ran the ldapmodify command to perform the enable.</p>
<blockquote><p>/usr/bin/ldapmodify -h <em>host</em> -p <em>port</em> -D <em>‘rootdn‘</em> -w <em>‘password‘</em> -c -f /tmp/enablesuffix.ldif</p></blockquote>
<p>More information about <a href="http://docs.sun.com/source/817-7613/replicat.html#wp20059" target="_blank">MMR convergence from Sun</a>.</p>
<blockquote></blockquote>
<!-- Social Bookmarking Reloaded BEGIN --><div class="social_bookmark"><em>bookmark to</em><br /><a class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,border=0,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://del.icio.us/post?url=http://iamthek.com/archives/13title=Enable+Directory+Server+5.2+database+back-end" title="Add 'Enable Directory Server 5.2 database back-end' to Del.icio.us"><img src="http://iamthek.com/wp-content/plugins/social-bookmarking-reloaded/delicious.png" title="Add 'Enable Directory Server 5.2 database back-end' to Del.icio.us" alt="Add 'Enable Directory Server 5.2 database back-end' to Del.icio.us" /></a><a class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,border=0,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://digg.com/submit?phase=2url=http://iamthek.com/archives/13title=Enable+Directory+Server+5.2+database+back-end" title="Add 'Enable Directory Server 5.2 database back-end' to digg"><img src="http://iamthek.com/wp-content/plugins/social-bookmarking-reloaded/digg.png" title="Add 'Enable Directory Server 5.2 database back-end' to digg" alt="Add 'Enable Directory Server 5.2 database back-end' to digg" /></a><a class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,border=0,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://reddit.com/submit?url=http://iamthek.com/archives/13title=Enable+Directory+Server+5.2+database+back-end" title="Add 'Enable Directory Server 5.2 database back-end' to reddit"><img src="http://iamthek.com/wp-content/plugins/social-bookmarking-reloaded/reddit.png" title="Add 'Enable Directory Server 5.2 database back-end' to reddit" alt="Add 'Enable Directory Server 5.2 database back-end' to reddit" /></a><a class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,border=0,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.technorati.com/faves?add=http://iamthek.com/archives/13" title="Add 'Enable Directory Server 5.2 database back-end' to Technorati"><img src="http://iamthek.com/wp-content/plugins/social-bookmarking-reloaded/technorati.png" title="Add 'Enable Directory Server 5.2 database back-end' to Technorati" alt="Add 'Enable Directory Server 5.2 database back-end' to Technorati" /></a><a class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,border=0,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.stumbleupon.com/submit?url=http://iamthek.com/archives/13title=Enable+Directory+Server+5.2+database+back-end" title="Add 'Enable Directory Server 5.2 database back-end' to Stumble Upon"><img src="http://iamthek.com/wp-content/plugins/social-bookmarking-reloaded/stumbleupon.png" title="Add 'Enable Directory Server 5.2 database back-end' to Stumble Upon" alt="Add 'Enable Directory Server 5.2 database back-end' to Stumble Upon" /></a></div>
<!-- Social Bookmarking Reloaded END -->]]></content:encoded>
			<wfw:commentRss>http://iamthek.com/archives/13/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Sun Directory Server 5.2 6-Way MMR &#8211; part 7 &#8211; Initialize replication agreements</title>
		<link>http://iamthek.com/archives/17</link>
		<comments>http://iamthek.com/archives/17#comments</comments>
		<pubDate>Fri, 16 Nov 2007 15:03:03 +0000</pubDate>
		<dc:creator>Mike</dc:creator>
				<category><![CDATA[ldap]]></category>
		<category><![CDATA[replication]]></category>
		<category><![CDATA[sun]]></category>
		<category><![CDATA[directory]]></category>
		<category><![CDATA[directory server]]></category>
		<category><![CDATA[initialization]]></category>
		<category><![CDATA[initialize]]></category>
		<category><![CDATA[mmr]]></category>
		<category><![CDATA[suffix]]></category>

		<guid isPermaLink="false">http://iamthek.com/archives/17</guid>
		<description><![CDATA[To be usable in an MMR, all the suffixes on each instance that are part of the MMR (or replication in general) need to be initialized from the ultimate master (where the data was initially loaded).  As some of the instances are not directly replicated from this instance (as there are a maximum of [...]]]></description>
			<content:encoded><![CDATA[<p>To be usable in an MMR, all the suffixes on each instance that are part of the MMR (or replication in general) need to be initialized from the ultimate master (where the data was initially loaded).  As some of the instances are not directly replicated from this instance (as there are a maximum of 3 MMR agreements from this instance); but instances which do replicate to them can initialize that data.</p>
<p>In order to successfully initialize all the replica&#8217;s in a short amount of time, the first master ( where all the initial data was loaded ), first replicates to a counterpart; then they both replicate to another instance that had not been replicated before.  With alot of data, this can take hours to perform.</p>
<p>One methodology I&#8217;ve used is:</p>
<ol>
<li>ds0 initializes all suffixes on ds3</li>
<li>ds0 initializes all suffixes on ds1 &amp; ds3 initializes all suffixes on ds4</li>
<li>ds0 initializes all suffixes on ds5 &amp; ds3 initializes all suffixes on ds2</li>
</ol>
<p>Do so in this manner will allow you to initialize all the instance suffices in a relatively short amount of time.</p>
<p>After initializing a suffix, before it can accept updates, it needs to have its database back-end enabled, which I&#8217;ll write about at a different time.</p>
<p>I&#8217;ve created a short example of how to <a href="http://iamthek.com/archives/12">initialize a replica</a>.</p>
<!-- Social Bookmarking Reloaded BEGIN --><div class="social_bookmark"><em>bookmark to</em><br /><a class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,border=0,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://del.icio.us/post?url=http://iamthek.com/archives/17title=Sun+Directory+Server+5.2+6-Way+MMR+%26%238211%3B+part+7+%26%238211%3B+Initialize+replication+agreements" title="Add 'Sun Directory Server 5.2 6-Way MMR &#8211; part 7 &#8211; Initialize replication agreements' to Del.icio.us"><img src="http://iamthek.com/wp-content/plugins/social-bookmarking-reloaded/delicious.png" title="Add 'Sun Directory Server 5.2 6-Way MMR &#8211; part 7 &#8211; Initialize replication agreements' to Del.icio.us" alt="Add 'Sun Directory Server 5.2 6-Way MMR &#8211; part 7 &#8211; Initialize replication agreements' to Del.icio.us" /></a><a class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,border=0,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://digg.com/submit?phase=2url=http://iamthek.com/archives/17title=Sun+Directory+Server+5.2+6-Way+MMR+%26%238211%3B+part+7+%26%238211%3B+Initialize+replication+agreements" title="Add 'Sun Directory Server 5.2 6-Way MMR &#8211; part 7 &#8211; Initialize replication agreements' to digg"><img src="http://iamthek.com/wp-content/plugins/social-bookmarking-reloaded/digg.png" title="Add 'Sun Directory Server 5.2 6-Way MMR &#8211; part 7 &#8211; Initialize replication agreements' to digg" alt="Add 'Sun Directory Server 5.2 6-Way MMR &#8211; part 7 &#8211; Initialize replication agreements' to digg" /></a><a class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,border=0,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://reddit.com/submit?url=http://iamthek.com/archives/17title=Sun+Directory+Server+5.2+6-Way+MMR+%26%238211%3B+part+7+%26%238211%3B+Initialize+replication+agreements" title="Add 'Sun Directory Server 5.2 6-Way MMR &#8211; part 7 &#8211; Initialize replication agreements' to reddit"><img src="http://iamthek.com/wp-content/plugins/social-bookmarking-reloaded/reddit.png" title="Add 'Sun Directory Server 5.2 6-Way MMR &#8211; part 7 &#8211; Initialize replication agreements' to reddit" alt="Add 'Sun Directory Server 5.2 6-Way MMR &#8211; part 7 &#8211; Initialize replication agreements' to reddit" /></a><a class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,border=0,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.technorati.com/faves?add=http://iamthek.com/archives/17" title="Add 'Sun Directory Server 5.2 6-Way MMR &#8211; part 7 &#8211; Initialize replication agreements' to Technorati"><img src="http://iamthek.com/wp-content/plugins/social-bookmarking-reloaded/technorati.png" title="Add 'Sun Directory Server 5.2 6-Way MMR &#8211; part 7 &#8211; Initialize replication agreements' to Technorati" alt="Add 'Sun Directory Server 5.2 6-Way MMR &#8211; part 7 &#8211; Initialize replication agreements' to Technorati" /></a><a class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,border=0,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.stumbleupon.com/submit?url=http://iamthek.com/archives/17title=Sun+Directory+Server+5.2+6-Way+MMR+%26%238211%3B+part+7+%26%238211%3B+Initialize+replication+agreements" title="Add 'Sun Directory Server 5.2 6-Way MMR &#8211; part 7 &#8211; Initialize replication agreements' to Stumble Upon"><img src="http://iamthek.com/wp-content/plugins/social-bookmarking-reloaded/stumbleupon.png" title="Add 'Sun Directory Server 5.2 6-Way MMR &#8211; part 7 &#8211; Initialize replication agreements' to Stumble Upon" alt="Add 'Sun Directory Server 5.2 6-Way MMR &#8211; part 7 &#8211; Initialize replication agreements' to Stumble Upon" /></a></div>
<!-- Social Bookmarking Reloaded END -->]]></content:encoded>
			<wfw:commentRss>http://iamthek.com/archives/17/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Initialize a database suffix in Directory Server 5.2</title>
		<link>http://iamthek.com/archives/12</link>
		<comments>http://iamthek.com/archives/12#comments</comments>
		<pubDate>Thu, 15 Nov 2007 15:13:11 +0000</pubDate>
		<dc:creator>Mike</dc:creator>
				<category><![CDATA[ldap]]></category>
		<category><![CDATA[replication]]></category>
		<category><![CDATA[sun]]></category>
		<category><![CDATA[changelog]]></category>
		<category><![CDATA[directory]]></category>
		<category><![CDATA[directory server]]></category>
		<category><![CDATA[directory server 5]]></category>
		<category><![CDATA[how-to]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[mmr]]></category>
		<category><![CDATA[multi master replication]]></category>
		<category><![CDATA[multi-master]]></category>

		<guid isPermaLink="false">http://iamthek.com/archives/12</guid>
		<description><![CDATA[In a replicated environment, all (initial) data should flow from a single master to all other instances.  After preparing the (destination) directory server for replication, the remote instance database needs to be initialized.
An example replication initialization:
dn: cn=replication agreement name:389,cn=replica,cn=suffix,cn=mapping tree,cn=config
changetype: modify
replace: nsds5BeginReplicaRefresh
nsds5BeginReplicaRefresh: start
With our LDIF written as /tmp/reinit.ldif; run the following ldapmodify command:
/usr/bin/ldapmodify -h [...]]]></description>
			<content:encoded><![CDATA[<p>In a replicated environment, all (initial) data should flow from a single master to all other instances.  After preparing the (destination) directory server for replication, the remote instance database needs to be initialized.</p>
<p>An example replication initialization:</p>
<blockquote><p>dn: cn=<em>replication agreement name</em>:<em>389</em>,cn=replica,cn=<em>suffix</em>,cn=mapping tree,cn=config<br />
changetype: modify<br />
replace: nsds5BeginReplicaRefresh<br />
nsds5BeginReplicaRefresh: start</p></blockquote>
<p>With our LDIF written as /tmp/reinit.ldif; run the following ldapmodify command:</p>
<blockquote><p>/usr/bin/ldapmodify -h <em>host</em> -p <em>port</em> -D <em>‘rootdn‘</em> -w <em>‘password‘</em> -c -f /tmp/reinit.ldif</p></blockquote>
<!-- Social Bookmarking Reloaded BEGIN --><div class="social_bookmark"><em>bookmark to</em><br /><a class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,border=0,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://del.icio.us/post?url=http://iamthek.com/archives/12title=Initialize+a+database+suffix+in+Directory+Server+5.2" title="Add 'Initialize a database suffix in Directory Server 5.2' to Del.icio.us"><img src="http://iamthek.com/wp-content/plugins/social-bookmarking-reloaded/delicious.png" title="Add 'Initialize a database suffix in Directory Server 5.2' to Del.icio.us" alt="Add 'Initialize a database suffix in Directory Server 5.2' to Del.icio.us" /></a><a class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,border=0,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://digg.com/submit?phase=2url=http://iamthek.com/archives/12title=Initialize+a+database+suffix+in+Directory+Server+5.2" title="Add 'Initialize a database suffix in Directory Server 5.2' to digg"><img src="http://iamthek.com/wp-content/plugins/social-bookmarking-reloaded/digg.png" title="Add 'Initialize a database suffix in Directory Server 5.2' to digg" alt="Add 'Initialize a database suffix in Directory Server 5.2' to digg" /></a><a class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,border=0,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://reddit.com/submit?url=http://iamthek.com/archives/12title=Initialize+a+database+suffix+in+Directory+Server+5.2" title="Add 'Initialize a database suffix in Directory Server 5.2' to reddit"><img src="http://iamthek.com/wp-content/plugins/social-bookmarking-reloaded/reddit.png" title="Add 'Initialize a database suffix in Directory Server 5.2' to reddit" alt="Add 'Initialize a database suffix in Directory Server 5.2' to reddit" /></a><a class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,border=0,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.technorati.com/faves?add=http://iamthek.com/archives/12" title="Add 'Initialize a database suffix in Directory Server 5.2' to Technorati"><img src="http://iamthek.com/wp-content/plugins/social-bookmarking-reloaded/technorati.png" title="Add 'Initialize a database suffix in Directory Server 5.2' to Technorati" alt="Add 'Initialize a database suffix in Directory Server 5.2' to Technorati" /></a><a class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,border=0,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.stumbleupon.com/submit?url=http://iamthek.com/archives/12title=Initialize+a+database+suffix+in+Directory+Server+5.2" title="Add 'Initialize a database suffix in Directory Server 5.2' to Stumble Upon"><img src="http://iamthek.com/wp-content/plugins/social-bookmarking-reloaded/stumbleupon.png" title="Add 'Initialize a database suffix in Directory Server 5.2' to Stumble Upon" alt="Add 'Initialize a database suffix in Directory Server 5.2' to Stumble Upon" /></a></div>
<!-- Social Bookmarking Reloaded END -->]]></content:encoded>
			<wfw:commentRss>http://iamthek.com/archives/12/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Sun Directory Server 5.2 6-Way MMR &#8211; part 6 &#8211; Create replication agreements</title>
		<link>http://iamthek.com/archives/16</link>
		<comments>http://iamthek.com/archives/16#comments</comments>
		<pubDate>Wed, 14 Nov 2007 14:42:03 +0000</pubDate>
		<dc:creator>Mike</dc:creator>
				<category><![CDATA[ldap]]></category>
		<category><![CDATA[replication]]></category>
		<category><![CDATA[sun]]></category>
		<category><![CDATA[changelog]]></category>
		<category><![CDATA[directory]]></category>
		<category><![CDATA[directory server]]></category>
		<category><![CDATA[directory server 5]]></category>
		<category><![CDATA[how-to]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[mmr]]></category>
		<category><![CDATA[multi master replication]]></category>
		<category><![CDATA[multi-master]]></category>

		<guid isPermaLink="false">http://iamthek.com/archives/16</guid>
		<description><![CDATA[Up until now, we&#8217;ve been preparing each of our instances to participate in MMR; at this point, we create the replication topology and the replication agreements.
Being as each of our 6 instances will be masters, and with Directory Server 5.2, there is a limit of 4 masters in an MMR, a bit of creativity must [...]]]></description>
			<content:encoded><![CDATA[<p>Up until now, we&#8217;ve been preparing each of our instances to participate in MMR; at this point, we create the replication topology and the replication agreements.</p>
<p>Being as each of our 6 instances will be masters, and with Directory Server 5.2, there is a limit of 4 masters in an MMR, a bit of creativity must be employed.  Each of the master instances will replicate each of its back-end databases (user/group, o=internet, o=pab, o=piserverdb, o=comms-config and o=netscaperoot) to each of its immediate peer instances, meaning those that are numbered sequentially lower and higher; as well as another instance that is neither sequentially lower or higher.</p>
<p>The replication agreement list is defined below.</p>
<blockquote><p>ds0 -&gt; ds5 / ds1 / ds3</p>
<p>ds1 -&gt; ds0 / ds2 / ds4</p>
<p>ds2 -&gt; ds1 / ds3 / ds5</p>
<p>ds3 -&gt; ds2 / ds4 / ds0</p>
<p>ds4 -&gt; ds3 / ds5 / ds1</p>
<p>ds5 -&gt; ds4 / ds0 / ds2</p></blockquote>
<p>So, the instances on the instance ds0 will replicate each of its back-end databases to ds5, ds1 and ds3.  Being as each master has only 3 MMR replication agreements per backend, they each believe they are in a 4-way MMR; while in actuality, there are 6 masters serving the data.</p>
<p>For information on how to create the actual replication agreement LDIF; <a href="http://iamthek.com/archives/11">please follow my instructions</a>.</p>
<blockquote></blockquote>
<!-- Social Bookmarking Reloaded BEGIN --><div class="social_bookmark"><em>bookmark to</em><br /><a class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,border=0,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://del.icio.us/post?url=http://iamthek.com/archives/16title=Sun+Directory+Server+5.2+6-Way+MMR+%26%238211%3B+part+6+%26%238211%3B+Create+replication+agreements" title="Add 'Sun Directory Server 5.2 6-Way MMR &#8211; part 6 &#8211; Create replication agreements' to Del.icio.us"><img src="http://iamthek.com/wp-content/plugins/social-bookmarking-reloaded/delicious.png" title="Add 'Sun Directory Server 5.2 6-Way MMR &#8211; part 6 &#8211; Create replication agreements' to Del.icio.us" alt="Add 'Sun Directory Server 5.2 6-Way MMR &#8211; part 6 &#8211; Create replication agreements' to Del.icio.us" /></a><a class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,border=0,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://digg.com/submit?phase=2url=http://iamthek.com/archives/16title=Sun+Directory+Server+5.2+6-Way+MMR+%26%238211%3B+part+6+%26%238211%3B+Create+replication+agreements" title="Add 'Sun Directory Server 5.2 6-Way MMR &#8211; part 6 &#8211; Create replication agreements' to digg"><img src="http://iamthek.com/wp-content/plugins/social-bookmarking-reloaded/digg.png" title="Add 'Sun Directory Server 5.2 6-Way MMR &#8211; part 6 &#8211; Create replication agreements' to digg" alt="Add 'Sun Directory Server 5.2 6-Way MMR &#8211; part 6 &#8211; Create replication agreements' to digg" /></a><a class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,border=0,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://reddit.com/submit?url=http://iamthek.com/archives/16title=Sun+Directory+Server+5.2+6-Way+MMR+%26%238211%3B+part+6+%26%238211%3B+Create+replication+agreements" title="Add 'Sun Directory Server 5.2 6-Way MMR &#8211; part 6 &#8211; Create replication agreements' to reddit"><img src="http://iamthek.com/wp-content/plugins/social-bookmarking-reloaded/reddit.png" title="Add 'Sun Directory Server 5.2 6-Way MMR &#8211; part 6 &#8211; Create replication agreements' to reddit" alt="Add 'Sun Directory Server 5.2 6-Way MMR &#8211; part 6 &#8211; Create replication agreements' to reddit" /></a><a class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,border=0,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.technorati.com/faves?add=http://iamthek.com/archives/16" title="Add 'Sun Directory Server 5.2 6-Way MMR &#8211; part 6 &#8211; Create replication agreements' to Technorati"><img src="http://iamthek.com/wp-content/plugins/social-bookmarking-reloaded/technorati.png" title="Add 'Sun Directory Server 5.2 6-Way MMR &#8211; part 6 &#8211; Create replication agreements' to Technorati" alt="Add 'Sun Directory Server 5.2 6-Way MMR &#8211; part 6 &#8211; Create replication agreements' to Technorati" /></a><a class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,border=0,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.stumbleupon.com/submit?url=http://iamthek.com/archives/16title=Sun+Directory+Server+5.2+6-Way+MMR+%26%238211%3B+part+6+%26%238211%3B+Create+replication+agreements" title="Add 'Sun Directory Server 5.2 6-Way MMR &#8211; part 6 &#8211; Create replication agreements' to Stumble Upon"><img src="http://iamthek.com/wp-content/plugins/social-bookmarking-reloaded/stumbleupon.png" title="Add 'Sun Directory Server 5.2 6-Way MMR &#8211; part 6 &#8211; Create replication agreements' to Stumble Upon" alt="Add 'Sun Directory Server 5.2 6-Way MMR &#8211; part 6 &#8211; Create replication agreements' to Stumble Upon" /></a></div>
<!-- Social Bookmarking Reloaded END -->]]></content:encoded>
			<wfw:commentRss>http://iamthek.com/archives/16/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Create Directory Server 5.2 replication agreements</title>
		<link>http://iamthek.com/archives/11</link>
		<comments>http://iamthek.com/archives/11#comments</comments>
		<pubDate>Tue, 13 Nov 2007 15:32:39 +0000</pubDate>
		<dc:creator>Mike</dc:creator>
				<category><![CDATA[ldap]]></category>
		<category><![CDATA[replication]]></category>
		<category><![CDATA[sun]]></category>
		<category><![CDATA[directory]]></category>
		<category><![CDATA[directory server]]></category>
		<category><![CDATA[mmr]]></category>
		<category><![CDATA[multi master replication]]></category>

		<guid isPermaLink="false">http://iamthek.com/archives/11</guid>
		<description><![CDATA[In a Sun Directory Server 5.2 multi-master replication (MMR) topology, the instances that are to master the data, ie: accept changes and push those changes to other instances; need to have a replication agreement per-replicated-suffix / per-replicated-instance.
To create a replication agreement, the instance being replicated to needs to be configured to accept replicated changes.  [...]]]></description>
			<content:encoded><![CDATA[<p>In a Sun Directory Server 5.2 multi-master replication (MMR) topology, the instances that are to <em>master</em> the data, ie: accept changes and push those changes to other instances; need to have a replication agreement per-replicated-suffix / per-replicated-instance.</p>
<p>To create a replication agreement, the instance being replicated to needs to be configured to accept replicated changes.  We create this LDIF with the full contents of a replication agreement for a Directory Server 5.2 instance.  Replace all italicized items with the appropriate values for your deployment.</p>
<blockquote><p>dn: cn=<em>ds1.example.com</em>:<em>389</em>, cn=replica, cn=&#8221;<em>dc=example,dc=com</em>&#8220;,cn=mapping tree,cn=config<br />
changetype: add<br />
objectClass: nsDS5ReplicationAgreement<br />
objectClass: top<br />
nsDS5ReplicaHost: <em>ds1.example.com</em><br />
nsDS5ReplicaPort: <em>389</em><br />
nsDS5ReplicaBindMethod: SIMPLE<br />
nsDS5ReplicaBindDN: cn=replication manager, cn=replication, cn=config<br />
nsDS5ReplicaUpdateSchedule: *<br />
description: user and group data to <em>ds1</em>:<em>389</em><br />
nsDS5ReplicaRoot: <em>dc=example,dc=com</em><br />
cn: <em>ds1.example.com</em>:389<br />
nsDS5ReplicaCredentials: <em>remotereplmanpwd</em></p></blockquote>
<p>I created and saved my replication agreement as /tmp/replagmt.ldif; and ran the ldapmodify command to create the above replication agreement.</p>
<blockquote><p>/usr/bin/ldapmodify -h <em>host</em> -p <em>port</em> -D <em>‘rootdn‘</em> -w <em>‘password‘</em> -c -f /tmp/replagmt.ldif</p></blockquote>
<!-- Social Bookmarking Reloaded BEGIN --><div class="social_bookmark"><em>bookmark to</em><br /><a class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,border=0,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://del.icio.us/post?url=http://iamthek.com/archives/11title=Create+Directory+Server+5.2+replication+agreements" title="Add 'Create Directory Server 5.2 replication agreements' to Del.icio.us"><img src="http://iamthek.com/wp-content/plugins/social-bookmarking-reloaded/delicious.png" title="Add 'Create Directory Server 5.2 replication agreements' to Del.icio.us" alt="Add 'Create Directory Server 5.2 replication agreements' to Del.icio.us" /></a><a class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,border=0,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://digg.com/submit?phase=2url=http://iamthek.com/archives/11title=Create+Directory+Server+5.2+replication+agreements" title="Add 'Create Directory Server 5.2 replication agreements' to digg"><img src="http://iamthek.com/wp-content/plugins/social-bookmarking-reloaded/digg.png" title="Add 'Create Directory Server 5.2 replication agreements' to digg" alt="Add 'Create Directory Server 5.2 replication agreements' to digg" /></a><a class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,border=0,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://reddit.com/submit?url=http://iamthek.com/archives/11title=Create+Directory+Server+5.2+replication+agreements" title="Add 'Create Directory Server 5.2 replication agreements' to reddit"><img src="http://iamthek.com/wp-content/plugins/social-bookmarking-reloaded/reddit.png" title="Add 'Create Directory Server 5.2 replication agreements' to reddit" alt="Add 'Create Directory Server 5.2 replication agreements' to reddit" /></a><a class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,border=0,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.technorati.com/faves?add=http://iamthek.com/archives/11" title="Add 'Create Directory Server 5.2 replication agreements' to Technorati"><img src="http://iamthek.com/wp-content/plugins/social-bookmarking-reloaded/technorati.png" title="Add 'Create Directory Server 5.2 replication agreements' to Technorati" alt="Add 'Create Directory Server 5.2 replication agreements' to Technorati" /></a><a class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,border=0,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.stumbleupon.com/submit?url=http://iamthek.com/archives/11title=Create+Directory+Server+5.2+replication+agreements" title="Add 'Create Directory Server 5.2 replication agreements' to Stumble Upon"><img src="http://iamthek.com/wp-content/plugins/social-bookmarking-reloaded/stumbleupon.png" title="Add 'Create Directory Server 5.2 replication agreements' to Stumble Upon" alt="Add 'Create Directory Server 5.2 replication agreements' to Stumble Upon" /></a></div>
<!-- Social Bookmarking Reloaded END -->]]></content:encoded>
			<wfw:commentRss>http://iamthek.com/archives/11/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Sun Directory Server 5.2 6-Way MMR &#8211; part 5 &#8211; Enabling replication on a back-end</title>
		<link>http://iamthek.com/archives/15</link>
		<comments>http://iamthek.com/archives/15#comments</comments>
		<pubDate>Mon, 12 Nov 2007 16:11:17 +0000</pubDate>
		<dc:creator>Mike</dc:creator>
				<category><![CDATA[ldap]]></category>
		<category><![CDATA[replication]]></category>
		<category><![CDATA[sun]]></category>
		<category><![CDATA[changelog]]></category>
		<category><![CDATA[directory]]></category>
		<category><![CDATA[directory server]]></category>
		<category><![CDATA[directory server 5]]></category>
		<category><![CDATA[how-to]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[mmr]]></category>
		<category><![CDATA[multi master replication]]></category>
		<category><![CDATA[multi-master]]></category>

		<guid isPermaLink="false">http://iamthek.com/?p=15</guid>
		<description><![CDATA[In order to participate in replication, each of the suffixes that are to be replicated need to be configured for replication.  Each MMR suffix should have a unique replication identifier associated with it, numbered 0 to 65536.
With our choice of applications and associated schema, we have 6 unique suffixes, each with their own purpose:
dc=example,dc=com
The [...]]]></description>
			<content:encoded><![CDATA[<p>In order to participate in replication, each of the suffixes that are to be replicated need to be configured for replication.  Each MMR suffix should have a unique replication identifier associated with it, numbered 0 to 65536.</p>
<p>With our choice of applications and associated schema, we have 6 unique suffixes, each with their own purpose:</p>
<p>dc=example,dc=com</p>
<blockquote><p>The primary user/group suffix.  We used the numbers 10000 to 10005 to identify MMR instances.</p>
<p>ds0 / dc=example,dc=com : 10000</p>
<p>ds1 / dc=example,dc=com : 10001</p>
<p>ds2 / dc=example,dc=com : 10002</p>
<p>ds3 / dc=example,dc=com : 10003</p>
<p>ds4 / dc=example,dc=com : 10004</p>
<p>ds5 / dc=example,dc=com : 10005</p></blockquote>
<p>o=comms-config</p>
<blockquote><p>The location of the Communications configuration information. We used the numbers 20000 to 20005 to identify MMR instances of this type.</p>
<p>ds0 / o=comms-config : 20000</p>
<p>ds1 / o=comms-config : 20001</p>
<p>ds2 / o=comms-config : 20002</p>
<p>ds3 / o=comms-config : 20003</p>
<p>ds4 / o=comms-config : 20004</p>
<p>ds5 / o=comms-config : 20005</p></blockquote>
<p>o=internet</p>
<blockquote><p>Holds the schema1 mail routing information for local domains. We used the numbers 30000 to 30005 to identify MMR instances of this type.</p>
<p>ds0 / o=internet : 30000</p>
<p>ds1 / o=internet : 30001</p>
<p>ds2 / o=internet : 30002</p>
<p>ds3 / o=internet : 30003</p>
<p>ds4 / o=internet : 30004</p>
<p>ds5 / o=internet : 30005</p></blockquote>
<p>o=NetscapeRoot</p>
<blockquote><p>Holds primarily console information, if all instances are configured in the same instance, all instances can show up in the console. We used the numbers 40000 to 40005 to identify MMR instances of this type.</p>
<p>ds0 / o=NetscapeRoot : 40000</p>
<p>ds1 / o=NetscapeRoot : 40001</p>
<p>ds2 / o=NetscapeRoot : 40002</p>
<p>ds3 / o=NetscapeRoot : 40003</p>
<p>ds4 / o=NetscapeRoot : 40004</p>
<p>ds5 / o=NetscapeRoot : 40005</p></blockquote>
<p>o=pab</p>
<blockquote><p>Sun Messaging Personal Address Book.  We used the numbers 50000 to 50005 to identify MMR instances of this type.</p>
<p>ds0 / o=pab : 50000</p>
<p>ds1 / o=pab : 50001</p>
<p>ds2 / o=pab : 50002</p>
<p>ds3 / o=pab : 50003</p>
<p>ds4 / o=pab : 50004</p>
<p>ds5 / o=pab : 50005</p></blockquote>
<p>o=PiServerDB</p>
<blockquote><p>Sun Unified Web Client Address Book.  We used the numbers 60000 to 60005 to identify MMR instances of this type.</p>
<p>ds0 / o=PiServerDB : 60000</p>
<p>ds1 / o=PiServerDB : 60001</p>
<p>ds2 / o=PiServerDB : 60002</p>
<p>ds3 / o=PiServerDB : 60003</p>
<p>ds4 / o=PiServerDB : 60004</p>
<p>ds5 / o=PiServerDB : 60005</p></blockquote>
<p>To enable replication, for each of the hostname and suffix combinations, please follow <a href="http://iamthek.com/archives/13">the instructions I have created.</a></p>
<blockquote></blockquote>
<!-- Social Bookmarking Reloaded BEGIN --><div class="social_bookmark"><em>bookmark to</em><br /><a class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,border=0,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://del.icio.us/post?url=http://iamthek.com/archives/15title=Sun+Directory+Server+5.2+6-Way+MMR+%26%238211%3B+part+5+%26%238211%3B+Enabling+replication+on+a+back-end" title="Add 'Sun Directory Server 5.2 6-Way MMR &#8211; part 5 &#8211; Enabling replication on a back-end' to Del.icio.us"><img src="http://iamthek.com/wp-content/plugins/social-bookmarking-reloaded/delicious.png" title="Add 'Sun Directory Server 5.2 6-Way MMR &#8211; part 5 &#8211; Enabling replication on a back-end' to Del.icio.us" alt="Add 'Sun Directory Server 5.2 6-Way MMR &#8211; part 5 &#8211; Enabling replication on a back-end' to Del.icio.us" /></a><a class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,border=0,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://digg.com/submit?phase=2url=http://iamthek.com/archives/15title=Sun+Directory+Server+5.2+6-Way+MMR+%26%238211%3B+part+5+%26%238211%3B+Enabling+replication+on+a+back-end" title="Add 'Sun Directory Server 5.2 6-Way MMR &#8211; part 5 &#8211; Enabling replication on a back-end' to digg"><img src="http://iamthek.com/wp-content/plugins/social-bookmarking-reloaded/digg.png" title="Add 'Sun Directory Server 5.2 6-Way MMR &#8211; part 5 &#8211; Enabling replication on a back-end' to digg" alt="Add 'Sun Directory Server 5.2 6-Way MMR &#8211; part 5 &#8211; Enabling replication on a back-end' to digg" /></a><a class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,border=0,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://reddit.com/submit?url=http://iamthek.com/archives/15title=Sun+Directory+Server+5.2+6-Way+MMR+%26%238211%3B+part+5+%26%238211%3B+Enabling+replication+on+a+back-end" title="Add 'Sun Directory Server 5.2 6-Way MMR &#8211; part 5 &#8211; Enabling replication on a back-end' to reddit"><img src="http://iamthek.com/wp-content/plugins/social-bookmarking-reloaded/reddit.png" title="Add 'Sun Directory Server 5.2 6-Way MMR &#8211; part 5 &#8211; Enabling replication on a back-end' to reddit" alt="Add 'Sun Directory Server 5.2 6-Way MMR &#8211; part 5 &#8211; Enabling replication on a back-end' to reddit" /></a><a class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,border=0,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.technorati.com/faves?add=http://iamthek.com/archives/15" title="Add 'Sun Directory Server 5.2 6-Way MMR &#8211; part 5 &#8211; Enabling replication on a back-end' to Technorati"><img src="http://iamthek.com/wp-content/plugins/social-bookmarking-reloaded/technorati.png" title="Add 'Sun Directory Server 5.2 6-Way MMR &#8211; part 5 &#8211; Enabling replication on a back-end' to Technorati" alt="Add 'Sun Directory Server 5.2 6-Way MMR &#8211; part 5 &#8211; Enabling replication on a back-end' to Technorati" /></a><a class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,border=0,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.stumbleupon.com/submit?url=http://iamthek.com/archives/15title=Sun+Directory+Server+5.2+6-Way+MMR+%26%238211%3B+part+5+%26%238211%3B+Enabling+replication+on+a+back-end" title="Add 'Sun Directory Server 5.2 6-Way MMR &#8211; part 5 &#8211; Enabling replication on a back-end' to Stumble Upon"><img src="http://iamthek.com/wp-content/plugins/social-bookmarking-reloaded/stumbleupon.png" title="Add 'Sun Directory Server 5.2 6-Way MMR &#8211; part 5 &#8211; Enabling replication on a back-end' to Stumble Upon" alt="Add 'Sun Directory Server 5.2 6-Way MMR &#8211; part 5 &#8211; Enabling replication on a back-end' to Stumble Upon" /></a></div>
<!-- Social Bookmarking Reloaded END -->]]></content:encoded>
			<wfw:commentRss>http://iamthek.com/archives/15/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Preparing Sun LDAP Directory Server 5.2 Suffix for Replication</title>
		<link>http://iamthek.com/archives/10</link>
		<comments>http://iamthek.com/archives/10#comments</comments>
		<pubDate>Sun, 11 Nov 2007 17:06:34 +0000</pubDate>
		<dc:creator>Mike</dc:creator>
				<category><![CDATA[ldap]]></category>
		<category><![CDATA[replication]]></category>
		<category><![CDATA[sun]]></category>
		<category><![CDATA[directory]]></category>
		<category><![CDATA[directory server]]></category>
		<category><![CDATA[mmr]]></category>
		<category><![CDATA[multi master replication]]></category>

		<guid isPermaLink="false">http://iamthek.com/?p=10</guid>
		<description><![CDATA[In order for a directory server instance to participate in multi-master replication, each suffix that is to participate in MMR needs to be configured with a unique (at the very least among MMR for the suffix) integer that identifies this master in MMR.  The numbers can range from 0 to 65535 to identify these [...]]]></description>
			<content:encoded><![CDATA[<p>In order for a directory server instance to participate in multi-master replication, each suffix that is to participate in MMR needs to be configured with a unique (at the very least among MMR for the suffix) integer that identifies this master in MMR.  The numbers can range from 0 to 65535 to identify these MMR instances.</p>
<p>To identify the type of replica this instance should be, we need to address the nsDS5ReplicaType attribute.  A value of 2 means this instance will be a consumer instance only, a value of 3 means this instance will be a read/write (master) instance.  Values of 0 and 1 should not be used.  <a href="http://docs.sun.com/source/817-7616/config.html#wp24683" target="_blank">More information about the nsDS5ReplicaType attribute.</a></p>
<blockquote><p>dn: cn=replica, cn=&#8221;<em>suffixname</em>&#8220;,cn=mapping tree,cn=config<br />
changetype: add<br />
objectClass: nsDS5Replica<br />
objectClass: top<br />
cn: replica<br />
nsDS5ReplicaBindDN: cn=replication manager, cn=replication, cn=config<br />
nsDS5ReplicaRoot: <em>suffixname</em><br />
nsDS5Flags: 1<br />
nsDS5ReplicaType: 3<br />
nsDS5ReplicaId: <em>uniqueidentifier</em></p></blockquote>
<p>Create a file with the above contents and save it to disk (I saved mine as /tmp/enablereplsuffix.ldif).</p>
<p>Update your directory server instance via ldapmodify to enable replication to this suffix on this host.</p>
<blockquote><p>/usr/bin/ldapmodify -h <em>host</em> -p <em>port</em> -D &#8216;<em>rootdn</em>&#8216; -w &#8216;<em>password</em>&#8216; -c -f /tmp/enablereplsuffix.ldif</p></blockquote>
<pre></pre>
<pre></pre>
<!-- Social Bookmarking Reloaded BEGIN --><div class="social_bookmark"><em>bookmark to</em><br /><a class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,border=0,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://del.icio.us/post?url=http://iamthek.com/archives/10title=Preparing+Sun+LDAP+Directory+Server+5.2+Suffix+for+Replication" title="Add 'Preparing Sun LDAP Directory Server 5.2 Suffix for Replication' to Del.icio.us"><img src="http://iamthek.com/wp-content/plugins/social-bookmarking-reloaded/delicious.png" title="Add 'Preparing Sun LDAP Directory Server 5.2 Suffix for Replication' to Del.icio.us" alt="Add 'Preparing Sun LDAP Directory Server 5.2 Suffix for Replication' to Del.icio.us" /></a><a class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,border=0,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://digg.com/submit?phase=2url=http://iamthek.com/archives/10title=Preparing+Sun+LDAP+Directory+Server+5.2+Suffix+for+Replication" title="Add 'Preparing Sun LDAP Directory Server 5.2 Suffix for Replication' to digg"><img src="http://iamthek.com/wp-content/plugins/social-bookmarking-reloaded/digg.png" title="Add 'Preparing Sun LDAP Directory Server 5.2 Suffix for Replication' to digg" alt="Add 'Preparing Sun LDAP Directory Server 5.2 Suffix for Replication' to digg" /></a><a class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,border=0,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://reddit.com/submit?url=http://iamthek.com/archives/10title=Preparing+Sun+LDAP+Directory+Server+5.2+Suffix+for+Replication" title="Add 'Preparing Sun LDAP Directory Server 5.2 Suffix for Replication' to reddit"><img src="http://iamthek.com/wp-content/plugins/social-bookmarking-reloaded/reddit.png" title="Add 'Preparing Sun LDAP Directory Server 5.2 Suffix for Replication' to reddit" alt="Add 'Preparing Sun LDAP Directory Server 5.2 Suffix for Replication' to reddit" /></a><a class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,border=0,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.technorati.com/faves?add=http://iamthek.com/archives/10" title="Add 'Preparing Sun LDAP Directory Server 5.2 Suffix for Replication' to Technorati"><img src="http://iamthek.com/wp-content/plugins/social-bookmarking-reloaded/technorati.png" title="Add 'Preparing Sun LDAP Directory Server 5.2 Suffix for Replication' to Technorati" alt="Add 'Preparing Sun LDAP Directory Server 5.2 Suffix for Replication' to Technorati" /></a><a class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,border=0,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.stumbleupon.com/submit?url=http://iamthek.com/archives/10title=Preparing+Sun+LDAP+Directory+Server+5.2+Suffix+for+Replication" title="Add 'Preparing Sun LDAP Directory Server 5.2 Suffix for Replication' to Stumble Upon"><img src="http://iamthek.com/wp-content/plugins/social-bookmarking-reloaded/stumbleupon.png" title="Add 'Preparing Sun LDAP Directory Server 5.2 Suffix for Replication' to Stumble Upon" alt="Add 'Preparing Sun LDAP Directory Server 5.2 Suffix for Replication' to Stumble Upon" /></a></div>
<!-- Social Bookmarking Reloaded END -->]]></content:encoded>
			<wfw:commentRss>http://iamthek.com/archives/10/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
