<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
	
	>
<channel>
	<title>
	Comments on: How to Setup DRBD to Replicate Storage on Two CentOS 7 Servers	</title>
	<atom:link href="https://www.tecmint.com/setup-drbd-storage-replication-on-centos-7/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.tecmint.com/setup-drbd-storage-replication-on-centos-7/</link>
	<description>Tecmint - Linux Howtos, Tutorials, Guides, News, Tips and Tricks.</description>
	<lastBuildDate>Sat, 16 Nov 2019 01:17:07 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	
	<item>
		<title>
		By: Richard Lloyd		</title>
		<link>https://www.tecmint.com/setup-drbd-storage-replication-on-centos-7/comment-page-1/#comment-1290054</link>

		<dc:creator><![CDATA[Richard Lloyd]]></dc:creator>
		<pubDate>Sat, 16 Nov 2019 01:17:07 +0000</pubDate>
		<guid isPermaLink="false">https://www.tecmint.com/?p=31534#comment-1290054</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://www.tecmint.com/setup-drbd-storage-replication-on-centos-7/comment-page-1/#comment-1213241&quot;&gt;Eric Evans&lt;/a&gt;.

As Theo&#039;s post implied, setting up &lt;strong&gt;drbd&lt;/strong&gt; between two servers is only &quot;part 1&quot; on the way to high availability (which is surely the only reason you&#039;d be replicating filestore with &lt;strong&gt;drbd&lt;/strong&gt;).

