<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>http://wiki.integrics.com/index.php?action=history&amp;feed=atom&amp;title=Archiving_CDRs_to_a_remote_MySQL_Master%2FMaster_pair</id>
	<title>Archiving CDRs to a remote MySQL Master/Master pair - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://wiki.integrics.com/index.php?action=history&amp;feed=atom&amp;title=Archiving_CDRs_to_a_remote_MySQL_Master%2FMaster_pair"/>
	<link rel="alternate" type="text/html" href="http://wiki.integrics.com/index.php?title=Archiving_CDRs_to_a_remote_MySQL_Master/Master_pair&amp;action=history"/>
	<updated>2026-09-08T14:08:45Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.9</generator>
	<entry>
		<id>http://wiki.integrics.com/index.php?title=Archiving_CDRs_to_a_remote_MySQL_Master/Master_pair&amp;diff=138&amp;oldid=prev</id>
		<title>Danthony at 18:10, 30 October 2015</title>
		<link rel="alternate" type="text/html" href="http://wiki.integrics.com/index.php?title=Archiving_CDRs_to_a_remote_MySQL_Master/Master_pair&amp;diff=138&amp;oldid=prev"/>
		<updated>2015-10-30T18:10:45Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;a href=&quot;http://wiki.integrics.com/index.php?title=Archiving_CDRs_to_a_remote_MySQL_Master/Master_pair&amp;amp;diff=138&amp;amp;oldid=137&quot;&gt;Show changes&lt;/a&gt;</summary>
		<author><name>Danthony</name></author>
	</entry>
	<entry>
		<id>http://wiki.integrics.com/index.php?title=Archiving_CDRs_to_a_remote_MySQL_Master/Master_pair&amp;diff=137&amp;oldid=prev</id>
		<title>Danthony at 18:04, 30 October 2015</title>
		<link rel="alternate" type="text/html" href="http://wiki.integrics.com/index.php?title=Archiving_CDRs_to_a_remote_MySQL_Master/Master_pair&amp;diff=137&amp;oldid=prev"/>
		<updated>2015-10-30T18:04:31Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en-GB&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 18:04, 30 October 2015&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 39:&lt;/td&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 39:&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt; sudo apt-get install htop iotop bwm-ng tshark&lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt; sudo apt-get install htop iotop bwm-ng tshark&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-empty diff-side-deleted&quot;&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;= Database install and configuration =&lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;= Database install and configuration =&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Danthony</name></author>
	</entry>
	<entry>
		<id>http://wiki.integrics.com/index.php?title=Archiving_CDRs_to_a_remote_MySQL_Master/Master_pair&amp;diff=136&amp;oldid=prev</id>
		<title>Danthony at 18:04, 30 October 2015</title>
		<link rel="alternate" type="text/html" href="http://wiki.integrics.com/index.php?title=Archiving_CDRs_to_a_remote_MySQL_Master/Master_pair&amp;diff=136&amp;oldid=prev"/>
		<updated>2015-10-30T18:04:13Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en-GB&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 18:04, 30 October 2015&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 20:&lt;/td&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 20:&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;*cdrdatabase0 - Server where CDRs will be archived&lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;*cdrdatabase0 - Server where CDRs will be archived&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;*cdrdatabase1 - Server where CDRs will be archived&lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;*cdrdatabase1 - Server where CDRs will be archived&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-empty diff-side-deleted&quot;&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;= OS install =&lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;= OS install =&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 112:&lt;/td&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 113:&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt; slave start;&lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt; slave start;&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-empty diff-side-deleted&quot;&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;= Install and configure Heartbeat =&lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;= Install and configure Heartbeat =&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 219:&lt;/td&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 221:&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;You should now be able to test heartbeat by running hb_takeover on each box and having it take over the 10.1.0.93 IP and the drbd0 volume.&lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;You should now be able to test heartbeat by running hb_takeover on each box and having it take over the 10.1.0.93 IP and the drbd0 volume.&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt; sudo /usr/share/heartbeat/hb_takeover&lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt; sudo /usr/share/heartbeat/hb_takeover&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-empty diff-side-deleted&quot;&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;= Configure CDR archiving =&lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;= Configure CDR archiving =&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 273:&lt;/td&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 276:&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt; sudo service apache2 restart&lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt; sudo service apache2 restart&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-empty diff-side-deleted&quot;&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;= Configure roles =&lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;= Configure roles =&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;In order to allow non System Owner users to search archived CDRs, set the &quot;Call history (archived)&quot; to &quot;Yes&quot; under the appropriate roles.  It would be best to set this for only roles where it is absolutely necessary.&lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;In order to allow non System Owner users to search archived CDRs, set the &quot;Call history (archived)&quot; to &quot;Yes&quot; under the appropriate roles.  It would be best to set this for only roles where it is absolutely necessary.&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-empty diff-side-deleted&quot;&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;= Configure backups of archived CDRs =&lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;= Configure backups of archived CDRs =&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 317:&lt;/td&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 322:&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt; sudo chmod 700 /etc/cron.d/mysql-backup&lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt; sudo chmod 700 /etc/cron.d/mysql-backup&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-empty diff-side-deleted&quot;&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;= References =&lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;= References =&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Danthony</name></author>
	</entry>
	<entry>
		<id>http://wiki.integrics.com/index.php?title=Archiving_CDRs_to_a_remote_MySQL_Master/Master_pair&amp;diff=135&amp;oldid=prev</id>
		<title>Danthony at 17:00, 30 October 2015</title>
		<link rel="alternate" type="text/html" href="http://wiki.integrics.com/index.php?title=Archiving_CDRs_to_a_remote_MySQL_Master/Master_pair&amp;diff=135&amp;oldid=prev"/>
		<updated>2015-10-30T17:00:02Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;a href=&quot;http://wiki.integrics.com/index.php?title=Archiving_CDRs_to_a_remote_MySQL_Master/Master_pair&amp;amp;diff=135&amp;amp;oldid=134&quot;&gt;Show changes&lt;/a&gt;</summary>
		<author><name>Danthony</name></author>
	</entry>
	<entry>
		<id>http://wiki.integrics.com/index.php?title=Archiving_CDRs_to_a_remote_MySQL_Master/Master_pair&amp;diff=134&amp;oldid=prev</id>
		<title>Danthony: /* Create tables: */</title>
		<link rel="alternate" type="text/html" href="http://wiki.integrics.com/index.php?title=Archiving_CDRs_to_a_remote_MySQL_Master/Master_pair&amp;diff=134&amp;oldid=prev"/>
		<updated>2015-10-30T16:52:50Z</updated>

		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;Create tables:&lt;/span&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en-GB&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 16:52, 30 October 2015&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 244:&lt;/td&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 244:&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=== Create tables: ===&lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=== Create tables: ===&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Do &#039;SHOW CREATE TABLE&#039; on &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;enswitchcdb00&lt;/del&gt; for each of the 3 cdr* tables and run these on enswitchcdrdb00.&lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Do &#039;SHOW CREATE TABLE&#039; on &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;enswitchdb00&lt;/ins&gt; for each of the 3 cdr* tables and run these on enswitchcdrdb00.&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Create enswitchcdrsrw user on enswitchcdrdb00&quot;&lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Create enswitchcdrsrw user on enswitchcdrdb00&quot;&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt; GRANT ALL ON enswitch.* to enswitchcdrsrw IDENTIFIED BY &#039;password&#039;;&lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt; GRANT ALL ON enswitch.* to enswitchcdrsrw IDENTIFIED BY &#039;password&#039;;&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-empty diff-side-added&quot;&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-empty diff-side-added&quot;&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-empty diff-side-added&quot;&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=== Run enswitch_cdrs_archive_remote manually: ===&lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=== Run enswitch_cdrs_archive_remote manually: ===&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Danthony</name></author>
	</entry>
	<entry>
		<id>http://wiki.integrics.com/index.php?title=Archiving_CDRs_to_a_remote_MySQL_Master/Master_pair&amp;diff=133&amp;oldid=prev</id>
		<title>Danthony: Created page with &quot;= Disclaimer =   The following comes with no warranty whatsoever.  I am not responsible for any data loss or other issues that may arise from following these instructions.  Pl...&quot;</title>
		<link rel="alternate" type="text/html" href="http://wiki.integrics.com/index.php?title=Archiving_CDRs_to_a_remote_MySQL_Master/Master_pair&amp;diff=133&amp;oldid=prev"/>
		<updated>2015-10-30T16:49:44Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;= Disclaimer =   The following comes with no warranty whatsoever.  I am not responsible for any data loss or other issues that may arise from following these instructions.  Pl...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;= Disclaimer =&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The following comes with no warranty whatsoever.  I am not responsible for any data loss or other issues that may arise from following these instructions.  Please make backups of all files and test this thoroughly in your lab environment before using it in production.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= Info =&lt;br /&gt;
