<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>https://alteeve.com/w/index.php?action=history&amp;feed=atom&amp;title=2-Node_drbd.conf</id>
	<title>2-Node drbd.conf - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://alteeve.com/w/index.php?action=history&amp;feed=atom&amp;title=2-Node_drbd.conf"/>
	<link rel="alternate" type="text/html" href="https://alteeve.com/w/index.php?title=2-Node_drbd.conf&amp;action=history"/>
	<updated>2026-06-14T23:12:01Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.42.3</generator>
	<entry>
		<id>https://alteeve.com/w/index.php?title=2-Node_drbd.conf&amp;diff=1573&amp;oldid=prev</id>
		<title>Digimer at 01:56, 11 May 2010</title>
		<link rel="alternate" type="text/html" href="https://alteeve.com/w/index.php?title=2-Node_drbd.conf&amp;diff=1573&amp;oldid=prev"/>
		<updated>2010-05-11T01:56:22Z</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 01:56, 11 May 2010&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l18&quot;&gt;Line 18:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 18:&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;	# &amp;#039;no&amp;#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;	# &amp;#039;no&amp;#039;.&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;	usage-count yes;&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;	usage-count yes;&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;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;	&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;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;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;	&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;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;div&gt;}&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;}&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;!-- diff cache key an_wiki-mediawiki-:diff:1.41:old-1572:rev-1573:php=table --&gt;
&lt;/table&gt;</summary>
		<author><name>Digimer</name></author>
	</entry>
	<entry>
		<id>https://alteeve.com/w/index.php?title=2-Node_drbd.conf&amp;diff=1572&amp;oldid=prev</id>
		<title>Digimer: Created page with &#039;{{howto_header}}  This &lt;span class=&quot;code&quot;&gt;drbd.conf&lt;/span&gt; file relates to the 2-Node CentOS5 Cluster HowTo.  = Detailed drbd.conf =  &lt;source lang=&quot;bash&quot;&gt; # # please have a a…&#039;</title>
		<link rel="alternate" type="text/html" href="https://alteeve.com/w/index.php?title=2-Node_drbd.conf&amp;diff=1572&amp;oldid=prev"/>
		<updated>2010-05-11T01:52:24Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;#039;{{howto_header}}  This &amp;lt;span class=&amp;quot;code&amp;quot;&amp;gt;drbd.conf&amp;lt;/span&amp;gt; file relates to the &lt;a href=&quot;/w/2-Node_CentOS5_Cluster&quot; class=&quot;mw-redirect&quot; title=&quot;2-Node CentOS5 Cluster&quot;&gt;2-Node CentOS5 Cluster&lt;/a&gt; HowTo.  = Detailed drbd.conf =  &amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt; # # please have a a…&amp;#039;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Páàjì titun&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{howto_header}}&lt;br /&gt;