You probably need a &quot;part 2&quot; (apologies if you&#039;ve already done this), where you explain how to make the storage highly available on your network using a floating virtual IP. As Theo said, this is typically done with &lt;strong&gt;corosync&lt;/strong&gt;/&lt;strong&gt;pacemaker&lt;/strong&gt;, but it&#039;s non-trivial.

The aim is to be able to shut down the primary server and have the secondary server take over the primary role (including the virtual IP) within seconds of detecting the original primary server leaving the cluster. I know from experience that Linux VMs (via iSCSI to clustered SANs) will go read-only on their filesystems if they lose their filestore on the network for 25 seconds or more, requiring them to be restarted and fsck&#039;ed afterward.

Note that bringing back the original shutdown server into the cluster should only make it a secondary that syncs any changes during its downtime from the new primary server. There are commands you can run after that sync is completed to switch the server to become the primary node again, but I&#039;d do that manually myself.

You may also need a &quot;part 3&quot; where fencing of nodes is considered - this is mainly to avoid &quot;split-brain&quot; where a primary node that drops out of the cluster still thinks it&#039;s the primary and tries to write to the filestore when it shouldn&#039;t. The STONITH method Theo mentioned involves forcibly powering off the faulty primary node immediately before another node takes over its primary duties.]]></description>
			<content:encoded><![CDATA[<p>In reply to <a target="_blank" href="https://www.tecmint.com/setup-drbd-storage-replication-on-centos-7/comment-page-1/#comment-1213241">Eric Evans</a>.</p>
<p>As Theo&#8217;s post implied, setting up <strong>drbd</strong> between two servers is only &#8220;part 1&#8221; on the way to high availability (which is surely the only reason you&#8217;d be replicating filestore with <strong>drbd</strong>).</p>
<p>You probably need a &#8220;part 2&#8221; (apologies if you&#8217;ve already done this), where you explain how to make the storage highly available on your network using a floating virtual IP. As Theo said, this is typically done with <strong>corosync</strong>/<strong>pacemaker</strong>, but it&#8217;s non-trivial.</p>
<p>The aim is to be able to shut down the primary server and have the secondary server take over the primary role (including the virtual IP) within seconds of detecting the original primary server leaving the cluster. I know from experience that Linux VMs (via iSCSI to clustered SANs) will go read-only on their filesystems if they lose their filestore on the network for 25 seconds or more, requiring them to be restarted and fsck&#8217;ed afterward.</p>
<p>Note that bringing back the original shutdown server into the cluster should only make it a secondary that syncs any changes during its downtime from the new primary server. There are commands you can run after that sync is completed to switch the server to become the primary node again, but I&#8217;d do that manually myself.</p>
<p>You may also need a &#8220;part 3&#8221; where fencing of nodes is considered &#8211; this is mainly to avoid &#8220;split-brain&#8221; where a primary node that drops out of the cluster still thinks it&#8217;s the primary and tries to write to the filestore when it shouldn&#8217;t. The STONITH method Theo mentioned involves forcibly powering off the faulty primary node immediately before another node takes over its primary duties.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Theo Viset		</title>
		<link>https://www.tecmint.com/setup-drbd-storage-replication-on-centos-7/comment-page-1/#comment-1225074</link>

		<dc:creator><![CDATA[Theo Viset]]></dc:creator>
		<pubDate>Thu, 15 Aug 2019 10:25:42 +0000</pubDate>
		<guid isPermaLink="false">https://www.tecmint.com/?p=31534#comment-1225074</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://www.tecmint.com/setup-drbd-storage-replication-on-centos-7/comment-page-1/#comment-1224987&quot;&gt;Theo Viset&lt;/a&gt;.

It is solved, it turned out that the &lt;code&gt;mysqld&lt;/code&gt; was enabled, so it was started twice.

The second issue was solved by increasing the time outs.]]></description>
			<content:encoded><![CDATA[<p>In reply to <a target="_blank" href="https://www.tecmint.com/setup-drbd-storage-replication-on-centos-7/comment-page-1/#comment-1224987">Theo Viset</a>.</p>
<p>It is solved, it turned out that the <code>mysqld</code> was enabled, so it was started twice.</p>
<p>The second issue was solved by increasing the time outs.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Theo Viset		</title>
		<link>https://www.tecmint.com/setup-drbd-storage-replication-on-centos-7/comment-page-1/#comment-1224987</link>

		<dc:creator><![CDATA[Theo Viset]]></dc:creator>
		<pubDate>Thu, 15 Aug 2019 06:33:04 +0000</pubDate>
		<guid isPermaLink="false">https://www.tecmint.com/?p=31534#comment-1224987</guid>

					<description><![CDATA[Hi all,

We have configured the &lt;strong&gt;corosync/pacemaker&lt;/strong&gt; cluster with 3 LV&#039;s and 3 resources (our own application platform, MySQL and Nginx) and a virtual IP. Besides, we set up STONITH fencing; when the network connection dies, or a server runs in problems that server is powered down.

When we test the switching of the cluster from &lt;strong&gt;node 1&lt;/strong&gt; to &lt;strong&gt;node 2&lt;/strong&gt;, we notice that MySQL has a tendency to always try to start on the node that is not active, and after a while stops when it doesn&#039;t succeed. It s only that resource, the other don&#039;t try it, and after it it does start on the active node. Did we do something with stickiness, or a preferred host for this MySQL resource?

Secondly, when a server powers down and the cluster is healthy and running on the active server, we boot up the second server. The first, active server remains active, but when the inactive server is up and the cluster status shows that both servers are back in the cluster config, the resources on the active host are stopped and restarted anyway. 

Is this because the &lt;strong&gt;drbd&lt;/strong&gt; setup now includes 2 nodes again and has to restart the resources? We would prefer the resources remain running when the second node is included but not promoted to active, as basically that should have no influence on the already active host.

I hope someone had this before and knows the magic trick ;)

Best regards, Theo]]></description>
			<content:encoded><![CDATA[<p>Hi all,</p>
<p>We have configured the <strong>corosync/pacemaker</strong> cluster with 3 LV&#8217;s and 3 resources (our own application platform, MySQL and Nginx) and a virtual IP. Besides, we set up STONITH fencing; when the network connection dies, or a server runs in problems that server is powered down.</p>
<p>When we test the switching of the cluster from <strong>node 1</strong> to <strong>node 2</strong>, we notice that MySQL has a tendency to always try to start on the node that is not active, and after a while stops when it doesn&#8217;t succeed. It s only that resource, the other don&#8217;t try it, and after it it does start on the active node. Did we do something with stickiness, or a preferred host for this MySQL resource?</p>
<p>Secondly, when a server powers down and the cluster is healthy and running on the active server, we boot up the second server. The first, active server remains active, but when the inactive server is up and the cluster status shows that both servers are back in the cluster config, the resources on the active host are stopped and restarted anyway. </p>
<p>Is this because the <strong>drbd</strong> setup now includes 2 nodes again and has to restart the resources? We would prefer the resources remain running when the second node is included but not promoted to active, as basically that should have no influence on the already active host.</p>
<p>I hope someone had this before and knows the magic trick ;)</p>
<p>Best regards, Theo</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Eric Evans		</title>
		<link>https://www.tecmint.com/setup-drbd-storage-replication-on-centos-7/comment-page-1/#comment-1219035</link>

		<dc:creator><![CDATA[Eric Evans]]></dc:creator>
		<pubDate>Tue, 06 Aug 2019 09:39:07 +0000</pubDate>
		<guid isPermaLink="false">https://www.tecmint.com/?p=31534#comment-1219035</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://www.tecmint.com/setup-drbd-storage-replication-on-centos-7/comment-page-1/#comment-1215103&quot;&gt;Ricardo&lt;/a&gt;.

Aaron, it seems the &lt;strong&gt;drbd&lt;/strong&gt; creates a partition over the existing partition. The existing partition cannot be formatted or used in any manner since it will be overwritten in favor of the drbd partition. 

Then you format the &lt;strong&gt;drbd&lt;/strong&gt; partition. From what I have researched, that is the only way it works. You cannot create a partition over an existing, in use partition. If I am wrong, I would love to be corrected if there is a way. 

Please keep me posted.]]></description>
			<content:encoded><![CDATA[<p>In reply to <a target="_blank" href="https://www.tecmint.com/setup-drbd-storage-replication-on-centos-7/comment-page-1/#comment-1215103">Ricardo</a>.</p>
<p>Aaron, it seems the <strong>drbd</strong> creates a partition over the existing partition. The existing partition cannot be formatted or used in any manner since it will be overwritten in favor of the drbd partition. </p>
<p>Then you format the <strong>drbd</strong> partition. From what I have researched, that is the only way it works. You cannot create a partition over an existing, in use partition. If I am wrong, I would love to be corrected if there is a way. </p>
<p>Please keep me posted.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Aaron Kili		</title>
		<link>https://www.tecmint.com/setup-drbd-storage-replication-on-centos-7/comment-page-1/#comment-1218961</link>

		<dc:creator><![CDATA[Aaron Kili]]></dc:creator>
		<pubDate>Tue, 06 Aug 2019 07:24:05 +0000</pubDate>
		<guid isPermaLink="false">https://www.tecmint.com/?p=31534#comment-1218961</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://www.tecmint.com/setup-drbd-storage-replication-on-centos-7/comment-page-1/#comment-1218505&quot;&gt;Eric Evans&lt;/a&gt;.

@Eric

Great! An existing partition can work, if well configured as shown in the article. We simply considered a fresh setup for beginners. Thanks for the feedback.]]></description>
			<content:encoded><![CDATA[<p>In reply to <a target="_blank" href="https://www.tecmint.com/setup-drbd-storage-replication-on-centos-7/comment-page-1/#comment-1218505">Eric Evans</a>.</p>
<p>@Eric</p>
<p>Great! An existing partition can work, if well configured as shown in the article. We simply considered a fresh setup for beginners. Thanks for the feedback.</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