&lt;br /&gt;
This document is a companion to the official documentation from Integrics at http://integrics.com/enswitch/guides/3.11/en/field/cdrs/&lt;br /&gt;
&lt;br /&gt;
Some of the commands are borrowed from the above page and from other Integrics documentation.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The Enswitch version used is 3.11, and the servers run Ubuntu 12.04 64bit.&lt;br /&gt;
&lt;br /&gt;
The servers used in this example are as follows:&lt;br /&gt;
&lt;br /&gt;
*enswitchdb00 - Main active database server&lt;br /&gt;
*enswitchdb01 - Main standby database server&lt;br /&gt;
*enswitchcdrdb00 - Server where CDRs will be archived&lt;br /&gt;
*enswitchcdrdb01 - Server where CDRs will be archived&lt;br /&gt;
&lt;br /&gt;
= OS install =&lt;br /&gt;
&lt;br /&gt;
Load servers with the same OS as the current Enswitch database servers, in this example I use Ubuntu 12.04 64bit.&lt;br /&gt;
&lt;br /&gt;
=== Update all OS packages: ===&lt;br /&gt;
&lt;br /&gt;
 sudo apt-get update&lt;br /&gt;
 sudo apt-get dist-upgrade&lt;br /&gt;
 sudo apt-get autoremove&lt;br /&gt;
 sudo init 6&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Install an appropriate firewall, this is out of the scope of this document, but an example may be added later.&lt;br /&gt;
