<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
Hi Digimer,<br>
<br>
Thank you for your reply. <br>
Here is my environment and config details.<br>
<br>
<br>
<u><b>Disk info of both server:</b></u><br>
<br>
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT<br>
xvda 202:0 0 8G 0 disk <br>
└─xvda1 202:1 0 8G 0 part /<br>
xvdb 202:16 0 2G 0 disk <br>
<div class="moz-cite-prefix">On Saturday 07 May 2016 09:50 PM,
Digimer wrote:<br>
<br>
<br>
<u><b>DRBD configuration:<br>
<br>
</b></u>resource r0 {<br>
protocol C;<br>
syncer { rate 1000M; }<br>
startup {<br>
wfc-timeout 15;<br>
degr-wfc-timeout 60;<br>
become-primary-on both;<br>
}<br>
net {<br>
allow-two-primaries;<br>
after-sb-0pri discard-zero-changes;<br>
after-sb-1pri discard-secondary;<br>
after-sb-2pri disconnect;<br>
cram-hmac-alg sha1;<br>
shared-secret "secret";<br>
}<br>
on drbd01 {<br>
device /dev/drbd0;<br>
disk /dev/xvdb;<br>
address 10.98.0.114:7788;<br>
meta-disk internal;<br>
}<br>
on drbd02 {<br>
device /dev/drbd0;<br>
disk /dev/xvdb;<br>
address 10.98.10.241:7788;<br>
meta-disk internal;<br>
}<br>
}<br>
<br>
<br>
<br>
Regards,<br>
Pratip Ghosh.<br>
</div>
<blockquote
cite="mid:6bcdfed1-a8d5-cc82-3c98-03a07b5193b2@alteeve.ca"
type="cite">
<pre wrap="">On 07/05/16 06:44 AM, Pratip Ghosh wrote:
</pre>
<blockquote type="cite">
<pre wrap="">Hello Guys,
I am a new user in this group and need some urgent help.
I am trying to configure HA storage using DRBD with OCFS2 on Ubuntu
14.04 at AWS EC2 instance. I configured both server as primary. If I
shutdown one server and start again it will automatically become primary
after booting process and have up-to date data in both servers, but if I
reboot any one server it was not connecting again as a primary after
booting process and showing following status in both servers. I have
restarted DRBD service in both server one by one but having same issue.
Can anyone guide me one this?
Server1
=====
root@drbd01:~# service drbd status
drbd driver loaded OK; device status:
version: 8.4.3 (api:1/proto:86-101)
srcversion: 6551AD2C98F533733BE558C
m:res cs ro ds p mounted fstype
0:r0 StandAlone Primary/Unknown UpToDate/DUnknown r-----
Server2
=====
root@drbd02:~# service drbd status
drbd driver loaded OK; device status:
version: 8.4.3 (api:1/proto:86-101)
srcversion: 6551AD2C98F533733BE558C
m:res cs ro ds p mounted fstype
0:r0 StandAlone Primary/Unknown UpToDate/DUnknown r-----
Regards,
Pratip Ghosh
</pre>
</blockquote>
<pre wrap="">
This is the definition of a split-brain and it is the result of not
having fencing configured.
For a more useful answer, please share more information on your
environment and config.
</pre>
</blockquote>
<br>
</body>
</html>