&lt;br /&gt;
This &amp;lt;span class=&amp;quot;code&amp;quot;&amp;gt;drbd.conf&amp;lt;/span&amp;gt; file relates to the [[2-Node CentOS5 Cluster]] HowTo.&lt;br /&gt;
&lt;br /&gt;
= Detailed drbd.conf =&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
#&lt;br /&gt;
# please have a a look at the example configuration file in&lt;br /&gt;
# /usr/share/doc/drbd83/drbd.conf&lt;br /&gt;
#&lt;br /&gt;
&lt;br /&gt;
# This directive controls global settings. It should be the first directive in&lt;br /&gt;
# this configuration file.&lt;br /&gt;
global {&lt;br /&gt;
	# This is an optional argument that let&amp;#039;s the folks at Linbit count you&lt;br /&gt;
	# as a user of DRBD. This can be turned off by changing this value to&lt;br /&gt;
	# &amp;#039;no&amp;#039;.&lt;br /&gt;
	usage-count yes;&lt;br /&gt;
	&lt;br /&gt;
	&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
# The values here are inherited by any resources configured below.&lt;br /&gt;
common {&lt;br /&gt;
	# Protocol dictates what DRBD considers to be a &amp;quot;completed write&amp;quot;.&lt;br /&gt;
	# There are three options;&lt;br /&gt;
	# A;&lt;br /&gt;
	#    A write is considered complete once the data has been written to&lt;br /&gt;
	#    the node&amp;#039;s local disk and has been sent to the TCP send buffer.&lt;br /&gt;
	#    This option provides the highest performance with the greatest&lt;br /&gt;
	#    risk in case of a sudden node failure. Use with caution.&lt;br /&gt;
	# B;&lt;br /&gt;
	#    Like A, but instead waits for the data to reach the remote node&amp;#039;s&lt;br /&gt;
	#    TCP receive buffer before reporting completed write. This is a&lt;br /&gt;
	#    balance of performance and safety, but can still cause problems if&lt;br /&gt;
	#    both nodes lose power simultaneously before the write is committed&lt;br /&gt;
	#    to disk on the remote node(s). Use with caution.&lt;br /&gt;
	# C;&lt;br /&gt;
	#    This is the slowest but safest option. It will not report a&lt;br /&gt;
	#    completed write until the data has reached both the local and&lt;br /&gt;
	#    remote disk(s). This is required for Primary/Primary mode and for&lt;br /&gt;
	#    cluster aware file systems like cluster-enabled LVM. Strongly&lt;br /&gt;
	#    suggested.&lt;br /&gt;
	protocol C;&lt;br /&gt;
	&lt;br /&gt;
	# &lt;br /&gt;
	syncer {&lt;br /&gt;
		rate 33M;&lt;br /&gt;
	}&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
# This is an example of a resource directive. There will be a named resource&lt;br /&gt;
# directive for each DRBD device you want to create. Options set in the&lt;br /&gt;
# &amp;#039;common&amp;#039; directive are inherited here. Each resource must have at least two&lt;br /&gt;
# &amp;#039;on&amp;#039; directives which indicate what device on each node that this resource&lt;br /&gt;
# will be created on. This example shows a resource call &amp;#039;r0&amp;#039;. You can name a&lt;br /&gt;
# resource pretty much anything you want.&lt;br /&gt;
resource r0 {&lt;br /&gt;
	# This is the name of the device that will be created for this&lt;br /&gt;
	# resource. You will use this device to access the DRBD partition,&lt;br /&gt;
	# NOT the underlying block devices specified in the &amp;#039;disk&amp;#039; arguments&lt;br /&gt;
	# below.&lt;br /&gt;
	device    /dev/drbd0;&lt;br /&gt;
	&lt;br /&gt;
	# &lt;br /&gt;
	net {&lt;br /&gt;
		allow-two-primaries;&lt;br /&gt;
	}&lt;br /&gt;
	&lt;br /&gt;
	# See &amp;#039;man 8 drbdsetup&amp;#039;.&lt;br /&gt;
	startup { &lt;br /&gt;
		become-primary-on both;&lt;br /&gt;
	}&lt;br /&gt;
	&lt;br /&gt;
	# This tells DRBD where to store the meta-disk data for the DRBD array.&lt;br /&gt;
	# This is usually set to &amp;#039;internal&amp;#039; which means that some space is&lt;br /&gt;
	# set aside at the end of the device. However, if you have multiple&lt;br /&gt;
	# DRBD devices, you may with to set this to a specific partition. In&lt;br /&gt;
	# that case, the partition needs to be at least 256MB. Optionally, this&lt;br /&gt;
	# argument can be replaced by &amp;#039;flexible-meta-disk&amp;#039;, in which case you&lt;br /&gt;
	# will need to specify a specific partition and the size needed will be&lt;br /&gt;
	# ((36kb+(DRBD data size))/32kb), rounded up to the next even 4kb size.&lt;br /&gt;
	meta-disk	internal&lt;br /&gt;
	&lt;br /&gt;
	#######################################################################&lt;br /&gt;
	# The options below are used when you want to set the same values to  #&lt;br /&gt;
	# two or more &amp;#039;on&amp;#039; subdirectives. Using these options enables the use #&lt;br /&gt;
	# of the &amp;#039;floating&amp;#039; subdirective in the place of &amp;#039;on&amp;#039; subdirectives.  #&lt;br /&gt;
	#######################################################################&lt;br /&gt;
	&lt;br /&gt;
	# This defines a common block device to use on nodes without an&lt;br /&gt;
	# explicitely defined &amp;#039;disk&amp;#039; argument.&lt;br /&gt;
	#disk		/dev/an_lvm01/lv02&lt;br /&gt;
	&lt;br /&gt;
	# The &amp;#039;floating&amp;#039; argument can be a simple argument style or a&lt;br /&gt;
	# subdirective defining different configuration options from the above&lt;br /&gt;
	# shared values. When used, it replaces the corresponding &amp;#039;on&amp;#039;&lt;br /&gt;
	# subdirective. Here are two examples showing both methods of using it:&lt;br /&gt;
	#floating 10.0.0.72:7789;&lt;br /&gt;
	# and/or:&lt;br /&gt;
	#floating 10.0.0.72:7789 {&lt;br /&gt;
	#	disk		/dev/an_lvm02/lv02;&lt;br /&gt;
	#}&lt;br /&gt;
	# As with &amp;#039;on&amp;#039;, two or more &amp;#039;floating&amp;#039; and/or &amp;#039;on&amp;#039; arguments must be&lt;br /&gt;
	# used.&lt;br /&gt;
	&lt;br /&gt;
	#######################################################################&lt;br /&gt;
	# The &amp;#039;on&amp;#039; subdirectives tell DRBD which nodes have which devices to  #&lt;br /&gt;
	# use in the DRBD array.                                              #&lt;br /&gt;
	#######################################################################&lt;br /&gt;
	&lt;br /&gt;
	# This is the first &amp;#039;on&amp;#039; subdirective. The name after the &amp;#039;on&amp;#039; syntax&lt;br /&gt;
	# MUST be the name returned by &amp;#039;uname -r&amp;#039; on the given node.&lt;br /&gt;
	on an_node01.alteeve.com {&lt;br /&gt;
		# This is the IP address that the name above resolves to. Be&lt;br /&gt;
		# sure that this IP is to one on your DRBD subnet and&lt;br /&gt;
		# corresponds to your desired ethernet device.&lt;br /&gt;
		address		10.0.0.71:7789;&lt;br /&gt;
		&lt;br /&gt;
		# Note that if you are not using IPv4, you will need to specify&lt;br /&gt;
		# the address type between the &amp;#039;address&amp;#039; argument and the value&lt;br /&gt;
		# like so:&lt;br /&gt;
		#address ipv6	[::f38a]:7789;&lt;br /&gt;
		# Valid types are:&lt;br /&gt;
		# ipv4		Default, not required&lt;br /&gt;
		# ipv6		Address must be in square-brackets&lt;br /&gt;
		# ssocks	&amp;lt;example&amp;gt;&lt;br /&gt;
		# sci		This is depracated and aliases to ssocks&lt;br /&gt;
		# sdp		&amp;lt;example&amp;gt;&lt;br /&gt;
		&lt;br /&gt;
		# This is the raw block device that will be used on this node.&lt;br /&gt;
		# If a common &amp;#039;disk&amp;#039; is defined above and it matches the disk&lt;br /&gt;
		# to use on this node, this can be left out.&lt;br /&gt;
		disk		/dev/an_lvm01/lv02;&lt;br /&gt;
	}&lt;br /&gt;
	&lt;br /&gt;
	# This is the second node&amp;#039;s &amp;#039;on&amp;#039; subdirective. As with above, the name&lt;br /&gt;
	# given MUST match the name returned by &amp;#039;uname -n&amp;#039; on this node.&lt;br /&gt;
	on an_node02.alteeve.com {&lt;br /&gt;
		address		10.0.0.72:7789;&lt;br /&gt;
		disk		/dev/an_lvm02/lv02;&lt;br /&gt;
	}&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{footer}}&lt;/div&gt;</summary>
		<author><name>Digimer</name></author>
	</entry>
</feed>