&lt;br /&gt;
=== Install optional packages: ===&lt;br /&gt;
&lt;br /&gt;
 sudo apt-get install htop iotop bwm-ng tshark&lt;br /&gt;
&lt;br /&gt;
= Database install and configuration =&lt;br /&gt;
&lt;br /&gt;
=== Install MySQL on enswitchcdrdb00 and enswitchcdrdb01: ===&lt;br /&gt;
&lt;br /&gt;
 sudo apt-get install mysql-server&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Configure master/master replication between enswitchcdrdb00 and enswitchcdrdb01: ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Enable remote connections to MySQL on enswitchcdrdb00 and enswitchcdrdb01.  In /etc/mysql.my.cnf, change the bind-address variable to 0.0.0.0.&lt;br /&gt;
&lt;br /&gt;
Add the following configuration options to /etc/mysql/my.cnf under [mysqld] to enable binary logging on enswitchcdrdb00 and enswitchcdrdb01:&lt;br /&gt;
&lt;br /&gt;
 log_bin = /var/lib/mysql/mysql-bin.log&lt;br /&gt;
&lt;br /&gt;
Add the following configuration options to /etc/mysql/my.cnf under [mysqld] to limit replication to only the enswitch database:&lt;br /&gt;
&lt;br /&gt;
 replicate-do-db = enswitch&lt;br /&gt;
&lt;br /&gt;
Add the following configuration options to /etc/mysql/my.cnf under [mysqld] on enswitchcdrdb00:&lt;br /&gt;
&lt;br /&gt;
 server-id = 10&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Add the following configuration options to /etc/mysql/my.cnf under [mysqld] on enswitchcdrdb01:&lt;br /&gt;
&lt;br /&gt;
 server-id = 11&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Add the following configuration options to /etc/mysql/my.cnf under [mysqld] to enable a single file per table:&lt;br /&gt;
&lt;br /&gt;
 innodb_file_per_table&lt;br /&gt;
&lt;br /&gt;
Restart MySQL:&lt;br /&gt;
&lt;br /&gt;
 sudo service mysql restart&lt;br /&gt;
&lt;br /&gt;
Configure replication&lt;br /&gt;
&lt;br /&gt;
Add a replicate user on enswitchcdrdb00:&lt;br /&gt;
&lt;br /&gt;
 grant super, replication client, replication slave, reload on *.* to replicate@10.1.0.89 identified by &amp;#039;PASSWORD&amp;#039;;&lt;br /&gt;
&lt;br /&gt;
Add a replicate user on enswitchcdrdb01:&lt;br /&gt;
&lt;br /&gt;
 grant super, replication client, replication slave, reload on *.* to replicate@10.1.0.88 identified by &amp;#039;PASSWORD&amp;#039;;&lt;br /&gt;
&lt;br /&gt;
On enswitchcdrdb00, display the current log file and position:&lt;br /&gt;
&lt;br /&gt;
 show master status\G&lt;br /&gt;
&lt;br /&gt;
Insert the appropriate values instead of LOGFILE and POSITION below, and then run the command in mysql on enswitchcdrdb01:&lt;br /&gt;
&lt;br /&gt;
 change master to master_host=&amp;#039;10.1.0.88&amp;#039;, master_user=&amp;#039;replicate&amp;#039;, master_password=&amp;#039;PASSWORD&amp;#039;, master_log_file=&amp;#039;LOGFILE&amp;#039;, master_log_pos=POSITION;&lt;br /&gt;
&lt;br /&gt;
Start the slave process on enswitchcdrdb01:&lt;br /&gt;
&lt;br /&gt;
 slave start;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
On enswitchcdrdb01, display the current log file and position:&lt;br /&gt;
&lt;br /&gt;
 show master status\G&lt;br /&gt;
&lt;br /&gt;
Insert the appropriate values instead of LOGFILE and POSITION below, and then run the command in mysql on enswitchcdrdb00:&lt;br /&gt;
&lt;br /&gt;
 change master to master_host=&amp;#039;10.1.0.89&amp;#039;, master_user=&amp;#039;replicate&amp;#039;, master_password=&amp;#039;PASSWORD&amp;#039;, master_log_file=&amp;#039;LOGFILE&amp;#039;, master_log_pos=POSITION;&lt;br /&gt;
&lt;br /&gt;
Start the slave process on enswitchcdrdb00:&lt;br /&gt;
&lt;br /&gt;
 slave start;&lt;br /&gt;
&lt;br /&gt;
= Install and configure Heartbeat =&lt;br /&gt;
&lt;br /&gt;
=== Add entries to /etc/hosts for each server on enswitchcdrdb00 and enswitchcdrdb01: ===&lt;br /&gt;
&lt;br /&gt;
 10.1.0.88   enswitchcdrdb00&lt;br /&gt;
 10.1.0.89   enswitchcdrdb01&lt;br /&gt;
&lt;br /&gt;
=== Install heartbeat: ===&lt;br /&gt;
&lt;br /&gt;
 sudo apt-get install heartbeat&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Configure heartbeat: ===&lt;br /&gt;
&lt;br /&gt;
Create /etc/ha.d/haresources:&lt;br /&gt;
&lt;br /&gt;
On enswitchcdrdb00 and enswitchcdrdb01:&lt;br /&gt;
&lt;br /&gt;
 enswitchcdrdb00 IPaddr::10.1.0.93/26/eth0&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Create /etc/ha.d/ha.cf:&lt;br /&gt;
&lt;br /&gt;
On enswitchcdrdb00:&lt;br /&gt;
&lt;br /&gt;
 debug 1&lt;br /&gt;
 debugfile /var/log/heartbeat_debug.log&lt;br /&gt;
 logfile /var/log/heartbeat.log&lt;br /&gt;
 logfacility local0&lt;br /&gt;
 &lt;br /&gt;
 keepalive 1&lt;br /&gt;
 deadtime 10&lt;br /&gt;
 warntime 5&lt;br /&gt;
 initdead 60&lt;br /&gt;
 &lt;br /&gt;
 udpport 700&lt;br /&gt;
 bcast eth0&lt;br /&gt;
 ucast eth0 10.1.0.89&lt;br /&gt;
 ping 10.1.0.65&lt;br /&gt;
 &lt;br /&gt;
 auto_failback off&lt;br /&gt;
 node enswitchcdrdb00&lt;br /&gt;
 node enswitchcdrdb01&lt;br /&gt;
 respawn hacluster /usr/lib/heartbeat/ipfail&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
On enswitchcdrdb01:&lt;br /&gt;
&lt;br /&gt;
 debug 1&lt;br /&gt;
 debugfile /var/log/heartbeat_debug.log&lt;br /&gt;
 logfile /var/log/heartbeat.log&lt;br /&gt;
 logfacility local0&lt;br /&gt;
 &lt;br /&gt;
 keepalive 1&lt;br /&gt;
 deadtime 10&lt;br /&gt;
 warntime 5&lt;br /&gt;
 initdead 60&lt;br /&gt;
 &lt;br /&gt;
 udpport 700&lt;br /&gt;
 bcast eth0&lt;br /&gt;
 ucast eth0 10.1.0.88&lt;br /&gt;
 ping 10.1.0.65&lt;br /&gt;
 &lt;br /&gt;
 auto_failback off&lt;br /&gt;
 node enswitchcdrdb00&lt;br /&gt;
 node enswitchcdrdb01&lt;br /&gt;
 respawn hacluster /usr/lib/heartbeat/ipfail&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Create /etc/ha.d/authkeys on enswitchcdrdb00 and enswitchcdrdb01:&lt;br /&gt;
&lt;br /&gt;
 auth 2&lt;br /&gt;
 1 crc&lt;br /&gt;
 2 sha1 secret&lt;br /&gt;
 3 md5 dhcp&lt;br /&gt;
&lt;br /&gt;
Change permissions on /etc/ha.d/authkeys&lt;br /&gt;
&lt;br /&gt;
 sudo chmod 600 /etc/ha.d/authkeys&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Add firewall rule allow heartbeat.  This goes in /etc/firewall.sh anywhere after the &amp;quot;iptables -A INPUT -i lo -j ACCEPT&amp;quot; line and before &amp;quot;iptables -A INPUT -j LOG&amp;quot;:&lt;br /&gt;
&lt;br /&gt;
On enswitchcdrdb00:&lt;br /&gt;
&lt;br /&gt;
 iptables -t filter -A INPUT -p udp --dport 700 -s 10.1.0.89 -m comment --comment &amp;quot;Allow heartbeat from enswitchcdrdb01&amp;quot; -j ACCEPT&lt;br /&gt;
&lt;br /&gt;
On enswitchcdrdb01:&lt;br /&gt;
&lt;br /&gt;
 iptables -t filter -A INPUT -p udp --dport 700 -s 10.1.0.88 -m comment --comment &amp;quot;Allow heartbeat from enswitchcdrdb00&amp;quot; -j ACCEPT&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Apply new firewall rules:&lt;br /&gt;
&lt;br /&gt;
 sudo sh /etc/firewall.sh&lt;br /&gt;
&lt;br /&gt;
=== Start Heartbeat: ===&lt;br /&gt;
&lt;br /&gt;
Start heartbeat on enswitchcdrdb00:&lt;br /&gt;
 sudo service heartbeat start&lt;br /&gt;
&lt;br /&gt;
Wait until you see the 10.1.0.93 IP address on eth0:0 and drbd0 volume mounted at /mnt/drbd0, then start heartbeat on enswitchcdrdb01:&lt;br /&gt;
 sudo service heartbeat start&lt;br /&gt;
&lt;br /&gt;
You should now be able to test heartbeat by running hb_takeover on each box and having it take over the 10.1.0.93 IP and the drbd0 volume.&lt;br /&gt;
 sudo /usr/share/heartbeat/hb_takeover&lt;br /&gt;
&lt;br /&gt;
= Configure CDR archiving =&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Make a backup of the current Enswitch database&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Optionally, also backup the individual tables in the current database for easy retreival.  NOTE, this should only be run on a test system, not on production since it will take a very long time.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 CREATE TABLE cdrs_backup1 LIKE cdrs;&lt;br /&gt;
 INSERT INTO cdrs_backup1 SELECT * FROM cdrs;&lt;br /&gt;
 CREATE TABLE cdrcosts_backup1 LIKE cdrcosts;&lt;br /&gt;
 INSERT INTO cdrcosts_backup1 SELECT * FROM cdrcosts;&lt;br /&gt;
 CREATE TABLE cdrcost_taxes_backup1 LIKE cdrcost_taxes;&lt;br /&gt;
 INSERT INTO cdrcost_taxes_backup1 SELECT * FROM cdrcost_taxes;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Create enswitch database on enswitchcdrdb00: ===&lt;br /&gt;
&lt;br /&gt;
 CREATE DATABASE enswitch;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Create tables: ===&lt;br /&gt;
&lt;br /&gt;
Do &amp;#039;SHOW CREATE TABLE&amp;#039; on enswitchcdb00 for each of the 3 cdr* tables and run these on enswitchcdrdb00.&lt;br /&gt;
&lt;br /&gt;
Create enswitchcdrsrw user on enswitchcdrdb00&amp;quot;&lt;br /&gt;
&lt;br /&gt;
 GRANT ALL ON enswitch.* to enswitchcdrsrw IDENTIFIED BY &amp;#039;password&amp;#039;;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Run enswitch_cdrs_archive_remote manually: ===&lt;br /&gt;
&lt;br /&gt;
 sudo su - enswitch -c &amp;quot;/opt/enswitch/current/bin/enswitch_cdrs_archive_remote 365 debug&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Cron configuration ===&lt;br /&gt;
&lt;br /&gt;
Disable the original enswitch_cdrs_archive if it is currently in use.&lt;br /&gt;
&lt;br /&gt;
= Configure web servers =&lt;br /&gt;
&lt;br /&gt;
=== Instruct web interface to use the archive CDR database ===&lt;br /&gt;
&lt;br /&gt;
Add the following to /etc/enswitch/databases.conf on the web servers:&lt;br /&gt;
&lt;br /&gt;
 delete/cdrs/archive, 1, 100, mysql, 10.1.0.93, 3306, enswitch, enswitchcdrsrw, PASSWORD, 1&lt;br /&gt;
 insert/cdrs/archive, 1, 100, mysql, 10.1.0.93, 3306, enswitch, enswitchcdrsrw, PASSWORD, 1&lt;br /&gt;
 select/cdrs/archive, 1, 100, mysql, 10.1.0.93, 3306, enswitch, enswitchcdrsrw, PASSWORD, 1&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Restart apache ===&lt;br /&gt;
&lt;br /&gt;
 sudo service apache2 restart&lt;br /&gt;
&lt;br /&gt;
= Configure roles =&lt;br /&gt;
&lt;br /&gt;
In order to allow non System Owner users to search archived CDRs, set the &amp;quot;Call history (archived)&amp;quot; to &amp;quot;Yes&amp;quot; under the appropriate roles.  It would be best to set this for only roles where it is absolutely necessary.&lt;br /&gt;
&lt;br /&gt;
= Configure backups of archived CDRs =&lt;br /&gt;
&lt;br /&gt;
CDRs archived on a remote server will no longer be backed up by the standard Enswitch backup script.&lt;br /&gt;
&lt;br /&gt;
=== backup script ===&lt;br /&gt;
&lt;br /&gt;
This script will make a backup for each day, overwriting the last.&lt;br /&gt;
&lt;br /&gt;
Create /usr/local/sbin/mysql-backup.sh withthe following contents:&lt;br /&gt;
&lt;br /&gt;
 #!/bin/sh&lt;br /&gt;
 &lt;br /&gt;
 DAY=`date +%a`&lt;br /&gt;
 HOSTNAME=`hostname`&lt;br /&gt;
 MYSQL_USERNAME=$1&lt;br /&gt;
 MYSQL_PASSWORD=$2&lt;br /&gt;
 BACKUP_PATH=$3&lt;br /&gt;
 COMPRESS_LEVEL=$4&lt;br /&gt;
 &lt;br /&gt;
 rm -f $BACKUP_PATH/mysql_backup-$HOSTNAME-$DAY.sql*&lt;br /&gt;
 &lt;br /&gt;
 mysqldump -u $MYSQL_USERNAME --password=$MYSQL_PASSWORD --all-databases --skip-lock-tables --single-transaction &amp;gt;  $BACKUP_PATH/mysql_backup-$HOSTNAME-$DAY.sql&lt;br /&gt;
 &lt;br /&gt;
 if [ $COMPRESS_LEVEL -gt 0 ] &amp;amp;&amp;amp; [ $COMPRESS_LEVEL -lt 10 ]&lt;br /&gt;
 then&lt;br /&gt;
   xz -$COMPRESS_LEVEL $BACKUP_PATH/mysql_backup-$HOSTNAME-$DAY.sql&lt;br /&gt;
 fi&lt;br /&gt;
&lt;br /&gt;
Change permissions on /usr/local/sbin/mysql-backup.sh&lt;br /&gt;
&lt;br /&gt;
 sudo chmod +x /usr/local/sbin/mysql-backup.sh&lt;br /&gt;
&lt;br /&gt;
Add cron entry:&lt;br /&gt;
&lt;br /&gt;
 echo &amp;quot;1 0     * * *   root    /usr/local/bin/mysql-backup.sh root PASSWORD /root/mysqlbackups 3&amp;quot; | sudo tee /etc/cron.d/mysql-backup&lt;br /&gt;
&lt;br /&gt;
Since the cron file will contain a MySQL password, make it readable only by root&lt;br /&gt;
&lt;br /&gt;
 sudo chmod 700 /etc/cron.d/mysql-backup&lt;br /&gt;
&lt;br /&gt;
= References =&lt;br /&gt;
&lt;br /&gt;
https://integrics.com/enswitch/guides/3.11/en/field/cdrs/&lt;br /&gt;
&lt;br /&gt;
https://integrics.com/enswitch/guides/3.11/en/field/install/mysql/replication/&lt;/div&gt;</summary>
		<author><name>Danthony</name></author>
	</entry>
</feed>